/* OBR Digital Marketing brand palette.
   Variable names are kept generic-role (primary / accent / bg / text) so a
   future client theme can drop in without touching the rest of this file.
   Roles: --wine* = navy (primary), --pink = accent blue, --gold = gold CTA. */
:root {
  --wine:       #1E3A5F;
  --wine-dark:  #16304D;
  --wine-deep:  #0A1628;
  --pink:       #2E75B6;
  --cream:      #F0F7FF;
  --blush:      #E1ECF7;
  --peach:      #EAF2FB;
  --ink:        #1E3A5F;
  --white:      #ffffff;
  --gold:       #F59E0B;
  --gold-light: #FEF3C7;
}

/* Bug fix carried over from the original build: .flyer-col, .dep-badge, etc.
   set their own `display`, which otherwise beats the `[hidden]` attribute at
   equal specificity. Without this, toggling `.hidden = true` in app.js has no
   visual effect. */
[hidden] { display: none !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

/* ── Hero ── */
.hero {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Layered navy / blue professional CSS background (OBR brand). */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0A1628;
  background-image:
    radial-gradient(ellipse 70% 60% at 28% 40%, rgba(46,117,182,.42) 0%, transparent 62%),
    radial-gradient(ellipse 46% 60% at 82% 16%, rgba(46,117,182,.30) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 88% 72%, rgba(245,158,11,.14) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 84%, rgba(30,58,95,.55) 0%, transparent 62%),
    radial-gradient(ellipse 90% 90% at 50% 50%, rgba(10,22,40,.55) 0%, transparent 82%),
    var(--hero-photo, linear-gradient(135deg, #0A1628 0%, #12294a 40%, #1E3A5F 70%, #16304D 100%));
  background-size: auto, auto, auto, auto, auto, cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* When a custom photo is loaded, soften gradients slightly so photo shows through */
.hero-bg.has-photo {
  background-image:
    radial-gradient(ellipse 70% 60% at 28% 40%, rgba(46,117,182,.30) 0%, transparent 62%),
    radial-gradient(ellipse 46% 60% at 82% 16%, rgba(46,117,182,.20) 0%, transparent 55%),
    radial-gradient(ellipse 40% 40% at 88% 72%, rgba(245,158,11,.10) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 10% 84%, rgba(30,58,95,.40) 0%, transparent 62%),
    radial-gradient(ellipse 90% 90% at 50% 50%, rgba(10,22,40,.40) 0%, transparent 82%),
    var(--hero-photo);
}

/* Accent light beam — top right */
.hero-bg::before {
  content: "";
  position: absolute;
  top: -8%; right: 8%;
  width: clamp(80px, 12vw, 160px);
  height: clamp(220px, 40vh, 500px);
  background: linear-gradient(180deg, rgba(46,117,182,.50) 0%, rgba(46,117,182,.22) 60%, transparent 100%);
  border-radius: 0 0 50% 50% / 0 0 40% 40%;
  filter: blur(20px);
}

/* Gold glow — lower left */
.hero-bg::after {
  content: "";
  position: absolute;
  bottom: 10%; left: -5%;
  width: clamp(160px, 30vw, 400px);
  height: clamp(160px, 30vw, 400px);
  background: radial-gradient(circle, rgba(245,158,11,.24) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(32px);
}

/* ── Two-column grid ── */
.content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  padding: clamp(28px, 5vw, 76px);
  padding-bottom: clamp(130px, 16vw, 180px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
}

/* ── Left: frosted light panel over the dark hero ── */
.copy {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(240,247,255,.90);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 24px;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 20px 60px rgba(10,22,40,.35);
}

/* ── Typography ── */
.eyebrow {
  margin: 0 0 22px;
  color: var(--wine-dark);
  text-transform: uppercase;
  letter-spacing: .35em;
  font-size: clamp(.72rem, 1.2vw, .88rem);
  font-weight: 600;
}

h1 {
  margin: 0;
  max-width: 760px;
  color: var(--wine);
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7.5vw, 6.4rem);
  line-height: .95;
  letter-spacing: -.02em;
  font-weight: 700;
}

h1 .title-main { display: block; }

h1 .script-title {
  display: block;
  margin-top: .08em;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--gold);
  font-size: .58em;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: .9;
  color: var(--pink);
}

/* ── Partner badge ── */
.dep-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(14px, 2vw, 22px);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(91,107,140,.10);
  border: 1px solid rgba(91,107,140,.45);
  width: fit-content;
}
.dep-logo-pill {
  background: var(--pink);
  border-radius: 999px;
  padding: 2px 9px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  letter-spacing: -.01em;
}
.dep-badge-text {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pink);
}

/* ── Date + info card ── */
.details {
  margin-top: clamp(28px, 5vw, 52px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: flex-start;
}

.date {
  color: var(--wine-dark);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  line-height: 1.55;
  font-weight: 700;
  letter-spacing: .02em;
}

.info-card {
  min-width: min(100%, 260px);
  padding: 16px 20px;
  border: 1.5px solid rgba(91,107,140,.40);
  border-radius: 18px;
  background: rgba(255,255,255,.38);
  box-shadow: 0 8px 24px rgba(18,36,74,.10), inset 0 0 0 1px rgba(255,255,255,.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
  color: var(--wine-dark);
  font-size: clamp(.95rem, 1.5vw, 1.15rem);
  font-weight: 700;
}
.contact-row:first-child { margin-top: 0; }

.icon {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: var(--wine);
  font-size: 1.05rem;
  box-shadow: 0 4px 12px rgba(39,70,144,.22);
}

.contact-row a { color: inherit; text-decoration: none; white-space: nowrap; }

/* ── What you'll learn ── */
.learn {
  margin-top: clamp(18px, 2.8vw, 32px);
}
.learn-heading {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--wine);
  margin: 0 0 10px;
}
.learn-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.learn-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: clamp(.82rem, 1.2vw, .93rem);
  color: var(--wine-dark);
  line-height: 1.45;
}
.learn-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 5px;
  flex-shrink: 0;
}

/* ── Seats urgency ── */
.seats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: clamp(14px, 2.2vw, 24px);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(39,70,144,.08);
  border: 1px solid rgba(39,70,144,.20);
  font-size: .8rem;
  font-weight: 700;
  color: var(--wine);
  width: fit-content;
}

/* ── CTA card (right form panel) ── */
.cta-card {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 420px);
  padding: clamp(28px, 4vw, 44px);
  border-radius: 28px;
  color: var(--white);
  background: linear-gradient(145deg, rgba(28,53,107,.97), rgba(18,36,74,.99));
  box-shadow: 0 24px 60px rgba(18,36,74,.35);
}

.mini-line {
  margin: 0 0 10px;
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  opacity: .75;
}

.cta-card h2 {
  margin: 0 0 14px;
  font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1;
  font-weight: 700;
}

.form-lede { margin: 0 0 22px; line-height: 1.55; opacity: .88; font-size: .92rem; }

.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: .83rem;
  letter-spacing: .04em;
  opacity: .92;
}
.field em { font-style: normal; opacity: .68; }

.field input {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.30);
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  transition: border-color .2s ease, background .2s ease;
}
.field input::placeholder { color: rgba(255,255,255,.48); }
.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,.18);
}

.field .error {
  display: none;
  margin-top: 6px;
  color: #ffd9e6;
  font-size: .82rem;
}
.field.invalid input { border-color: #ff9cc0; background: rgba(255,60,120,.14); }
.field.invalid .error { display: block; }

/* Gold reserve button */
.button {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: var(--wine-deep);
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(91,107,140,.4); }
.button:disabled { opacity: .75; cursor: default; transform: none; }

.button .spinner {
  display: none;
  width: 20px; height: 20px;
  border: 3px solid var(--wine-deep);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.button.loading .btn-label { display: none; }
.button.loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.privacy { margin: 14px 0 0; font-size: .78rem; line-height: 1.5; opacity: .68; }

/* Thank-you state */
.thanks { text-align: left; }
.thanks-icon {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--wine-deep);
  font-size: 1.7rem;
  font-weight: 800;
}
.thanks-name { margin: 0 0 6px; font-weight: 700; opacity: .95; }
.thanks-step { margin: 8px 0 0; line-height: 1.55; opacity: .92; }

.bank-box {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 16px;
  background: rgba(255,255,255,.08);
}
.bank-title { margin: 0 0 8px; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; opacity: .78; }
.bank-details { margin: 0; line-height: 1.6; font-size: .95rem; }

.button.whatsapp {
  margin: 6px 0 0;
  background: #25D366;
  color: #063d1d;
}

/* Error banner */
.form-error {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,60,120,.18);
  border: 1px solid #ff9cc0;
  color: #ffe3ec;
  line-height: 1.5;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--wine-dark);
  color: var(--white);
  font-size: .92rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  z-index: 50;
}

/* ── Optional decorative hero image slot ── */
.hero-deco {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.deco-figure {
  position: absolute;
  right: 0;
  bottom: 52px;
  height: 84%;
  width: auto;
  max-width: 46%;
  opacity: .88;
  display: block;
}
@media (max-width: 820px) {
  .deco-figure { display: none; }
}

/* ── Partner badge logo ── */
.dep-logo-img {
  height: 48px;
  width: auto;
  border-radius: 7px;
  flex-shrink: 0;
}

/* ── Brand footer strip ── */
.brand {
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px clamp(28px, 5vw, 76px);
  background: rgba(18,36,74,.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(91,107,140,.18);
}

.brand-qbj-logo {
  height: 40px;
  width: auto;
}

.policy-links {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: Inter, sans-serif;
  font-size: .65rem;
  letter-spacing: .04em;
}

.policy-links a {
  color: rgba(255,255,255,.38);
  text-decoration: none;
}

.policy-links a:hover { color: rgba(91,107,140,.70); }
.policy-links span { color: rgba(255,255,255,.20); }

.instagram-link { display: inline-flex; align-items: center; }

.brand-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-domain {
  font-family: Inter, sans-serif;
  font-size: .68rem;
  letter-spacing: .08em;
  color: rgba(255,255,255,.38);
  text-decoration: none;
}

.brand-domain:hover { color: rgba(91,107,140,.70); }

/* ── Flyer image column ── */
.flyer-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.flyer-img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  object-fit: contain;
  max-height: 760px;
  box-shadow: 0 12px 40px rgba(18,36,74,.20);
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .content {
    grid-template-columns: 1fr;
    align-content: center;
    padding-bottom: 220px;
  }
  .copy { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(240,247,255,.95); }
  .cta-card { justify-self: start; width: min(100%, 500px); }
  h1 { font-size: clamp(2.6rem, 11vw, 4.4rem); }
}
@media (max-width: 520px) {
  .content { padding: 28px 20px 220px; }
  .eyebrow { letter-spacing: .2em; }
  .details { margin-top: 28px; }
  .info-card { width: 100%; }
}

/* ── Mobile brand footer — wrap so dev credit stays visible ── */
@media (max-width: 680px) {
  .brand {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 10px 20px 12px;
  }
  .brand-right {
    width: 100%;
    margin-left: 0;
    justify-content: center;
    flex-wrap: wrap;
    row-gap: 6px;
  }
  .policy-links {
    flex: 1;
    justify-content: flex-end;
  }
}
