:root {
  --deep: #012027;
  --petrol: #01323a;
  --teal: #046b78;
  --aqua: #82cad1;
  --lime: #cbd300;
  --ink: #25383c;
  --muted: #687c80;
  --line: #dce8e9;
  --canvas: #eef3f4;
  --white: #fff;
  --danger: #9c3c43;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 28px 12px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 0%, rgba(130, 202, 209, .24), transparent 34rem),
    radial-gradient(circle at 90% 100%, rgba(203, 211, 0, .08), transparent 28rem),
    var(--canvas);
  font-family: "Montserrat", "Avenir Next", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.58;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.card {
  position: relative;
  width: min(100%, 760px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 26px 80px rgba(1, 50, 58, .16);
}
.side {
  position: absolute;
  z-index: 0;
  top: 235px;
  bottom: 0;
  width: 52px;
  background: url('/iftar-ornament.png') right center / auto 100% no-repeat;
  opacity: .72;
  pointer-events: none;
}
.side-left { left: 0; transform: scaleX(-1); }
.side-right { right: 0; }
.hero {
  position: relative;
  z-index: 1;
  padding: 26px 28px 36px;
  text-align: center;
  color: #fff;
  background: var(--petrol);
  background-image: linear-gradient(135deg, var(--teal) 0%, var(--petrol) 62%, var(--deep) 100%);
}
.brand-mark { display: block; width: 76px; height: auto; margin: 0 auto 10px; }
.eyebrow { margin: 0 0 9px; color: #bfe6e9; font-size: .69rem; font-weight: 400; letter-spacing: .17em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: "Catamaran", "Montserrat", "Avenir Next", "Helvetica Neue", sans-serif; font-size: clamp(2rem, 6vw, 3rem); font-weight: 300; letter-spacing: -.02em; line-height: 1.14; }

.content { position: relative; z-index: 1; margin: 0 52px; padding: 36px clamp(24px, 7vw, 58px) 40px; background: rgba(255, 255, 255, .97); }
.intro { max-width: 560px; margin: 0 auto 24px; text-align: center; color: #3c555b; }
.event-note { display: flex; align-items: center; gap: 15px; margin: 0 0 30px; padding: 16px 18px; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 10px; background: #f5f9f9; }
.event-icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; color: var(--petrol); background: #dceff0; font-family: Georgia, serif; font-size: 1.05rem; font-weight: 400; }
.event-note strong, .event-note span { display: block; }
.event-note strong { color: var(--petrol); font-weight: 500; }
.event-note div > span { margin-top: 3px; color: var(--muted); font-size: .83rem; line-height: 1.48; }

fieldset { margin: 0; padding: 0; border: 0; }
legend { margin: 0 0 11px; color: var(--petrol); font-weight: 500; }
.choices { display: grid; gap: 11px; }
.choice { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 13px 16px; border: 1px solid #cadbdd; border-radius: 11px; color: var(--ink); background: #fff; text-align: left; transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }
.choice:hover { border-color: var(--aqua); transform: translateY(-1px); }
.choice:focus-visible, .submit:focus-visible, .companion-check input:focus-visible + .check-mark { outline: 3px solid rgba(130, 202, 209, .3); outline-offset: 2px; }
.choice[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 8px 24px rgba(4, 107, 120, .14); background: #f1f8f8; }
.choice#decline { border-color: #ead7d8; background: #fffafa; }
.choice#decline:hover { border-color: #d9abad; }
.choice#decline[aria-pressed="true"] { border-color: #b96b70; background: #fbefef; box-shadow: 0 8px 24px rgba(156, 60, 67, .11); }
.choice#decline .choice-mark { color: #a65a60; border-color: #dfbfc1; }
.choice#decline[aria-pressed="true"] .choice-mark { color: #fff; border-color: #a65a60; background: #a65a60; }
.choice-mark { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border: 1px solid #bcd2d4; border-radius: 50%; color: var(--teal); font-size: 1.2rem; font-weight: 500; }
.choice[aria-pressed="true"] .choice-mark { color: #fff; border-color: var(--teal); background: var(--teal); }
.choice strong, .choice small { display: block; }
.choice strong { font-weight: 500; }
.choice small { margin-top: 2px; color: var(--muted); font-size: .8rem; }
.field { margin: 20px 0; }
.field label, .field-label { display: block; margin-bottom: 8px; color: var(--petrol); font-weight: 500; }
.field label span { color: var(--muted); font-size: .8rem; font-weight: 400; }
.guest-field { margin: -4px 0 3px 18px; padding-left: 15px; border-left: 2px solid var(--aqua); }
.companion-check { display: flex !important; align-items: center; gap: 11px; margin: 0 !important; padding: 11px 13px; cursor: pointer; border: 1px solid #d6e3e4; border-radius: 9px; background: #f8fbfb; color: var(--petrol); font-size: .9rem; font-weight: 400 !important; }
.companion-check input { position: absolute; opacity: 0; pointer-events: none; }
.check-mark { display: grid; place-items: center; width: 23px; height: 23px; flex: 0 0 23px; border: 1px solid #9fbfc2; border-radius: 5px; background: #fff; }
.companion-check input:checked + .check-mark { border-color: var(--teal); background: var(--teal); }
.companion-check input:checked + .check-mark::after { content: "✓"; color: #fff; font-size: .83rem; font-weight: 600; line-height: 1; }
.message-field textarea { display: block; width: 100%; resize: vertical; min-height: 108px; max-height: 220px; padding: 12px 13px; border: 1px solid #cadbdd; border-radius: 9px; color: var(--ink); background: #fff; line-height: 1.5; }
.message-field textarea:focus { outline: 3px solid rgba(130, 202, 209, .28); border-color: var(--teal); }
.character-count { margin-top: 5px; color: var(--muted); text-align: right; font-size: .72rem; }
.submit { width: 100%; min-height: 52px; margin-top: 22px; border: 0; border-radius: 9px; color: #fff; background: var(--teal); box-shadow: 0 10px 26px rgba(4, 107, 120, .18); font-weight: 500; }
.submit:hover:not(:disabled) { background: var(--petrol); }
.submit:disabled { cursor: not-allowed; opacity: .46; box-shadow: none; }
.message { margin: 18px 0 0; padding: 12px 14px; border-radius: 8px; }
.error { color: var(--danger); background: #faeeee; border: 1px solid #efcccc; }
.privacy { margin: 25px 0 0; padding: 17px; border-radius: 9px; color: var(--muted); background: #f5f8f9; font-size: .78rem; line-height: 1.55; }
.privacy strong { display: block; margin-bottom: 4px; color: #51666a; font-weight: 500; }
.privacy p { margin: 0; }
.success-view { padding: 34px 0 20px; text-align: center; }
.success-symbol { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; color: #fff; background: var(--teal); font-size: 2rem; font-weight: 400; box-shadow: 0 10px 28px rgba(4, 107, 120, .2); }
.success-symbol.invalid { background: var(--danger); }
.success-view h2 { margin: 0 0 10px; color: var(--petrol); font-family: "Catamaran", "Montserrat", "Avenir Next", sans-serif; font-size: 1.85rem; font-weight: 300; letter-spacing: -.01em; }
.success-view p { margin: 0 auto; max-width: 480px; color: var(--muted); }
.success-note { margin-top: 22px !important; font-size: .88rem; }
.accent-lines { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.accent-lines span { width: 70px; height: 5px; border-radius: 999px; }
.accent-lines span:first-child { background: var(--aqua); }
.accent-lines span:last-child { background: var(--lime); }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 640px) {
  body { padding: 10px; }
  .card { border-radius: 14px; }
  .hero { padding: 24px 18px 30px; }
  .brand-mark { width: 66px; }
  .side { top: 215px; width: 21px; opacity: .72; }
  .content { margin: 0 21px; padding: 28px 19px 32px; }
  .event-note { align-items: flex-start; }
}
