/* ============================================================
   form.css — Tour Navigator Client Registration & Enquiry Form
   External stylesheet — satisfies CSP style-src 'self'
   ============================================================ */

/* ── Reset & Variables ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:        #0D7A5E;
  --teal-dark:   #063D2F;
  --teal-mid:    #3DA882;
  --teal-light:  #E3F4EE;
  --gold:        #C9952A;
  --gold-light:  #FDF3E0;
  --cream:       #FAFAF6;
  --dark:        #0C1A14;
  --mid:         #3D5C4E;
  --pale:        #EEF4F0;
  --border:      #C8DDD4;
  --white:       #ffffff;
  --red:         #C0392B;
  --red-light:   #FDEDEC;
  --green-light: #E3F4EE;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: var(--teal-dark);
  padding: 52px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 56px;
  background: var(--cream);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--teal-mid);
  margin-bottom: 14px;
  font-weight: 600;
  text-transform: uppercase;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5.5vw, 52px);
  color: #fff;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 12px;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(255,255,255,.7);
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.75;
}
.hero-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.badge {
  padding: 7px 16px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px;
  font-size: 12px;
  color: rgba(255,255,255,.8);
}

/* ── Flash messages ─────────────────────────────────────────── */
.flash {
  padding: 14px 20px;
  border-radius: 10px;
  margin: 20px auto;
  max-width: 660px;
  font-size: 14px;
  line-height: 1.6;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.flash.success { background: var(--green-light); border-left: 4px solid var(--teal); color: var(--teal-dark); }
.flash.error   { background: var(--red-light);   border-left: 4px solid var(--red);  color: var(--red); }

/* ── Tabs ───────────────────────────────────────────────────── */
.form-tabs {
  display: flex;
  max-width: 660px;
  margin: 0 auto;
  background: var(--teal-dark);
  padding: 0 24px;
}
.ftab {
  flex: 1;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  color: rgba(255,255,255,.5);
  border: none;
  background: none;
  border-bottom: 3px solid transparent;
  font-family: 'Jost', sans-serif;
  transition: all .2s;
}
.ftab.active { color: #fff; border-bottom-color: var(--gold); }

/* ── Main container ─────────────────────────────────────────── */
.main { max-width: 660px; margin: 0 auto; padding: 40px 24px 80px; }
.panel { display: none; }
.panel.active { display: block; }

/* ── Section headings ───────────────────────────────────────── */
.step-head{ color:var(--mid); }

.sec-tag {
  font-size: 10px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 6px;
}
.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 500;
  color: var(--dark); margin-bottom: 6px;
}
.sec-sub { font-size: 13px; color: var(--mid); line-height: 1.65; margin-bottom: 24px; }

/* ── Form fields ────────────────────────────────────────────── */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.f-full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; }

.field label { font-size: 12px; font-weight: 600; color: var(--mid); letter-spacing: .3px; }
.field label .req { color: var(--red); margin-left: 2px; }

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color .2s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--teal); }
.field input.invalid,
.field select.invalid { border-color: var(--red); background: var(--red-light); }
.field textarea { min-height: 80px; resize: vertical; }
.field .hint { font-size: 11px; color: #8AB0A0; }

/* ── Email + verify row ─────────────────────────────────────── */
.email-verify-row { display: flex; gap: 8px; align-items: flex-start; }
.email-verify-row .field { flex: 1; }
.btn-verify {
  padding: 12px 16px;
  background: var(--teal);
  border: none;
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
}
.btn-verify:hover:not(:disabled) { background: var(--teal-dark); }
.btn-verify:disabled { background: var(--border); color: var(--mid); cursor: not-allowed; }
.btn-verify.verified { background: #1a7a3a; cursor: default; }

.otp-status { font-size: 11px; line-height: 1.5; min-height: 16px; margin-top: 4px; }
.otp-status.ok   { color: #1a7a3a; }
.otp-status.err  { color: var(--red); }
.otp-status.info { color: var(--teal); }

/* ── Package icon cards ─────────────────────────────────────── */
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.pkg-card {
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .18s;
  background: var(--white);
  display: block;
}
.pkg-card input[type="checkbox"],
.pkg-card input[type="radio"] { display: none; }
.pkg-card.selected { border-color: var(--teal); background: var(--teal-light); }
.pkg-icon { font-size: 22px; margin-bottom: 5px; }
.pkg-name { font-size: 12px; font-weight: 500; color: var(--dark); }

/* ── Radio pills ────────────────────────────────────────────── */
.pill-group { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.pill {
  padding: 9px 18px;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  color: var(--dark);
  background: var(--white);
  display: block;
}
.pill input[type="radio"] { display: none; }
.pill.selected { border-color: var(--teal); background: var(--teal-light); color: var(--teal-dark); font-weight: 500; }

/* ── Honeypot (must be invisible) ───────────────────────────── */
.hn-field {
  position: absolute;
  left: -9999px; top: -9999px;
  opacity: 0; pointer-events: none;
}

/* ── Divider ────────────────────────────────────────────────── */
.divider { height: 1px; background: var(--pale); margin: 28px 0; }

/* ── Submit button ──────────────────────────────────────────── */
.btn-submit {
  width: 100%; padding: 15px;
  background: var(--teal);
  border: none; border-radius: 10px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-weight: 500;
  color: #fff; cursor: pointer;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-submit:hover:not(:disabled) { background: var(--teal-dark); }
.btn-submit:disabled { background: #aaa; cursor: not-allowed; }

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Privacy / reCAPTCHA note ───────────────────────────────── */
.privacy { font-size: 11px; color: #9BB8B0; text-align: center; margin-top: 12px; line-height: 1.6; }
.privacy a { color: var(--teal); }

/* ── Confirm / success screen ───────────────────────────────── */
.confirm { display: none; text-align: center; padding: 48px 20px; }
.confirm.show { display: block; }
.confirm-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--teal-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; margin: 0 auto 20px;
}
.confirm h2 { font-family: 'Cormorant Garamond', serif; font-size: 30px; color: var(--teal-dark); margin-bottom: 10px; }
.confirm p  { font-size: 14px; color: var(--mid); line-height: 1.7; max-width: 420px; margin: 0 auto 24px; }
.contact-bar {
  background: var(--teal-dark);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 13px;
  color: rgba(255,255,255,.8);
  line-height: 1.9;
}
.contact-bar a { color: var(--teal-mid); }
.contact-bar strong { color: #fff; display: block; margin-bottom: 6px; }
.btn-another {
  margin-top: 16px; padding: 11px 24px;
  background: var(--teal); border: none; border-radius: 8px;
  font-family: 'Jost', sans-serif; font-size: 13px; font-weight: 500;
  color: #fff; cursor: pointer;
}
.btn-close-window {
  background: transparent;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  margin-left: 10px;
}
.btn-close-window:hover { background: var(--teal); color: #fff; }
.btn-close {
  margin-top: -10px;    
  float:right;
  padding: 0px 10px;
  background: var(--teal); border: none; border-radius: 18px;
  font-family: 'Jost', sans-serif; font-size: 24px; font-weight: 500;
  color: #fff; cursor: pointer;
  border: 1.5px solid var(--teal);
}
.btn-close:hover { background: var(--gold); color: #fff; }

/* ── OTP Inline Panel ───────────────────────────────────────── */

/* Wrapper that sits below the email field and slides open */
.otp-inline-panel {
  display: grid;
  grid-template-rows: 0fr;          /* collapsed by default */
  transition: grid-template-rows .3s ease;
  overflow: hidden;
}
.otp-inline-panel.open {
  grid-template-rows: 1fr;          /* expanded */
}
/* Inner box — overflow:hidden prevents flash of content */
.otp-inline-inner {
  overflow: hidden;
  padding:10px;
}
.otp-inline-box {
  margin-top: 10px;
  background: var(--teal-light);
  border: 1.5px solid var(--teal-mid);
  border-radius: 12px;
  padding: 20px 20px 16px;
  position: relative;
}

/* Decorative top accent line */
.otp-inline-box::before {
  content: '';
  position: absolute;
  top: 0; left: 20px; right: 20px;
  height: 3px;
  background: var(--teal);
  border-radius: 0 0 4px 4px;
}

.otp-inline-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.otp-inline-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}
.otp-inline-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--teal-dark);
  margin-bottom: 3px;
}
.otp-inline-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.55;
}
.otp-inline-desc strong { color: var(--teal-dark); }

/* Keep-window notice */
.otp-keep-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 11.5px;
  color: var(--mid);
  line-height: 1.5;
  margin-bottom: 14px;
}
.otp-keep-notice::before {
  content: '🔒';
  font-size: 14px;
  flex-shrink: 0;
}

/* 6-digit inputs */
.otp-inputs { display: flex; gap: 8px; justify-content: center; margin-bottom: 12px; }
.otp-digit {
  width: 44px; height: 52px;
  border: 2px solid var(--border); border-radius: 10px;
  text-align: center;
  font-size: 22px; font-weight: 600;
  color: var(--dark);
  font-family: 'Jost', monospace;
  outline: none;
  transition: border-color .15s, background .15s;
  background: var(--white);
}
.otp-digit:focus   { border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px rgba(13,122,94,.12); }
.otp-digit.filled  { border-color: var(--teal-mid); }
.otp-digit.error   { border-color: var(--red); background: var(--red-light); }

.otp-error { font-size: 12px; color: var(--red); text-align: center; min-height: 18px; margin-bottom: 10px; }

.btn-confirm-otp {
  width: 100%; padding: 12px;
  background: var(--teal); border: none; border-radius: 9px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; color: #fff; cursor: pointer;
  transition: background .15s; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-confirm-otp:hover:not(:disabled) { background: var(--teal-dark); }
.btn-confirm-otp:disabled { background: #aaa; cursor: not-allowed; }

.otp-panel-footer { display: flex; justify-content: space-between; align-items: center; }
.btn-resend, .btn-cancel-otp {
  background: none; border: none;
  font-family: 'Jost', sans-serif; font-size: 12px; cursor: pointer; padding: 4px 0;
}
.btn-resend     { color: var(--teal); }
.btn-resend:disabled { color: #aaa; cursor: not-allowed; }
.btn-cancel-otp { color: var(--mid); }
.otp-timer      { font-size: 12px; color: var(--mid); }

/* Legacy modal backdrop hidden — kept for JS compatibility */
.modal-backdrop { display: none !important; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer { background: var(--teal-dark); padding: 28px 24px; text-align: center; margin-top: 40px; }
.footer p { font-size: 12px; color: rgba(255,255,255,.5); line-height: 1.8; }
.footer a { color: var(--teal-mid); }
.footer strong { color: rgba(255,255,255,.8); }

/* ── Group label spacing ────────────────────────────────────── */
.group-label { margin-bottom: 10px; }
.group-wrap  { margin-bottom: 14px; }
.group-wrap-lg { margin-bottom: 20px; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 520px) {
  .fields { grid-template-columns: 1fr; }
  .pkg-grid { grid-template-columns: 1fr 1fr 1fr; }
  .pill-group { flex-direction: column; }
  .email-verify-row { flex-direction: column; }
  .btn-verify { margin-top: 0; width: 100%; }
  .otp-inputs { display: flex; gap: 3px;}
  .otp-digit { width: 22px; height: 26px; }
}