@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Manrope:wght@400;500;600&family=Playfair+Display:ital,wght@0,500;1,500&display=swap");

:root {
  --navy: #00385f;
  --navyDeep: #002744;
  --blue: #0072a3;
  --cyan: #00a7df;
  --sky: #eaf7fd;
  --ink: #132a3a;
  --muted: #647786;
  --line: #d6e4ed;
  --paper: #ffffff;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.hero {
  min-height: 720px;
  background:
    radial-gradient(circle at 75% 25%, rgba(0, 167, 223, .22), transparent 25%),
    linear-gradient(135deg, #004b7f 0%, var(--navyDeep) 72%);
  color: white;
  position: relative;
  overflow: hidden;
}
.heroGlow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  right: -170px;
  top: -120px;
  box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018);
}
.heroGrid {
  position: absolute;
  inset: 0;
  opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(to right, transparent, black);
}
.heroInner {
  width: min(1180px, calc(100% - 48px));
  min-height: 720px;
  margin: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  grid-template-rows: auto 1fr;
  gap: 20px 64px;
  padding: 48px 0 72px;
}
.brand {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  letter-spacing: .32em;
  font-weight: 600;
}
.brand span { color: #71d6fa; font-weight: 400; }
.brandRow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.demoBadge {
  border: 1px solid rgba(255,255,255,.34);
  background: rgba(255,255,255,.08);
  padding: 8px 13px;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 9px;
  color: rgba(255,255,255,.82);
}
.heroCopy {
  align-self: center;
  max-width: 730px;
  padding-bottom: 50px;
}
.eyebrow, .miniEyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: #71d6fa;
  font-size: 12px;
  font-weight: 600;
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(72px, 9.5vw, 132px);
  line-height: .8;
  letter-spacing: -.055em;
}
.hero h1 span {
  display: block;
  color: #a9e8ff;
  font-style: italic;
  margin-left: 14%;
}
.intro {
  max-width: 560px;
  color: rgba(255,255,255,.78);
  font-size: 20px;
  line-height: 1.65;
  margin: 50px 0 0 14%;
}
.dateCard {
  align-self: end;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  padding: 24px 30px;
  min-width: 340px;
}
.dateNumber {
  font-family: var(--serif);
  font-size: 78px;
  line-height: .85;
  color: #a9e8ff;
  border-right: 1px solid rgba(255,255,255,.2);
  padding-right: 20px;
}
.dateCard p {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.dateCard strong { font-weight: 500; font-size: 16px; }

.eventBand {
  width: min(1180px, calc(100% - 48px));
  margin: -44px auto 0;
  background: white;
  box-shadow: 0 24px 80px rgba(0, 45, 75, .14);
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 32px 12px;
}
.detail {
  padding: 8px 26px;
  border-right: 1px solid var(--line);
}
.detail:last-child { border-right: 0; }
.detail span {
  display: block;
  text-transform: uppercase;
  color: var(--blue);
  letter-spacing: .18em;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 9px;
}
.detail strong { display: block; font-size: 14px; line-height: 1.45; font-weight: 600; }
.detail small { display: block; color: var(--muted); margin-top: 3px; }

.miniEyebrow { color: var(--blue); margin-bottom: 9px; font-size: 10px; }
.rsvpSection h2, .successCard h2 {
  font-family: var(--serif);
  color: var(--navy);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  font-weight: 500;
  margin: 0;
  letter-spacing: -.025em;
}
.button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  background: var(--navy);
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--blue); }
.button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .resetButton:focus-visible, a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}
.button:disabled { opacity: .6; cursor: wait; transform: none; }
.rsvpSection {
  width: min(1180px, calc(100% - 48px));
  margin: 112px auto;
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  gap: clamp(48px, 8vw, 110px);
  align-items: start;
}
.sectionIntro { position: sticky; top: 40px; padding-top: 18px; }
.sectionIntro > p:not(.miniEyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin: 26px 0 40px;
  max-width: 430px;
}
.qrNotice {
  border-left: 3px solid var(--cyan);
  background: var(--sky);
  color: var(--navy) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
  padding: 18px 20px;
  margin: 0 !important;
}

.formCard {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 28px 80px rgba(0, 53, 88, .09);
  padding: clamp(26px, 5vw, 54px);
}
.formHeading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.formHeading h2 { font-size: 36px; }
.requiredNote { margin: 0; color: var(--muted); font-size: 11px; white-space: nowrap; }
.fieldGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
label, legend {
  display: block;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .035em;
}
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #bfcfda;
  background: white;
  color: var(--ink);
  border-radius: 0;
  padding: 13px 14px;
  transition: border .2s ease, box-shadow .2s ease;
}
input, select { min-height: 50px; }
textarea { resize: vertical; min-height: 92px; }
input:hover, select:hover, textarea:hover { border-color: var(--blue); }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,167,223,.12); }
fieldset { border: 0; padding: 0; margin: 28px 0 24px; }
legend { margin-bottom: 10px; }
.choiceGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice {
  min-height: 78px;
  border: 1px solid #bfcfda;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px;
  cursor: pointer;
  transition: border .2s ease, background .2s ease;
}
.choice.active { border-color: var(--blue); background: var(--sky); }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice > span {
  width: 18px;
  height: 18px;
  border: 1px solid #9db1bf;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.choice.active > span::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--blue);
}
.choice strong { display: block; font-size: 12px; color: var(--navy); }
.choice small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
form > label { margin-top: 22px; }
.submitButton { width: 100%; margin-top: 26px; }
.privacy { text-align: center; color: var(--muted); font-size: 10px; line-height: 1.55; margin: 14px auto 0; max-width: 420px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.formError {
  background: #fff1f1;
  border-left: 3px solid #b83b3b;
  color: #7f2525;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.5;
  margin: 20px 0 0;
}
.demoMessage {
  background: var(--sky);
  border-left: 3px solid var(--cyan);
  color: var(--navy);
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.55;
  margin: 18px 0 0;
}
[hidden] { display: none !important; }
.successCard { text-align: center; padding: 30px 12px; }
.successMark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sky);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 32px;
  margin: 0 auto 28px;
}
.successCard p:not(.miniEyebrow) { color: var(--muted); line-height: 1.75; max-width: 480px; margin: 22px auto 30px; }
.successCard .successNotice {
  background: var(--sky);
  border-left: 3px solid var(--cyan);
  color: var(--navy);
  padding: 16px 18px;
  text-align: left;
  font-size: 13px;
}
.successCard .button { margin: auto; }
.resetButton {
  display: block;
  border: 0;
  background: transparent;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 22px auto 0;
  cursor: pointer;
  font-size: 12px;
}

footer {
  background: var(--navyDeep);
  color: rgba(255,255,255,.7);
  text-align: center;
  padding: 60px 24px;
  font-size: 13px;
}
.footerBrand { color: white; margin-bottom: 24px; }
.footerNote { text-transform: uppercase; letter-spacing: .18em; font-size: 9px; margin-top: 22px; color: #71d6fa; }

@media (max-width: 900px) {
  .hero { min-height: 660px; }
  .heroInner { min-height: 660px; grid-template-columns: 1fr; padding-top: 36px; }
  .heroCopy { padding-bottom: 0; }
  .dateCard { position: absolute; right: 0; bottom: 64px; }
  .eventBand { grid-template-columns: 1fr 1fr; }
  .detail:nth-child(2) { border-right: 0; }
  .detail:nth-child(-n+2) { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 14px; }
  .rsvpSection { grid-template-columns: 1fr; }
  .sectionIntro { position: static; }
}

@media (max-width: 620px) {
  .hero { min-height: 710px; }
  .heroInner { width: min(100% - 32px, 1180px); min-height: 710px; padding-bottom: 36px; }
  .brand { font-size: 13px; letter-spacing: .23em; }
  .brandRow { align-items: flex-start; }
  .demoBadge { font-size: 7px; padding: 7px 9px; letter-spacing: .12em; }
  .heroCopy { align-self: start; padding-top: 92px; }
  .hero h1 { font-size: clamp(52px, 16vw, 68px); }
  .intro { font-size: 16px; margin: 38px 0 0; }
  .dateCard { position: absolute; left: 0; right: 0; bottom: 34px; min-width: 0; padding: 18px 20px; }
  .dateNumber { font-size: 62px; }
  .eventBand, .rsvpSection { width: calc(100% - 32px); }
  .eventBand { grid-template-columns: 1fr; margin-top: 0; padding: 14px 0; }
  .detail { border-right: 0; border-bottom: 1px solid var(--line); margin: 0 !important; padding: 18px 22px !important; }
  .detail:last-child { border-bottom: 0; }
  .rsvpSection { margin: 72px auto; gap: 42px; }
  .formCard { padding: 28px 20px; }
  .formHeading { display: block; }
  .requiredNote { margin-top: 12px; }
  .fieldGrid, .choiceGrid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
