/* ========================================
   RIEMERPLUS COMMON STYLES
   Shared styles across all pages
   Uses Tailwind-aligned spacing scale for consistency
   ======================================== */

/* ========================================
   CSS CUSTOM PROPERTIES (Variables)
   ======================================== */
:root {
  /* Brand Colors */
  --color-primary: #208CE4;
  --color-primary-dark: #124D7E;
  --color-primary-light: #6CC7E6;
  --color-success: #5B982A;
  --color-dark: #192934;
  --color-dark-alt: #163B59;
  --color-dark-blue: #0A2540;

  /* Text Colors */
  --color-text-dark: #000;
  --color-text-light: #fff;
  --color-text-muted: #333;

  /* Background Colors */
  --color-bg-light: #fff;
  --color-bg-light-gray: #E8EEF4;
  --color-bg-dark-section: #1E2D3E;
  --color-inactive: #D5D5D5;

  /* Gradients */
  --gradient-primary: linear-gradient(180deg, #208CE4 0%, #6CC7E6 100%);
  --gradient-hero: linear-gradient(107deg, #124D7E 32%, #208CE4 60%, #6CC7E6 99%);
  --gradient-cta: linear-gradient(304deg, #54B5E5 1%, #208CE4 22%, #125388 45%, #192934 80%);

  /* ========== SPACING SCALE (Tailwind-aligned) ========== */
  /* Based on 4px base unit for consistent rhythm */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-14: 3.5rem;   /* 56px */
  --space-15: 3.75rem;  /* 60px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  --space-36: 9rem;     /* 144px */

  /* Section Padding (vertical horizontal) */
  --spacing-section: var(--space-20) var(--space-36);      /* 80px 144px */
  --spacing-section-md: var(--space-15) var(--space-15);   /* 60px 60px */
  --spacing-section-sm: var(--space-10) var(--space-8);    /* 40px 32px */
  --spacing-section-xs: var(--space-8) var(--space-5);     /* 32px 20px */

  /* ========== TYPOGRAPHY SCALE ========== */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 2rem;      /* 32px */
  --text-4xl: 2.5rem;    /* 40px */
  --text-5xl: 3rem;      /* 48px */

  /* Line Heights */
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;

  /* ========== GAP SCALE ========== */
  --gap-sm: var(--space-5);   /* 20px */
  --gap-md: var(--space-10);  /* 40px */
  --gap-lg: var(--space-15);  /* 60px */
  --gap-xl: var(--space-20);  /* 80px */

  /* ========== CONTENT WIDTHS ========== */
  --content-max: 73.125rem;   /* 1170px */
  --content-narrow: 50rem;    /* 800px */

  /* ========== GRID SYSTEM ========== */
  /* 4-column grid with 30px gutters */
  --grid-gutter: 1.875rem;    /* 30px */
  --grid-columns: 4;
  /* Column width: (1170 - 90) / 4 = 270px */
  --grid-column: 16.875rem;   /* 270px */

  /* 2-column layout: 2 columns + 1 gutter per side = 570px */
  --col-2-width: 35.625rem;   /* 570px */

  /* 3-column layout: each column = (1170 - 60) / 3 = 370px */
  --col-3-width: 23.125rem;   /* 370px */

  /* Typography - Fonts */
  --font-primary: Lato, sans-serif;
  --font-secondary: Inter, sans-serif;
}

/* ========================================
   BASE STYLES
   ======================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-primary);
}

/* Page container */
.page-container {
  width: 100%;
  background: var(--color-bg-light);
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  padding: var(--space-3) var(--space-6);  /* 12px 24px */
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-family: var(--font-primary);
  font-weight: 900;
  text-decoration: none;
  display: inline-block;
  font-size: var(--text-base);  /* 16px */
  line-height: var(--leading-normal);
  transition: opacity 0.2s ease;
}

.btn:hover {
  opacity: 0.9;
}

.btn-success {
  background: var(--color-success);
  color: var(--color-text-light);
}

.btn-large {
  padding: var(--space-5) var(--space-15);  /* 20px 60px */
  font-size: var(--text-3xl);  /* 32px */
  line-height: var(--leading-snug);
  border-radius: 20px;
}

.btn-medium {
  padding: var(--space-3) var(--space-10);  /* 12px 40px */
  font-size: var(--text-lg);  /* 18px */
  line-height: var(--leading-relaxed);
}

/* ========================================
   CONTAINER - Constrains content to 1170px
   ======================================== */
.container {
  max-width: var(--content-max);  /* 1170px */
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* ========================================
   GRID LAYOUT SYSTEM
   Based on design spec: 1170px width, 4-column grid, 30px gutters
   ======================================== */

/* Grid Row - Full width section with centered content */
.grid-row {
  display: flex;
  justify-content: center;
  padding: var(--space-20) max(var(--space-36), calc((100% - var(--content-max)) / 2));
  width: 100%;
}

/* Grid Content - The inner container constrained to 1170px */
.grid-content {
  display: flex;
  align-items: center;
  gap: var(--grid-gutter);  /* 30px */
  max-width: var(--content-max);  /* 1170px */
  width: 100%;
}

/* Grid alignment variants */
.grid-content--top {
  align-items: flex-start;
}

/* ========================================
   2-COLUMN LAYOUT
   Each column = 585px (2 grid columns + 1 gutter)
   ======================================== */
.col-2 {
  flex: 1;
  max-width: var(--col-2-width);  /* 585px */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ========================================
   GRID DIVIDERS
   ======================================== */
.grid-divider,
.grid-divider--light {
  width: 2px;
  align-self: stretch;
  flex-shrink: 0;
  position: relative;
}

/* Extend divider slightly beyond content using pseudo-element */
.grid-divider::before,
.grid-divider--light::before {
  content: '';
  position: absolute;
  top: -30px;
  bottom: -30px;
  left: 0;
  width: 2px;
}

.grid-divider {
  background: var(--color-primary);
}

.grid-divider::before {
  background: var(--color-primary);
}

.grid-divider--light {
  background: var(--color-bg-light);
}

.grid-divider--light::before {
  background: var(--color-bg-light);
}

/* Add balanced margins around divider for proper spacing and centering */
.col-2:has(+ .grid-divider),
.col-2:has(+ .grid-divider--light) {
  margin-right: var(--space-15);  /* 60px additional spacing before divider */
}

.grid-divider + .col-2,
.grid-divider--light + .col-2 {
  margin-left: var(--space-15);  /* 60px additional spacing after divider */
}

/* ========================================
   LEGACY TWO-COLUMN SECTION (for backward compatibility)
   ======================================== */
.two-column-section {
  display: flex;
  padding: var(--space-24) max(var(--space-36), calc((100% - var(--content-max)) / 2));
  background: var(--color-bg-light);
  gap: var(--grid-gutter);  /* 30px */
  align-items: stretch;
  justify-content: center;
}

.two-column-section .column {
  flex: 1;
  max-width: var(--col-2-width);  /* 585px */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Standardized Horizontal Divider - white for dark backgrounds */
.horizontal-divider {
  width: 100%;
  max-width: 93px;
  height: 2px;
  background: var(--color-bg-light);
  margin-bottom: var(--space-3);  /* 12px */
}

/* Standardized Horizontal Divider - blue for light backgrounds */
.horizontal-divider-dark {
  width: 100%;
  max-width: 93px;
  height: 2px;
  background: var(--color-primary);
  margin-bottom: var(--space-3);  /* 12px */
}

.section-heading {
  color: var(--color-primary);
  font-size: var(--text-3xl);  /* 32px */
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-8) 0;  /* 32px bottom */
}

.section-text {
  color: var(--color-text-dark);
  font-size: var(--text-base);  /* 16px */
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-5) 0;  /* 20px bottom */
}

.section-text:last-child {
  margin-bottom: 0;
}

.section-list {
  color: var(--color-text-dark);
  font-size: var(--text-base);  /* 16px */
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-5) 0;  /* 20px bottom */
  padding-left: var(--space-5);  /* 20px */
  list-style-type: disc;
}

.section-list li {
  margin-bottom: var(--space-2);  /* 8px */
}

.section-list li:last-child {
  margin-bottom: 0;
}

/* ========================================
   PAGE HERO COMPONENT
   Generic hero used across all product pages
   Variants: --creditapp (default), --deduction, --collections
   ======================================== */

/* Base hero container */
.page-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  overflow: hidden;
}

/* Background image - base */
.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay - base */
.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Content container - base */
.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  padding: 80px 144px;
}

/* Left column - base */
.page-hero-left {
  justify-content: center;
}

/* Right column - base */
.page-hero-right {
  justify-content: center;
  align-items: flex-start;
}

/* Title - base */
.page-hero-title {
  color: var(--color-text-light);
  font-size: 64px;
  font-family: var(--font-primary);
  font-weight: 900;
}

/* Subtitle - base */
.page-hero-subtitle {
  color: var(--color-text-light);
  font-family: var(--font-primary);
  font-weight: 400;
}

/* ----------------------------------------
   VARIANT: Credit App (default)
   Used by: Credit App, Resale Certificates, Credit Academy
   ---------------------------------------- */
.page-hero--creditapp {
  background: var(--color-primary);
}

.page-hero--creditapp .page-hero-bg {
  opacity: 0.7;
}

.page-hero--creditapp .page-hero-overlay {
  background: var(--gradient-hero);
  mix-blend-mode: multiply;
}

.page-hero--creditapp .page-hero-content {
  display: flex;
  width: 100%;
  margin: 0 auto;
}

.page-hero--creditapp .page-hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-hero--creditapp .page-hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-left: 60px;
}

.page-hero--creditapp .page-hero-title {
  text-transform: capitalize;
  line-height: 56px;
  margin: 0 0 30px 0;
  max-width: 534px;
}

.page-hero--creditapp .page-hero-subtitle {
  font-size: 24px;
  line-height: 35px;
  margin: 0 0 30px 0;
  max-width: 479px;
}

/* ----------------------------------------
   VARIANT: Deduction Management
   ---------------------------------------- */
.page-hero--deduction {
  background: var(--color-dark-blue);
  align-items: center;
  justify-content: center;
}

.page-hero--deduction .page-hero-bg {
  object-position: center top;
}

.page-hero--deduction .page-hero-overlay {
  background: var(--gradient-hero);
  mix-blend-mode: multiply;
}

.page-hero--deduction .page-hero-title {
  text-transform: capitalize;
  line-height: 56px;
  margin: 0 0 30px 0;
  max-width: 534px;
}

.page-hero--deduction .page-hero-subtitle {
  font-size: 24px;
  line-height: 35px;
  margin: 0 0 30px 0;
  max-width: 479px;
}

/* ----------------------------------------
   VARIANT: Instant Collections
   ---------------------------------------- */
.page-hero--collections {
  background: var(--color-dark-blue);
}

.page-hero--collections .page-hero-overlay {
  background: linear-gradient(107deg, #1A3A5C 32%, #2A6A9E 60%, #40A0F0 99%);
  mix-blend-mode: multiply;
}

.page-hero--collections .page-hero-content {
  display: flex;
  width: 100%;
  margin: 0 auto;
}

.page-hero--collections .page-hero-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-hero--collections .page-hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-left: 60px;
}

.page-hero--collections .page-hero-title {
  line-height: 64px;
  margin: 0;
  max-width: 400px;
}

.page-hero--collections .page-hero-subtitle {
  font-size: 20px;
  line-height: 28px;
  margin: 0 0 30px 0;
  max-width: 400px;
}

/* ========================================
   HOW IT WORKS / STEPS SECTION
   ======================================== */
.how-it-works-section {
  background: var(--color-primary);
  padding: var(--space-20) max(var(--space-36), calc((100% - var(--content-max)) / 2));  /* 80px 144px min, constrained to var(--content-max) */
}

.how-it-works-title {
  color: var(--color-text-light);
  font-size: var(--text-3xl);  /* 32px */
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin: 0 auto var(--space-15) auto;  /* 60px bottom, centered */
  max-width: var(--content-max);  /* var(--content-max) */
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);  /* 40px */
  margin-bottom: var(--space-15);  /* 60px */
  margin-left: var(--space-24);  /* 96px indent from left edge */
}

.step-item {
  display: flex;
  flex-direction: column;
}

.step-number {
  color: var(--color-text-light);
  font-size: var(--text-5xl);  /* 48px */
  font-family: var(--font-primary);
  font-weight: 900;
  line-height: var(--leading-tight);
  margin: 0 0 var(--space-3) 0;  /* 12px bottom */
}

.step-title {
  color: var(--color-text-light);
  font-size: var(--text-xl);  /* 20px */
  font-family: var(--font-primary);
  font-weight: 800;
  margin: 0 0 var(--space-3) 0;  /* 12px bottom */
  padding-bottom: var(--space-3);  /* 12px */
}

.step-description {
  color: var(--color-text-light);
  font-size: var(--text-base);  /* 16px */
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits-section {
  background: var(--color-bg-light);
  padding: var(--space-20) max(var(--space-36), calc((100% - var(--content-max)) / 2));  /* 80px 144px min, constrained to var(--content-max) */
}

.benefits-title {
  color: var(--color-primary);
  font-size: var(--text-3xl);  /* 32px */
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: var(--leading-tight);
  margin: 0 auto var(--space-15) auto;  /* 60px bottom, centered */
  max-width: var(--content-max);  /* var(--content-max) */
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md) var(--gap-lg);  /* 40px 60px */
  margin-left: var(--space-24);  /* 96px indent from left edge */
}

.benefit-item {
  display: flex;
  flex-direction: column;
}

.benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: var(--space-5);  /* 20px */
  filter: brightness(0) saturate(100%) invert(44%) sepia(83%) saturate(1057%) hue-rotate(182deg) brightness(93%) contrast(92%);
}

.benefit-title {
  color: var(--color-primary);
  font-size: var(--text-xl);  /* 20px */
  font-family: var(--font-primary);
  font-weight: 800;
  margin: 0 0 var(--space-3) 0;  /* 12px bottom */
}

.benefit-description {
  color: var(--color-primary);
  font-size: var(--text-base);  /* 16px */
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ========================================
   ACADEMY SECTION
   ======================================== */
.academy-column {
  flex: 1;
  max-width: 450px;
}

.academy-column-title {
  color: var(--color-text-light);
  font-size: var(--text-3xl);  /* 32px */
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-8) 0;  /* 32px bottom */
}

.academy-column-text {
  color: var(--color-text-light);
  font-size: var(--text-base);  /* 16px */
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-5) 0;  /* 20px bottom */
}

.academy-list {
  color: var(--color-text-light);
  font-size: var(--text-base);  /* 16px */
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  margin: 0 0 var(--space-5) 0;  /* 20px bottom */
  padding-left: var(--space-5);  /* 20px */
  list-style-type: disc;
}

.academy-list li {
  margin-bottom: var(--space-1);  /* 4px */
}

/* ========================================
   WHY-ENROLL SECTION
   ======================================== */
.why-enroll-section {
  background: var(--color-bg-light);
  padding: var(--space-20) max(var(--space-36), calc((100% - var(--content-max)) / 2));  /* 80px 144px min, constrained to var(--content-max) */
}

.why-enroll-heading {
  color: var(--color-primary);
  font-size: var(--text-3xl);  /* 32px */
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: var(--leading-snug);
  margin: 0 auto var(--space-8) auto;  /* 32px bottom, centered */
  max-width: var(--content-max);  /* var(--content-max) */
}

.why-enroll-text {
  color: var(--color-text-dark);
  font-size: var(--text-base);  /* 16px */
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  margin: 0 auto var(--space-5) auto;  /* 20px bottom, centered */
  max-width: var(--content-narrow);  /* 800px */
}

/* Why Enroll Header - two-column variant used by Credit Academy, Resale Certificates */
.why-enroll-header {
  display: flex;
  gap: 80px;
  margin-bottom: 60px;
  align-items: flex-start;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
}

.why-enroll-title {
  color: var(--color-primary);
  font-size: 32px;
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 40px;
  margin: 0;
  flex: 1;
}

.why-enroll-description {
  color: var(--color-primary);
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: 700;
  line-height: 27px;
  margin: 0;
  flex: 1;
}

/* ========================================
   PAGE CTA SECTION - Consolidated CTA Component
   Variants: --default, --centered, --two-column, --stat, --collections
   ======================================== */

/* Base CTA container */
.page-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-20) max(var(--space-36), calc((100% - var(--content-max)) / 2));  /* 80px 144px */
  background: var(--gradient-cta);
}

/* CTA content areas */
.page-cta-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-cta-right {
  flex: 0 0 auto;
}

.page-cta-content {
  max-width: 500px;
}

/* CTA typography */
.page-cta-title {
  color: var(--color-text-light);
  font-size: 32px;
  font-family: var(--font-primary);
  font-weight: 900;
  line-height: 35px;
  margin: 0 0 20px 0;
}

.page-cta-description {
  color: var(--color-text-light);
  font-size: 16px;
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: 27px;
  margin: 0;
}

.page-cta-text {
  color: var(--color-text-light);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* VARIANT: Default (left/right layout with gap) */
.page-cta--default {
  gap: 100px;
}

/* VARIANT: Centered (button only) */
.page-cta--centered {
  padding: 100px max(144px, calc((100% - 1170px) / 2));
}

/* VARIANT: Two Column */
.page-cta--two-column {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 60px;
  padding: 100px max(144px, calc((100% - 1170px) / 2));
}

.page-cta--two-column .page-cta-column {
  flex: 1 1 calc(50% - 60px);
  max-width: calc(50% - 30px);
}

.page-cta--two-column .page-cta-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 30px;
  margin: 0 0 16px 0;
}

.page-cta--two-column .page-cta-text {
  font-size: 14px;
  line-height: 22px;
}

.page-cta-button-container {
  width: 100%;
  flex-basis: 100%;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

/* VARIANT: STAT Recovery */
.page-cta--stat {
  position: relative;
  background:
    url('assets/images/stat-waves-large.webp') no-repeat 80% 100% / 100% auto,
    linear-gradient(95deg, #0A2540 45%, #1565C0 80%, #2196F3 95%, #42A5F5 100%);
  background-blend-mode: multiply, normal;
  padding: 0 max(80px, calc((100% - var(--content-max)) / 2));
  height: 350px;
}

.page-cta--stat .grid-content {
  height: 200px;
}

.page-cta--stat .page-cta-left {
  flex-direction: column;
  gap: 8px;
}

.page-cta--stat .page-cta-logo {
  width: 320px;
  margin-left: -34px;
}

.page-cta--stat .page-cta-text {
  font-size: 32px;
  font-weight: 700;
  line-height: 28px;
}

.page-cta--stat .page-cta-right {
  justify-content: flex-end;
  align-items: center;
}

/* VARIANT: Collections */
.page-cta--collections {
  justify-content: space-between;
  padding: 60px max(144px, calc((100% - 1170px) / 2));
  background: linear-gradient(90deg, #0A2540 0%, #1A5A8A 50%, #40A0F0 100%);
  gap: 60px;
}

.page-cta--collections .page-cta-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
}

.page-cta--collections .page-cta-text {
  font-size: 14px;
  line-height: 22px;
}

.page-cta--collections .page-cta-button {
  flex-shrink: 0;
}

/* Legacy support - keep old class names working */
.cta-section {
  display: flex;
  padding: var(--space-15) max(var(--space-36), calc((100% - var(--content-max)) / 2));
  background: var(--gradient-cta);
  align-items: center;
  justify-content: center;
}

.cta-content {
  flex: 1;
}

.cta-text {
  color: var(--color-text-light);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  font-weight: 400;
  line-height: var(--leading-relaxed);
  margin: 0;
}

/* ========================================
   RESPONSIVE STYLES - 1200px
   ======================================== */
@media (max-width: 1200px) {
  /* Grid system responsive */
  .grid-row {
    padding: var(--space-20) var(--space-15);  /* 80px 60px */
  }

  .grid-content {
    gap: var(--space-10);  /* 40px */
  }

  .two-column-section {
    padding: var(--space-20) var(--space-15);  /* 80px 60px */
    gap: var(--gap-md);  /* 40px */
  }

  .how-it-works-section,
  .benefits-section,
  .why-enroll-section {
    padding: var(--spacing-section-md);
  }

  .cta-section {
    padding: var(--space-15);  /* 60px */
  }

  /* Page CTA responsive - 1200px */
  .page-cta--default {
    padding: 60px 60px;
    gap: 60px;
  }

  .page-cta--centered {
    padding: 80px 60px;
  }

  .page-cta--two-column {
    padding: 60px 60px;
  }

  .page-cta--collections {
    padding: 60px 60px;
  }

  .footer {
    padding: var(--space-15);  /* 60px */
  }

  /* Shared hero responsive - 1200px */
  .page-hero-content {
    padding: 60px 60px;
  }

  .page-hero-title {
    font-size: 48px;
    line-height: 48px;
  }

  /* Collections variant has different line-height */
  .page-hero--collections .page-hero-title {
    line-height: 52px;
  }
}

/* ========================================
   RESPONSIVE STYLES - 1024px
   ======================================== */
@media (max-width: 1024px) {
  /* Grid system - stack columns on tablet */
  .grid-row {
    padding: var(--space-15) var(--space-10);  /* 60px 40px */
  }

  .grid-content {
    flex-direction: column;
    gap: var(--gap-md);  /* 40px */
  }

  .col-2 {
    max-width: 100%;
  }

  .grid-divider,
  .grid-divider--light {
    display: none;
  }

  /* Remove margins when divider is hidden */
  .col-2:has(+ .grid-divider),
  .col-2:has(+ .grid-divider--light) {
    margin-right: 0;
  }

  .grid-divider + .col-2,
  .grid-divider--light + .col-2 {
    margin-left: 0;
  }

  .two-column-section {
    flex-direction: column;
    padding: var(--space-15) var(--space-10);  /* 60px 40px */
    gap: var(--gap-md);  /* 40px */
  }

  .two-column-section .column {
    max-width: 100%;
  }

  /* Shared hero responsive - 1024px */
  .page-hero {
    min-height: auto;
  }

  .page-hero-content {
    flex-direction: column;
    padding: 40px 30px;
  }

  .page-hero-right {
    padding-left: 0;
    padding-top: 30px;
  }

  .page-hero-title {
    font-size: 40px;
    line-height: 42px;
  }

  .page-hero-subtitle {
    font-size: 20px;
    line-height: 30px;
  }

  /* Collections variant has different line-height */
  .page-hero--collections .page-hero-title {
    line-height: 44px;
  }

  .page-hero--collections .page-hero-subtitle {
    font-size: 18px;
    line-height: 26px;
  }

  /* Why enroll header - stack on tablet */
  .why-enroll-header {
    flex-direction: column;
    gap: 20px;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-left: var(--space-15);  /* 60px indent on tablet */
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-left: var(--space-15);  /* 60px indent on tablet */
  }

  .academy-column {
    max-width: 100%;
  }

  .cta-section {
    flex-direction: column;
    text-align: center;
    padding: var(--space-15) var(--space-10);  /* 60px 40px */
  }

  /* CTA section centering on tablet */
  .cta-section .grid-content {
    flex-direction: column;
    align-items: center;
  }

  .cta-left,
  .cta-right {
    max-width: 100%;
    text-align: center;
  }

  .cta-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Page CTA responsive - 1024px */
  .page-cta {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
    gap: 30px;
  }

  .page-cta-left,
  .page-cta-right {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .page-cta--default {
    gap: 30px;
  }

  .page-cta--centered {
    padding: 60px 30px;
  }

  .page-cta--two-column {
    padding: 40px 30px;
    flex-direction: column;
    gap: 30px;
  }

  .page-cta--two-column .page-cta-column {
    max-width: 100%;
    text-align: center;
  }

  .page-cta--stat {
    height: auto;
    min-height: 300px;
    padding: 40px 30px;
  }

  .page-cta--stat .grid-content {
    height: auto;
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }

  .page-cta--stat .page-cta-left {
    align-items: center;
  }

  .page-cta--stat .page-cta-right {
    margin-left: 0;
  }

  .page-cta--collections {
    flex-direction: column;
    padding: 40px 30px;
    gap: 30px;
    text-align: center;
  }

  .page-cta--collections .page-cta-content {
    max-width: 100%;
  }

  .footer {
    flex-wrap: wrap;
    padding: var(--space-10);  /* 40px */
  }
}

/* ========================================
   RESPONSIVE STYLES - 768px
   ======================================== */
@media (max-width: 768px) {
  /* Grid system - mobile */
  .grid-row {
    padding: var(--spacing-section-sm);
  }

  .grid-content {
    gap: var(--space-8);  /* 32px */
  }

  .two-column-section {
    padding: var(--spacing-section-sm);
  }

  /* Shared hero responsive - 768px */
  .page-hero-content {
    padding: 30px 20px;
    text-align: center;
    align-items: center;
  }

  .page-hero-left,
  .page-hero-right {
    align-items: center;
  }

  .page-hero-title {
    font-size: 36px;
    line-height: 35px;
    text-align: center;
  }

  .page-hero-subtitle {
    font-size: 18px;
    line-height: 26px;
    text-align: center;
    max-width: 100%;
  }

  /* All page hero variants - mobile layout at 768px */
  .page-hero--collections .page-hero-content,
  .page-hero--creditapp .page-hero-content,
  .page-hero--deduction .page-hero-content {
    flex-direction: column;
    align-items: center;
  }

  .page-hero--collections .page-hero-left,
  .page-hero--collections .page-hero-right,
  .page-hero--creditapp .page-hero-left,
  .page-hero--creditapp .page-hero-right,
  .page-hero--deduction .page-hero-left,
  .page-hero--deduction .page-hero-right {
    align-items: center;
    padding-left: 0;
  }

  .page-hero--collections .page-hero-title,
  .page-hero--creditapp .page-hero-title,
  .page-hero--deduction .page-hero-title {
    max-width: 100%;
    text-align: center;
  }

  .page-hero--collections .page-hero-subtitle,
  .page-hero--creditapp .page-hero-subtitle,
  .page-hero--deduction .page-hero-subtitle {
    max-width: 100%;
    text-align: center;
  }

  .page-hero--collections .page-hero-subtitle {
    font-size: 16px;
    line-height: 24px;
  }

  .how-it-works-section,
  .benefits-section,
  .why-enroll-section {
    padding: var(--spacing-section-sm);
  }

  .section-heading,
  .how-it-works-title,
  .benefits-title,
  .why-enroll-heading {
    font-size: var(--text-2xl);  /* 24px */
    line-height: var(--leading-snug);
    margin-bottom: var(--space-10);  /* 40px */
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);  /* 32px */
    margin-left: 0;  /* Remove indent on mobile */
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);  /* 32px */
    margin-left: 0;  /* Remove indent on mobile */
  }

  .step-number {
    font-size: var(--text-4xl);  /* 40px */
    line-height: var(--leading-tight);
  }

  .cta-section {
    padding: var(--spacing-section-sm);
  }

  /* CTA section mobile centering */
  .cta-section .grid-content {
    flex-direction: column;
    align-items: center;
  }

  .cta-left,
  .cta-right {
    max-width: 100%;
    text-align: center;
  }

  .cta-left h2,
  .cta-right p,
  .cta-right a {
    text-align: center;
  }

  .cta-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-title {
    font-size: var(--text-xl);  /* 20px */
    line-height: var(--leading-snug);
    text-align: center;
  }

  .cta-text,
  .cta-description {
    font-size: var(--text-sm);  /* 14px */
    line-height: var(--leading-relaxed);
    text-align: center;
  }

  /* Page CTA responsive - 768px */
  .page-cta {
    padding: 40px 20px;
    gap: 30px;
  }

  .page-cta-title {
    font-size: 24px;
    line-height: 30px;
    text-align: center;
  }

  .page-cta-description,
  .page-cta-text {
    font-size: 14px;
    line-height: 22px;
    text-align: center;
  }

  .page-cta--centered {
    padding: 60px 20px;
  }

  .page-cta--two-column {
    padding: 40px 20px;
    flex-direction: column;
    gap: 30px;
  }

  .page-cta--two-column .page-cta-column {
    text-align: center;
  }

  .page-cta--stat {
    height: auto;
    min-height: 250px;
    padding: 30px 20px;
  }

  .page-cta--stat .grid-content {
    height: auto;
    text-align: center;
  }

  .page-cta--stat .page-cta-left {
    align-items: center;
  }

  .page-cta--stat .page-cta-logo {
    width: 250px;
    height: auto;
    margin-left: 0;
  }

  .page-cta--stat .page-cta-text {
    font-size: 24px;
    line-height: 28px;
    text-align: center;
  }

  .page-cta--collections {
    padding: 40px 20px;
    flex-direction: column;
    gap: 30px;
  }

  .page-cta--collections .page-cta-content {
    text-align: center;
    align-items: center;
  }

  .page-cta--collections .page-cta-title {
    font-size: 24px;
    line-height: 30px;
    text-align: center;
  }

  .page-cta--collections .page-cta-text {
    font-size: 14px;
    line-height: 22px;
    text-align: center;
  }

  .btn-large {
    padding: var(--space-4) var(--space-10);  /* 16px 40px */
    font-size: var(--text-2xl);  /* 24px */
    line-height: var(--leading-normal);
  }

  /* Hero section mobile styles */
  .page-hero-content {
    text-align: center;
    align-items: center;
  }

  .page-hero-left,
  .page-hero-right {
    align-items: center;
    text-align: center;
  }

  .page-hero-title,
  .page-hero-subtitle {
    text-align: center;
    max-width: 100%;
  }

  /* Benefits section mobile centering */
  .benefit-item {
    text-align: center;
    align-items: center;
  }

  .step-item {
    text-align: center;
    align-items: center;
  }

  /* Why enroll section mobile */
  .why-enroll-header {
    text-align: center;
  }

  .why-enroll-title,
  .why-enroll-description {
    text-align: center;
  }

  .footer {
    flex-direction: column;
    padding: var(--space-8);  /* 32px */
    gap: var(--space-8);  /* 32px */
    text-align: center;
  }

  .academy-column-title {
    font-size: var(--text-2xl);  /* 24px */
    line-height: var(--leading-snug);
  }

  .academy-column {
    align-items: center;
  }

  .academy-column-title,
  .academy-column-text {
    text-align: center;
  }

  .academy-list {
    text-align: left;
  }
}

/* ========================================
   RESPONSIVE STYLES - 480px
   ======================================== */
@media (max-width: 480px) {
  /* Grid system - small mobile */
  .grid-row {
    padding: var(--spacing-section-xs);
  }

  .grid-content {
    gap: var(--space-6);  /* 24px */
  }

  .two-column-section {
    padding: var(--spacing-section-xs);
  }

  /* Shared hero responsive - 480px */
  .page-hero-content {
    padding: 20px 15px;
    text-align: center;
    align-items: center;
  }

  .page-hero-left,
  .page-hero-right {
    align-items: center;
  }

  .page-hero-title {
    font-size: 26px;
    line-height: 30px;
    text-align: center;
  }

  .page-hero-subtitle {
    font-size: 16px;
    line-height: 24px;
    text-align: center;
  }

  /* Collections variant has smaller subtitle font at 480px */
  .page-hero--collections .page-hero-subtitle {
    font-size: 14px;
    line-height: 22px;
  }

  .how-it-works-section,
  .benefits-section,
  .why-enroll-section {
    padding: var(--spacing-section-xs);
  }

  .section-heading,
  .how-it-works-title,
  .benefits-title,
  .why-enroll-heading {
    font-size: var(--text-2xl);  /* 24px */
    line-height: var(--leading-snug);
    margin-bottom: var(--space-8);  /* 32px */
  }

  .section-text,
  .step-description,
  .benefit-description {
    font-size: var(--text-sm);  /* 14px */
    line-height: var(--leading-relaxed);
  }

  .step-number {
    font-size: var(--text-3xl);  /* 32px */
    line-height: var(--leading-snug);
  }

  .step-title,
  .benefit-title {
    font-size: var(--text-lg);  /* 18px */
  }

  .benefit-icon {
    width: var(--space-20);  /* 80px */
    height: var(--space-20);  /* 80px */
  }

  .cta-section {
    padding: var(--spacing-section-xs);
  }

  /* CTA section small mobile centering */
  .cta-section .grid-content {
    flex-direction: column;
    align-items: center;
  }

  .cta-left,
  .cta-right {
    text-align: center;
  }

  .cta-right {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-title {
    font-size: var(--text-lg);  /* 18px */
    line-height: var(--leading-snug);
    text-align: center;
  }

  .cta-text,
  .cta-description {
    font-size: var(--text-xs);  /* 12px */
    line-height: var(--leading-relaxed);
    text-align: center;
  }

  /* Page CTA responsive - 480px */
  .page-cta {
    padding: 30px 15px;
  }

  .page-cta-title {
    font-size: 20px;
    line-height: 26px;
    text-align: center;
  }

  .page-cta-description,
  .page-cta-text {
    font-size: 12px;
    line-height: 20px;
    text-align: center;
  }

  .page-cta--default {
    padding: 40px 15px;
    gap: 30px;
  }

  .page-cta--centered {
    padding: 40px 15px;
  }

  .page-cta--two-column {
    padding: 30px 15px;
  }

  .page-cta--two-column .page-cta-column {
    text-align: center;
  }

  .page-cta--two-column .page-cta-title {
    font-size: 20px;
    line-height: 26px;
  }

  .page-cta--stat {
    min-height: 200px;
    padding: 25px 15px;
  }

  .page-cta--stat .grid-content {
    text-align: center;
  }

  .page-cta--stat .page-cta-left {
    align-items: center;
  }

  .page-cta--stat .page-cta-logo {
    width: 200px;
  }

  .page-cta--stat .page-cta-text {
    font-size: 18px;
    line-height: 24px;
    text-align: center;
  }

  .page-cta--collections {
    padding: 30px 15px;
  }

  .page-cta--collections .page-cta-content {
    text-align: center;
  }

  .page-cta--collections .page-cta-title {
    font-size: 20px;
    line-height: 26px;
    text-align: center;
  }

  .btn-large {
    padding: var(--space-3) var(--space-8);  /* 12px 32px */
    font-size: var(--text-lg);  /* 18px */
    line-height: var(--leading-normal);
    border-radius: 15px;
  }

  .btn-medium {
    padding: var(--space-3) var(--space-8);  /* 12px 32px */
    font-size: var(--text-base);  /* 16px */
    line-height: var(--leading-relaxed);
  }

  /* Hero section small mobile */
  .page-hero-title {
    font-size: var(--text-2xl);  /* 24px */
    line-height: var(--leading-snug);
    text-align: center;
  }

  .page-hero-subtitle {
    font-size: var(--text-base);  /* 16px */
    line-height: var(--leading-relaxed);
    text-align: center;
  }

  .academy-column-title {
    font-size: var(--text-2xl);  /* 24px */
    line-height: var(--leading-snug);
  }
}

/* ========================================
   DEMO REQUEST MODAL
   Reusable modal for demo request forms
   ======================================== */
.demo-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.demo-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.demo-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 0;
}

.demo-modal-header h2 {
  color: var(--color-primary-dark);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.demo-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #666;
  font-size: 24px;
  line-height: 1;
}

.demo-modal-close:hover {
  color: #333;
}

.demo-modal-body {
  padding: 24px;
}

.demo-modal .form-group {
  margin-bottom: 20px;
}

.demo-modal .form-group label {
  display: block;
  color: var(--color-primary-dark);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}

.demo-modal .form-group label .required {
  color: #dc2626;
}

.demo-modal .form-group input,
.demo-modal .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font-primary);
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #333;
}

.demo-modal .form-group input:focus,
.demo-modal .form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(32, 140, 228, 0.1);
}

.demo-modal .form-group input::placeholder,
.demo-modal .form-group textarea::placeholder {
  color: #999;
}

.demo-modal .form-group input.error,
.demo-modal .form-group textarea.error {
  border-color: #dc2626;
}

.demo-modal .form-group input:read-only {
  background: #f5f5f5;
  color: #666;
  cursor: not-allowed;
}

.demo-modal .form-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
}

.demo-modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.demo-modal .subject-note {
  font-size: 12px;
  color: #888;
  font-weight: 400;
  margin-left: 6px;
}

.demo-modal .submit-btn {
  width: 100%;
  background: var(--color-success);
  color: white;
  padding: 14px 28px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

.demo-modal .submit-btn:hover:not(:disabled) {
  background: #4a8522;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.demo-modal .submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.demo-modal .success-message {
  text-align: center;
  padding: 20px 0;
}

.demo-modal .success-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-success) 0%, #4a8522 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.demo-modal .success-icon svg {
  width: 32px;
  height: 32px;
  fill: white;
}

.demo-modal .success-message h3 {
  color: var(--color-primary-dark);
  font-size: 22px;
  margin: 0 0 12px;
}

.demo-modal .success-message p {
  color: #666;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.demo-modal .success-message .close-btn {
  margin-top: 20px;
  background: var(--color-primary);
  color: white;
  padding: 12px 32px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.demo-modal .success-message .close-btn:hover {
  background: var(--color-primary-dark);
}

@media (max-width: 768px) {
  .demo-modal .form-row {
    grid-template-columns: 1fr;
  }
}

/* reCAPTCHA Container */
.recaptcha-container {
  margin-bottom: 20px;
}

.recaptcha-container.error .g-recaptcha {
  border: 2px solid #dc2626;
  border-radius: 4px;
}

.recaptcha-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 6px;
}