/* fonts: self-hosted Montserrat (latin) */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 300 800; font-display: swap;
  src: url(../fonts/montserrat-latin.woff2?v=6517acb4f5) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* metric-matched fallback while Montserrat loads (keeps text from jumping when it swaps in) */
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 112.8%; ascent-override: 85.8%; descent-override: 22.3%; line-gap-override: 0%; }

/* ==========================================================================
   Jewel of India · Season 4 — registration flow pages
   (register.php, billing.php, payment-complete.php, terms.php, privacy-policy.php)
   Same maroon & gold palette as the landing page (styles.css).
   ========================================================================== */

:root {
  --maroon-950: #1c0204;
  --maroon-900: #2c0407;
  --maroon-800: #42060c;
  --maroon-700: #5c0b13;
  --maroon-600: #761019;
  --ink: #470810;
  --cream: #f7ead0;
  --cream-dim: #e6d3b0;
  --gold-1: #fff3cf;
  --gold-2: #f4d58e;
  --gold-3: #ddae5c;
  --gold-4: #b8842f;
  --gold-line: rgba(242, 204, 128, .55);
  --ok: #8fe0a6;
  --warn: #ffd08a;

  --sans: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;   /* one font family: one font file */
  --mont: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gold-text: linear-gradient(180deg, #fff6d8 0%, #f6d991 32%, #dca854 58%, #f0cb7c 80%, #fff0c4 100%);
  --gold-fill: linear-gradient(180deg, #fff3cc 0%, #f6d993 35%, #e2b263 75%, #f2cd85 100%);
  --maroon-fill: linear-gradient(180deg, #6d0f17 0%, #3d050a 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex; flex-direction: column;
  color: var(--cream);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(160, 30, 40, .55), transparent 70%),
    linear-gradient(180deg, rgba(28, 2, 4, .2), var(--maroon-950) 520px),
    url("../img/bg-curtain-a.webp?v=0f7c765907") center top / cover no-repeat,
    var(--maroon-950);
  background-attachment: scroll;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-2); }
a:hover { color: var(--gold-1); }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon { width: 1.1em; height: 1.1em; flex: none; }

/* test banner */
.testbar {
  margin: 0; padding: 6px 16px;
  background: repeating-linear-gradient(135deg, #f4d58e 0 14px, #e9c271 14px 28px);
  color: var(--ink); text-align: center;
  font: 600 12.5px/1.4 var(--mont); letter-spacing: .04em; text-transform: uppercase;
}

/* header */
.flow-head { display: flex; justify-content: center; padding: 22px 16px 6px; }
.flow-head__brand { display: flex; align-items: center; gap: clamp(14px, 3vw, 26px); text-decoration: none; }
.flow-head__brand img:first-child { width: clamp(62px, 9vw, 86px); }
.flow-head__brand img:last-child { width: clamp(70px, 10vw, 96px); filter: drop-shadow(0 4px 14px rgba(0, 0, 0, .45)); }

/* card */
.flow-main { flex: 1; width: min(100% - 32px, 820px); margin: 14px auto 40px; }
.card {
  position: relative;
  padding: clamp(22px, 4.5vw, 46px) clamp(18px, 5vw, 54px) clamp(26px, 4.5vw, 46px);
  border: 1px solid var(--gold-line);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(118, 16, 25, .5), rgba(44, 4, 7, .78) 46%),
    rgba(28, 2, 4, .72);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 236, 190, .18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card::before {
  content: ""; position: absolute; inset: 7px; border-radius: 16px; pointer-events: none;
  border: 1px solid rgba(242, 204, 128, .16);
}

/* steps */
.steps {
  display: flex; justify-content: center; gap: clamp(6px, 2vw, 18px);
  margin: 0 0 clamp(18px, 3vw, 26px); padding: 0; list-style: none;
  font: 500 clamp(11px, 1.6vw, 13px)/1.2 var(--mont); letter-spacing: .06em; text-transform: uppercase;
  color: rgba(247, 234, 208, .55);
}
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li + li::before { content: ""; width: clamp(12px, 4vw, 40px); height: 1px; background: rgba(242, 204, 128, .35); margin-right: clamp(0px, 1vw, 8px); }
.steps span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid rgba(242, 204, 128, .45); font-size: 11px; font-weight: 600;
}
.steps .is-current { color: var(--gold-1); }
.steps .is-current span { background: var(--gold-fill); color: var(--ink); border-color: transparent; box-shadow: 0 0 14px rgba(246, 210, 140, .5); }
.steps .is-done { color: var(--gold-2); }
.steps .is-done span { background: rgba(244, 213, 142, .18); color: var(--gold-1); }
@media (max-width: 420px) { .steps li:not(.is-current) { font-size: 0; gap: 0; } .steps li:not(.is-current) span { font-size: 11px; } }

/* headings */
.title {
  text-align: center;
  font-weight: 800; font-size: clamp(26px, 5vw, 42px); line-height: 1.1; letter-spacing: .01em; text-transform: uppercase;
  background: var(--gold-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 2px rgba(20, 0, 0, .45));
}
.lead { margin: 12px auto 0; max-width: 56ch; text-align: center; color: var(--cream); font-size: clamp(15px, 1.8vw, 17px); }
.lead--small { font-size: 14px; color: var(--cream-dim); margin-top: 18px; }

.pill {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .45em;
  width: fit-content; max-width: 100%; margin: 14px auto 0; padding: .5em 1.3em;
  border: 1px solid rgba(240, 200, 120, .55); border-radius: 999px;
  background: var(--maroon-fill);
  color: #fbecd0; font-size: clamp(13px, 1.6vw, 15px); font-weight: 600; text-align: center;
}
.pill .icon { color: var(--gold-2); }
.pill i { width: 1px; height: 1.1em; margin: 0 .4em; background: rgba(251, 236, 208, .5); }

/* alerts */
.alert {
  margin: 20px 0 0; padding: 12px 16px; border-radius: 12px;
  font-size: 14.5px; line-height: 1.45;
}
.alert--warn {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid #ff8a8a; border-left: 5px solid #e5202e;
  background: #fff1f0; color: #8a000c; font-weight: 600;
}
.alert--warn::before {
  content: "!"; flex: none; display: grid; place-items: center;
  width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: #e5202e; color: #fff; font: 800 13px/1 var(--mont);
}
.alert--ok { border: 1px solid rgba(143, 224, 166, .5); background: rgba(80, 200, 120, .1); color: var(--ok); }
.alert[hidden] { display: none; }

/* form */
.form { margin-top: clamp(20px, 3vw, 28px); }
.grid { display: grid; gap: 16px 22px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font: 600 13px/1.3 var(--mont); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-2); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"],
.field input[type="date"], .field select {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid rgba(242, 204, 128, .45); border-radius: 12px;
  background: rgba(255, 248, 234, .96); color: var(--maroon-900);
  font: 500 16px/1.3 var(--sans);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: rgba(71, 8, 16, .4); font-weight: 400; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-3); box-shadow: 0 0 0 3px rgba(244, 213, 142, .45); }
/* Errors: light box with dark red text (readable on the maroon card), red frame on the field itself. */
.field input:not([type="file"]):not([type="checkbox"])[aria-invalid="true"],
.was-checked .field input:not([type="file"]):not([type="checkbox"]):invalid,
.field select[aria-invalid="true"], .was-checked .field select:invalid {
  border: 2px solid #ff4d4f; background-color: #fff3f2;
  box-shadow: 0 0 0 4px rgba(255, 77, 79, .35);
}
.field:has([aria-invalid="true"]) > label, .was-checked .field:has(:invalid) > label { color: #ffb3b0; }
.field__error {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 2px 0 0; padding: 8px 12px;
  border-left: 4px solid #e5202e; border-radius: 10px;
  background: #fff1f0; color: #a0000e;
  font: 600 13.5px/1.4 var(--sans);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.field__error::before {
  content: "!"; flex: none; display: grid; place-items: center;
  width: 18px; height: 18px; margin-top: 1px; border-radius: 50%;
  background: #e5202e; color: #fff; font: 800 12px/1 var(--mont);
}
.check input[aria-invalid="true"], .was-checked .check input:invalid { outline: 3px solid #ff4d4f; outline-offset: 2px; }
.field input[type="number"] { -moz-appearance: textfield; }
.field input[type="number"]::-webkit-outer-spin-button,
.field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field--check { margin-top: 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font: 400 14px/1.55 var(--sans) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--cream) !important; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold-3); cursor: pointer; }

/* price box (same look as the landing page's registration strip) */
.price {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-top: 26px; padding: 18px 16px 16px;
  border: 1px solid rgba(255, 230, 170, .7); border-radius: 16px;
  color: var(--ink); text-align: center;
  background:
    radial-gradient(ellipse 60% 130% at 50% 50%, rgba(255, 247, 230, .95), rgba(255, 247, 230, 0) 70%),
    linear-gradient(90deg, #a35f22 0%, #e6b673 18%, #f6dcb0 40%, #f3d39f 62%, #e2ad66 82%, #9d5a20 100%);
}
.price__label { font-weight: 700; font-size: clamp(16px, 2vw, 20px); }
.price__amount {
  padding: .25em 1.1em; border-radius: 999px; background: var(--maroon-fill);
  color: #fff3dc; font-weight: 600; font-size: clamp(15px, 1.8vw, 18px);
}
.price__amount strong { font-size: 1.25em; font-weight: 700; }
.price__note { font-size: 13px; font-style: italic; font-weight: 600; line-height: 1.35; }

/* buttons */
.actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 54px; padding: .9em 2.2em;
  border: 1.5px solid rgba(255, 238, 196, .95); border-radius: 999px;
  background: var(--gold-fill); color: var(--ink);
  font: 600 clamp(15px, 1.8vw, 17px)/1 var(--sans); letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0 0 1.5px rgba(150, 95, 30, .55), 0 8px 22px rgba(20, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -3px 8px rgba(160, 100, 30, .35);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease, opacity .2s;
}
.btn:hover:not(:disabled), .btn:focus-visible { transform: translateY(-2px); filter: brightness(1.06) saturate(1.05); color: var(--ink); box-shadow: 0 0 0 1.5px rgba(150, 95, 30, .55), 0 12px 26px rgba(20, 0, 0, .4), 0 0 30px rgba(246, 210, 140, .55), inset 0 1px 0 rgba(255, 255, 255, .8); }
.btn:focus-visible { outline: 2px solid var(--gold-1); outline-offset: 4px; }
.btn:disabled { cursor: wait; opacity: .7; }
.btn .icon { width: 1.2em; height: 1.2em; stroke-width: 2; }
.btn--sm { min-height: 44px; padding: .7em 1.6em; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--gold-1); box-shadow: none; border-color: var(--gold-line); }
.btn--ghost:hover { color: var(--gold-1); background: rgba(244, 213, 142, .1); }
@media (max-width: 480px) { .actions .btn:not(.btn--ghost) { width: 100%; } }

.secure { display: flex; align-items: center; gap: 6px; color: var(--cream-dim); font-size: 13px; }
.secure .icon { color: var(--gold-2); }

/* review list */
.review { display: grid; margin-top: 22px; border: 1px solid rgba(242, 204, 128, .3); border-radius: 14px; overflow: hidden; }
.review > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; }
.review > div + div { border-top: 1px solid rgba(242, 204, 128, .18); }
.review dt { padding: 11px 14px; background: rgba(244, 213, 142, .08); color: var(--gold-2); font: 600 12.5px/1.4 var(--mont); letter-spacing: .05em; text-transform: uppercase; }
.review dd { padding: 11px 14px; font-weight: 500; overflow-wrap: anywhere; }
@media (max-width: 480px) { .review > div { grid-template-columns: 1fr; } .review dt { padding-bottom: 2px; background: none; } .review dd { padding-top: 0; } }
.edit-link { margin-top: 10px; text-align: right; font-size: 14px; }

/* done */
.done-mark {
  display: grid; place-items: center; width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--gold-fill); color: var(--ink);
  box-shadow: 0 0 0 6px rgba(244, 213, 142, .16), 0 0 40px rgba(246, 210, 140, .45);
}
.done-mark svg { width: 38px; height: 38px; stroke-width: 1.7; }

/* terms (dialog + page) */
.terms { color: var(--cream); font-size: 14.5px; }
.terms h3 { margin: 4px 0 10px; color: var(--gold-1); font-size: 18px; }
.terms h4 { margin: 18px 0 6px; color: var(--gold-2); font: 600 13px/1.3 var(--mont); letter-spacing: .06em; text-transform: uppercase; }
.terms ul { margin: 0; padding-left: 1.2em; }
.terms li { margin: 4px 0; }
.terms p { margin: 8px 0; }
.is-terms .terms { margin-top: 24px; }
.is-terms .terms h3 { margin-top: 28px; }

.terms-dialog {
  width: min(100% - 24px, 720px); max-height: min(86vh, 860px); padding: 0;
  border: 1px solid var(--gold-line); border-radius: 18px;
  background: var(--maroon-900); color: var(--cream);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.terms-dialog[open] { display: flex; flex-direction: column; }
.terms-dialog::backdrop { background: rgba(10, 0, 2, .72); }
.terms-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(242, 204, 128, .25); }
.terms-dialog__head h2 { color: var(--gold-1); font-size: 18px; }
.terms-dialog__close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(244, 213, 142, .12); color: var(--gold-1); font-size: 24px; line-height: 1; cursor: pointer; }
.terms-dialog__body { padding: 16px 22px; overflow: auto; overscroll-behavior: contain; }
.terms-dialog__body:focus { outline: none; }
.terms-dialog__body:focus-visible { outline: 2px solid var(--gold-line); outline-offset: -4px; }
.terms-dialog__foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; padding: 12px 20px; border-top: 1px solid rgba(242, 204, 128, .25); }
.terms-dialog__status { flex: 1; color: var(--cream-dim); font-size: 13px; line-height: 1.4; }
.terms-dialog__status.is-warn { color: #ffb4a8; font-weight: 600; }
.terms__date { color: var(--gold-2); font-size: 13px; }

/* the pop-up's consent boxes (at the end of the terms) */
.consent { margin: 26px 0 6px; padding: 16px 16px 6px; border: 1px solid var(--gold-line); border-radius: 14px; background: rgba(244, 213, 142, .06); }
.consent legend { padding: 0 8px; color: var(--gold-1); font: 700 15px/1.3 var(--mont); letter-spacing: .04em; text-transform: uppercase; }
.consent__lead { margin-top: 0; color: var(--gold-2); font-size: 13.5px; font-weight: 600; }
.consent .check { margin: 12px 0; font-size: 13.5px !important; line-height: 1.5 !important; }
.consent__ack { padding: 10px 12px; border-radius: 10px; background: rgba(244, 213, 142, .12); font-weight: 600 !important; }
.field--check .check__hint { margin: 6px 0 0 32px; }
@media (max-width: 480px) {
  .terms-dialog__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .terms-dialog__foot .btn { width: 100%; }
}

/* footer */
.flow-foot {
  padding: 22px 16px 30px; border-top: 1px solid rgba(242, 204, 128, .2);
  background: rgba(20, 1, 3, .7);
  color: var(--cream-dim); text-align: center; font: 400 13.5px/1.7 var(--mont);
}
.flow-foot a { color: var(--gold-2); text-decoration: none; }
.flow-foot a:hover { text-decoration: underline; }
.flow-foot__event { color: var(--gold-1); font-weight: 600; letter-spacing: .04em; }
.flow-foot__copy { margin-top: 6px; font-size: 12px; opacity: .7; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover:not(:disabled) { transform: none; } }


/* ---------- Season 4 form additions ---------- */
/* Long dropdown options (e.g. "Dadra and Nagar Haveli and Daman and Diu") must not widen the grid. */
.grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.grid > .field { min-width: 0; }
.field select, .field input[type="date"] { width: 100%; min-width: 0; max-width: 100%; }
.field--wide { grid-column: 1 / -1; }
.field__hint { margin: 0; color: var(--cream-dim); font-size: 13px; }

/* dropdowns */
.field select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c0b13' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select:invalid { color: rgba(71, 8, 16, .5); }
.field select option { color: var(--maroon-900); }
.field input[type="date"] { appearance: none; -webkit-appearance: none; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }

/* fixed prefix (+91, @) in front of an input */
.prefix { position: relative; display: flex; }
.prefix__code {
  position: absolute; left: 1px; top: 1px; bottom: 1px; display: grid; place-items: center;
  min-width: 52px; padding: 0 10px; border-right: 1px solid rgba(92, 11, 19, .18); border-radius: 11px 0 0 11px;
  background: rgba(244, 213, 142, .45); color: var(--maroon-700); font: 600 15px/1 var(--mont); pointer-events: none;
}
.prefix input { padding-left: 66px !important; }

.review-wrap { margin-top: 22px; }
.review-wrap .review { margin-top: 0; }

/* confirmation: next steps */
.next-steps { margin: 22px auto 0; max-width: 56ch; padding: 16px 20px; border: 1px solid rgba(242, 204, 128, .3); border-radius: 14px; background: rgba(244, 213, 142, .06); }
.next-steps h2 { margin: 0 0 8px; font: 700 14px/1.3 var(--mont); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); }
.next-steps ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14.5px; }

/* privacy policy page uses the .terms text styles */
