/* ============================================================
   SKILL GRADER — FUNNEL CSS
   Dark theme · Red accent · Premium feel
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --red:       #e22336;
  --red-dark:  #b91c2c;
  --red-glow:  rgba(226, 35, 54, 0.35);
  --bg:        #000000;
  --surface:   #111111;
  --surface2:  #1a1a1a;
  --border:    #2a2a2a;
  --text:      #ffffff;
  --muted:     #888888;
  --light:     #cccccc;
  --topbar-h:  70px;
  --radius:    4px;
  --transition: 0.25s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
main{
    padding-top:100px;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ── Topbar ───────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: var(--topbar-h);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1060;
}

.logo img {
  height: 52px;
  width: auto;
}

.menu-btn {
  font-size: 26px;
  color: var(--text);
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
  user-select: none;
}
.menu-btn:hover { color: var(--red); }

/* ── Sidebar ──────────────────────────────────────────────── */
.sidebar {
  position: fixed;
  top: var(--topbar-h);
  right: -260px;
  width: 250px;
  height: calc(100% - var(--topbar-h));
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 1050;
  padding-top: 16px;
  transition: right 0.3s ease;
  overflow-y: auto;
}
.sidebar.active { right: 0; }

.sidebar a {
  display: block;
  color: var(--light);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--transition), color var(--transition);
}
.sidebar a:hover { background: var(--red); color: #fff; }

.toggle-link {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
}
.toggle-link .arrow { transition: transform 0.3s ease; }
.toggle-link[aria-expanded="true"] .arrow { transform: rotate(180deg); }

/* ── Overlay ──────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  z-index: 1040;
  backdrop-filter: blur(2px);
}
.overlay.active { display: block; }

/* ── Progress Bar ─────────────────────────────────────────── */
.progress-wrapper {
  background: var(--bg);
  padding: calc(var(--topbar-h) + 20px) 0 16px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  gap: 12px;
}

.back-arrow {
  color: var(--red);
  font-size: 22px;
  text-decoration: none;
  line-height: 1;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.back-arrow:hover { transform: translateX(-3px); }

.progress-container {
  flex: 1;
  height: 6px;
  background: var(--surface2);
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  border-radius: 99px;
  transition: width 0.4s ease;
}

.progress-text {
  font-weight: 700;
  color: var(--red);
  font-size: 13px;
  min-width: 40px;
  text-align: right;
  flex-shrink: 0;
}

/* ── Container / Layout ───────────────────────────────────── */
.container-main {
  margin-top: 0;
  padding-top: 40px;
  padding-bottom: 60px;
}

.padding {
  padding: 40px 20px;
}

/* ── Step Heading ─────────────────────────────────────────── */
.step-heading {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 16px;
}

.step-heading h1,
.step-heading h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(24px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.step-heading p {
  color: var(--muted);
  font-size: clamp(14px, 2.5vw, 17px);
  font-weight: 400;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Age Cards (Step 1) ───────────────────────────────────── */
.card-age {
  background: var(--surface2);
  border: 2px solid var(--border);
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  border-radius: var(--radius);
}

.card-age:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--red);
  box-shadow: 0 8px 30px var(--red-glow);
}

.card-age.selected {
  border-color: var(--red);
  box-shadow: 0 0 30px var(--red-glow);
}

.card-age img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.card-age-text {
  background: var(--red);
  color: #fff;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
  padding: 10px 8px;
}

/* ── Option Cards (Steps 2, 4, 5, 6, 7, 8, 9, 10) ─────────── */
.option-card {
  background: var(--surface2);
  border: 2px solid var(--border);
  color: var(--text);
  padding: 18px 22px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition), transform var(--transition);
  border-radius: var(--radius);
  gap: 12px;
  position: relative;
  overflow: hidden;
}

/* Left stripe accent */
.option-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 3px;
  height: 100%;
  background: var(--red);
  opacity: 0;
  transition: opacity var(--transition);
}

.option-card:hover {
  border-color: var(--red);
  background: #1e1e1e;
  transform: translateX(4px);
  box-shadow: 0 4px 20px var(--red-glow);
}
.option-card:hover::before { opacity: 1; }

.option-card.selected {
  border-color: var(--red);
  background: #1e1e1e;
  box-shadow: 0 0 20px var(--red-glow);
}
.option-card.selected::before { opacity: 1; }

.option-card input[type="radio"] { display: none; }

.option-card small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  margin-top: 4px;
  color: var(--muted);
}

.option-card strong {
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  letter-spacing: 0.02em;
  font-weight: 600;
}

/* Radio Circle */
.radio-circle {
  width: 20px;
  height: 20px;
  border: 2px solid var(--red);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.radio-circle::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.option-card.selected .radio-circle::after { opacity: 1; }

/* ── Custom Checkbox (Step 6) ─────────────────────────────── */
.custom-checkbox {
  display: flex;
  align-items: center;
  background: var(--surface2);
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  margin-bottom: 12px;
  gap: 12px;
}
.custom-checkbox:hover { border-color: var(--red); background: #1e1e1e; }
.custom-checkbox input[type="checkbox"] { display: none; }

.checkbox-box {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border: 2px solid var(--muted);
  background: transparent;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), border-color var(--transition);
  position: relative;
}
.checkbox-box::after {
  content: '';
  width: 6px;
  height: 11px;
  border: 2px solid transparent;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
  position: absolute;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.custom-checkbox input[type="checkbox"]:checked + .checkbox-box {
  background: var(--red);
  border-color: var(--red);
}
.custom-checkbox input[type="checkbox"]:checked + .checkbox-box::after {
  border-color: #fff;
  opacity: 1;
}

.checkbox-label {
  color: var(--light);
  font-size: 15px;
  font-weight: 500;
  transition: color var(--transition);
}
.custom-checkbox input[type="checkbox"]:checked ~ .checkbox-label {
  color: var(--red);
  font-weight: 600;
}

/* ── Form Controls ────────────────────────────────────────── */
.form-control,
.form-select {
  background: var(--surface2) !important;
  border: 2px solid var(--border) !important;
  color: var(--text) !important;
  border-radius: var(--radius) !important;
  padding: 14px 16px !important;
  font-size: 15px !important;
  font-family: 'DM Sans', sans-serif !important;
  transition: border-color var(--transition), box-shadow var(--transition) !important;
  width: 100%;
}

.form-control::placeholder { color: var(--muted); }
.form-select option { background: var(--surface2); color: var(--text); }

.form-control:focus,
.form-select:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px var(--red-glow) !important;
  outline: none !important;
  background: #1e1e1e !important;
}

/* Year input specific */
#yearFieldWrapper label {
  color: var(--light);
  font-weight: 600;
  font-size: 15px;
}
#yearFieldWrapper .form-control {
  margin-top: 8px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn-continue {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-family: 'Rajdhani', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  float: right;
  margin-top: 24px;
}
.btn-continue:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--red-glow);
}
.btn-continue:active { transform: translateY(0); }

/* ── Error / Alert ────────────────────────────────────────── */
#agreeError,
#field-error {
  background: var(--red);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  margin-top: 16px;
  border: none;
}

/* ── Form Check (Terms) ───────────────────────────────────── */
.form-check-label {
  color: #8d8d8d;
  font-size: 12px;
  padding-left: 8px;
  line-height: 1.5;
}
.form-check-label a {
  color: #8d8d8d;
}

/* Custom visible checkbox */
.form-check-input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 17px;
  height: 17px;
  min-width: 17px;
  flex-shrink: 0;
  border: 2px solid #666;
  border-radius: 3px;
  background-color: #1a1a1a;
  cursor: pointer;
  position: relative;
  margin-left: 0 !important;
  margin-top: 2px;
  float: none !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  vertical-align: top;
}

.form-check-input[type="checkbox"]:checked {
  background-color: #e22336;
  border-color: #e22336;
}

.form-check-input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.form-check-input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(226, 35, 54, 0.25);
}

/* ── Step 3 — Split Layout ────────────────────────────────── */
.main-section {
  display: flex;
  flex-direction: row;
  min-height: calc(100vh - var(--topbar-h));
  background: var(--bg);
}

.left-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  min-height: 300px;
}

.character-img {
  max-height: 75vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
}

.right-panel h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.right-panel p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
  color: var(--light);
}

.right-panel .row { gap: 0; }

.right-panel .form-group { margin-bottom: 16px; }

/* ── Step 10/11 — Recommendation ─────────────────────────── */
.recommendation-card {
  text-align: center;
  padding: 40px 24px;
  max-width: 680px;
  margin: 0 auto;
}
.recommendation-card h5 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(18px, 3vw, 24px);
  line-height: 1.4;
}
.recommendation-card .text-success { color: #22c55e !important; }
.recommendation-card .text-primary { color: #60a5fa !important; }

.whatsapp-btn {
  background: #25D366 !important;
  color: #fff !important;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 99px !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
  border: none;
}
.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

/* ── Badge ────────────────────────────────────────────────── */
.badge.bg-success {
  background: #15803d !important;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 99px;
  letter-spacing: 0.04em;
}

/* ── Form Options Max-Width ───────────────────────────────── */
.form-options {
  max-width: 520px;
  margin: 0 auto;
}

/* ── Main Form Padding ────────────────────────────────────── */
.main-form { padding-top: 80px; }

/* ── Utility ──────────────────────────────────────────────── */
.clearfix::after { content: ''; display: block; clear: both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet */
@media (max-width: 991px) {
  .right-panel { padding: 40px 32px; }
  .left-panel { padding: 30px 20px; }

  .main-section { flex-direction: column; }
  .left-panel { border-right: none; border-bottom: 1px solid var(--border); min-height: auto; }
  .character-img { max-height: 40vh; }

  .padding { padding: 30px 16px; }
  .padding8 { padding: 0 20px; }

  .col-md-3 { width: 48% !important; }
}

/* Mobile */
@media (max-width: 600px) {
  .topbar { padding: 0 16px; }
  .logo img { height: 40px; }

  .step-heading h1,
  .step-heading h2 { font-size: 22px; }
  .step-heading p { font-size: 13px; }

  .option-card { padding: 14px 16px; }
  .option-card strong { font-size: 15px; }

  .card-age img { height: 110px; }
  .card-age-text { font-size: 13px; padding: 8px 4px; }

  .padding { padding: 20px 14px; }
  .padding8 { padding: 0 8px; }
  .container-main { padding-bottom: 60px; }

  .main-form { padding-top: 0; }
  .progress-wrapper { padding-top: calc(var(--topbar-h) + 10px); }

  .right-panel { padding: 28px 18px; }
  .right-panel h1 { font-size: 24px; }
  .right-panel p { font-size: 14px; margin-bottom: 24px; }

  .btn-continue { float: none; width: 100%; justify-content: center; margin-top: 20px; }

  .col-6 { width: 50% !important; }
  .col-md-3 { width: 50% !important; }
  .col-lg-4 { width: 100% !important; }
  .col-md-6 { width: 100% !important; }
  .col-md-8 { width: 100% !important; }

  .recommendation-card { padding: 24px 16px; }
}

@media (max-width: 400px) {
  .card-age img { height: 90px; }
  .step-heading h1 { font-size: 18px; }
  .option-card strong { font-size: 14px; }
}

/* ── Flash Messages ───────────────────────────────────────── */
.flash-msg {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  min-width: 280px;
  max-width: 90vw;
  animation: flashIn 0.3s ease, flashOut 0.4s ease 3.6s forwards;
}

.flash-warning {
  background: #e22336;
  color: #fff;
  border-left: 4px solid #b91c2c;
}

.flash-info {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #444;
  border-left: 4px solid #e22336;
}

@keyframes flashIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes flashOut {
  from { opacity: 1; }
  to   { opacity: 0; pointer-events: none; }
}
/* ============================================================
   ZEBLEARN INDIA FOOTER
   ============================================================ */

.zeb-footer {
  background: #0a0a0a;
  border-top: 1px solid #1e1e1e;
  padding: 40px 24px 28px;
  margin-top: 60px;
}

.zeb-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

/* Brand */
.zeb-footer__logo {
  height: 44px;
  width: auto;
  margin: 0 auto 6px;
  filter: brightness(0.9);
}

.zeb-footer__tagline {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0;
}

/* Nav Links */
.zeb-footer__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.zeb-footer__links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition);
}
.zeb-footer__links a:hover { color: var(--red); }

.zeb-footer__sep {
  color: #333;
  font-size: 13px;
}

/* Contact */
.zeb-footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.zeb-footer__wa,
.zeb-footer__mail {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition);
}
.zeb-footer__wa:hover  { color: #25D366; }
.zeb-footer__mail:hover { color: var(--red); }

/* Copyright */
.zeb-footer__copy {
  color: #444;
  font-size: 12px;
  border-top: 1px solid #1a1a1a;
  padding-top: 18px;
  width: 100%;
  text-align: center;
}
.zeb-footer__copy strong { color: var(--red); }

/* Mobile */
@media (max-width: 480px) {
  .zeb-footer { padding: 30px 16px 24px; }
  .zeb-footer__logo { height: 36px; }
  .zeb-footer__contact { gap: 10px; }
}