/* ═══════════════════════════════════════════════════
   Andis Schwimmspaß Tage – style.css
   Design: Cartoon-bold, matched to hero banner
   Colors pulled from title image:
     Deep blue  #0a3d91
     Sky blue   #1a7bd4
     Pool blue  #0288d1
     Yellow     #ffc200
     Orange     #f97316
     White      #ffffff
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Nunito:wght@400;600;700;800;900&display=swap');

/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-deep:   #0a3d91;
  --blue:        #1a7bd4;
  --blue-pool:   #0288d1;
  --blue-light:  #29b6f6;
  --blue-sky:    #b3e5fc;
  --yellow:      #ffc200;
  --yellow-warm: #ffd600;
  --orange:      #f97316;
  --orange-hot:  #ea580c;
  --red:         #e53935;
  --green:       #16a34a;
  --white:       #ffffff;
  --text:        #0c2d6b;
  --text-mid:    #1e4d8c;
  --text-soft:   #4a6fa5;
  --bg:          #e8f4fd;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  width: 100%;
  display: block;
  background: #0a3d91;
  /* overflow visible so wave SVG can bleed out if needed */
  overflow: hidden;
}

.hero picture {
  display: block;
  width: 100%;
  line-height: 0;
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Dark gradient at the bottom of the image */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  /* covers the bottom 38% of the image */
  height: 38%;
  background: linear-gradient(
    to bottom,
    transparent            0%,
    rgba(10,45,120,0.50)  50%,
    rgba(10,45,120,0.90)  80%,
    #0a3d91               100%
  );
  pointer-events: none;
  /* LOWER than hero-content so the button stays visible */
  z-index: 1;
}

/* CTA block: absolutely placed, above gradient AND above wave */
.hero-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;          /* well above wave (z-index 3) */
  display: flex;
  flex-direction: column;
  align-items: center;
  /* bottom padding pushes content above the wave curve height (~60px) */
  padding: 0 1.2rem 5rem;
}

/* Badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.2rem;
  animation: fadeDown 0.6s 0.3s both;
}

.hero-badge {
  background: rgba(255,255,255,0.16);
  border: 2px solid rgba(255,255,255,0.32);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: clamp(0.78rem, 2vw, 0.92rem);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(6px);
  /* not clickable → no cursor/hover */
  cursor: default;
}

/* CTA button */
.hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hot) 100%);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
  padding: 0.9rem clamp(1.8rem, 5vw, 3rem);
  border-radius: 50px;
  text-decoration: none;
  box-shadow:
    0 8px 32px rgba(234,88,12,0.55),
    0 2px 8px rgba(0,0,0,0.25),
    inset 0 1px 0 rgba(255,255,255,0.2);
  transition: transform 0.18s, box-shadow 0.18s;
  letter-spacing: 0.5px;
  animation: popIn 0.65s 0.5s cubic-bezier(.36,1.56,.64,1) both;
  cursor: pointer;
}
.hero-cta:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 16px 44px rgba(234,88,12,0.65);
}

/* Wave SVG: sits between gradient (z1) and hero-content (z10) */
.wave-bottom {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
  z-index: 3;
  pointer-events: none;
}
.wave-bottom svg { display: block; width: 100%; }

/* Responsive */
@media (max-width: 480px) {
  .hero-content { padding-bottom: 4rem; }
  .hero-badges  { gap: 0.35rem; }
}

/* animated bubbles */
.bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.bubble {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  animation: riseUp linear infinite;
}
.bubble:nth-child(1)  { width:14px;height:14px;left:4%;  animation-duration:7s; animation-delay:0s; }
.bubble:nth-child(2)  { width:9px; height:9px; left:14%; animation-duration:9s; animation-delay:2s; }
.bubble:nth-child(3)  { width:20px;height:20px;left:24%; animation-duration:6s; animation-delay:1s; }
.bubble:nth-child(4)  { width:7px; height:7px; left:42%; animation-duration:8s; animation-delay:3s; }
.bubble:nth-child(5)  { width:16px;height:16px;left:62%; animation-duration:7s; animation-delay:0.5s;}
.bubble:nth-child(6)  { width:12px;height:12px;left:78%; animation-duration:9.5s;animation-delay:1.5s;}
.bubble:nth-child(7)  { width:18px;height:18px;left:88%; animation-duration:6.5s;animation-delay:4s; }
.bubble:nth-child(8)  { width:6px; height:6px; left:95%; animation-duration:8.5s;animation-delay:2.5s;}

/* ─── SECTION GENERAL ─── */
section { position: relative; }

.section-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.4rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  padding: 0.32rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  color: var(--blue-deep);
  line-height: 1.1;
  margin-bottom: 0.55rem;
}
.section-title span { color: var(--orange); }

.section-lead {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-soft);
  font-weight: 600;
  line-height: 1.65;
  max-width: 680px;
}

/* ─── WHAT SECTION ─── */
.what-section {
  background: #fff;
  padding: 5.5rem 0 4.5rem;
}

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin-top: 2.5rem;
}
@media (max-width: 580px) { .what-grid { grid-template-columns: 1fr; } }

.what-card {
  background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%);
  border: 2px solid #bbdefb;
  border-radius: 22px;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
/* no hover on what-card – not clickable */
.what-card-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.what-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.12rem;
  color: var(--blue-deep);
  margin-bottom: 0.3rem;
}
.what-card p {
  font-size: 0.92rem;
  color: var(--text-soft);
  font-weight: 600;
  line-height: 1.5;
}

/* ─── TRAINER SECTION ─── */
.trainer-section {
  background: linear-gradient(155deg, #0a3d91 0%, #1a7bd4 55%, #0ea5d0 100%);
  padding: 5.5rem 0;
  overflow: hidden;
  position: relative;
}

/* decorative water ripple behind */
.trainer-section::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.04);
  top: -150px; right: -150px;
  pointer-events: none;
}

.trainer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 640px) {
  .trainer-inner { grid-template-columns: 1fr; text-align: center; }
  .trainer-avatar-wrap { margin: 0 auto; }
  .trainer-stats { justify-content: center; }
}

.trainer-avatar-wrap { position: relative; flex-shrink: 0; }

.trainer-avatar {
  width: 175px; height: 175px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 5.5rem;
  box-shadow:
    0 0 0 5px rgba(255,255,255,0.22),
    0 0 0 10px rgba(255,255,255,0.08),
    0 18px 45px rgba(0,0,0,0.3);
  position: relative;
  z-index: 1;
}

.trainer-badge-circle {
  position: absolute;
  bottom: 6px; right: -10px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  font-size: 0.68rem;
  letter-spacing: 0.4px;
  padding: 0.28rem 0.7rem;
  border-radius: 50px;
  border: 2.5px solid #fff;
  white-space: nowrap;
  z-index: 2;
}

.trainer-content .section-label { background: rgba(255,255,255,0.2); }
.trainer-content .section-title { color: #fff; }
.trainer-content .section-title span { color: var(--yellow); }

.trainer-bio {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.68;
  margin: 1rem 0 1.5rem;
}
.trainer-bio strong { color: #fff; }

.trainer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.stat-chip {
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.28);
  color: #fff;
  font-weight: 800;
  font-size: 0.83rem;
  padding: 0.36rem 0.9rem;
  border-radius: 50px;
  display: flex; align-items: center; gap: 0.35rem;
  backdrop-filter: blur(4px);
}

/* ─── PROGRAM SECTION ─── */
.program-section {
  background: #f4f9ff;
  padding: 5.5rem 0 4.5rem;
}

.program-steps {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.program-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 1.2rem;
  align-items: start;
  background: #fff;
  border-radius: 20px;
  padding: 1.35rem 1.4rem 1.35rem 1.15rem;
  border: 2px solid #d4e8fb;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
/* no hover on program-step – not clickable */

.step-num {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.45rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(26,123,212,0.35);
  flex-shrink: 0;
}

.step-icon { font-size: 1.35rem; margin-right: 0.35rem; }

.program-step h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  color: var(--blue-deep);
  margin-bottom: 0.3rem;
  display: flex; align-items: center; gap: 0.3rem;
}
.program-step p {
  font-size: 0.93rem;
  color: var(--text-soft);
  font-weight: 600;
  line-height: 1.55;
}

/* ─── DETAILS SECTION ─── */
.details-section {
  background: #fff;
  padding: 5.5rem 0 4.5rem;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin-top: 2.5rem;
}
@media (max-width: 580px) { .details-grid { grid-template-columns: 1fr; } }

.detail-card {
  border-radius: 22px;
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
/* no hover on detail-card – not clickable */

.detail-card.blue   { background: linear-gradient(135deg, #0a3d91, #1a7bd4); color: #fff; }
.detail-card.yellow { background: linear-gradient(135deg, #f97316, #ffc200); color: var(--blue-deep); }
.detail-card.green  { background: linear-gradient(135deg, #166534, #16a34a); color: #fff; }
.detail-card.light  { background: linear-gradient(135deg, #e8f4fd, #cfe8fb); color: var(--blue-deep); border: 2px solid #bbdefb; }

.detail-card-icon { font-size: 2.6rem; margin-bottom: 0.75rem; display: block; }
.detail-card h3 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.22rem;
  margin-bottom: 0.45rem;
}
.detail-card p, .detail-card li {
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.6;
  opacity: 0.93;
}
.detail-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.28rem; }
.detail-card ul li::before { content: '✓ '; font-weight: 900; }

/* ─── FORM SECTION ─── */
.form-section {
  background: linear-gradient(165deg, #dbeeff 0%, #c5e0f8 50%, #d9f0ff 100%);
  padding: 5.5rem 0 6.5rem;
}

.form-card {
  background: #fff;
  border-radius: 32px;
  padding: 3rem 2.6rem 2.6rem;
  box-shadow:
    0 24px 64px rgba(10,61,145,0.16),
    0 4px 14px rgba(0,0,0,0.05);
  position: relative;
  overflow: hidden;
  margin-top: 2.5rem;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 7px;
  background: linear-gradient(90deg, #0a3d91, #1a7bd4, #ffc200, #f97316, #e53935);
}

.form-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.75rem;
  color: var(--blue-deep);
  text-align: center;
  margin-bottom: 0.35rem;
}
.form-subtitle {
  text-align: center;
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2.1rem;
}

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

.form-group { margin-bottom: 1.1rem; }

label {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--blue-deep);
  margin-bottom: 0.33rem;
  letter-spacing: 0.2px;
}
label .req { color: var(--red); }

input, select, textarea {
  width: 100%;
  padding: 0.82rem 1.1rem;
  border: 2.5px solid #c3ddf5;
  border-radius: 14px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  background: #f5faff;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26,123,212,0.13);
}
input::placeholder { color: #9ab8d4; font-weight: 600; }
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%231a7bd4' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-color: #f5faff;
  padding-right: 2.8rem;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.05rem;
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.45rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-hot) 100%);
  color: #fff;
  box-shadow:
    0 8px 28px rgba(234,88,12,0.4),
    inset 0 1px 0 rgba(255,255,255,0.18);
  transition: transform 0.15s, box-shadow 0.15s;
  position: relative;
}
.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(234,88,12,0.52);
}
.btn-submit:active { transform: translateY(1px); }

.consent-box {
  background: #f0f8ff;
  border: 2px solid #bbdefb;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-top: 1.3rem;
  font-size: 0.83rem;
  color: var(--text-soft);
  line-height: 1.55;
  font-weight: 600;
}
.consent-box strong { color: var(--blue-deep); display: block; margin-bottom: 0.3rem; font-size: 0.88rem; }
.consent-box a { color: var(--blue); }

/* ─── ALERTS ─── */
.alert {
  border-radius: 14px;
  padding: 1rem 1.3rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
  font-size: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.alert.success { background: #e6f9ee; color: #14532d; border: 2px solid #86efac; }
.alert.error   { background: #fce4ec; color: #7f1d1d; border: 2px solid #fca5a5; }
.alert-icon { font-size: 1.3rem; flex-shrink: 0; }

/* ─── FOOTER ─── */
footer {
  background: var(--blue-deep);
  color: rgba(255,255,255,0.72);
  padding: 3.5rem 1.4rem 2rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.2rem;
  text-align: left;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

.footer-col h4 {
  font-family: 'Fredoka One', cursive;
  font-size: 1.02rem;
  color: var(--yellow);
  margin-bottom: 0.7rem;
  letter-spacing: 0.2px;
}
.footer-col p,
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.75;
  text-decoration: none;
}
.footer-col a:hover { color: var(--yellow); }

.footer-bottom {
  max-width: 880px;
  margin: 1.4rem auto 0;
  text-align: center;
  color: rgba(255,255,255,0.38);
  font-size: 0.8rem;
}

/* ─── UTILITY ─── */
.text-center { text-align: center; }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered children */
.reveal-children > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-children.visible > *:nth-child(1) { opacity:1;transform:none;transition-delay:0.05s; }
.reveal-children.visible > *:nth-child(2) { opacity:1;transform:none;transition-delay:0.15s; }
.reveal-children.visible > *:nth-child(3) { opacity:1;transform:none;transition-delay:0.25s; }
.reveal-children.visible > *:nth-child(4) { opacity:1;transform:none;transition-delay:0.35s; }

/* ─── ANIMATIONS ─── */
@keyframes riseUp {
  from { bottom: -50px; opacity: 0.75; }
  to   { bottom: 110%;  opacity: 0; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.75) rotate(-3deg); }
  to   { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes waveScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── HERO ENTRY ANIMATIONS ─── */
.hero-badges  { animation: fadeDown 0.6s 0.3s both; }
.hero-cta     { animation: popIn   0.65s 0.5s cubic-bezier(.36,1.56,.64,1) both; }

/* ─── SWIM LEVEL RATING ─── */
.swim-level-group { margin-bottom: 1.1rem; }

.swim-level-label {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--blue-deep);
  margin-bottom: 0.5rem;
}
.swim-level-label .req { color: var(--red); }

.swim-level-desc {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.swim-stars {
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.swim-star-option { display: none; } /* hide radio inputs */

.swim-star-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.75rem 0.5rem;
  border: 2.5px solid #c3ddf5;
  border-radius: 16px;
  background: #f5faff;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.15s, box-shadow 0.18s;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.swim-star-btn .star-num {
  font-family: 'Fredoka One', cursive;
  font-size: 1.3rem;
  color: var(--blue-deep);
  line-height: 1;
}

.swim-star-btn .star-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin: 0.1rem 0;
}

.swim-star-btn .star-tip {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  hyphens: auto;
}

/* selected state */
.swim-star-option:checked + .swim-star-btn {
  border-color: var(--blue);
  background: linear-gradient(135deg, #dbeeff 0%, #c5e0ff 100%);
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(26,123,212,0.22);
}
.swim-star-option:checked + .swim-star-btn .star-num {
  color: var(--blue);
}

/* hover only on the label (it is clickable) */
.swim-star-btn:hover {
  border-color: var(--blue-light);
  background: #e8f4ff;
  box-shadow: 0 2px 8px rgba(26,123,212,0.12);
}

@media (max-width: 480px) {
  .swim-stars {
    gap: 0.35rem;
  }
  .swim-star-btn {
    padding: 0.6rem 0.3rem;
    border-radius: 12px;
  }
  .swim-star-btn .star-icon {
    font-size: 1.3rem;
  }
  .swim-star-btn .star-num {
    font-size: 1.1rem;
  }
  .swim-star-btn .star-tip {
    font-size: 0.6rem;
  }
}

/* ─── SUCCESS OVERLAY ─── */
.success-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 45, 120, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeInOverlay 0.4s ease both;
}

.success-card {
  background: #fff;
  border-radius: 32px;
  padding: 3rem 2.5rem 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 32px 80px rgba(10,45,120,0.35),
    0 8px 24px rgba(0,0,0,0.12);
  animation: popInCard 0.5s 0.2s cubic-bezier(.36,1.56,.64,1) both;
}

.success-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, #16a34a, #22c55e, #ffc200, #f97316);
}

.success-confetti {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
}
.success-confetti span {
  animation: confettiBounce 0.6s ease both;
}
.success-confetti span:nth-child(1) { animation-delay: 0.3s; }
.success-confetti span:nth-child(2) { animation-delay: 0.4s; }
.success-confetti span:nth-child(3) { animation-delay: 0.5s; }
.success-confetti span:nth-child(4) { animation-delay: 0.6s; }
.success-confetti span:nth-child(5) { animation-delay: 0.7s; }

.success-icon-wrap {
  margin: 0 auto 1.2rem;
}

.success-checkmark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 8px 28px rgba(22,163,74,0.35);
  animation: scaleCheck 0.5s 0.5s cubic-bezier(.36,1.56,.64,1) both;
}

.success-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--blue-deep);
  margin-bottom: 0.6rem;
}

.success-text {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.success-text-small {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 1.5rem;
}

.success-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 22px rgba(10,61,145,0.3);
  transition: transform 0.15s, box-shadow 0.15s;
}
.success-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(10,61,145,0.4);
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes popInCard {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes confettiBounce {
  from { opacity: 0; transform: translateY(-20px) scale(0.5); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes scaleCheck {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
