:root {
  --rose: #B44A78;
  --rose-deep: #7d2e4f;
  --rose-soft: #F7C7D8;
  --lilac: #D3B6E6;
  --lilac-deep: #A37FB8;
  --gold: #C89A3E;
  --gold-soft: #E7C772;
  --cream: #FFF2E7;
  --cream-warm: #FBE5D2;
  --ink: #2a1620;
  --ink-2: #4a2a3a;
  --paper: #FFF7EF;
  --paper-tint: #FCEDDD;
  --font-display: "Cinzel", "Trajan Pro", serif;
  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow-soft: 0 24px 70px -32px rgba(180, 74, 120, 0.55), 0 8px 18px -10px rgba(125, 46, 79, 0.20);
  --gold-line: linear-gradient(90deg, transparent, var(--gold), transparent);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-sans);
  background:
    radial-gradient(1100px 620px at 80% -10%, rgba(211, 182, 230, .38), transparent 60%),
    radial-gradient(900px 520px at -10% 14%, rgba(247, 199, 216, .52), transparent 64%),
    radial-gradient(1000px 620px at 50% 115%, rgba(200, 154, 62, .14), transparent 62%),
    var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 10px; }
.skip-link { position: absolute; top: -100px; left: 0; background: var(--rose-deep); color: var(--cream); padding: 12px 18px; z-index: 10; }
.skip-link:focus { top: 0; }

.marquee { background: var(--rose-deep); color: var(--cream); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; padding: 8px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; white-space: nowrap; animation: marquee 38s linear infinite; }
.marquee-track span { padding: 0 1.5rem; }
@keyframes marquee { to { transform: translateX(-33.33%); } }

.shell { width: min(860px, 94vw); margin: clamp(14px, 3vw, 34px) auto; display: block; }
.hero-panel, .card { border: 1px solid rgba(200, 154, 62, .34); border-radius: var(--radius-lg); background: rgba(255, 247, 239, .88); box-shadow: var(--shadow-soft); overflow: hidden; }
.hero-panel { position: relative; min-height: min(650px, calc(100vh - 84px)); display: grid; align-content: end; isolation: isolate; }
.hero-panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,247,239,.15) 0%, rgba(255,247,239,.72) 50%, rgba(255,242,231,.97) 100%); z-index: -1; }
.hero-panel::after { content: "✦"; position: absolute; right: 28px; top: 24px; color: var(--gold); font-size: 1.8rem; opacity: .75; }
.hero-photo { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; filter: saturate(1.05); }
.hero-copy { padding: clamp(22px, 4vw, 38px); max-width: 680px; }
.event-logo { width: min(260px, 72vw); margin-bottom: 16px; }
.chapter-mark { margin: 0 0 12px; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .22em; font-size: .72rem; color: var(--gold); }
.chapter-mark.center { text-align: center; }
.display { margin: 0; font-family: var(--font-display); color: var(--rose-deep); font-size: clamp(1.85rem, 4.45vw, 3.45rem); line-height: 1.05; letter-spacing: .005em; }
.hero-copy .display { font-size: clamp(1.7rem, 3.6vw, 2.85rem); }
.lead { margin: 14px 0 0; font-family: var(--font-serif); color: var(--ink-2); font-size: clamp(1.02rem, 1.6vw, 1.18rem); line-height: 1.4; max-width: 590px; }
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 0; }
.info-strip div { padding: 11px 10px; border-radius: 16px; background: rgba(255,255,255,.56); border: 1px solid rgba(200,154,62,.28); text-align: center; }
.info-strip dt { font-size: .66rem; text-transform: uppercase; letter-spacing: .16em; color: var(--gold); font-weight: 700; }
.info-strip dd { margin: 2px 0 0; color: var(--rose-deep); font-family: var(--font-display); font-size: .9rem; }

.card { min-height: min(650px, calc(100vh - 84px)); padding: clamp(22px, 4vw, 42px); display: flex; flex-direction: column; position: relative; isolation: isolate; }
.unified-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, rgba(255,247,239,.88), rgba(255,242,231,.96)), url('assets/section/castelo-antonella-destaque.jpeg') center/cover; opacity: .55; }
.unified-card::after { content: "✦"; position: absolute; right: 28px; top: 24px; color: var(--gold); font-size: 1.8rem; opacity: .65; z-index: -1; }
.progress-wrap { margin-bottom: clamp(28px, 5vw, 46px); }
.progress-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: var(--rose-deep); font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; }
.progress { height: 9px; border-radius: 999px; background: rgba(180,74,120,.12); overflow: hidden; border: 1px solid rgba(200,154,62,.26); }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--rose)); border-radius: inherit; transition: width .35s ease; }
.screen { flex: 1; min-height: 340px; display: flex; flex-direction: column; justify-content: center; }
.intro-screen { text-align: center; max-width: 680px; margin: 0 auto; }
.intro-logo { margin: 0 auto 18px; }
.intro-info { max-width: 560px; margin-left: auto; margin-right: auto; }
.screen h1, .screen h2 { margin: 0; font-family: var(--font-display); color: var(--rose-deep); line-height: 1.12; font-size: clamp(1.75rem, 4.1vw, 2.75rem); }
.screen p { margin: 18px 0 0; color: var(--ink-2); font-family: var(--font-serif); font-size: 1.24rem; line-height: 1.45; }
.microcopy, .hint, .form-note { color: rgba(74,42,58,.75); font-size: .92rem; }
.hint { margin-top: 18px; padding: 12px 14px; border-left: 3px solid var(--gold); background: rgba(251,229,210,.58); border-radius: 10px; }

.input, textarea { width: 100%; margin-top: 24px; border: 1px solid rgba(180,74,120,.28); background: rgba(255,255,255,.76); color: var(--ink); border-radius: 18px; padding: 17px 18px; box-shadow: 0 8px 22px -18px rgba(125,46,79,.32); }
.input { min-height: 58px; font-size: 1.05rem; }
textarea { min-height: 160px; resize: vertical; font-size: 1rem; }
.options { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
.option { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; min-height: 58px; border: 1px solid rgba(180,74,120,.22); border-radius: 16px; background: rgba(255,255,255,.62); color: var(--ink-2); text-align: left; padding: 12px 14px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.option:hover { transform: translateY(-1px); border-color: rgba(200,154,62,.58); background: rgba(255,242,231,.95); }
.option.selected { border-color: rgba(180,74,120,.78); background: linear-gradient(135deg, rgba(247,199,216,.55), rgba(255,242,231,.92)); color: var(--rose-deep); font-weight: 700; }
.option-marker { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(200,154,62,.18); color: var(--rose-deep); font-size: .82rem; font-weight: 800; }
.other-wrap { margin-top: 0; }
.error { min-height: 24px; margin-top: 16px; color: #9f2745; font-weight: 700; }

.nav-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 26px; }
.btn { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 24px; border: 1px solid transparent; font-weight: 800; letter-spacing: .03em; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--rose), var(--rose-deep)); color: var(--cream); box-shadow: 0 18px 34px -22px rgba(125,46,79,.72); }
.btn-ghost { background: rgba(255,255,255,.56); color: var(--rose-deep); border-color: rgba(200,154,62,.38); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.form-note { margin: 18px 0 0; text-align: center; }
.card.loading { opacity: .82; }

.success { text-align: center; margin: auto; }
.success-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 22px; background: linear-gradient(135deg, var(--gold), var(--gold-soft)); color: var(--rose-deep); font-size: 2rem; font-weight: 900; box-shadow: 0 18px 40px -24px rgba(200,154,62,.88); }
.success .display { font-size: clamp(2rem, 4vw, 3rem); }
.success p { margin: 18px auto 26px; max-width: 520px; }

@media (min-width: 920px) {
  .options.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .hero-panel { min-height: 580px; }
  .card { min-height: 640px; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 22px, 520px); margin: 14px auto 28px; }
  .hero-panel { min-height: 560px; border-radius: 24px; }
  .hero-copy { padding: 24px; text-align: center; }
  .event-logo { margin-left: auto; margin-right: auto; }
  .info-strip { grid-template-columns: 1fr; }
  .card { border-radius: 24px; padding: 22px 18px; min-height: 70vh; }
  .screen { min-height: 380px; justify-content: flex-start; padding-top: 8px; }
  .nav-actions { position: sticky; bottom: 0; padding-top: 14px; background: linear-gradient(180deg, rgba(255,247,239,0), rgba(255,247,239,.96) 30%); }
  .btn { padding: 0 18px; }
}
