/* ============================================================
   AI Performance Marketing & Automation Program — Telugu Batch
   Training Fit Assessment — animated digital-marketing theme
   ============================================================ */
:root {
  --primary:   #1A3A8F;
  --accent:    #E8401C;
  --fb:        #1877F2;
  --ig1:       #F58529;
  --ig2:       #DD2A7B;
  --ig3:       #8134AF;
  --wa:        #25D366;
  --gold:      #FFC107;
  --gradient:  linear-gradient(135deg, #1A3A8F 0%, #E8401C 100%);
  --gradient-fb: linear-gradient(135deg, #1877F2 0%, #8134AF 50%, #E8401C 100%);
  --white:     #FFFFFF;
  --gray-50:   #F8F9FA;
  --gray-100:  #F1F3F5;
  --gray-200:  #E9ECEF;
  --gray-400:  #ADB5BD;
  --gray-600:  #6C757D;
  --gray-800:  #343A40;
  --success:   #22c55e;
  --warning:   #f59e0b;
  --info:      #3b82f6;
  --danger:    #ef4444;
  --radius:    16px;
  --shadow:    0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(26,58,143,0.2);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: #0B1437; color: var(--gray-800); overflow-x: hidden; }
.assessment-body { min-height: 100vh; }
.results-body    { min-height: 100vh; background: var(--gray-50); }

/* ── FLOATING ICON BACKGROUND ── */
.float-icons { position: fixed; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.float-icon {
  position: absolute; font-size: 34px; opacity: 0.16;
  animation: floatUp linear infinite;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.25));
}
@keyframes floatUp {
  0%   { transform: translateY(110vh) rotate(0deg) scale(0.9); opacity: 0; }
  10%  { opacity: 0.18; }
  90%  { opacity: 0.18; }
  100% { transform: translateY(-15vh) rotate(25deg) scale(1.1); opacity: 0; }
}
.fi-1{left:4%;  animation-duration:18s; animation-delay:0s;}
.fi-2{left:14%; animation-duration:22s; animation-delay:2s;}
.fi-3{left:24%; animation-duration:16s; animation-delay:4s;}
.fi-4{left:36%; animation-duration:20s; animation-delay:1s;}
.fi-5{left:48%; animation-duration:24s; animation-delay:3s;}
.fi-6{left:60%; animation-duration:17s; animation-delay:5s;}
.fi-7{left:72%; animation-duration:21s; animation-delay:0.5s;}
.fi-8{left:84%; animation-duration:19s; animation-delay:2.5s;}
.fi-9{left:92%; animation-duration:23s; animation-delay:4.5s;}
.fi-10{left:8%; animation-duration:25s; animation-delay:6s;}
.fi-11{left:55%;animation-duration:15s; animation-delay:7s;}
.fi-12{left:78%;animation-duration:20s; animation-delay:8s;}

/* ── PROGRESS BAR ── */
.progress-wrap {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 5px; background: rgba(255,255,255,0.12);
}
.progress-bar {
  height: 100%; background: var(--gradient-fb);
  transition: width 0.4s ease; width: 0%;
  box-shadow: 0 0 12px rgba(24,119,242,0.8);
}

/* ── ASSESSMENT HEADER ── */
.assess-header {
  position: fixed; top: 5px; left: 0; right: 0; z-index: 99;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 24px;
  background: rgba(11,20,55,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.assess-logo { display: flex; align-items: center; gap: 10px; }
.logo-dc {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--gradient-fb); color: #fff;
  font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.logo-text-block { display: flex; flex-direction: column; line-height: 1.25; }
.logo-text { font-weight: 700; font-size: 14px; color: #fff; }
.logo-subtext { font-weight: 500; font-size: 10px; color: rgba(255,255,255,0.55); }
.assess-step-count { font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 500; }

/* ── STEP TRANSITIONS ── */
.step { display: none; position: relative; z-index: 1; }
.step.active { display: block; animation: fadeSlideIn 0.4s ease; }
.step.exit   { animation: fadeSlideOut 0.3s ease forwards; }

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(30px) scale(0.98); }
  to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes fadeSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-30px); }
}

/* ── WELCOME SCREEN ── */
.welcome-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; position: relative; z-index: 1;
}
.welcome-content { max-width: 640px; width: 100%; text-align: center; }
.welcome-badge {
  display: inline-block;
  background: var(--gradient-fb); color: #fff;
  padding: 8px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 700; margin-bottom: 24px;
  letter-spacing: 0.3px; box-shadow: 0 4px 20px rgba(24,119,242,0.4);
  animation: pulseGlow 2.2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { box-shadow: 0 4px 20px rgba(24,119,242,0.4); }
  50%     { box-shadow: 0 4px 30px rgba(232,64,28,0.55); }
}
.urgency-badge {
  background: linear-gradient(135deg, #E8401C 0%, #FF6B35 100%);
  animation: pulseGlow 1.4s ease-in-out infinite;
}
.big-logo {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin-bottom: 24px;
}
.logo-dc-xl {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--gradient-fb); color: #fff;
  font-weight: 900; font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(24,119,242,0.45);
  overflow: hidden;
}
.logo-dc-xl img {
  width: 100%; height: 100%; object-fit: cover;
}
.logo-company { font-size: 18px; font-weight: 800; color: #fff; text-align: left; }
.logo-tagline { font-size: 11px; color: var(--gold); font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: 1px; }

.welcome-title {
  font-size: clamp(26px, 5vw, 42px); font-weight: 800;
  line-height: 1.3; color: #fff; margin-bottom: 10px;
}
.welcome-title-te {
  font-size: clamp(22px, 4.5vw, 36px); font-weight: 800;
  line-height: 1.4; margin-bottom: 16px;
  background: var(--gradient-fb); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  overflow-wrap: break-word; word-break: break-word;
}
.rotate-word {
  display: inline-block;
  background: var(--gradient-fb); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.rotate-word.fade-out { opacity: 0; transform: translateY(8px); }
.batch-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.18);
  padding: 8px 18px; border-radius: 50px; color: #fff; font-size: 14px;
  font-weight: 700; margin-bottom: 20px;
}
.highlight { background: var(--gradient-fb); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.welcome-sub { font-size: 16px; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 26px; }
.welcome-pills {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 32px;
}
.welcome-pills span {
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 16px; border-radius: 50px; font-size: 13px;
  color: #fff; font-weight: 500;
}
.welcome-note { font-size: 13px; color: rgba(255,255,255,0.45); margin-top: 16px; }

/* ── STEP CONTAINER ── */
.step-container {
  max-width: 700px; margin: 0 auto;
  padding: 100px 20px 40px; position: relative; z-index: 1;
}
.step-card-bg {
  background: rgba(255,255,255,0.97); border-radius: 24px;
  padding: 36px 28px; box-shadow: var(--shadow-lg);
}
.step-header { text-align: center; margin-bottom: 28px; }
.step-icon { font-size: 40px; margin-bottom: 12px; display: inline-block; animation: bounce 1.6s ease-in-out infinite; }
@keyframes bounce { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-8px);} }
.step-header h2 { font-size: clamp(19px, 4vw, 26px); font-weight: 800; color: var(--gray-800); margin-bottom: 8px; }
.step-header p  { font-size: 14px; color: var(--gray-600); }

/* ── FORM ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group-full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.form-group input {
  padding: 13px 16px; border-radius: 10px;
  border: 1.5px solid var(--gray-200); font-size: 15px;
  font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.form-group input:focus {
  outline: none; border-color: var(--fb);
  box-shadow: 0 0 0 3px rgba(24,119,242,0.12);
}

/* ── ANSWER CARDS ── */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px; margin-bottom: 28px;
}
.card-grid-2    { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.card-grid-wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.goal-group     { display: none; }
.goal-group.active-group { display: grid; }

.answer-card {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px; padding: 22px 16px; text-align: center;
  background: var(--white); border: 2px solid var(--gray-200);
  border-radius: var(--radius); cursor: pointer;
  transition: all 0.2s; user-select: none;
}
.answer-card:hover {
  border-color: var(--fb); background: #EEF5FF;
  transform: translateY(-3px) scale(1.02); box-shadow: var(--shadow);
}
.answer-card.selected {
  border-color: var(--fb); background: linear-gradient(135deg,#EEF5FF,#FFF0EC);
  box-shadow: 0 0 0 3px rgba(24,119,242,0.18);
  animation: cardPop 0.3s ease;
}
@keyframes cardPop { 0%{transform:scale(1);} 50%{transform:scale(1.06);} 100%{transform:scale(1);} }
.card-icon  { font-size: 30px; }
.card-label { font-size: 14px; font-weight: 600; color: var(--gray-800); line-height: 1.3; }
.card-sub   { font-size: 12px; color: var(--gray-600); font-weight: 400; margin-top: -4px; }

/* ── STEP ACTIONS ── */
.step-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }

/* ── BUTTONS ── */
.btn-primary {
  padding: 15px 32px; border-radius: 10px; border: none; cursor: pointer;
  font-size: 15px; font-weight: 700; font-family: inherit;
  background: var(--gradient-fb); color: #fff;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 18px rgba(24,119,242,0.35);
}
.btn-primary:hover:not(:disabled) { opacity: 0.92; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary.btn-xl { padding: 17px 42px; font-size: 17px; }

.btn-back {
  padding: 14px 24px; border-radius: 10px;
  border: 1.5px solid var(--gray-200); background: var(--white);
  color: var(--gray-600); font-size: 15px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all 0.2s;
}
.btn-back:hover { border-color: var(--gray-400); color: var(--gray-800); }

/* ── PROCESSING SCREEN ── */
.processing-screen {
  min-height: 100vh; display: flex;
  align-items: center; justify-content: center; position: relative; z-index: 1;
}
.processing-content { text-align: center; padding: 40px 20px; background: rgba(255,255,255,0.97); border-radius: 24px; box-shadow: var(--shadow-lg); max-width: 380px; }
.spinner-ring {
  position: relative; width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.spinner-ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 5px solid var(--gray-200);
  border-top-color: var(--fb);
  border-right-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
.spinner-percent { position: relative; z-index: 1; font-size: 13px; font-weight: 800; color: var(--gray-800); }
@keyframes spin { to { transform: rotate(360deg); } }
.processing-content h2 { font-size: 20px; font-weight: 700; color: var(--gray-800); margin-bottom: 24px; }
.processing-steps { display: flex; flex-direction: column; gap: 10px; text-align: left; max-width: 320px; margin: 0 auto; }
.proc-step {
  font-size: 14px; color: var(--gray-400); font-weight: 500;
  padding: 8px 0; transition: color 0.4s;
}
.proc-step.active { color: var(--fb); font-weight: 600; }

/* ══════════════════════════════════════
   RESULTS PAGE
══════════════════════════════════════ */
.results-header {
  background: var(--gradient-fb); color: #fff;
  text-align: center; padding: 52px 20px 64px; position: relative; overflow: hidden;
}
.results-header .r-logo {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px;
}
.results-header .r-logo-dc {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,0.2); font-weight: 900; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.results-header .r-logo-name { font-size: 16px; font-weight: 700; }
.results-header h1 { font-size: clamp(22px, 4vw, 36px); font-weight: 800; line-height: 1.3; margin-bottom: 8px; }
.results-header p  { font-size: 16px; opacity: 0.92; }
.celebrate-badge {
  display: inline-block; background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.35); padding: 8px 20px;
  border-radius: 50px; font-size: 15px; font-weight: 700; margin-bottom: 14px;
  animation: celebrateBounce 0.7s ease;
}
@keyframes celebrateBounce {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* Confetti */
.confetti { position: absolute; top: -10px; width: 8px; height: 14px; opacity: 0.9; animation: confettiFall 2.6s ease-in forwards; }
.confetti-emoji { width: auto; height: auto; background: none !important; font-size: 22px; }
@keyframes confettiFall {
  0%   { transform: translateY(-20px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(420px) rotate(540deg); opacity: 0; }
}

/* Score gauge */
.score-wrap {
  background: var(--white); border-radius: 24px 24px 0 0;
  margin-top: -28px; padding: 40px 20px 32px;
  max-width: 860px; margin-left: auto; margin-right: auto; position: relative; z-index: 2;
}
.score-block { text-align: center; margin-bottom: 32px; }
.score-circle {
  width: 150px; height: 150px; border-radius: 50%;
  border: 10px solid var(--gray-200); position: relative;
  margin: 0 auto 16px; display: flex; align-items: center;
  justify-content: center; flex-direction: column;
  animation: scoreReveal 0.6s ease;
}
@keyframes scoreReveal { from{transform:scale(0.5);opacity:0;} to{transform:scale(1);opacity:1;} }
.score-bounce-in { animation: scoreBounceIn 0.8s cubic-bezier(.34,1.56,.64,1); }
@keyframes scoreBounceIn {
  0%   { transform: scale(0.3) rotate(-10deg); opacity: 0; }
  60%  { transform: scale(1.12) rotate(4deg); opacity: 1; }
  80%  { transform: scale(0.96) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* Problem → Solution grid */
.problem-solution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ps-box { border-radius: var(--radius); padding: 18px 20px; }
.ps-problem { background: #FFF1F0; border: 1.5px solid rgba(239,68,68,0.2); }
.ps-solution { background: #ECFDF5; border: 1.5px solid rgba(34,197,94,0.25); }
.ps-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.ps-problem .ps-label { color: #DC2626; }
.ps-solution .ps-label { color: #059669; }
.ps-box p { font-size: 14px; color: var(--gray-800); line-height: 1.6; }
.ps-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ps-list li {
  font-size: 14px; font-weight: 600; color: var(--gray-800); line-height: 1.4;
  padding-left: 18px; position: relative; min-height: 20px; display: flex; align-items: center;
}
.ps-problem .ps-list li::before { content: '✗'; position: absolute; left: 0; color: #DC2626; font-weight: 800; }
.ps-solution .ps-list li::before { content: '✓'; position: absolute; left: 0; color: #059669; font-weight: 800; }
@media (max-width: 640px) {
  .problem-solution-grid { grid-template-columns: 1fr; }
}
.score-num { font-size: 40px; font-weight: 900; color: var(--gray-800); line-height: 1; }
.score-denom { font-size: 14px; color: var(--gray-400); font-weight: 500; }
.badge {
  display: inline-block; padding: 6px 20px; border-radius: 50px;
  font-size: 14px; font-weight: 700; margin-bottom: 8px;
}
.badge-danger  { background: #FEE2E2; color: #DC2626; }
.badge-warning { background: #FEF3C7; color: #D97706; }
.badge-info    { background: #DBEAFE; color: #1D4ED8; }
.badge-success { background: #D1FAE5; color: #059669; }

.score-ring-danger  { border-color: #FCA5A5 #FCA5A5 #FCA5A5 #DC2626; }
.score-ring-warning { border-color: #FDE68A #FDE68A #FDE68A #D97706; }
.score-ring-info    { border-color: #BAE6FD #BAE6FD #BAE6FD #1D4ED8; }
.score-ring-success { border-color: #6EE7B7 #6EE7B7 #6EE7B7 #059669; }

/* Results body */
.results-body-wrap {
  max-width: 860px; margin: 0 auto; padding: 0 20px 60px;
}
.r-section { margin-bottom: 32px; }
.r-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.r-card-header {
  padding: 18px 24px; border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 10px;
}
.r-card-header h3 { font-size: 17px; font-weight: 700; color: var(--gray-800); }
.r-card-body { padding: 24px; }

.insight-box {
  background: linear-gradient(135deg, #EEF5FF, #FFF0EC);
  border: 1.5px solid rgba(24,119,242,0.18);
  border-radius: var(--radius); padding: 20px 24px;
}
.insight-box .insight-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--fb); margin-bottom: 8px; }
.insight-box p { font-size: 15px; color: var(--gray-800); line-height: 1.65; font-weight: 500; }

.outcome-box {
  background: #FFF5F2; border: 1.5px solid rgba(232,64,28,0.2);
  border-radius: var(--radius); padding: 20px 24px; text-align: center;
}
.outcome-amount { font-size: 24px; font-weight: 900; color: var(--accent); }
.outcome-label  { font-size: 13px; color: var(--gray-600); margin-top: 4px; }

/* Quick wins */
.quick-wins-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.quick-wins-list li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; background: var(--gray-50); border-radius: 10px;
  font-size: 14px; color: var(--gray-800); line-height: 1.5;
}
.quick-wins-list li::before {
  content: '✓'; color: var(--success); font-weight: 800;
  font-size: 16px; flex-shrink: 0;
}

/* CTA Section */
.cta-section {
  background: var(--gradient-fb); border-radius: var(--radius);
  padding: 40px 30px; text-align: center; color: #fff;
  margin-bottom: 32px;
}
.cta-section h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; margin-bottom: 10px; }
.cta-section p  { font-size: 15px; opacity: 0.92; margin-bottom: 24px; line-height: 1.6; }
.btn-cta {
  display: inline-block; padding: 16px 36px;
  background: #fff; color: var(--primary);
  border-radius: 10px; text-decoration: none;
  font-size: 16px; font-weight: 800;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: ctaPulse 2s ease-in-out infinite;
  max-width: 100%; white-space: normal; word-break: break-word;
}
@keyframes ctaPulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.03);} }
.btn-cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 28px rgba(0,0,0,0.2); }
.cta-note { font-size: 13px; opacity: 0.85; margin-top: 14px; }
.btn-cta-secondary {
  display: inline-block; margin-top: 14px; padding: 12px 28px;
  background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5);
  border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 700;
  max-width: 100%; white-space: normal; word-break: break-word;
  transition: background 0.2s;
}
.btn-cta-secondary:hover { background: rgba(255,255,255,0.12); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .card-grid, .card-grid-2, .card-grid-wide { grid-template-columns: 1fr 1fr; }
  .step-actions { flex-direction: column-reverse; }
  .btn-primary, .btn-back { width: 100%; text-align: center; }
  .assess-header { padding: 10px 14px; }
  .logo-text { font-size: 12px; }
  .logo-subtext { font-size: 9px; max-width: 150px; white-space: normal; line-height: 1.15; }
  .step-container { padding: 80px 16px 40px; }
  .step-card-bg { padding: 26px 18px; }
  .float-icon { font-size: 24px; }
  .cta-section { padding: 32px 18px; }
  .btn-cta { display: block; width: 100%; padding: 16px 20px; font-size: 15px; }
}
@media (max-width: 400px) {
  .card-grid, .card-grid-2, .card-grid-wide { grid-template-columns: 1fr; }
  .cta-section { padding: 26px 14px; }
  .btn-cta { font-size: 14px; padding: 14px 12px; }
  .welcome-title-te { font-size: clamp(19px, 5.5vw, 28px); }
}
