/* ── FORM PAGES ── */
.form-page {
  min-height: calc(100vh - 70px);
  padding: 3rem 1.5rem 5rem;
  background: var(--cream);
}

.form-container {
  max-width: 680px;
  margin: 0 auto;
}

.form-header {
  margin-bottom: 2.5rem;
}

.form-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  border: 1px solid var(--clay);
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.form-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.form-subtitle {
  font-size: 1.05rem;
  color: var(--warm-gray);
  line-height: 1.7;
  max-width: 540px;
}

/* ── FORM FIELDS ── */
.signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.field-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
}

.label-hint {
  font-weight: 400;
  color: var(--warm-gray);
  font-size: 0.82rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #DDD7CE;
  border-radius: 10px;
  background: white;
  font-family: var(--font-body);
  font-size: 1rem; /* min 16px to prevent iOS auto-zoom on focus */
  color: var(--charcoal);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(196, 82, 42, 0.1);
}

.field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6560' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ── CHECKBOXES ── */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.checkbox-grid--wide {
  grid-template-columns: repeat(3, 1fr);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid #DDD7CE;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.checkbox-label:hover {
  border-color: var(--clay-light);
  background: #FEF9F6;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--clay);
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-label:has(input:checked) {
  border-color: var(--clay);
  background: rgba(196, 82, 42, 0.06);
  color: var(--clay);
  font-weight: 500;
}

/* ── SUBMIT BUTTON ── */
.btn-submit {
  padding: 1rem 2rem;
  background: var(--clay);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  align-self: flex-start;
  margin-top: 0.5rem;
  box-shadow: 0 4px 16px rgba(196, 82, 42, 0.25);
}

.btn-submit:hover {
  background: #B04420;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 82, 42, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

/* ── SUCCESS / ERROR STATES ── */
.form-success {
  text-align: center;
  padding: 3rem 2rem;
  background: white;
  border-radius: 20px;
  border: 1px solid #E8E0D4;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.form-success h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.form-success p {
  font-size: 1rem;
  color: var(--warm-gray);
  line-height: 1.7;
}

.form-error {
  background: #FFF0ED;
  border: 1px solid #F5C5B8;
  color: #C4522A;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: -0.5rem;
}

/* ── CTA BUTTONS on landing page ── */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  background: var(--clay);
  color: white;
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 600;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(196, 82, 42, 0.25);
}

.btn-primary:hover {
  background: #B04420;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 82, 42, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.6rem;
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid rgba(45,42,38,0.25);
  border-radius: 12px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 500;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.btn-secondary:hover {
  border-color: var(--charcoal);
  background: rgba(45,42,38,0.04);
  transform: translateY(-1px);
}

/* closing section CTAs - on dark bg */
.btn-primary--light {
  background: white;
  color: var(--clay);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn-primary--light:hover {
  background: var(--cream);
  transform: translateY(-1px);
}

.btn-secondary--light {
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.btn-secondary--light:hover {
  border-color: white;
  background: rgba(255,255,255,0.1);
}

/* ── FORM SECTION LABELS ── */
.form-section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clay);
  padding-bottom: 0.25rem;
  border-bottom: 1.5px solid #E8E0D4;
  margin-bottom: 1.25rem;
}

/* ── RADIO GROUPS ── */
.radio-group {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid #DDD7CE;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--charcoal);
  background: white;
  transition: border-color 0.15s ease, background 0.15s ease;
  user-select: none;
}

.radio-label:hover {
  border-color: var(--clay-light);
  background: #FEF9F6;
}

.radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--clay);
  flex-shrink: 0;
  cursor: pointer;
}

.radio-label:has(input:checked) {
  border-color: var(--clay);
  background: rgba(196, 82, 42, 0.06);
  color: var(--clay);
  font-weight: 500;
}

/* ── RADIO SCALE (5-point likelihood) ── */
.radio-scale {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.radio-scale .radio-label {
  flex: 1;
  min-width: 80px;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  padding: 0.55rem 0.5rem;
}

/* ── FIELD NOTE ── */
.field-note {
  font-size: 0.82rem;
  color: var(--warm-gray);
  margin: 0.35rem 0 0 0;
  line-height: 1.5;
}

/* ── MENU INFO NOTE ── */
.menu-info-note {
  background: #F5EFE8;
  border: 1.5px solid #DDD7CE;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  margin-top: 0.5rem;
}

.menu-info-note p {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.65;
  margin: 0;
}

/* ── AVAILABILITY PILL PICKER ── */
.avail-quick-actions {
  display: flex;
  gap: 0.6rem;
  margin: 0.75rem 0 0.5rem;
}

.avail-quick-btn {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--clay);
  background: rgba(196, 82, 42, 0.07);
  border: 1.5px solid rgba(196, 82, 42, 0.25);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  line-height: 1;
}

.avail-quick-btn:hover {
  background: rgba(196, 82, 42, 0.14);
  border-color: var(--clay);
}

.avail-grid {
  border: 1.5px solid #DDD7CE;
  border-radius: 12px;
  background: white;
  overflow: hidden;
  margin-top: 0.5rem;
}

.avail-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid #EDE7DC;
}

.avail-row:last-child {
  border-bottom: none;
}

.avail-day {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--charcoal);
  min-width: 3rem;
  flex-shrink: 0;
}

.avail-pills {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

/* Vertical divider between Lunch and Dinner */
.avail-divider {
  width: 1px;
  height: 28px;
  background: #DDD7CE;
  margin: 0 0.5rem;
  flex-shrink: 0;
}

.avail-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid #DDD7CE;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--warm-gray);
  background: white;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  user-select: none;
  min-height: 44px; /* accessible touch target */
}

.avail-pill:hover {
  border-color: var(--clay-light);
  color: var(--clay);
  background: #FEF9F6;
}

.avail-pill--on,
.avail-pill:has(input:checked) {
  border-color: var(--clay);
  background: var(--clay);
  color: white;
  box-shadow: 0 2px 8px rgba(196, 82, 42, 0.25);
}

.avail-pill input[type="checkbox"] {
  display: none; /* hidden — pill itself is the toggle */
}

/* ── OTHER TEXT LABEL ── */
.other-text-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}

/* ── OTHER TEXT INPUT ── */
.other-text-input {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1.5px solid #DDD7CE;
  border-radius: 10px;
  background: white;
  font-family: var(--font-body);
  font-size: 1rem; /* min 16px to prevent iOS auto-zoom */
  color: var(--charcoal);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.other-text-input:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px rgba(196, 82, 42, 0.1);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .field-group {
    grid-template-columns: 1fr;
  }

  .checkbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .checkbox-grid--wide {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-submit {
    width: 100%;
    justify-content: center;
  }

  .cta-row {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .radio-group {
    gap: 0.75rem;
  }

  .radio-scale {
    flex-direction: column;
    gap: 0.4rem;
  }

  .radio-scale .radio-label {
    flex: none;
    width: 100%;
    text-align: left;
    padding: 0.6rem 1rem;
  }

  /* Mobile availability grid: each row becomes its own stacked mini-card */
  .avail-grid {
    border: none;
    border-radius: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

  .avail-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    background: white;
    border: 1.5px solid #DDD7CE;
    border-radius: 12px;
    padding: 0.75rem 1rem;
  }

  .avail-row:last-child {
    border-bottom: 1.5px solid #DDD7CE;
  }

  .avail-day {
    font-size: 0.9rem;
    color: var(--charcoal);
    min-width: unset;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #EDE7DC;
    width: 100%;
  }

  .avail-pills {
    gap: 0;
    width: 100%;
    justify-content: flex-start;
  }

  .avail-pill {
    flex: 1;
    justify-content: center;
    font-size: 0.88rem;
  }
}

/* ── STEP HEADINGS ── */
.step-heading-block {
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.4rem;
  background: linear-gradient(135deg, #F9F4EE 0%, #F3EDE2 100%);
  border-radius: 14px;
  border: 1px solid #E8E0D4;
}

.step-heading {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.step-helper {
  font-size: 0.9rem;
  color: var(--warm-gray);
  margin: 0;
  line-height: 1.6;
}

/* ── UPLOAD SECTIONS ── */
.upload-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.upload-label-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.upload-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
}

.upload-req-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--clay);
  background: rgba(196, 82, 42, 0.1);
  border: 1px solid rgba(196, 82, 42, 0.3);
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}

.upload-optional-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--warm-gray);
  background: #F0EDE8;
  border: 1px solid #DDD7CE;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}

.upload-helper {
  font-size: 0.85rem;
  color: var(--warm-gray);
  margin: 0;
  line-height: 1.5;
}

/* ── UPLOAD ZONE ── */
.upload-zone {
  position: relative;
  border: 2px dashed #C8BFB2;
  border-radius: 14px;
  background: #FEFBF8;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.upload-zone:hover {
  border-color: var(--clay-light);
  background: #FDF8F3;
  box-shadow: 0 0 0 3px rgba(196, 82, 42, 0.07);
}

.upload-zone--drag-over {
  border-color: var(--clay) !important;
  background: #FCF0E8 !important;
  box-shadow: 0 0 0 4px rgba(196, 82, 42, 0.15) !important;
}

.upload-zone--has-files {
  padding-bottom: 0.5rem;
}

.upload-input {
  display: none;
}

.upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  padding: 0.5rem 0;
}

.upload-zone--has-files .upload-placeholder {
  display: none;
}

.upload-icon {
  width: 32px;
  height: 32px;
  color: #A09080;
  flex-shrink: 0;
}

.upload-instruction {
  font-size: 0.9rem;
  color: var(--warm-gray);
  line-height: 1.5;
}

.upload-browse-link {
  color: var(--clay);
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

.upload-limit-note {
  font-size: 0.78rem;
  color: #A09080;
}

/* ── PREVIEW ROW ── */
.upload-preview-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.preview-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border: 1.5px solid #DDD7CE;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  max-width: 180px;
}

.preview-thumb-wrap {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #F0EDE8;
}

.preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.preview-doc-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: #F0EDE8;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--clay);
  letter-spacing: 0.03em;
}

.preview-name {
  font-size: 0.78rem;
  color: var(--charcoal);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90px;
}

.preview-remove {
  background: none;
  border: none;
  color: #A09080;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}

.preview-remove:hover {
  color: var(--clay);
}

/* ── CONFIRMATION CARD ── */
.confirm-card {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 3rem 3rem 2.5rem;
  box-shadow: 0 2px 24px rgba(45,42,38,0.07);
}

.confirm-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #EDE7DC;
}

.confirm-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0 0 0.85rem;
}

.confirm-subtitle {
  font-size: 1.05rem;
  color: var(--warm-gray);
  line-height: 1.7;
  margin: 0;
}

.confirm-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #EDE7DC;
}

.confirm-section--soft {
  background: #FAF6F0;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 2rem;
  border-bottom: none;
}

.confirm-section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1.25rem;
}

.confirm-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.confirm-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.confirm-step-number {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clay);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.confirm-step-body strong {
  display: block;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}

.confirm-step-body p {
  font-size: 0.925rem;
  color: var(--warm-gray);
  line-height: 1.6;
  margin: 0;
}

.confirm-help-intro {
  font-size: 0.925rem;
  color: var(--warm-gray);
  margin: 0 0 1.25rem;
  line-height: 1.6;
}

.confirm-optional-actions {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.confirm-action-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.confirm-action-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--charcoal);
}

.confirm-action-desc {
  font-size: 0.875rem;
  color: var(--warm-gray);
  margin: 0;
  line-height: 1.5;
}

.confirm-input-group {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.confirm-instagram-input {
  flex: 1;
  padding: 0.55rem 0.85rem;
  border: 1.5px solid #DDD7CE;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: white;
  outline: none;
  transition: border-color 0.2s;
}

.confirm-instagram-input:focus {
  border-color: var(--clay);
}

.confirm-instagram-btn {
  padding: 0.55rem 1.1rem;
  background: var(--charcoal);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.confirm-instagram-btn:hover {
  background: var(--clay);
}

.confirm-instagram-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.confirm-instagram-msg {
  font-size: 0.825rem;
  margin: 0.2rem 0 0;
}

.confirm-mailto-link {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: var(--clay);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.confirm-mailto-link:hover {
  border-bottom-color: var(--clay);
}

.confirm-signoff {
  margin-bottom: 2rem;
  padding: 1.75rem 2rem;
  background: var(--charcoal);
  border-radius: 12px;
  position: relative;
}

.confirm-signoff-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(250,246,240,0.9);
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.confirm-signoff-sig {
  font-size: 0.9rem;
  color: rgba(250,246,240,0.6);
  margin: 0;
  font-style: normal;
}

.confirm-footer-line {
  font-size: 0.85rem;
  color: var(--warm-gray);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.confirm-footer-line a {
  color: var(--clay);
  text-decoration: none;
}

.confirm-footer-line a:hover {
  text-decoration: underline;
}

.confirm-back-link {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.confirm-back-link:hover {
  color: var(--charcoal);
}

/* ── INLINE VALIDATION ERRORS ── */
.field-error {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #C4522A;
  margin-top: 0.25rem;
  font-weight: 500;
  animation: fieldErrorFadeIn 0.2s ease forwards;
}

@keyframes fieldErrorFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.field-error svg {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

/* Input error state — uses .field--has-error class toggled by JS, NOT :has()
   :has() was incorrectly matching all fields with error divs even when hidden */
.field--has-error input,
.field--has-error textarea,
.field--has-error select {
  border-color: #C4522A;
  box-shadow: 0 0 0 3px rgba(196, 82, 42, 0.12);
}

.field--has-error input:focus,
.field--has-error textarea:focus {
  border-color: #C4522A;
  box-shadow: 0 0 0 3px rgba(196, 82, 42, 0.18);
}

/* ── CHARACTER COUNTER ── */
.char-counter {
  display: flex;
  justify-content: flex-end;
  font-size: 0.75rem;
  color: var(--warm-gray);
  margin-top: 0.3rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.char-counter.char-counter--ok {
  color: var(--warm-gray);
}

.char-counter.char-counter--warn {
  color: #B8763A;
}

.char-counter.char-counter--error {
  color: #C4522A;
  font-weight: 600;
}

/* ── PDPA CONSENT ── */
.pdpa-consent-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.1rem;
  background: #F9F6F1;
  border: 1px solid #E8E0D4;
  border-radius: 10px;
}

.pdpa-notice {
  font-size: 0.78rem;
  color: var(--warm-gray);
  line-height: 1.6;
  margin: 0;
}

.pdpa-notice a {
  color: var(--clay);
  text-decoration: none;
}

.pdpa-notice a:hover {
  text-decoration: underline;
}

.pdpa-checkbox-label {
  font-size: 0.82rem;
  padding: 0.6rem 0.85rem;
}

.pdpa-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
}

/* ── DETAILED SUCCESS PAGE ── */
.form-success--detailed {
  text-align: center;
  padding: 2.5rem 2rem 2.5rem;
  background: white;
  border-radius: 20px;
  border: 1px solid #E8E0D4;
}

.success-lead {
  font-size: 1.05rem;
  color: var(--warm-gray);
  line-height: 1.7;
  margin: 0.5rem 0 1.75rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.success-email-note {
  font-size: 0.875rem;
  color: #7A9E7E;
  font-weight: 500;
  margin: 1rem 0 0;
  line-height: 1.6;
  background: #F2F8F2;
  border: 1px solid #C5DEC9;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.success-summary {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 1.25rem 1.5rem;
  background: #FAF6F0;
  border-radius: 12px;
  border: 1px solid #EDE7DC;
}

.success-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.success-summary-label {
  font-size: 0.875rem;
  color: var(--warm-gray);
  font-weight: 500;
  flex-shrink: 0;
  text-align: left;
}

.success-summary-value {
  font-size: 0.9rem;
  color: var(--charcoal);
  font-weight: 600;
  text-align: right;
  word-break: break-all;
}

.confirm-email-note {
  font-size: 0.875rem;
  color: #6B6560;
  margin: 0.5rem 0 1.25rem;
  line-height: 1.6;
  background: #F5F0E8;
  border: 1px solid #DDD7CE;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}


@media (max-width: 640px) {
  .confirm-card {
    padding: 2rem 1.5rem 2rem;
    border-radius: 12px;
  }
  .confirm-section--soft {
    padding: 1.25rem 1.25rem;
  }
  .confirm-signoff {
    padding: 1.5rem 1.5rem;
  }
}
