/* ==========================================================================
   Eduract Landing Page Stylesheet
   Vanilla CSS with premium variables, glassmorphism, responsive grids & animations
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --primary: hsl(225, 68%, 20%);          /* Deep trust blue */
  --primary-light: rgb(24, 52, 108);
  --primary-glow: rgba(29, 68, 147, 0.15);
  --accent: #ffbd00;                      /* Eduract Logo Gold */
  --accent-hover: #ff9d00;
  --accent-glow: rgba(255, 189, 0, 0.2);
  --logo-pink: #df3395;                   /* Eduract Logo Pink */
  --logo-orange: #ff7e33;                 /* Eduract Logo Orange */
  --success: #22c55e;
  --success-bg: #f0fdf4;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-color: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s ease;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  
  --container-width: 1200px;
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
}

/* Reset & Core Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

/* Typography */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

p {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.highlight {
  position: relative;
  color: var(--accent);
  display: inline-block;
  white-space: nowrap;
}

/* Button & Link Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--border-radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
  gap: 8px;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
}

.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #20ba56;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.2);
}

.btn-full {
  width: 100%;
}

.btn-large {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--primary);
  color: #ffffff;
  padding: 10px 0;
  font-size: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: relative;
  z-index: 101;
}

.announcement-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  text-align: center;
}

.announcement-content a {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}

/* Site Header */
.site-header {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.logo-img:hover {
  transform: scale(1.02);
}

.main-nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-family: var(--font-heading);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent);
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 24px;
}

.phone-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--primary);
  font-family: var(--font-heading);
  font-weight: 600;
  transition: color var(--transition-fast);
}

.phone-cta:hover {
  color: var(--accent);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 102;
}

.mobile-menu-toggle .bar {
  height: 2px;
  width: 100%;
  background-color: var(--primary);
  border-radius: 4px;
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 80px 0 100px 0;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  overflow: hidden;
}

/* Background Glowing Blurs */
.hero-blur-bg {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  z-index: 1;
}

.hero-blur-1 {
  width: 400px;
  height: 400px;
  background-color: var(--primary);
  top: -100px;
  right: -50px;
}

.hero-blur-2 {
  width: 300px;
  height: 300px;
  background-color: var(--accent);
  bottom: -50px;
  left: -100px;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 50px;
  width: fit-content;
}

.rating-badge .stars {
  color: #f59e0b;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.rating-badge span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-color);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
}

.hero-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-item .check-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background-color: var(--success-bg);
  color: var(--success);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: bold;
}

.benefit-item span {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
}

.hero-image-wrapper {
  position: relative;
  margin-top: 32px;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 4px solid #ffffff;
}

.floating-card {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 14px 20px;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.5);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-card {
  top: 10%;
  left: -5%;
}

.rating-card {
  bottom: 15%;
  right: -5%;
}

.floating-card .stat-num,
.floating-card .rating-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-heading);
  line-height: 1;
}

.floating-card .stat-txt,
.floating-card .rating-txt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Form Card Style */
.hero-form-container {
  position: sticky;
  top: 120px;
}

.form-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.form-header {
  margin-bottom: 28px;
}

.form-header h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.form-header p {
  font-size: 0.95rem;
}

.form-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.progress-step {
  flex: 1;
  height: 4px;
  background-color: var(--border-color);
  border-radius: 4px;
  transition: background-color var(--transition-fast);
}

.progress-step.active {
  background-color: var(--primary);
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 14px;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-color);
  background-color: #ffffff;
  transition: all var(--transition-fast);
  outline: none;
}

.input-group input:focus,
.input-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 68, 147, 0.1);
}

.input-group.invalid input,
.input-group.invalid select {
  border-color: #ef4444;
}

.input-group .error-msg {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  font-weight: 500;
}

.input-group.invalid .error-msg {
  display: block;
}

.form-buttons-row {
  display: flex;
  gap: 12px;
}

.privacy-disclaimer {
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Form Success State */
.form-success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 20px 0;
  animation: fadeIn 0.4s ease forwards;
}

.success-icon-wrapper {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkmark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #ffffff;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--success);
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s unique;
}

.checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke: var(--success);
  stroke-linecap: round;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-linecap: round;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.form-success-state h4 {
  font-size: 1.6rem;
  color: var(--success);
}

.success-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}

.secondary-info {
  font-size: 0.8rem;
  color: var(--text-muted);
}

@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}
@keyframes fill {
  100% { box-shadow: inset 0px 0px 0px 30px var(--success); }
}

/* Sections Base Header */
.section-header {
  max-width: 700px;
  margin: 0 auto 60px auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sub-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 1.1rem;
}

/* Key Benefits Section */
.benefits-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.benefit-card {
  background-color: var(--bg-main);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 36px;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(29, 68, 147, 0.1);
}

.card-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(29, 68, 147, 0.08);
  color: var(--primary);
  border-radius: 12px;
}

.benefit-card h4 {
  font-size: 1.3rem;
}

/* Interactive Explorer Section */
.explorer-section {
  padding: 100px 0;
  background-color: var(--bg-main);
}

.explorer-toggles {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.toggle-btn {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.toggle-btn.active {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.explorer-content-card {
  background-color: #ffffff;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  padding: 48px;
  overflow: hidden;
}

.grade-track-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  animation: fadeIn 0.5s ease forwards;
}

.track-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.track-info h3 {
  font-size: 2rem;
}

.focus-bullets {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0;
}

.focus-bullets .bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--primary);
}

.bullet-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
}

.track-preview {
  background-color: var(--bg-main);
  border-radius: var(--border-radius-md);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  border: 1px solid var(--border-color);
}

.subject-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subject-tag-cloud .tag {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 50px;
}

.quote-preview {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.quote-preview p {
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 8px;
  color: var(--text-color);
}

.quote-preview cite {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Meet Our Tutors Section */
.tutors-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.tutors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
  justify-content: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tutor-card {
  background-color: var(--bg-main);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.tutor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.tutor-image-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--border-color);
}

.tutor-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.tutor-card:hover .tutor-img {
  transform: scale(1.05);
}

.tutor-rating {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.tutor-info {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tutor-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tutor-subject {
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
}

.tutor-exp {
  background-color: var(--border-color);
  color: var(--text-color);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}

.tutor-info h4 {
  font-size: 1.4rem;
}

.tutor-bio {
  font-size: 0.95rem;
  line-height: 1.5;
}

.tutor-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.tutor-badges .badge {
  background-color: rgba(29, 68, 147, 0.05);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

.tutors-footer {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* How It Works Section */
.how-section {
  padding: 100px 0;
  background-color: var(--bg-main);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  position: relative;
}

.step-card {
  background-color: #ffffff;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: all var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
}

.step-card h4 {
  font-size: 1.35rem;
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 0;
  background-color: #ffffff;
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: var(--bg-main);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.quote-icon {
  font-size: 4rem;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
  position: absolute;
  top: 10px;
  left: 24px;
  opacity: 0.15;
}

.testimonial-text {
  position: relative;
  z-index: 2;
  font-style: italic;
  color: var(--text-color);
  font-size: 1.05rem;
  line-height: 1.6;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.author-details {
  display: flex;
  flex-direction: column;
}

.author-details strong {
  color: var(--primary);
  font-family: var(--font-heading);
}

.author-details span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.author-rating {
  color: #f59e0b;
  letter-spacing: 1px;
}

/* FAQ Accordion Section */
.faq-section {
  padding: 100px 0;
  background-color: var(--bg-main);
}

.faq-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.faq-intro {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 120px;
}

.faq-intro h2 {
  font-size: 2.6rem;
  letter-spacing: -1px;
}

.faq-intro p {
  margin-bottom: 8px;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: #ffffff;
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  outline: none;
  gap: 16px;
}

.faq-question .faq-icon {
  font-size: 1.3rem;
  font-weight: normal;
  color: var(--accent);
  transition: transform var(--transition-fast);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal) ease-out;
  padding: 0 24px;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Active FAQ Item Styles */
.faq-item.active {
  box-shadow: var(--shadow-md);
  border-color: rgba(29, 68, 147, 0.1);
}

.faq-item.active .faq-question .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust dynamically in JS */
}

/* Final CTA Section */
.final-cta-section {
  position: relative;
  background-color: var(--primary);
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.final-cta-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background-color: var(--accent);
  filter: blur(140px);
  border-radius: 50%;
  opacity: 0.15;
  pointer-events: none;
}

.final-cta-section h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.final-cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 36px auto;
  font-size: 1.1rem;
}

.cta-buttons-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Sticky Bottom Footer CTA (Mobile Only) */
.sticky-footer-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  padding: 12px 24px;
  box-shadow: 0 -4px 10px rgba(0,0,0,0.05);
  z-index: 99;
}

.sticky-footer-cta .btn {
  width: 100%;
}

/* Footer Section */
.site-footer {
  background-color: #ffffff;
  color: var(--text-color);
  padding: 80px 0 40px 0;
  border-top: 1px solid var(--border-color);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .logo-text {
  color: #ffffff;
  font-size: 2rem;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -1px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contacts h5 {
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.footer-link {
  text-decoration: none;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries & Responsive Styling */
@media (max-width: 1024px) {
  .hero-container {
    gap: 36px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .faq-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .faq-intro {
    position: static;
  }
}

@media (max-width: 768px) {
  /* Site Header Mobile Layout */
  .site-header {
    padding: 12px 0;
  }
  .main-nav {
    display: none; /* Toggle via Mobile Menu class */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-top: 1px solid var(--border-color);
  }
  
  .main-nav.active {
    display: flex;
  }
  
  .header-ctas {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  /* Menu icon active states */
  .mobile-menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .mobile-menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Hero Section Mobile Grid */
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 60px;
  }
  .hero-title {
    font-size: 2.4rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .hero-image-wrapper {
    margin-top: 16px;
  }
  
  .stat-card {
    left: 2%;
  }
  
  .rating-card {
    right: 2%;
  }

  /* Form Container Sticky Off */
  .hero-form-container {
    position: static;
  }
  .form-card {
    padding: 24px;
  }

  /* Grade Explorer Panel */
  .grade-track-panel {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .explorer-content-card {
    padding: 24px;
  }

  /* Footer Layout */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Bottom Mobile Sticky CTA Display */
  .sticky-footer-cta {
    display: block;
  }
  
  body {
    padding-bottom: 70px; /* Save space for bottom cta */
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .stat-card, .rating-card {
    position: static;
    margin-top: 12px;
    width: 100%;
    align-items: center;
  }
  .hero-image-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .form-buttons-row {
    flex-direction: column-reverse;
  }
  .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Thank You Page Specific Styles
   ========================================================================== */
.thank-you-body {
  background-color: var(--bg-main);
}

.thank-you-section {
  position: relative;
  padding: 100px 0 120px 0;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
  min-height: 75vh;
  display: flex;
  align-items: center;
}

.thank-you-container {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.success-checkmark {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  margin-bottom: 8px;
}

.check-icon-large .checkmark {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: block;
  stroke-width: 2;
  stroke: #ffffff;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px var(--success);
  animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s unique;
}

.check-icon-large .checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke: var(--success);
  stroke-linecap: round;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.check-icon-large .checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-linecap: round;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.thank-you-title {
  font-size: 3rem;
  letter-spacing: -1px;
}

.thank-you-subtitle {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

.next-steps-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  padding: 40px;
  width: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 16px 0;
  position: relative;
  overflow: hidden;
}

.next-steps-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.next-steps-card h3 {
  font-size: 1.5rem;
  text-align: center;
  color: var(--primary);
}

.steps-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-num {
  width: 36px;
  height: 36px;
  background-color: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

.flow-step h4 {
  font-size: 1.15rem;
}

.flow-step p {
  font-size: 0.9rem;
  line-height: 1.5;
}

.thank-you-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

@media (max-width: 768px) {
  .thank-you-title {
    font-size: 2.2rem;
  }
  .thank-you-subtitle {
    font-size: 1.1rem;
  }
  .steps-flow {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .next-steps-card {
    padding: 24px;
  }
  .thank-you-actions {
    flex-direction: column;
  }
  .thank-you-actions .btn {
    width: 100%;
  }
}

