:root {
  --primary: #0a4ea3;
  --primary-dark: #083c84;
  --primary-soft: #eaf3ff;
  --accent: #f28c1b;
  --accent-dark: #d97408;
  --accent-soft: #fff3e5;
  --bg: #f5f9ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #0f2948;
  --muted: #5f7695;
  --border: #d4e3f7;
  --border-strong: #bdd4f3;
  --danger: #d93f4f;
  --success: #15885e;
  --shadow-sm: 0 8px 20px rgba(10, 78, 163, 0.08);
  --shadow-md: 0 18px 40px rgba(10, 78, 163, 0.14);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

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

body {
  background:
    radial-gradient(circle at 8% 8%, rgba(10, 78, 163, 0.1) 0%, rgba(245, 249, 255, 0.75) 38%),
    radial-gradient(circle at 92% 12%, rgba(242, 140, 27, 0.15) 0%, rgba(245, 249, 255, 0.8) 42%),
    linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  font-family: "Plus Jakarta Sans", "Segoe UI", Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: 0.08px;
  min-height: 100vh;
}

.main-card {
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 56px rgba(10, 78, 163, 0.18);
  background:
    radial-gradient(circle at 85% 10%, rgba(242, 140, 27, 0.1) 0%, rgba(255, 255, 255, 0.96) 42%),
    linear-gradient(165deg, #ffffff 0%, #f3f8ff 62%, #eef5ff 100%);
  position: relative;
}

.main-card::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  top: -220px;
  right: -180px;
  background: radial-gradient(circle, rgba(242, 140, 27, 0.14) 0%, rgba(242, 140, 27, 0.02) 62%, transparent 72%);
  pointer-events: none;
}

.main-card::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  bottom: -220px;
  left: -180px;
  background: radial-gradient(circle, rgba(10, 78, 163, 0.16) 0%, rgba(10, 78, 163, 0.02) 60%, transparent 72%);
  pointer-events: none;
}

.card-header-pro {
  background: linear-gradient(140deg, #ffffff 0%, #f5f9ff 56%, #edf5ff 100%);
  color: var(--text);
  text-align: center;
  padding: 28px 22px 24px;
  position: relative;
  border-bottom: 1px solid var(--border);
  z-index: 2;
}

.card-header-pro::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 5px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 52%, #ffffff 100%);
}

.logo {
  width: 148px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
  padding: 10px;
  border: 1px solid #e2edfb;
  box-shadow: 0 12px 28px rgba(10, 78, 163, 0.14);
}

.school-title {
  margin: 8px 0 4px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--primary-dark);
  font-family: "Outfit", "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.school-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.card-body {
  padding: 32px;
  background: transparent;
  position: relative;
  z-index: 2;
}

.section-block {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: 1px solid #d7e5f7;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
  box-shadow: 0 12px 26px rgba(10, 78, 163, 0.1);
  backdrop-filter: blur(2px);
}

.section-title {
  color: var(--primary-dark);
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 1rem;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Outfit", "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

.form-label {
  font-weight: 600;
  color: #2a4264;
  margin-bottom: 6px;
  font-size: 0.92rem;
}

.required::after {
  content: " *";
  color: var(--danger);
}

.form-control,
.form-select {
  border-radius: 999px;
  border: 1px solid #cddff5;
  padding-top: 11px;
  padding-bottom: 11px;
  padding-left: 14px;
  padding-right: 14px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, transform 0.15s ease;
  background-color: #ffffff;
  color: #14345d;
}

.form-control::placeholder {
  color: #87a1c1;
}

.form-control:hover,
.form-select:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(10, 78, 163, 0.16);
  background-color: #ffffff;
}

.form-check {
  background: #ffffff;
  border: 1px solid #d5e4f8;
  border-radius: 10px;
  padding: 10px 12px 10px 34px;
  min-height: 44px;
  display: flex;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
}

.form-check:hover {
  border-color: #9fc5ed;
  box-shadow: 0 6px 12px rgba(10, 78, 163, 0.08);
  transform: translateY(-1px);
  background: #fbfdff;
}

.form-check-input {
  margin-top: 0;
  margin-left: -1.35rem !important;
  width: 1.05rem;
  height: 1.05rem;
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(10, 78, 163, 0.16);
}

.form-check-label {
  font-weight: 600;
  color: #24456d;
  user-select: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.btn-orange {
  background: linear-gradient(135deg, var(--accent) 0%, #f39a31 50%, #ffb967 100%);
  border: 1px solid var(--accent-dark);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.25px;
  border-radius: 999px;
  padding: 12px 28px;
  box-shadow: 0 14px 28px rgba(242, 140, 27, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-orange:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(217, 116, 8, 0.3);
  filter: saturate(1.04);
}

.btn-orange:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(242, 140, 27, 0.28), 0 10px 20px rgba(242, 140, 27, 0.2);
}

.btn-soft {
  border-radius: 10px;
  font-weight: 600;
  padding: 11px 24px;
}

.btn-secondary.btn-soft {
  background-color: #6a809d;
  border-color: #6a809d;
}

.btn-secondary.btn-soft:hover {
  background-color: #516884;
  border-color: #516884;
}

.admin-footer {
  margin-top: 20px;
  padding: 14px;
  border: 1px dashed #c8d9ef;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, #f9fcff 0%, #f4f9ff 100%);
  text-align: center;
}

.admin-footer-link {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 18px;
  box-shadow: 0 8px 16px rgba(10, 78, 163, 0.2);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.admin-footer-link:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(8, 60, 132, 0.24);
  filter: saturate(1.03);
}

.admin-footer-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(10, 78, 163, 0.2), 0 8px 16px rgba(10, 78, 163, 0.18);
}

.footer-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.84rem;
  margin-top: 16px;
  padding-top: 8px;
  border-top: 1px dashed #d3e1f2;
}

.alert {
  border-radius: 10px;
  font-weight: 600;
}

.previous-enrollment-card {
  border: 1px solid #cfe0f5;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.previous-enrollment-intro {
  margin: 0 0 12px;
  color: var(--text);
  font-weight: 600;
}

.promo-reduction {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #ffe0bd;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1dd 100%);
}

.promo-reduction p {
  margin: 10px 0 0;
  color: #7a4a12;
  font-weight: 500;
}

.promo-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffe8cb;
  color: #b45f07;
  border: 1px solid #ffd6a1;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 0.85rem;
}

.promo-cta {
  display: inline-block;
  margin-top: 12px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(10, 78, 163, 0.2);
}

.promo-cta:hover {
  color: #fff;
  filter: saturate(1.05);
  transform: translateY(-1px);
}

.whatsapp-hero {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  margin-bottom: 18px;
  background: #ffffff;
  border: 2px solid #37b958;
  border-radius: 999px;
  padding: 10px 12px 10px 10px;
  box-shadow: 0 10px 24px rgba(10, 78, 163, 0.14);
  overflow: hidden;
}

.whatsapp-hero-icon {
  width: 76px;
  height: 76px;
  min-width: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  background: linear-gradient(140deg, #44d766 0%, #0b9f4d 100%);
  box-shadow: 0 10px 20px rgba(10, 159, 77, 0.32);
}

.whatsapp-hero-content {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}

.whatsapp-hero-content small {
  color: var(--primary-dark);
  font-size: 1.05rem;
  font-weight: 700;
}

.whatsapp-hero-content strong {
  color: #0c9b4d;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: 0.03em;
}

.whatsapp-hero-arrow {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.8rem;
  background: linear-gradient(140deg, #44d766 0%, #0a9248 100%);
}

.whatsapp-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(10, 78, 163, 0.18);
}

.whatsapp-inline-link {
  position: relative;
  left: 26px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent) 0%, #f39a31 50%, #ffb967 100%);
  border: 1px solid var(--accent-dark);
  color: #fff;
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.15px;
  box-shadow: 0 14px 28px rgba(242, 140, 27, 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.whatsapp-inline-link i {
  color: #fff;
  font-size: 1rem;
}

.whatsapp-inline-link span {
  color: #fff;
}

.whatsapp-inline-link:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(217, 116, 8, 0.3);
  filter: saturate(1.04);
}

.whatsapp-inline-link:hover i,
.whatsapp-inline-link:hover span {
  color: #fff;
}

.success-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 23, 49, 0.72);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.success-modal {
  width: min(720px, 100%);
  background:
    radial-gradient(circle at 85% 12%, rgba(242, 140, 27, 0.08) 0%, rgba(255, 255, 255, 0.96) 42%),
    linear-gradient(165deg, #ffffff 0%, #f4f9ff 65%, #eef5ff 100%);
  border-radius: 24px;
  border: 1px solid #cfe0f5;
  box-shadow: 0 28px 70px rgba(10, 78, 163, 0.28);
  text-align: center;
  padding: 28px 24px 24px;
}

.success-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #edf4ff 0%, #dbeaff 65%, #cfe2ff 100%);
  border: 2px solid #66b56a;
  color: #0a4ea3;
  font-size: 2.7rem;
}

.success-kicker {
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.22em;
  font-size: 0.84rem;
  font-weight: 800;
}

#successTitle {
  margin: 8px 0 4px;
  color: var(--primary-dark);
  font-weight: 800;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
}

.success-student-name {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  font-family: "Outfit", "Plus Jakarta Sans", sans-serif;
}

.success-text {
  margin: 0 auto 18px;
  color: #4f6c90;
  max-width: 540px;
  font-weight: 500;
}

.success-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid #d6e5f7;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f9f4 100%);
  padding: 12px;
  margin-bottom: 18px;
}

.success-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e0ebfa;
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
}

.success-meta-item i {
  font-size: 1.2rem;
  color: var(--primary);
}

.success-meta-item small {
  display: block;
  color: #5f7898;
  font-weight: 600;
  line-height: 1.1;
}

.success-meta-item strong {
  color: #0f365f;
  font-weight: 800;
}

.success-status {
  color: var(--accent) !important;
}

.success-btn {
  border: none;
  width: min(380px, 100%);
  border-radius: 999px;
  padding: 12px 20px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(92deg, var(--primary) 0%, var(--primary-dark) 55%, #2fae5f 100%);
  box-shadow: 0 12px 26px rgba(10, 78, 163, 0.3);
}

.success-btn:hover {
  color: #fff;
  filter: saturate(1.06);
  transform: translateY(-1px);
}

@media (max-width: 576px) {
  .whatsapp-hero {
    gap: 10px;
    padding: 8px;
    border-radius: 22px;
  }

  .whatsapp-hero-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    font-size: 1.5rem;
  }

  .whatsapp-hero-content small {
    font-size: 0.8rem;
  }

  .whatsapp-hero-content strong {
    font-size: 1.25rem;
  }

  .whatsapp-hero-arrow {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    font-size: 1.2rem;
  }

  .whatsapp-inline-link {
    left: 0;
    width: 100%;
    justify-content: center;
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .success-modal {
    padding: 20px 14px 16px;
    border-radius: 18px;
  }

  .success-meta {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991px) {
  .card-body {
    padding: 22px;
  }

  .section-block {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .card-header-pro {
    padding: 22px 15px 20px;
  }

  .card-body {
    padding: 16px;
  }

  .logo {
    width: 118px;
  }

  .school-title {
    font-size: 1.2rem;
  }

  .school-subtitle {
    font-size: 0.9rem;
  }

  .btn-orange,
  .btn-soft {
    width: 100%;
  }

  .admin-footer {
    padding: 12px;
  }
}
