*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #0a1628;
  --bg-card:   #0d2244;
  --bg-panel:  #1a3a6e;
  --yellow:    #f5c518;
  --blue:      #4fc3f7;
  --glow:      #00b4ff;
  --white:     #f1f5f9;
  --muted:     #64748b;
  --border:    rgba(0, 180, 255, 0.2);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--white);
  min-height: 100vh;
  background-image:
    radial-gradient(ellipse 80% 40% at 50% 0%, #1a3a6e55 0%, transparent 70%),
    radial-gradient(ellipse 60% 30% at 50% 100%, #0d2244aa 0%, transparent 70%);
}

/* ── Layout ── */
.page {
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* ── Site header ── */
.site-header {
  text-align: center;
  padding: 28px 16px 0;
}

.site-header h1 {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  font-weight: 900;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: 0 0 24px rgba(245, 197, 24, 0.45);
}

.site-header p {
  color: var(--blue);
  font-size: clamp(0.85rem, 3vw, 1rem);
  margin-top: 6px;
}

/* ── Invite image ── */
.invite-wrap {
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(0, 180, 255, 0.35),
    0 8px 40px rgba(0, 180, 255, 0.2),
    0 24px 80px rgba(0, 0, 0, 0.5);
  margin-top: 28px;
}

.invite-wrap img {
  width: 100%;
  display: block;
}

/* ── RSVP prompt section ── */
.rsvp-prompt {
  margin-top: 36px;
  text-align: center;
}

.rsvp-prompt h2 {
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  font-weight: 800;
  color: var(--yellow);
  text-shadow: 0 0 16px rgba(245, 197, 24, 0.35);
}

.rsvp-prompt p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 0.95rem;
}

.rsvp-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}

@media (min-width: 480px) {
  .rsvp-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s;
  letter-spacing: 0.03em;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); opacity: 0.9; }

.btn-yes {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}
.btn-yes:hover   { box-shadow: 0 8px 32px rgba(34, 197, 94, 0.55); }

.btn-maybe {
  background: linear-gradient(135deg, #b45309, #f5c518);
  color: #0a1628;
  box-shadow: 0 4px 20px rgba(245, 197, 24, 0.4);
}
.btn-maybe:hover { box-shadow: 0 8px 32px rgba(245, 197, 24, 0.55); }

.btn-no {
  background: linear-gradient(135deg, #991b1b, #ef4444);
  color: #fff;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}
.btn-no:hover    { box-shadow: 0 8px 32px rgba(239, 68, 68, 0.55); }

.btn-primary {
  width: 100%;
  padding: 15px;
  font-size: 1.05rem;
  background: linear-gradient(135deg, #1d4ed8, #3b82f6);
  color: #fff;
  box-shadow: 0 4px 24px rgba(59, 130, 246, 0.45);
  border-radius: 12px;
  margin-top: 8px;
}
.btn-primary:hover { box-shadow: 0 8px 36px rgba(59, 130, 246, 0.6); }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 24px;
  transition: opacity 0.15s;
}
.btn-back:hover { opacity: 0.75; }

/* ── Form page ── */
.form-header {
  text-align: center;
  margin-bottom: 28px;
}

.form-header h1 {
  font-size: clamp(1.3rem, 4.5vw, 1.8rem);
  font-weight: 800;
  color: var(--yellow);
  margin-bottom: 10px;
}

.response-badge {
  display: inline-block;
  padding: 5px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge-yes   { background: rgba(34,197,94,0.15);  color: #4ade80; border: 1px solid #22c55e; }
.badge-maybe { background: rgba(245,197,24,0.15); color: #f5c518; border: 1px solid #f5c518; }
.badge-no    { background: rgba(239,68,68,0.15);  color: #f87171; border: 1px solid #ef4444; }

.form-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 28px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.35);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.label-req  { color: var(--yellow); margin-left: 3px; }
.label-opt  { color: var(--muted); font-weight: 400; font-size: 0.75rem; text-transform: none; letter-spacing: 0; margin-left: 4px; }

.form-control {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,180,255,0.2);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-control::placeholder {
  color: rgba(255,255,255,0.2);
}

.form-control:focus {
  border-color: var(--glow);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(0,180,255,0.18);
}

/* suppress number spinner on some browsers for cleaner look */
input[type="number"] { -moz-appearance: textfield; }
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 380px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Confirmation page ── */
.confirm-wrap {
  text-align: center;
  padding: 32px 0;
}

.confirm-icon {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 20px;
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes pop {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.confirm-wrap h1 {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 900;
  color: var(--yellow);
  margin-bottom: 12px;
}

.confirm-wrap p {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1.6;
}

.details-card {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 24px 20px;
  margin: 28px auto 0;
  border: 1px solid var(--border);
  text-align: left;
  max-width: 400px;
}

.details-card h3 {
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.95rem;
}

.detail-row:last-child { border-bottom: none; }

.detail-icon { font-size: 1.1rem; flex-shrink: 0; width: 22px; text-align: center; }
.detail-text { line-height: 1.4; }
.detail-text .label { color: var(--muted); font-size: 0.8rem; display: block; }

.confirm-actions {
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--border);
  color: var(--blue);
  background: rgba(0,180,255,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-home:hover { background: rgba(0,180,255,0.15); box-shadow: 0 4px 16px rgba(0,180,255,0.2); }

/* ── Footer ── */
.site-footer {
  text-align: center;
  padding: 32px 16px 24px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── Divider ── */
.divider {
  text-align: center;
  margin: 32px 0;
  color: var(--muted);
  font-size: 1.2rem;
  letter-spacing: 8px;
}
