/* ========== Mobile first layout ========== */

:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --accent: #ff6a3d;
  --accent-600: #e4552b;
  --muted: #93a0ab;
  --text: #0f1720;
  --radius: 14px;
  --gap: 16px;
  --maxw: 700px;
  --shadow: 0 8px 24px rgba(10,10,12,0.06);
  --glass: rgba(255,255,255,0.6);
}

* {
  box-sizing: border-box;
}

.wrap-forms {
  width: 100%;
  max-width: var(--maxw);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card-forms {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  overflow: hidden;
}

/* header with image */

.hero-forms {
  display: flex;
  gap: 14px;
  align-items: center;
}

.hero-forms img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid #0000000d;
}

.hero-forms .titles-forms {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.subtitle-forms {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

form {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row-forms {
  display: flex;
  gap: 12px;
  align-items: center;
}

.field-forms {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

label {
  font-size: 13px;
  color: #23303a;
  font-weight: 600;
}

input[type="text"], input[type="email"], input[type="date"], input[type="tel"], .checkbox-grid-forms {
  border-radius: 12px;
  border: 1px solid #e6e9ee;
  background: transparent;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: box-shadow .15s ease, border-color .15s ease;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="date"]:focus, input[type="tel"]:focus {
  box-shadow: 0 6px 18px rgba(102,102,102,0.06);
  border-color: var(--accent);
}

/* checkbox list */

.checkbox-grid-forms {
  padding: 0;
  border: none;
  background: transparent;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.option-forms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: all .12s ease;
  cursor: pointer;
  user-select: none;
}

.option-forms:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15,20,30,0.04);
}

.option-forms input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.opt-text-forms {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opt-title-forms {
  font-weight: 600;
  font-size: 14px;
  color: #101820;
}

.opt-desc-forms {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.2;
}

.helper-forms {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}

/* actions */

.actions-forms {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 6px;
}

button[type="submit"] {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  padding: 12px 16px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .12s ease, transform .08s ease;
}

button[type="submit"]:disabled {
  opacity: 0.7;
  transform: none;
  cursor: default;
}

.status-forms {
  font-size: 13px;
  color: #0f1720;
  font-weight: 600;
}

/* spinner */

.spinner-forms {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  border-top-color: rgba(255,255,255,0.95);
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* small screens adjustments */

@media (min-width:700px) {
  .card-forms {
    padding: 28px;
  }
}

@media (min-width:700px) {
  .hero-forms img {
    width: 72px;
    height: 72px;
  }
}

@media (min-width:700px) {
  .checkbox-grid-forms {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* accessibility focus */

input:focus-visible, button:focus-visible, .option-forms:focus-visible {
  outline: 3px solid rgba(255,106,61,0.14);
  outline-offset: 2px;
}

