/* ═══════════════════════════════════════════════════════════════
   ANVIR SAFARIS — ENQUIRY FORM STYLESHEET
   Typeform-inspired multi-step form, brand-matched
═══════════════════════════════════════════════════════════════ */

/* ── FORM PAGE BODY ── */
body.form-page {
  background: var(--cream);
}

/* ══════════════════════════════════════════
   FORM HERO
══════════════════════════════════════════ */
.form-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-image: url('https://images.unsplash.com/photo-1516026672322-bc52d61a55d5?w=1920&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center 40%;
}

.form-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 24, 16, 0.80) 0%,
    rgba(27, 58, 45, 0.68) 50%,
    rgba(10, 24, 16, 0.82) 100%
  );
}

.form-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 100px 32px 56px;
}

.form-hero-headline {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 70px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}
.form-hero-headline em { font-style: italic; color: var(--gold); }

.form-hero-sub {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,0.80);
  line-height: 1.85;
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════
   FORM SECTION WRAPPER
══════════════════════════════════════════ */
.form-section {
  padding: 64px 24px 96px;
  background: var(--cream);
}

.form-shell {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border: 0.5px solid rgba(0,0,0,0.09);
  box-shadow: 0 8px 48px rgba(27,58,45,0.07);
  border-radius: 2px;
  padding: 0 0 56px;
  overflow: hidden;
}

/* ══════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════ */
.form-progress-wrap {
  background: var(--green-deep);
  padding: 24px 40px 20px;
  position: relative;
}

.form-progress-bar {
  height: 2px;
  background: var(--gold);
  width: 33.33%;
  transition: width 0.5s cubic-bezier(0.4,0,0.2,1);
  margin-bottom: 18px;
  position: relative;
}
.form-progress-bar::after {
  content: '';
  position: absolute;
  right: 0; top: 50%;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateY(-50%);
}

.form-progress-steps {
  display: flex;
  gap: 0;
  justify-content: flex-start;
  margin-bottom: 8px;
  position: relative;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.4);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  transition: all 0.3s ease;
  background: transparent;
  cursor: default;
}
.step-dot.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,137,58,0.12);
}
.step-dot.done {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--white);
}

.form-progress-labels {
  display: flex;
  gap: 32px;
}
.prog-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  transition: color 0.3s;
  cursor: default;
}
.prog-label.active { color: var(--gold); }
.prog-label.done  { color: rgba(255,255,255,0.6); }

/* ══════════════════════════════════════════
   FORM STEPS
══════════════════════════════════════════ */
.form-step {
  display: none;
  padding: 48px 48px 8px;
  animation: stepIn 0.4s ease both;
}
.form-step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Step Header ── */
.step-header {
  margin-bottom: 40px;
}
.step-number {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 300;
  color: rgba(184,137,58,0.18);
  line-height: 1;
  display: block;
  margin-bottom: -8px;
}
.step-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  color: var(--green-deep);
  line-height: 1.1;
  margin-bottom: 12px;
}
.step-rule {
  width: 48px;
  height: 1.5px;
  background: var(--gold);
}

/* ══════════════════════════════════════════
   FIELD GROUPS
══════════════════════════════════════════ */
.field-group {
  margin-bottom: 36px;
}
.field-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.field-label {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.required-star { color: var(--gold); margin-left: 2px; }

.field-hint-top {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.field-hint-top i { margin-right: 5px; color: var(--gold); }

.field-hint {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 0.04em;
}
.field-hint i { margin-right: 4px; }

/* ── Text Inputs ── */
.field-input,
.field-textarea,
.field-select {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dark);
  background: var(--cream);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 2px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.field-input:focus,
.field-textarea:focus,
.field-select:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184,137,58,0.10);
}
.field-input::placeholder,
.field-textarea::placeholder { color: var(--text-muted); }

.field-input.is-invalid,
.field-textarea.is-invalid,
.field-select.is-invalid {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192,57,43,0.08);
}

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

/* ── Select Wrapper ── */
.select-wrap {
  position: relative;
}
.select-wrap .select-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 12px;
  pointer-events: none;
}
.field-select { padding-right: 40px; cursor: pointer; }

/* ── Icon Inputs ── */
.input-icon-wrap { position: relative; }
.input-icon-left {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
  z-index: 1;
}
.field-input.has-icon-left { padding-left: 42px; }

/* ══════════════════════════════════════════
   CHOICE CARDS (Radio + Checkbox)
══════════════════════════════════════════ */
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.choice-grid-sm {
  grid-template-columns: repeat(2, 140px);
}
.checkbox-grid {
  grid-template-columns: 1fr 1fr;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--cream);
  border: 1.5px solid rgba(0,0,0,0.10);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  user-select: none;
}
.choice-card:hover {
  border-color: var(--gold);
  background: var(--gold-light);
}
.choice-card input[type="radio"],
.choice-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.choice-card.selected {
  border-color: var(--gold);
  background: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(184,137,58,0.12);
}

.choice-key {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border: 1.5px solid rgba(0,0,0,0.18);
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  transition: all 0.2s;
  margin-top: 1px;
}
.choice-card.selected .choice-key {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.choice-text {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.5;
  flex: 1;
}
.choice-text small {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}
.choice-text i { margin-right: 6px; color: var(--gold); }

/* ══════════════════════════════════════════
   MONTH PICKER
══════════════════════════════════════════ */
.month-picker-wrap {
  position: relative;
}
.input-icon-right {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gold);
  font-size: 14px;
  pointer-events: none;
}
.field-input[readonly] { cursor: pointer; }

.month-picker-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-width: 320px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 200;
  animation: dropIn 0.2s ease both;
}
.month-picker-dropdown.open { display: block; }

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

.mp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.mp-nav {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 12px;
  padding: 6px 10px;
  transition: color 0.2s;
}
.mp-nav:hover { color: var(--gold); }
.mp-year {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--green-deep);
}

.mp-months {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 12px;
}
.mp-month-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 10px 4px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.mp-month-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-light);
}
.mp-month-btn.selected {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.mp-month-btn.disabled {
  color: #ccc;
  cursor: not-allowed;
  background: transparent;
  border-color: transparent;
  opacity: 0.45;
}

/* ══════════════════════════════════════════
   CONSENT CHECKBOXES
══════════════════════════════════════════ */
.consent-group {
  background: var(--cream);
  padding: 20px 20px;
  border-radius: 2px;
  border: 0.5px solid rgba(0,0,0,0.08);
}
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  padding: 8px 0;
}
.consent-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.consent-box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 1.5px solid rgba(0,0,0,0.2);
  border-radius: 2px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-top: 2px;
}
.consent-box i { font-size: 10px; color: var(--white); opacity: 0; transition: opacity 0.15s; }
.consent-check:checked + .consent-box {
  background: var(--gold);
  border-color: var(--gold);
}
.consent-check:checked + .consent-box i { opacity: 1; }
.consent-text {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.6;
}
.consent-text em { font-style: italic; color: var(--text-muted); }
.consent-text a { color: var(--gold); text-decoration: none; }
.consent-text a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   STEP ACTIONS
══════════════════════════════════════════ */
.step-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 8px;
}

.btn-next {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green-deep);
  padding: 14px 32px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.2s, transform 0.15s;
  border-radius: 1px;
}
.btn-next:hover { background: var(--green-mid); }
.btn-next i { font-size: 13px; color: var(--gold); }

.btn-prev {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  padding: 14px 20px;
  border: 1px solid rgba(0,0,0,0.12);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  border-radius: 1px;
}
.btn-prev:hover {
  color: var(--text-dark);
  border-color: var(--text-mid);
}

.btn-submit {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--gold);
  padding: 16px 40px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s, transform 0.15s;
  border-radius: 1px;
}
.btn-submit:hover { background: #9a7030; }
.btn-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ══════════════════════════════════════════
   ERROR BOX
══════════════════════════════════════════ */
.form-error-box {
  background: #fdf0ef;
  border: 1px solid #e74c3c;
  border-left: 4px solid #e74c3c;
  border-radius: 2px;
  padding: 14px 18px;
  margin-bottom: 20px;
  font-family: var(--sans);
  font-size: 13px;
  color: #c0392b;
  line-height: 1.6;
}
.form-error-box i { margin-right: 8px; }

/* ══════════════════════════════════════════
   SUCCESS STATE
══════════════════════════════════════════ */
.form-success {
  padding: 72px 48px;
  text-align: center;
}
.success-icon {
  font-size: 64px;
  color: var(--gold);
  margin-bottom: 24px;
  animation: popIn 0.5s cubic-bezier(0.34,1.56,0.64,1) both;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
.success-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  color: var(--green-deep);
  margin-bottom: 16px;
  line-height: 1.15;
}
.success-body {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-mid);
  line-height: 1.85;
  max-width: 540px;
  margin: 0 auto 28px;
}
.success-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 28px auto;
}
.success-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-style: italic;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 767px) {
  .form-section { padding: 32px 12px 64px; }
  .form-step { padding: 32px 20px 8px; }
  .form-progress-wrap { padding: 20px 20px 16px; }
  .form-progress-labels { gap: 12px; flex-wrap: wrap; }
  .step-number { font-size: 48px; }

  .choice-grid { grid-template-columns: 1fr; }
  .checkbox-grid { grid-template-columns: 1fr; }
  .choice-grid-sm { grid-template-columns: repeat(2, 1fr); }
  .field-row-2 { grid-template-columns: 1fr; gap: 0; }
  .step-actions { flex-wrap: wrap; }
  .btn-submit, .btn-next { width: 100%; justify-content: center; }
  .form-success { padding: 48px 20px; }
  .month-picker-dropdown { max-width: 100%; }
}