:root {
  --deep: #012027;
  --petrol: #01323a;
  --teal: #046b78;
  --aqua: #82cad1;
  --lime: #cbd300;
  --gold: #c5af87;
  --ink: #1e353a;
  --muted: #667c81;
  --line: #dce8e9;
  --canvas: #eef3f4;
  --white: #ffffff;
  --danger: #9c3c3c;
}

* { 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(197, 175, 135, .16), transparent 30rem),
    var(--canvas);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.58;
}

button, input { 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: 174px;
  bottom: 0;
  width: 58px;
  background: url('/iftar-ornament.png') right center / auto 100% no-repeat;
  pointer-events: none;
}
.side-left { left: 0; transform: scaleX(-1); }
.side-right { right: 0; }

.hero {
  position: relative;
  z-index: 1;
  padding: 38px 28px 34px;
  text-align: center;
  color: #fff;
  background: var(--petrol);
  background-image: linear-gradient(135deg, var(--teal) 0%, var(--petrol) 62%, var(--deep) 100%);
}

.organization {
  margin: 0 0 10px;
  color: #c6e9eb;
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 400;
  line-height: 1.14;
}

.subtitle { margin: 14px 0 0; color: #d8eeef; font-size: .92rem; }

.accent-lines { display: flex; justify-content: center; gap: 16px; margin-top: 21px; }
.accent-lines span { width: 80px; height: 7px; border-radius: 999px; }
.accent-lines span:first-child { background: var(--aqua); }
.accent-lines span:last-child { background: var(--lime); }

.content {
  position: relative;
  z-index: 1;
  margin: 0 58px;
  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: 5px solid var(--teal);
  border-radius: 10px;
  background: #f5f9f9;
}
.event-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; color: var(--petrol); background: #dceff0; font-size: 1.7rem; }
.event-note strong, .event-note span { display: block; }
.event-note strong { color: var(--petrol); }
.event-note div > span { margin-top: 2px; color: var(--muted); font-size: .86rem; line-height: 1.45; }

fieldset { margin: 0; padding: 0; border: 0; }
legend { margin: 0 0 11px; color: var(--petrol); font-weight: 750; }
.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[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 8px 24px rgba(4, 107, 120, .16); background: #f1f8f8; }
.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.3rem; font-weight: 800; }
.choice[aria-pressed="true"] .choice-mark { color: #fff; border-color: var(--teal); background: var(--teal); }
.choice strong, .choice small { display: block; }
.choice small { margin-top: 2px; color: var(--muted); font-size: .8rem; }

.field { margin: 20px 0; }
.field label { display: block; margin-bottom: 8px; color: var(--petrol); font-weight: 700; }
.number-control { display: grid; grid-template-columns: 46px 1fr 46px; width: 190px; overflow: hidden; border: 1px solid #cadbdd; border-radius: 9px; }
.number-control button { border: 0; background: #eef6f6; color: var(--petrol); font-size: 1.25rem; }
.number-control input { width: 100%; min-height: 46px; border: 0; border-inline: 1px solid #cadbdd; text-align: center; color: var(--ink); }

.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, .2);
  font-weight: 750;
}
.submit:disabled { cursor: not-allowed; opacity: .48; 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-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.55; }

.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: 800; box-shadow: 0 10px 28px rgba(4, 107, 120, .23); }
.success-symbol.invalid { background: var(--danger); }
.success-view h2 { margin: 0 0 10px; color: var(--petrol); font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; font-weight: 400; }
.success-view p { margin: 0 auto; max-width: 480px; color: var(--muted); }
.success-note { margin-top: 22px !important; font-size: .88rem; }
.hidden { display: none !important; }

@media (max-width: 640px) {
  body { padding: 10px; }
  .card { border-radius: 14px; }
  .hero { padding: 31px 18px 28px; }
  .side { width: 22px; opacity: .78; }
  .content { margin: 0 22px; padding: 28px 19px 32px; }
  .accent-lines span { width: 62px; height: 6px; }
  .event-note { align-items: flex-start; }
}
