:root {
  --navy: #0a0c67;
  --navy-deep: #05053e;
  --blue: #0064b4;
  --yellow: #ffb400;
  --orange: #f16322;
  --red: #ed1c24;
  --cyan: #11bad5;
  --paper: #fff9e8;
  --ink: #17143e;
  --white: #ffffff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; touch-action: manipulation; }
a { color: inherit; }

.hero {
  min-height: 760px;
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 75% 22%, rgba(32, 70, 190, .54), transparent 25%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 1px, transparent 1px 72px),
    var(--navy);
  padding: 150px max(6vw, 32px) 70px;
}

.hero::before, .confirmation-page::before {
  content: "";
  position: absolute;
  width: 360px; height: 360px;
  border: 55px solid rgba(255, 180, 0, .12);
  border-radius: 50%;
  right: -130px; bottom: -130px;
}

.festoon {
  position: absolute;
  left: -2%; right: -2%; top: 0;
  height: 118px;
  display: flex;
  justify-content: space-around;
  padding: 0 4%;
  border-top: 8px solid var(--yellow);
  transform: rotate(-1.7deg);
  z-index: 3;
}
.festoon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 48px;
  height: 3px; background: var(--yellow); transform: rotate(5deg);
}
.festoon span { width: 0; height: 0; border-left: 34px solid transparent; border-right: 34px solid transparent; border-top: 82px solid var(--red); filter: drop-shadow(5px 5px 0 rgba(0,0,0,.15)); }
.festoon span:nth-child(2), .festoon span:nth-child(5) { border-top-color: var(--yellow); }
.festoon span:nth-child(3) { border-top-color: var(--cyan); }
.festoon span:nth-child(4) { border-top-color: var(--orange); }

.hero-content { max-width: 700px; position: relative; z-index: 2; }
.eyebrow { margin: 0 0 16px; color: var(--orange); font-weight: 900; letter-spacing: .18em; text-transform: uppercase; font-size: 13px; }
.eyebrow.light { color: var(--yellow); }
.hero h1 { margin: 0; font-size: clamp(76px, 11vw, 155px); line-height: .72; letter-spacing: -.075em; text-transform: uppercase; font-weight: 1000; max-width: 780px; }
.hero h1 span, .hero h1 small { display: block; }
.hero h1 span { color: var(--white); }
.hero h1 small { color: var(--yellow); font-size: .36em; line-height: 1.25; letter-spacing: -.03em; margin: 18px 0 4px 8px; }
.hero-copy { font-size: clamp(19px, 2vw, 25px); line-height: 1.45; max-width: 620px; margin: 38px 0 30px; color: #dfe4ff; }
.hero-cta { display: inline-block; text-decoration: none; color: var(--navy-deep); background: var(--yellow); font-weight: 900; padding: 17px 22px; border-radius: 3px; box-shadow: 7px 7px 0 var(--red); transition: transform .2s; }
.hero-cta:hover { transform: translate(-2px,-2px); }

.hero-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; max-width: 900px; margin: 90px auto 0; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); position: relative; z-index: 2; }
.hero-details article { display: flex; gap: 18px; padding: 25px; background: rgba(7, 8, 90, .92); min-height: 130px; }
.detail-number { color: var(--yellow); font-size: 13px; font-weight: 900; }
.hero-details small { display: block; color: #aeb7ee; text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 800; margin-bottom: 9px; }
.hero-details strong { display: block; font-size: 18px; }
.hero-details p { margin: 7px 0 0; font-size: 14px; line-height: 1.35; color: #dfe4ff; }

.bring-section { padding: 100px max(6vw, 28px); max-width: 1380px; margin: auto; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 45px; }
.section-heading h2, .rsvp-copy h2 { margin: 0; font-size: clamp(40px, 5vw, 70px); line-height: .95; letter-spacing: -.055em; max-width: 750px; }
.bring-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bring-grid article { position: relative; overflow: hidden; min-height: 250px; padding: 35px; background: var(--white); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--yellow); }
.bring-grid article:nth-child(2) { box-shadow: 8px 8px 0 var(--red); }
.bring-grid article:nth-child(3) { box-shadow: 8px 8px 0 var(--cyan); }
.bring-grid span { position: absolute; right: 20px; top: 5px; font-size: 82px; font-weight: 1000; color: rgba(10,12,103,.07); }
.bring-grid h3 { margin: 90px 0 12px; font-size: 26px; }
.bring-grid p { margin: 0; color: #57536e; line-height: 1.55; }

.rsvp-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 7vw; padding: 100px max(6vw, 28px); background: var(--yellow); scroll-margin-top: 16px; }
.rsvp-copy > p:not(.eyebrow) { max-width: 540px; line-height: 1.65; font-size: 18px; }
.rsvp-copy .eyebrow { color: var(--navy); }
.privacy-note { display: flex; gap: 12px; margin-top: 32px; max-width: 440px; align-items: flex-start; }
.privacy-note span { display: grid; place-items: center; flex: 0 0 25px; height: 25px; border-radius: 50%; background: var(--navy); color: white; font-size: 13px; }
.privacy-note p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; }

.rsvp-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; padding: 42px; background: var(--paper); border: 2px solid var(--ink); box-shadow: 12px 12px 0 var(--navy); scroll-margin-top: 16px; }
.form-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px; margin: 0; padding: 0; border: 0; min-width: 0; transition: opacity .2s ease; }
.form-fields:disabled { opacity: .48; }
.form-lock-note { margin: -5px 0 0; padding: 12px 14px; color: #514b39; background: #fff0b7; border-left: 5px solid var(--orange); font-size: 13px; line-height: 1.45; }
.field label { display: block; font-weight: 900; font-size: 13px; margin-bottom: 9px; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select { width: 100%; min-height: 54px; border: 2px solid #c8c1a6; background: white; padding: 0 15px; border-radius: 0; outline: none; font-size: 16px; }
.field input:focus, .field select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(10,12,103,.13); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field-status { display: block; margin-top: 7px; color: #6b6555; font-size: 12px; line-height: 1.4; text-transform: none; letter-spacing: 0; }
.field-status.loading { color: var(--blue); }
.field-status.valid, .field-status.available { color: #087e55; font-weight: 700; }
.field-status.invalid, .field-status.duplicate { color: #9e1717; font-weight: 700; }
.field-status.checking { color: var(--blue); }
.guest-section { padding: 18px; border: 2px dashed #c8c1a6; background: #fffaf0; }
.guest-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.guest-fields:empty { display: none; }
.ticket-guests { grid-column: 1 / -1; }
.consent-field { display: flex; gap: 13px; align-items: flex-start; padding: 17px; border: 2px solid #c8c1a6; background: white; cursor: pointer; }
.consent-field input { flex: 0 0 20px; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); }
.consent-field span { color: #4e495c; font-size: 13px; line-height: 1.5; }
.consent-field strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.full-field { grid-column: 1 / -1; }
.primary-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; min-height: 58px; padding: 15px 22px; border: 0; text-decoration: none; text-align: center; font-weight: 900; cursor: pointer; }
.primary-button { color: white; background: var(--navy); box-shadow: 6px 6px 0 var(--red); }
.primary-button:hover { background: var(--navy-deep); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.form-error { grid-column: 1 / -1; padding: 12px 15px; margin: 0; color: #8f1010; background: #ffe1df; border-left: 5px solid var(--red); font-weight: 700; }

footer { min-height: 120px; padding: 38px max(6vw, 28px); color: white; background: var(--navy-deep); display: flex; justify-content: space-between; gap: 20px; align-items: center; }
footer strong { font-size: 20px; } footer span { color: #bcc4f5; }

.confirmation-page { min-height: 100vh; position: relative; display: grid; place-items: center; overflow: hidden; padding: 140px 24px 70px; background: var(--navy); }
.confirmation-card { width: min(760px, 100%); position: relative; z-index: 2; padding: 55px; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); box-shadow: 14px 14px 0 var(--yellow); text-align: center; }
.success-seal { display: grid; place-items: center; margin: -95px auto 30px; width: 82px; height: 82px; border-radius: 50%; color: white; background: var(--red); border: 8px solid var(--paper); font-size: 40px; font-weight: 900; }
.confirmation-card h1 { margin: 0; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: -.045em; text-transform: uppercase; }
.confirmation-lead { max-width: 580px; margin: 22px auto 34px; line-height: 1.55; color: #5b576c; font-size: 18px; }
.ticket { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; text-align: left; background: #ded5bc; border: 1px solid #ded5bc; margin: 30px 0; }
.ticket > div { padding: 20px; background: white; }
.ticket span { display: block; color: #777184; text-transform: uppercase; font-size: 10px; letter-spacing: .12em; font-weight: 900; margin-bottom: 8px; }
.ticket strong { font-size: 16px; }
.ticket small { display: block; margin-top: 5px; color: #625d70; line-height: 1.4; }
.ticket > div:last-child { grid-column: 1 / -1; }
.guidance-box { text-align: left; padding: 26px; background: #fff1bd; border-left: 6px solid var(--orange); }
.guidance-box h2 { margin: 0 0 12px; font-size: 20px; }
.guidance-box ul { margin: 0; padding-left: 20px; line-height: 1.7; }
.confirmation-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin-top: 25px; }
.whatsapp-button { background: #087e55; box-shadow: 6px 6px 0 #055c3e; }
.whatsapp-button:hover { background: #066e4a; }
.secondary-button { border: 2px solid var(--navy); background: transparent; }
.text-button { margin-top: 18px; border: 0; background: transparent; color: var(--navy); text-decoration: underline; cursor: pointer; font-weight: 700; }

@media (max-width: 900px) {
  .hero { padding-top: 135px; }
  .hero-details, .bring-grid { grid-template-columns: 1fr; }
  .hero-details { margin-top: 65px; }
  .rsvp-section { grid-template-columns: 1fr; }
  .bring-section, .rsvp-section { padding-top: 75px; padding-bottom: 75px; }
}

@media (max-width: 600px) {
  .hero { min-height: auto; padding: 118px 18px 48px; }
  .hero h1 { font-size: clamp(63px, 24vw, 96px); line-height: .76; }
  .hero h1 small { margin-top: 13px; }
  .hero-copy { margin: 28px 0 25px; font-size: 18px; line-height: 1.5; }
  .hero-cta { display: flex; width: 100%; min-height: 56px; justify-content: center; align-items: center; text-align: center; box-shadow: 5px 5px 0 var(--red); }
  .festoon span { border-left-width: 23px; border-right-width: 23px; border-top-width: 65px; }
  .hero-details { margin-top: 52px; }
  .hero-details article { min-height: 0; padding: 19px 17px; }
  .section-heading { display: block; }
  .section-heading h2, .rsvp-copy h2 { font-size: clamp(38px, 12vw, 51px); line-height: .98; }
  .bring-section { padding: 62px 18px 68px; }
  .bring-grid { gap: 15px; }
  .bring-grid article { min-height: 195px; padding: 27px 24px; box-shadow: 6px 6px 0 var(--yellow); }
  .bring-grid article:nth-child(2) { box-shadow: 6px 6px 0 var(--red); }
  .bring-grid article:nth-child(3) { box-shadow: 6px 6px 0 var(--cyan); }
  .bring-grid h3 { margin-top: 72px; }
  .rsvp-section { padding: 65px 14px 72px; gap: 35px; }
  .rsvp-copy { padding: 0 4px; }
  .rsvp-copy > p:not(.eyebrow) { font-size: 16px; }
  .privacy-note { margin-top: 24px; }
  .rsvp-form, .form-fields { grid-template-columns: 1fr; gap: 18px; }
  .rsvp-form { padding: 24px 16px; border-width: 2px; box-shadow: 6px 6px 0 var(--navy); scroll-margin-top: 10px; }
  .field { grid-column: 1 / -1; }
  .field label { margin-bottom: 8px; }
  .field input, .field select { min-height: 57px; padding: 0 14px; border-radius: 4px; }
  .guest-section { padding: 15px 13px; border-radius: 4px; }
  .guest-fields { grid-template-columns: 1fr; }
  .field-status { font-size: 12px; }
  .consent-field { padding: 15px 13px; border-radius: 4px; }
  .consent-field input { flex-basis: 22px; width: 22px; height: 22px; }
  .primary-button { width: 100%; min-height: 60px; box-shadow: 5px 5px 0 var(--red); }
  .confirmation-page { padding: 125px 13px 45px; align-items: start; }
  .confirmation-card { padding: 45px 16px 30px; border-width: 2px; box-shadow: 8px 8px 0 var(--yellow); }
  .confirmation-card h1 { font-size: clamp(33px, 10vw, 46px); }
  .confirmation-lead { font-size: 16px; margin-bottom: 25px; }
  .ticket > div { padding: 17px; }
  .guidance-box { padding: 20px 18px; }
  .ticket, .confirmation-actions { grid-template-columns: 1fr; }
  .confirmation-actions { gap: 12px; }
  .secondary-button { min-height: 55px; }
  footer { display: block; padding: 32px 18px; } footer span { display: block; margin-top: 9px; }
}

@media (max-width: 370px) {
  .hero h1 { font-size: 59px; }
  .rsvp-form { padding-left: 13px; padding-right: 13px; }
  .confirmation-card { padding-left: 13px; padding-right: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
