/* =========================================================
   UTSAV · AUGUST 2026 — Register Now for Rewards
   Same palette as landing page (from the Utsav logo)
   ========================================================= */

:root {
  --navy-900: #070a1c;
  --navy-800: #0a0e24;
  --navy-700: #10183a;
  --navy: #002050;
  --gold: #f0c000;
  --gold-soft: #ffd34d;
  --amber: #f07000;
  --ink: #f6f1e7;
  --muted: #b9b3d9;

  --font-display: "Cinzel", "Playfair Display", serif;
  --font-serif: "Playfair Display", serif;
  --font-sans: "Inter", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--navy-800);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Background (clean, restrained) ---------- */
.bg { position: fixed; inset: 0; z-index: -1; }
.bg-gradient {
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 600px at 78% -8%, #182450 0%, transparent 62%),
    radial-gradient(700px 500px at -5% 108%, #2a1236 0%, transparent 58%),
    linear-gradient(170deg, var(--navy-900) 0%, var(--navy-800) 45%, var(--navy-700) 100%);
}

/* ---------- Layout ---------- */
.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 30px 24px 34px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Register card ---------- */
.register { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 0 30px; }

.card {
  width: 100%;
  background: #12162b;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 40px 42px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 30px 60px rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
}

.card-head { text-align: center; margin-bottom: 26px; }

/* Logo on a white background, above the rewards program badge */
.card-logo {
  background: #ffffff;
  border-radius: 20px;
  padding: 12px;
  width: min(150px, 52vw);
  margin: 0 auto 20px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25);
}
.card-logo-img {
  width: 100%;
  height: auto;
  display: block;
}

.badge {
  display: inline-block;
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  color: var(--gold-soft);
  border: 1px solid rgba(240,192,0,.4);
  padding: 6px 14px; border-radius: 30px; margin-bottom: 18px;
}
.card-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 12px;
}
.card-title .accent {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 55%, var(--amber) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: var(--font-serif); font-style: italic;
  padding: 0.02em 0.04em 0.12em;
  margin: 0 -0.04em;
}
.card-sub { font-family: var(--font-serif); font-size: .98rem; color: var(--muted); line-height: 1.6; }
.utt { font-weight: 700; font-style: italic; color: var(--gold-soft); }

/* ---------- Form ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field label {
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  color: var(--ink); margin-bottom: 8px;
}
.field .req { color: var(--magenta); }

.input {
  padding: 13px 15px;
  font-family: var(--font-sans);
  font-size: .96rem;
  color: var(--ink);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.input::placeholder { color: rgba(201,195,238,.5); }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240,192,0,.15); background: rgba(255,255,255,.08); }
.input.invalid { border-color: #ff8f9c; box-shadow: 0 0 0 3px rgba(255,143,156,.15); }

/* ---------- Mobile number ---------- */
.mobile-wrap { display: flex; gap: 10px; }

.country-dd { position: relative; }
.country-btn {
  display: flex; align-items: center; gap: 6px;
  height: 100%;
  padding: 0 12px;
  font-family: var(--font-sans); font-size: .96rem;
  color: var(--ink);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .25s;
  white-space: nowrap;
}
.country-btn:hover { border-color: var(--gold); }
.country-dd.open .country-btn { border-color: var(--gold); border-radius: 12px 12px 0 0; }
.country-btn .flag { font-size: 1.1rem; line-height: 1; }
.country-btn .dial { font-weight: 600; }
.country-btn .caret { font-size: .7rem; color: var(--muted); }

.country-panel {
  position: absolute; top: calc(100% + 6px); left: 0;
  width: 300px;
  background: var(--navy-800);
  border: 1px solid rgba(240,192,0,.4);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0,0,0,.55);
  z-index: 50;
  display: none;
}
.country-dd.open .country-panel { display: block; }

.country-search { padding: 10px; border-bottom: 1px solid rgba(255,255,255,.08); }
.country-search input {
  width: 100%;
  padding: 9px 12px;
  font-family: var(--font-sans); font-size: .9rem;
  color: var(--ink);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  outline: none;
}
.country-search input:focus { border-color: var(--gold); }

.country-list { max-height: 260px; overflow-y: auto; list-style: none; }
.country-list::-webkit-scrollbar { width: 8px; }
.country-list::-webkit-scrollbar-thumb { background: rgba(240,192,0,.3); border-radius: 10px; }
.country-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: .9rem;
  transition: background .15s;
}
.country-item:hover { background: rgba(240,192,0,.12); }
.country-item .flag { font-size: 1.1rem; }
.country-item .cname { flex: 1; }
.country-item .cdial { color: var(--gold-soft); font-weight: 600; }
.country-empty { padding: 16px; text-align: center; color: var(--muted); font-size: .86rem; }

.mobile-input { flex: 1; min-width: 0; }

/* ---------- Errors ---------- */
.err { font-size: .78rem; color: #ff8f9c; margin-top: 6px; min-height: 0; }
.err:empty { display: none; }

/* ---------- Submit ---------- */
.submit-btn {
  margin-top: 6px;
  padding: 15px;
  font-family: var(--font-sans); font-weight: 600; font-size: 1rem;
  color: var(--navy-900);
  background: linear-gradient(120deg, var(--gold-soft), var(--gold) 50%, var(--amber));
  border: none; border-radius: 40px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(240,192,0,.35);
  transition: transform .15s, box-shadow .25s, filter .25s;
}
.submit-btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 30px rgba(240,192,0,.45); }
.submit-btn:active { transform: translateY(0); }

.form-msg {
  text-align: center;
  font-size: .95rem; font-weight: 500;
  color: #7dffb0;
  min-height: 1.4em;
}
.form-msg.error { color: #ff8f9c; }

/* ---------- Footer ---------- */
.footer {
  text-align: center; font-size: .82rem; color: rgba(201,195,238,.55);
  padding-top: 16px; border-top: 1px solid rgba(255,255,255,.06);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .page { padding: 20px 18px 28px; }
  .card { padding: 30px 22px; border-radius: 18px; }
  .card-logo { width: min(130px, 60vw); }
  .row { grid-template-columns: 1fr; gap: 16px; }
  .form { gap: 16px; }
  .country-panel { width: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001s !important; }
}
