:root {
  --yellow: #FFCC00;
  --yellow-dark: #F5B700;
  --blue: #1C6DD0;
  --blue-dark: #124a8f;
  --navy: #182848;
  --cream: #FFFBF0;
  --denim: #3C6E9E;
  --radius: 20px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--navy);
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  text-align: center;
}

.bg-decor {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.banana {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.35;
  transform: rotate(-15deg);
}
.b1 { top: 4%; left: 6%; }
.b2 { top: 12%; right: 8%; transform: rotate(25deg); font-size: 1.8rem; }
.b3 { top: 55%; left: 3%; transform: rotate(40deg); font-size: 1.6rem; }
.b4 { top: 70%; right: 5%; transform: rotate(-30deg); }

header.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
  color: white;
}

.minion-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.minion-wrap svg {
  width: 120px;
  height: auto;
  filter: drop-shadow(3px 4px 0 rgba(0,0,0,0.25));
}

.eyebrow {
  font-family: 'Baloo 2', 'Arial Rounded MT Bold', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 1px;
  margin: 0;
  text-shadow: 2px 2px 0 var(--navy);
}

.title {
  font-family: 'Baloo 2', 'Arial Rounded MT Bold', sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 16vw, 5.5rem);
  color: var(--yellow);
  margin: 0.1em 0;
  -webkit-text-stroke: 3px var(--navy);
  text-shadow: 3px 3px 0 var(--navy);
  line-height: 1;
}

.subtitle {
  font-family: 'Baloo 2', 'Arial Rounded MT Bold', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  margin: 0.2em 0;
  text-shadow: 2px 2px 0 var(--navy);
}

.big-three {
  color: var(--yellow);
  font-size: 1.3em;
  -webkit-text-stroke: 2px var(--navy);
}

main {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.card-heading {
  font-family: 'Baloo 2', 'Arial Rounded MT Bold', sans-serif;
  color: var(--blue-dark);
  margin: 0 0 1rem;
  font-size: 1.4rem;
}

.countdown-card { text-align: center; }

.countdown {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.countdown-unit {
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 14px;
  padding: 0.6rem 0.9rem;
  min-width: 64px;
}

.countdown-unit span {
  display: block;
  font-family: 'Baloo 2', 'Arial Rounded MT Bold', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.countdown-unit label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--navy);
}

.countdown-message {
  font-family: 'Baloo 2', 'Arial Rounded MT Bold', sans-serif;
  font-size: 1.2rem;
  color: var(--blue-dark);
  margin: 0.75rem 0 0;
}

.details-card {
  background: white;
}

.detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  text-align: left;
}

.detail-icon { font-size: 1.6rem; }

.fun-line {
  font-weight: 700;
  color: var(--blue-dark);
  margin: 1rem 0 0.5rem;
}

.rsvp-deadline {
  background: var(--yellow);
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  margin-top: 0.5rem;
}

.lookup-box {
  background: #eef4fb;
  border: 2px dashed var(--blue);
  border-radius: 14px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.lookup-box p {
  margin: 0 0 0.6rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.lookup-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.lookup-row input {
  flex: 1;
  min-width: 180px;
  padding: 0.6rem 0.7rem;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  text-align: left;
}

#lookup-btn {
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

#lookup-btn:hover { background: var(--blue-dark); }
#lookup-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.lookup-status {
  margin: 0.6rem 0 0;
  font-weight: 700;
  font-size: 0.9rem;
}

.lookup-status.success { color: #14532d; }
.lookup-status.error { color: #7f1d1d; }

.form-card label {
  display: block;
  font-weight: 700;
  margin: 1rem 0 0.35rem;
  color: var(--navy);
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card input[type="number"],
.form-card textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  text-align: left;
}

.form-card input:focus,
.form-card textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.attending-fieldset {
  border: none;
  padding: 0;
  margin: 1rem 0 0;
}

.attending-fieldset legend {
  font-weight: 700;
  padding: 0;
  margin-bottom: 0.5rem;
}

.radio-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.radio-option {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-weight: 600;
  background: white;
  border: 2px solid #cbd5e1;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin: 0;
  cursor: pointer;
  width: 100%;
}

.radio-option input { width: 18px; height: 18px; }

.headcount-fields { margin-top: 0.75rem; }

.stepper-group {
  margin-top: 1.25rem;
}

.stepper-group > label {
  margin: 0 0 0.5rem;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.stepper-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: white;
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.stepper-btn:hover {
  background: var(--blue);
  color: white;
}

.stepper-value {
  font-family: 'Baloo 2', 'Arial Rounded MT Bold', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  min-width: 2ch;
}

.name-fields {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.name-field label {
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}

.name-field input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  text-align: left;
}

#submit-btn {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.9rem;
  background: var(--blue);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: 'Baloo 2', 'Arial Rounded MT Bold', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

#submit-btn:hover { background: var(--blue-dark); }
#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
}

.form-status.success {
  background: #d4f4dd;
  color: #14532d;
}

.form-status.error {
  background: #fde2e2;
  color: #7f1d1d;
}

.gift-card { background: white; }

.gift-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.gift-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 600;
  text-align: left;
}

.gift-icon { font-size: 1.5rem; }

.gift-list a {
  color: var(--blue-dark);
  font-weight: 700;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
  padding: 1.5rem 1rem 2.5rem;
  font-weight: 600;
}

.minions-welcome {
  font-family: 'Baloo 2', 'Arial Rounded MT Bold', sans-serif;
  font-size: 1.3rem;
  color: var(--yellow);
  -webkit-text-stroke: 1px var(--navy);
}
