:root {
  --brand: #33bfa3;
  --brand-dark: #239e85;
  --brand-soft: #98dccf;
  --brand-mist: #eaf7f3;
  --bg: #ffffff;
  --fg: #000000;
  --muted: #404040;
  --muted-soft: #6b6b6b;
  --border: #e6efec;
  --input-border: #d6e3df;
  --radius: 1rem;
  --shadow: 0 18px 50px -20px rgba(51, 191, 163, 0.35);
  --font-display: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--muted);
  background:
    radial-gradient(ellipse at top right, rgba(152, 220, 207, 0.45), transparent 55%),
    radial-gradient(ellipse at bottom left, rgba(51, 191, 163, 0.18), transparent 50%),
    linear-gradient(to bottom, #ffffff 0%, #f4fbf9 100%);
  min-height: 100vh;
  display: flex; flex-direction: column;
  position: relative;
  overflow-x: hidden;
}
/* Decorative ribbon accents inspired by the invitation */
body::before, body::after {
  content: ""; position: fixed; pointer-events: none; z-index: 0;
  width: 520px; height: 520px; border-radius: 50%;
  filter: blur(60px); opacity: .35;
}
body::before { top: -180px; right: -180px; background: var(--brand-soft); }
body::after  { bottom: -200px; left: -200px; background: var(--brand); opacity: .18; }

main { flex: 1; position: relative; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 2;
  box-shadow: 0 1px 0 rgba(51,191,163,0.05);
}
.header-inner { padding: 1rem 1.5rem; display: flex; align-items: center; }
.logo { height: 56px; width: auto; }

/* Hero */
.hero { text-align: center; padding: 4.5rem 1.5rem 2rem; max-width: 760px; }
.eyebrow {
  color: var(--brand-dark); font-size: .8rem; font-weight: 600;
  letter-spacing: .25em; text-transform: uppercase; margin: 0 0 1.25rem;
}
.eyebrow::before, .eyebrow::after {
  content: ""; display: inline-block; width: 32px; height: 1px;
  background: var(--brand); vertical-align: middle; margin: 0 .75rem;
}
.display { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; color: #000; }
h1.display {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-style: italic;
}
h1.display br + *, h1.display { letter-spacing: -.01em; }
.subtitle { color: var(--muted); font-size: 1.125rem; margin: 1.75rem auto 0; max-width: 560px; }

/* Form card */
.form-wrap { padding: 0 1.5rem 5rem; max-width: 620px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft), var(--brand));
}
@media (max-width: 600px) { .card { padding: 1.75rem; } }

.field { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.field label { font-size: .875rem; font-weight: 600; color: #000; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"] {
  height: 46px; padding: 0 1rem; border: 1.5px solid var(--input-border);
  border-radius: .85rem; font: inherit; color: #000; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #9aa6a6; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(51,191,163,.18); }

/* Combobox */
.combobox { position: relative; }
.combo-trigger {
  width: 100%; height: 46px; padding: 0 1rem; background: #fff;
  border: 1.5px solid var(--input-border); border-radius: .85rem;
  display: flex; align-items: center; justify-content: space-between;
  font: inherit; color: #000; cursor: pointer; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
.combo-trigger:hover { border-color: var(--brand-soft); }
.combo-trigger[aria-expanded="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(51,191,163,.18); }
.combo-trigger .placeholder { color: #9aa6a6; }
.combo-panel {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--border); border-radius: .85rem;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,.18); padding: .5rem;
}
.combo-panel input {
  width: 100%; height: 38px; padding: 0 .7rem; border: 1px solid var(--input-border);
  border-radius: .5rem; font: inherit; margin-bottom: .25rem;
}
.combo-panel input:focus { outline: none; border-color: var(--brand); }
.combo-list { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; }
.combo-list li {
  padding: .55rem .75rem; border-radius: .5rem; cursor: pointer; font-size: .9rem;
  display: flex; align-items: center; gap: .5rem; color: var(--muted);
}
.combo-list li:hover, .combo-list li[aria-selected="true"] { background: var(--brand-mist); color: #000; }
.combo-list li .check { width: 16px; color: var(--brand); }
.combo-empty { padding: .75rem; text-align: center; color: var(--muted-soft); font-size: .875rem; margin: 0; }

/* Consent */
.consent {
  display: flex; align-items: flex-start; gap: .75rem;
  font-size: .875rem; color: var(--muted); line-height: 1.55;
  margin: .5rem 0 1.25rem; cursor: pointer;
}
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.link {
  background: none; border: none; padding: 0; font: inherit; color: var(--brand-dark);
  font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.link:hover { color: var(--brand); }

/* Button */
.btn-primary {
  width: 100%; height: 52px; border: none; border-radius: 999px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; font: inherit; font-weight: 600; font-size: 1.05rem;
  cursor: pointer; box-shadow: 0 10px 24px -8px rgba(51,191,163,.55);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .1s, box-shadow .15s, filter .15s;
  letter-spacing: .01em;
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.05); box-shadow: 0 14px 28px -8px rgba(51,191,163,.65); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled { background: #e6efec; color: #9aa6a6; box-shadow: none; cursor: not-allowed; }
.btn-content { display: inline-flex; align-items: center; gap: .55rem; }

.spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success */
.success { text-align: center; padding: 1.5rem 0; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 1.5rem;
  background: var(--brand-mist); color: var(--brand-dark);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(152,220,207,.35);
}

/* Footer */
.site-footer {
  height: 14px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-soft), var(--brand));
  position: relative; z-index: 1;
}

/* Modal */
.modal[hidden] { display: none !important; }
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); backdrop-filter: blur(3px); }
.modal-dialog {
  position: relative; background: #fff; border-radius: 1rem; padding: 1.75rem;
  max-width: 520px; width: 100%; box-shadow: 0 25px 50px -12px rgba(0,0,0,.3);
  border-top: 4px solid var(--brand);
}
.modal-dialog .display { color: #000; }
.modal-body { max-height: 50vh; overflow-y: auto; color: var(--muted); font-size: .9rem; line-height: 1.65; padding-right: .5rem; }
.modal-body p { margin: 0 0 .75rem; }
.modal-footer { display: flex; justify-content: flex-end; margin-top: 1.25rem; }
.btn-outline {
  background: #fff; border: 1.5px solid var(--brand); color: var(--brand-dark);
  border-radius: 999px; padding: .55rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s;
}
.btn-outline:hover { background: var(--brand); color: #fff; }
.muted { color: var(--muted-soft); font-size: .875rem; }

.field-label{display:block;font-size:.9rem;font-weight:500;color:var(--muted);margin-bottom:.5rem}
.radio-group{display:flex;gap:.75rem}
.radio-option{flex:1;display:flex;align-items:center;justify-content:center;gap:.5rem;height:46px;border:1.5px solid var(--input-border);border-radius:.85rem;cursor:pointer;font-size:.95rem;color:var(--muted);background:#fff;transition:all .15s ease}
.radio-option:hover{border-color:var(--brand-soft)}
.radio-option input{accent-color:var(--brand);margin:0}
.radio-option:has(input:checked){border-color:var(--brand);background:color-mix(in oklab,var(--brand) 8%,#fff);color:var(--brand-dark);font-weight:600}
