/* ─── Brand Tokens ─────────────────────────────────── */
:root {
  --navy: #0B3775;
  --red: #EA1337;
  --orange: #F27019;
  --blue: #356AB7;
  --sky: #BBDEF0;
  --yellow: #EFCA08;
  --green: #02B702;
  --white: #FFFFFF;
  --off: #F4F7FC;
  --muted: #5F7390;
  --dark: #071E3D;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #EAF4FA;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow-x: hidden;
}

/* ─── LEFT PANEL ─────────────────────────────────────── */
.panel-left {
  position: relative;
  background: linear-gradient(135deg, #D9ECF7 0%, #BBDEF0 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
  overflow: hidden;
  min-height: 100vh;
}

/* Grid texture */
.panel-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Soft ambient glow */
.panel-left::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  top: -180px;
  right: -140px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}

/* Bottom brand stripe */
.panel-left::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 16%, var(--red) 16%, var(--red) 34%, var(--orange) 34%, var(--orange) 52%, var(--yellow) 52%, var(--yellow) 78%, var(--green) 78%, var(--green) 100%);
  pointer-events: none;
}

.geo-ring {
  position: absolute;
  bottom: -70px;
  right: -70px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1.5px solid rgba(11, 55, 117, 0.08);
  pointer-events: none;
}

.geo-ring::after {
  content: '';
  position: absolute;
  inset: 55px;
  border-radius: 50%;
  border: 1.5px solid rgba(11, 55, 117, 0.05);
}

/* Logo box — white bg pill so transparent PNG reads perfectly */
.logo-area {
  background: var(--white);
  border-radius: 12px;
  padding: 14px 22px;
  width: fit-content;
  margin-bottom: 52px;
  box-shadow: 0 10px 30px rgba(11, 55, 117, 0.10);
}

.logo-area img {
  display: block;
  height: 44px;
  width: auto;
}

.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 4vw, 66px);
  line-height: 0.93;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 22px;
}

.hero-headline .accent {
  color: var(--yellow);
  display: block;
}

.hero-headline .accent2 {
  color: var(--red);
}

.hero-sub {
  color: #0B3775;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  max-width: 340px;
  margin-bottom: 44px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 44px;
  max-width: 520px;
}

.stat-item {
  position: relative;
  padding: 0 28px 0 0;
}

.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 54px;
  color: #0B3775;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  color: #0B3775;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 8px;
}

.color-bar {
  display: flex;
  height: 5px;
  border-radius: 3px;
  overflow: hidden;
  width: 220px;
  gap: 2px;
}

.color-bar span {
  flex: 1;
  border-radius: 2px;
}

/* ─── RIGHT PANEL ─────────────────────────────────────── */
.panel-right {
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px;
  overflow-y: auto;
  min-height: 100vh;
}

.form-header {
  margin-bottom: 28px;
}

.form-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1;
  margin-bottom: 5px;
}

.form-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.form-subtitle a {
  color: var(--red);
  text-decoration: none;
  font-weight: 600;
}

.form-subtitle a:hover {
  text-decoration: underline;
}

/* Steps */
.steps {
  display: flex;
  margin-bottom: 24px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--off);
  border: 1px solid #E2EAF4;
}

.step-item {
  flex: 1;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  border-right: 1px solid #E2EAF4;
  transition: all 0.25s;
}

.step-item:last-child {
  border-right: none;
}

.step-item.active {
  background: var(--navy);
  color: var(--white);
}

.step-item.done {
  background: #E8F5E9;
  color: #016101;
}

.step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(143, 163, 190, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-item.active .step-dot {
  background: var(--red);
  color: var(--white);
}

.step-item.done .step-dot {
  background: var(--green);
  color: var(--white);
}

/* Fields */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 15px;
}

label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--navy);
  margin-bottom: 5px;
}

label .req {
  color: var(--red);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #D0DDF0;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53, 106, 183, 0.12);
}

input.error {
  border-color: var(--red);
}

input.success {
  border-color: var(--green);
}

.field-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.field-error {
  font-size: 11px;
  color: var(--red);
  margin-top: 4px;
  display: none;
}

.field-error.show {
  display: block;
}

/* Password strength */
.pw-strength {
  height: 4px;
  border-radius: 2px;
  background: #E2EAF4;
  margin-top: 6px;
  overflow: hidden;
  display: none;
}

.pw-strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s, background 0.3s;
}

/* Select arrow */
.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
  font-size: 12px;
}

/* Course cards */
.course-section {
  margin-bottom: 16px;
}

.course-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.course-optional {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  background: var(--off);
  padding: 2px 8px;
  border-radius: 10px;
}

.course-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 190px;
  overflow-y: auto;
  padding-right: 2px;
}

.course-grid::-webkit-scrollbar {
  width: 4px;
}

.course-grid::-webkit-scrollbar-thumb {
  background: var(--muted);
  border-radius: 2px;
}

.course-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px solid #D0DDF0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.course-card:hover {
  border-color: var(--blue);
  background: #F0F5FF;
}

.course-card.selected {
  border-color: var(--navy);
  background: #EEF3FB;
  box-shadow: 0 0 0 1px var(--navy);
}

.course-card input[type="radio"] {
  display: none;
}

.course-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #D0DDF0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.course-card.selected .course-radio {
  border-color: var(--navy);
  background: var(--navy);
}

.course-card.selected .course-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.course-info {
  flex: 1;
  min-width: 0;
}

.course-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.course-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.course-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.badge-blue {
  background: rgba(53, 106, 183, 0.12);
  color: var(--blue);
}

.badge-orange {
  background: rgba(242, 112, 25, 0.12);
  color: var(--orange);
}

.badge-green {
  background: rgba(2, 183, 2, 0.1);
  color: #019001;
}

.badge-yellow {
  background: rgba(239, 202, 8, 0.15);
  color: #B89400;
}

.no-course-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1.5px dashed #D0DDF0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--muted);
  font-size: 13px;
}

.no-course-btn:hover {
  border-color: var(--muted);
  color: var(--dark);
}

.no-course-btn.selected {
  border-color: var(--muted);
  background: var(--off);
  color: var(--dark);
}

/* Spinner */
.courses-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 13px;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #D0DDF0;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.divider {
  border: none;
  border-top: 1.5px solid #E9EFF8;
  margin: 18px 0;
}

/* Notification */
.notification {
  display: none;
  padding: 11px 15px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 14px;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.notification.show {
  display: flex;
}

.notification.error {
  background: #FFF0F1;
  color: #B8002B;
  border: 1px solid rgba(234, 19, 55, 0.2);
}

.notification.success {
  background: #F0FBF0;
  color: #016101;
  border: 1px solid rgba(2, 183, 2, 0.2);
}

.notification.info {
  background: #F0F5FF;
  color: var(--navy);
  border: 1px solid rgba(11, 55, 117, 0.2);
}

.notification.warning {
  background: #FFFBEB;
  color: #92650A;
  border: 1px solid rgba(239, 202, 8, 0.3);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notif-icon {
  font-size: 15px;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-body strong {
  display: block;
  font-weight: 700;
  margin-bottom: 1px;
}

/* Buttons */
.btn-back {
  flex: 0 0 auto;
  padding: 13px 18px;
  background: var(--off);
  color: var(--navy);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1.5px solid #D0DDF0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-back:hover {
  background: #E2EAF4;
}

.btn-primary {
  width: 100%;
  padding: 13px 24px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  opacity: 0.92;
}

.btn-primary:disabled {
  background: #A0B4CC;
  cursor: not-allowed;
}

.btn-primary.loading {
  pointer-events: none;
  color: transparent;
}

.btn-loader {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.btn-primary.loading .btn-loader {
  display: block;
}

/* Email status */
.email-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-top: 4px;
}

.email-status.hidden {
  display: none;
}

.email-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.email-status.checking .email-dot {
  background: var(--muted);
  animation: pulse 1s infinite;
}

.email-status.available .email-dot {
  background: var(--green);
}

.email-status.taken .email-dot {
  background: var(--red);
}

.email-status.checking {
  color: var(--muted);
}

.email-status.available {
  color: #016101;
}

.email-status.taken {
  color: var(--red);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

/* Turnstile */
.turnstile-wrap {
  margin-bottom: 14px;
}

.turnstile-fallback {
  display: none;
  padding: 10px 14px;
  background: #FFF8E1;
  border: 1px solid #FFD54F;
  border-radius: 8px;
  font-size: 12px;
  color: #5D4037;
  margin-top: 8px;
}

/* Success screen */
.success-screen {
  display: none;
  text-align: center;
  padding: 40px 16px;
  animation: fadeIn 0.4s ease;
}

.success-screen.show {
  display: block;
}

.success-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #E8F5E9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin: 0 auto 22px;
  border: 3px solid rgba(2, 183, 2, 0.2);
}

.success-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 30px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.success-message {
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
  margin: 0 auto 22px;
  line-height: 1.6;
}

.success-detail {
  background: var(--off);
  border-radius: 10px;
  padding: 14px 18px;
  text-align: left;
  margin-bottom: 22px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--dark);
}

.success-detail strong {
  color: var(--navy);
  font-weight: 700;
}

.btn-go {
  display: inline-block;
  padding: 13px 32px;
  background: var(--navy);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 10px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-go:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
  body {
    grid-template-columns: 1fr;
  }

  .panel-left {
    min-height: auto;
    padding: 40px 28px;
  }

  .panel-right {
    padding: 36px 24px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}

.panel-right::-webkit-scrollbar {
  width: 5px;
}

.panel-right::-webkit-scrollbar-thumb {
  background: #D0DDF0;
  border-radius: 3px;
}
