:root {
  /* Palette & Surfaces */
  --surface: #f8f9ff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #eff3ff;
  --surface-container: #e6eeff;
  --surface-container-high: #dde9ff;
  --on-surface: #0d1c2f;
  --on-surface-variant: #434750;
  --outline: #737781;
  --outline-variant: #c3c6d1;
  --primary: #00366f;
  --primary-container: #1e4d8c;
  --on-primary: #ffffff;
  --secondary: #176d26;
  --on-secondary: #ffffff;
  --secondary-container: #a1f79e;
  --on-secondary-container: #1f732b;
  --star-gold: #f59e0b;
  --whatsapp-green: #25d366;
  --background: #f8f9ff;

  /* Layout & Elevation */
  --shadow-sm: 0 10px 30px rgba(13, 28, 47, 0.08);
  --shadow-lg: 0 20px 60px rgba(13, 28, 47, 0.12);
  --radius-sm: 0.25rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --container-max: 1280px;
  --gutter: 24px;
  --section-mobile: 64px;
  --section-desktop: 120px;

  /* Refined Compact Typography Tokens */
  --font-heading: "Montserrat", sans-serif;
  --font-body: "Public Sans", Arial, sans-serif;
  --font-doodle: "Bricolage Grotesque", cursive;

  --text-xs: 0.725rem; /* ~11.5px - Badges / Micro-notes */
  --text-sm: 0.825rem; /* ~13px - Captions / Small notes */
  --text-base: 0.925rem; /* ~15px - Standard Body Copy */
  --text-lg: 1rem; /* 16px - Subtitles / Card Headers */
  --text-xl: 1.2rem; /* ~19px - H3 Headings */
  --text-2xl: 1.5rem; /* 24px - Mobile H2 / Section Headings */
  --text-3xl: 1.85rem; /* 30px - Desktop H2 Section Headings */
  --text-4xl: 2.5rem; /* 40px - Desktop H1 Hero Title */
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--on-surface);
  background: var(--background);
  line-height: 1.6;
  padding-top: 80px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.icon-filled {
  font-variation-settings: "FILL" 1;
}

/* ===== Layout helpers ===== */

.container {
  width: min(100% - 2 * var(--gutter), var(--container-max));
  margin: 0 auto;
}

.section {
  padding: 32px 0;
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }
}

.section-alt {
  background: var(--surface-container-low);
}

.section-heading {
  margin-bottom: 32px;
  text-align: center;
}

@media (max-width: 767px) {
  .section-heading {
    margin-bottom: 24px;
  }
}

.section-heading h2 {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 8px;
}

@media (min-width: 768px) {
  .section-heading h2 {
    font-size: var(--text-3xl);
  }
}

.section-heading p {
  font-size: var(--text-base);
  color: var(--on-surface-variant);
  margin: 0;
}

/* ===== Header ===== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  background: rgba(248, 249, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-sm);
}

.header-shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--primary);
}

.brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* ===== Buttons ===== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.35rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

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

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

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

.btn-block {
  width: 100%;
}

/* ===== Hero ===== */

.hero {
  padding: 48px 0 32px;
}

@media (min-width: 768px) {
  .hero {
    padding: 80px 0;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.eyebrow {
  display: inline-block;
  color: var(--secondary);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  line-height: 1.15;
  color: var(--on-surface);
  max-width: 900px;
  margin: 0 auto;
  font-weight: 800;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-4xl);
  }
}

.hero-title .accent {
  color: var(--primary);
}

.hero-title .accent_green {
  color: var(--secondary);
}
.lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--on-surface-variant);
  max-width: 720px;
  margin: 0 auto;
}

.program-quick-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 4px 0 8px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.pill-badge .material-symbols-outlined {
  font-size: 16px;
  color: var(--secondary);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.check-list .material-symbols-outlined {
  color: var(--secondary);
}

/* ===== Social proof ===== */

.hero-social-proof {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .hero-social-proof {
    flex-direction: row;
    gap: 20px;
  }
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  margin-left: -8px;
  object-fit: cover;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.rating-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .rating-block {
    align-items: flex-start;
  }
}

.stars {
  display: inline-flex;
  color: var(--star-gold);
}

.rating-block .rating-value {
  color: var(--on-surface);
  font-weight: 700;
  margin-left: 4px;
}

.rating-block .rating-count {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 0.85rem;
  font-weight: 700;
}

/* ===== Video card ===== */

.video-card {
  position: relative;
  min-height: 240px;
  max-width: 840px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #002b5b, #004b93);
  border: 1px solid var(--outline-variant);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  width: 100%;
  margin: 0 auto;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

@media (min-width: 768px) {
  .video-card {
    min-height: 400px;
    padding: 24px;
  }
}

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

.video-card .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 64px;
  color: #ffffff;
  transition: transform 180ms ease;
}

.video-card:hover .play-icon {
  transform: translate(-50%, -50%) scale(1.1);
}

.video-overlay {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 700;
}

/* ===== Dual CTA cards ===== */

.cta-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

@media (min-width: 640px) {
  .cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.card-featured {
  border: 2px solid var(--secondary);
  background: var(--surface-container);
}

.card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--on-surface-variant);
  flex-grow: 1;
}

.card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.card li .material-symbols-outlined {
  color: var(--secondary);
}

.badge {
  position: absolute;
  top: -14px;
  right: 20px;
  padding: 7px 12px;
  background: var(--secondary);
  color: var(--on-secondary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===== Hiring Partners ===== */

.hiring-partners-section {
  padding: 32px 0;
  background: var(--surface-container-low);
  overflow: hidden;
  position: relative;
}

@media (min-width: 768px) {
  .hiring-partners-section {
    padding: 80px 0;
  }
}

.marquee-container {
  position: relative;
  width: 100%;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
}

/* Side Fade Masks */
.marquee-fade-left,
.marquee-fade-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 120px;
  z-index: 10;
  pointer-events: none;
}

.marquee-fade-left {
  left: 0;
  background: linear-gradient(
    to right,
    var(--surface-container-low),
    transparent
  );
}

.marquee-fade-right {
  right: 0;
  background: linear-gradient(
    to left,
    var(--surface-container-low),
    transparent
  );
}

.marquee-row {
  display: flex;
  overflow: hidden;
  width: 100%;
  user-select: none;
}

.marquee-track {
  display: flex;
  gap: 16px;
  width: max-content;
  will-change: transform;
}

.marquee-track-left {
  animation: marqueeLeft 42s linear infinite;
}

.marquee-track-right {
  animation: marqueeRight 48s linear infinite;
}

/* Pause Marquee Animation on Hover */
.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

.partner-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.partner-badge:hover {
  transform: translateY(-2px);
  border-color: var(--secondary);
  box-shadow: var(--shadow-lg);
}

/* ===== 9 Core SAP Modules Grid ===== */

.modules-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .modules-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.module-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.module-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.8rem;
  background: rgba(0, 54, 111, 0.08);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 24px;
}

.module-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.module-card p {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ===== Faculty / grids ===== */

.faculty-grid,
.benefit-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .faculty-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.faculty-card {
  text-align: center;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 15px;
  box-shadow: var(--shadow-sm);
}

.faculty-card img {
  width: 160px;
  height: 160px;
  clip-path: circle(43%);
  margin: 0 auto 4px;
  object-fit: cover;
  display: block;
}

.faculty-card h3 {
  font-family: var(--font-heading);
  color: var(--on-surface);
  margin: 0 0 8px;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.faculty-card p {
  color: var(--on-surface-variant);
  margin: 0 0 8px;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.faculty-card a {
  color: var(--outline);
  font-weight: 700;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.faculty-card a:hover {
  text-decoration: underline;
}

/* ===== Pipeline ===== */

.pipeline-grid {
  position: relative;
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

.step-number {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--on-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(0, 54, 111, 0.15);
}

.pipeline-step h3 {
  font-family: var(--font-heading);
  color: var(--on-surface);
}

.pipeline-step p {
  color: var(--on-surface-variant);
}

@media (max-width: 767px) {
  .pipeline-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-left: 8px;
  }

  .pipeline-grid::before {
    content: "";
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 32px;
    width: 2px;
    background: var(--outline-variant);
    z-index: 1;
  }

  .pipeline-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 2px;
    text-align: left;
    position: relative;
    z-index: 2;
  }

  .step-number {
    grid-row: 1 / span 2;
    width: 48px;
    height: 48px;
    font-size: 1.3rem;
    margin: 0;
    border-radius: var(--radius-sm);
  }

  .pipeline-step h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    align-self: center;
    font-size: 1.05rem;
  }

  .pipeline-step p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    font-size: 0.88rem;
  }
}

@media (min-width: 768px) {
  .pipeline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .pipeline-grid::before {
    content: "";
    position: absolute;
    top: 36px;
    left: calc(100% / 8);
    right: calc(100% / 8);
    height: 2px;
    background: var(--outline-variant);
    z-index: 1;
  }

  .pipeline-step {
    position: relative;
    z-index: 2;
    text-align: center;
  }

  .step-number {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    font-size: 1.6rem;
  }

  .pipeline-step h3 {
    font-size: 1.15rem;
    margin: 0 0 8px;
  }

  .pipeline-step p {
    margin: 0;
  }
}

/* ===== Certification ===== */

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

.certification-shell img {
  max-width: 350px;
  width: 90%;
  margin: 24px auto 0;
  border-radius: var(--radius-lg);
  border: 4px solid var(--surface-container-lowest);
  box-shadow: var(--shadow-lg);
}

/* ===== Benefit cards ===== */

.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

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

.benefit-card .icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 0.8rem;
  background: rgba(23, 109, 38, 0.12);
  color: var(--secondary);
  display: grid;
  place-items: center;
}

.benefit-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--primary);
  margin: 0;
}

.benefit-card p {
  margin: 0;
  color: var(--on-surface-variant);
  font-size: 0.9rem;
}

.benefit-card.highlight {
  border: 2px solid var(--secondary);
  background: var(--secondary-container);
  position: relative;
}

.benefit-card.highlight .tag {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--secondary);
  color: var(--on-secondary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 0 var(--radius-lg) 0 var(--radius-sm);
}

.benefit-card.highlight h3,
.benefit-card.highlight p {
  color: var(--on-secondary-container);
}

/* ===== FAQ ===== */

.faq-list {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--outline-variant);
  padding-bottom: 12px;
}

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

.faq-icon {
  transition: transform 180ms ease;
  flex-shrink: 0;
}

.faq-answer {
  display: none;
  padding: 0 0 16px;
  color: var(--on-surface-variant);
  margin: 0;
}

/* ===== Final CTA ===== */

.final-cta {
  background: linear-gradient(135deg, var(--primary-container), var(--primary));
  color: var(--on-primary);
  text-align: center;
}

.final-cta .section-heading h2 {
  color: var(--on-primary);
}

.final-cta .batch-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  color: var(--secondary-container);
  margin-bottom: 24px;
}

.final-cta-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

@media (min-width: 640px) {
  .final-cta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.final-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--on-primary);
  padding: 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.final-card.featured {
  background: var(--surface-container-lowest);
  border: 2px solid var(--secondary);
  color: var(--on-surface);
}

.final-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--on-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.final-card.featured h3 {
  color: var(--primary);
}

.final-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  flex-grow: 1;
}

.final-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.85);
}

.final-card.featured li {
  color: var(--on-surface-variant);
}

/* ===== Student success ===== */

.student-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .student-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.student-grid img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.student-list {
  display: grid;
  gap: 16px;
}

.student-item {
  padding: 20px 24px;
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-container-lowest);
  box-shadow: var(--shadow-sm);
}

.student-item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--primary);
  margin: 0 0 6px;
}

.student-item p {
  margin: 0;
  color: var(--on-surface-variant);
}

/* ===== Footer ===== */

.site-footer {
  background: var(--primary);
  color: var(--on-primary);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
    gap: 40px;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.footer-brand a {
  display: inline-block;
  background-color: #fddb55;
  padding: 12px 20px;
  border-radius: 12px;
  margin-left: -20px;
  transition: background-color 0.2s ease;
}

.footer-brand a:hover {
  background-color: #e6b800;
}

.footer-about-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.footer-social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff !important;
  text-decoration: none;
  margin: 0 !important;
  transition: background 180ms ease;
}

.social-icon:hover {
  background: var(--secondary);
}

.footer-address-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 16px;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.text-green {
  color: #22c55e !important;
}

.footer-quick-links {
  display: flex;
  flex-direction: column;
}

.site-footer h4 {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 400;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-footer a:hover {
  color: var(--secondary-container);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

@media (max-width: 767px) {
  .footer-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

/* ===== WhatsApp float ===== */

.whatsapp-float {
  position: fixed;
  right: 0;
  top: 60%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  padding: 8px 4px;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 6px 0 0 6px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 54, 111, 0.2);
  transition: all 200ms ease;
  text-decoration: none;
}

@media (min-width: 768px) {
  .whatsapp-float {
    padding: 12px 6px;
    border-radius: 8px 0 0 8px;
    top: 50%;
  }
}

.whatsapp-float:hover {
  background: #002650;
}

.whatsapp-float .chat-icon {
  font-size: 16px;
  color: #ffffff;
}

@media (min-width: 768px) {
  .whatsapp-float .chat-icon {
    font-size: 20px;
  }
}

.whatsapp-float span:not(.chat-icon) {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-heading);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #ffffff;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .whatsapp-float span:not(.chat-icon) {
    font-size: 0.6rem;
  }
}

/* ===== Modal ===== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 28, 47, 0.75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 300;
  overflow-y: auto;
}

/* ===== Modal ===== */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(13, 28, 47, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  z-index: 99999 !important;
  overflow-y: auto;
  overflow-x: hidden;
  touch-action: manipulation;
}

.modal.hidden {
  display: none !important;
}

@media (max-width: 519px) {
  .modal {
    padding: 8px;
    align-items: flex-start;
  }
}

.modal-card {
  position: relative;
  width: min(100%, 580px);
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 16px;
  background: #ffffff;
  box-shadow:
    0 24px 60px rgba(13, 28, 47, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  scrollbar-width: thin;
  scrollbar-color: var(--outline-variant) transparent;
  animation: modalPop 280ms cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

@media (max-width: 519px) {
  .modal-card {
    width: 100%;
    margin: auto;
    max-height: 96vh;
    border-radius: 14px;
  }
}

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-card::-webkit-scrollbar {
  width: 5px;
}

.modal-card::-webkit-scrollbar-track {
  background: transparent;
}

.modal-card::-webkit-scrollbar-thumb {
  background-color: var(--outline-variant);
  border-radius: 4px;
}

.modal-header {
  position: relative;
  background: linear-gradient(135deg, #002b5b, #004b93);
  color: #ffffff;
  padding: 16px 20px 14px;
  border-radius: 16px 16px 0 0;
  text-align: center;
  overflow: hidden;
}

.modal-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e0f2fe;
}

.banner-tag {
  background: var(--secondary);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 3px;
  color: #ffffff;
}

.badge-fire {
  display: inline-block;
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 700;
  margin-left: 4px;
  vertical-align: middle;
}

.modal-subtitle {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.85);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  color: #ffffff !important;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition:
    background 150ms ease,
    transform 150ms ease;
  z-index: 10;
}

.modal-close .material-symbols-outlined {
  color: #ffffff !important;
  font-size: 18px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.modal-body {
  padding: 16px 18px 18px;
}

.modal-body form {
  display: grid;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

.form-row {
  display: grid;
  gap: 10px;
  width: 100%;
}

@media (min-width: 520px) {
  .form-row.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  min-width: 0;
}

#applyModal [hidden] {
  display: none !important;
}

.field-group label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--on-surface);
  letter-spacing: 0.01em;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 46px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #d6e0eb;
  border-radius: 12px;
  transition: all 180ms ease;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.input-wrapper:hover {
  border-color: #9fb4ca;
  background: #ffffff;
}

.input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow:
    0 0 0 3px rgba(0, 54, 111, 0.12),
    0 10px 24px rgba(15, 23, 42, 0.08);
  background: #ffffff;
}

.field-icon {
  position: absolute;
  top: 23px;
  left: 9px;
  transform: translateY(-50%);
  font-size: 17px;
  color: #00366f;
  opacity: 0.75;
  pointer-events: none;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  border: 0;
  background: transparent;
  min-height: 46px;
  padding: 0 0.85rem 0 36px;
  font-size: 0.9rem;
  line-height: 1.25;
  color: var(--on-surface);
  border-radius: 12px;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  outline: none;
}

/* iOS Safari font zoom fix */
@media (max-width: 767px) {
  .input-wrapper input,
  .input-wrapper select {
    font-size: 16px;
  }
}

.input-wrapper select {
  padding-right: 40px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.native-select-hidden {
  position: absolute !important;
  inset: 0 !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  padding: 0 !important;
}

.custom-select {
  position: relative;
  z-index: 2;
  width: 100%;
  min-width: 0;
}

.custom-select__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 0 12px 0 36px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--on-surface);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.25;
  text-align: left;
}

.custom-select__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border-radius: 999px;
  background: #eef4fb;
  color: var(--primary);
  font-size: 18px;
  transition: transform 180ms ease;
}

.custom-select.is-open .custom-select__icon {
  transform: rotate(180deg);
}

.custom-select__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  display: none;
  max-height: min(230px, 45vh);
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #c9d8e8;
  border-radius: 12px;
  background: #ffffff;
  background-clip: padding-box;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.22),
    0 0 0 999px rgba(255, 255, 255, 0.01);
  z-index: 10050;
  box-sizing: border-box;
}

.custom-select.is-open .custom-select__list {
  display: grid;
  gap: 0;
}

.custom-select__option {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--on-surface);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  line-height: 1.25;
  text-align: left;
}

.custom-select__option + .custom-select__option {
  margin-top: 2px;
}

.custom-select__option:hover,
.custom-select__option[aria-selected="true"] {
  background: #eaf4ff;
  color: var(--primary);
}

.input-wrapper > .select-arrow,
.country-select-wrapper > .country-arrow {
  display: none;
}

.select-arrow {
  position: absolute;
  right: 12px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef4fb;
  font-size: 18px;
  color: var(--primary);
  pointer-events: none;
  transition: transform 180ms ease;
}

.input-wrapper:focus-within .select-arrow {
  color: var(--primary);
  background: #e5f1ff;
}

.country-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  min-width: 92px;
  border-right: 1px solid #d6e0eb;
  background: #eef5fc;
  border-radius: 12px 0 0 12px;
  flex-shrink: 0;
  transition: background-color 180ms ease;
  overflow: visible;
}

.country-select-wrapper:hover {
  background: #e2e8f0;
}

.country-select {
  min-height: 46px !important;
  padding: 0 24px 0 10px !important;
  font-size: 0.84rem !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 12px 0 0 12px !important;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  max-width: 112px;
}

.country-select-wrapper .custom-select__button {
  padding: 0 10px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.country-select-wrapper .custom-select__list {
  min-width: 180px;
}

.country-arrow {
  position: absolute;
  right: 5px;
  font-size: 16px;
  color: var(--primary);
  pointer-events: none;
}

.phone-wrapper input {
  padding-left: 10px !important;
}

@media (max-width: 640px) {
  .input-wrapper {
    min-height: 48px;
    border-radius: 11px;
  }

  .input-wrapper input,
  .input-wrapper select {
    min-height: 48px;
    padding-left: 34px;
    padding-right: 38px;
  }

  .phone-wrapper {
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .phone-wrapper:focus-within {
    box-shadow: none;
  }

  .phone-wrapper .country-select-wrapper {
    width: 100%;
    min-height: 48px;
    border: 1px solid #d6e0eb;
    border-radius: 11px 11px 0 0;
  }

  .phone-wrapper .country-select {
    max-width: none;
    width: 100%;
    border-radius: 11px 11px 0 0 !important;
  }

  .phone-wrapper input {
    min-height: 48px;
    border: 1px solid #d6e0eb;
    border-top: 0;
    border-radius: 0 0 11px 11px !important;
    background: #ffffff;
    padding-left: 14px !important;
  }
}

.required {
  color: #ba1a1a;
}

/* ===== Form Error Validation Styles ===== */

.input-wrapper.has-error {
  border-color: #dc2626 !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.input-wrapper.has-error .field-icon,
.input-wrapper.has-error .select-arrow {
  color: #dc2626 !important;
}

.error-msg {
  display: none;
  align-items: flex-start;
  gap: 4px;
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #dc2626;
  line-height: 1.25;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.error-msg.visible {
  display: flex;
}

.error-msg-icon {
  font-size: 14px;
  color: #dc2626;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Custom Checkbox */
.checkbox-field-group {
  justify-content: flex-end;
}

.custom-checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-top: 14px;
  user-select: none;
}

.custom-checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark-box {
  width: 20px;
  height: 20px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  background: #f8fafc;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 180ms ease;
}

.check-icon {
  font-size: 15px;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.6);
  transition: all 150ms ease;
}

.custom-checkbox-container input:checked ~ .checkmark-box {
  background: var(--primary);
  border-color: var(--primary);
}

.custom-checkbox-container input:checked ~ .checkmark-box .check-icon {
  opacity: 1;
  transform: scale(1);
}

.checkbox-label-text {
  font-size: 0.8rem;
  color: var(--on-surface-variant);
  line-height: 1.3;
}

/* Submit button & Security trust bar */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, #00366f, #1e4d8c);
  color: #ffffff;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 18px rgba(0, 54, 111, 0.25);
  transition: all 180ms ease;
  cursor: pointer;
  border: 0;
  margin-top: 4px;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 54, 111, 0.35);
  background: linear-gradient(135deg, #002b5b, #174278);
}

.submit-btn .btn-arrow {
  font-size: 19px;
  transition: transform 180ms ease;
}

.submit-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.security-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.74rem;
  color: #1f732b;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 2px;
}

.lock-icon {
  font-size: 15px;
}

.form-note {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--on-surface-variant);
  text-align: center;
}

.form-note a {
  color: var(--primary);
  text-decoration: underline;
}

/* ===== Placeholder styling ===== */

.placeholder {
  color: var(--outline);
  font-style: italic;
}

.honeypot {
  display: none;
}

/* ===== Multi-Step Modal Wizard Styles ===== */

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.wizard-step-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.5;
  transition: all 200ms ease;
}

.wizard-step-badge.active,
.wizard-step-badge.completed {
  opacity: 1;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.wizard-step-badge.active .step-num {
  background: var(--secondary);
  border-color: var(--secondary);
}

.wizard-step-badge.completed .step-num {
  background: #10b981;
  border-color: #10b981;
}

.step-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
}

.wizard-step-line {
  height: 2px;
  width: 24px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  transition: background 200ms ease;
}

.wizard-step-line.active {
  background: var(--secondary);
}

.wizard-step-container {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.wizard-step-container.active {
  display: flex;
  animation: fadeInStep 260ms ease;
}

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-intro-text {
  margin: 0 0 4px;
  font-size: 0.88rem;
  color: var(--primary);
  border-left: 3px solid var(--secondary);
  padding-left: 10px;
  line-height: 1.3;
}

/* Step 2: Interest Modules Grid */
.interest-modules-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 540px) {
  .interest-modules-grid {
    grid-template-columns: 1fr;
  }
}

.interest-module-card {
  position: relative;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 180ms ease;
  display: block;
}

.interest-module-card.full-width {
  grid-column: 1 / -1;
}

.interest-module-card:hover {
  border-color: var(--primary);
  background: #ffffff;
}

.interest-module-card input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.interest-module-card input:checked + .module-card-content {
  border-color: var(--primary);
}

.interest-module-card:has(input:checked) {
  border-color: var(--primary);
  background: #f0f7ff;
  box-shadow: 0 0 0 2px rgba(0, 54, 111, 0.15);
}

.module-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.module-card-tag {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  background: #e2e8f0;
  color: var(--primary);
  padding: 2px 7px;
  border-radius: 999px;
}

.energy-tag {
  background: #fef3c7;
  color: #b45309;
}

.card-check-icon {
  font-size: 18px;
  color: #cbd5e1;
  transition: color 180ms ease;
}

.interest-module-card:has(input:checked) .card-check-icon {
  color: var(--secondary);
}

.module-card-content h4 {
  margin: 0 0 4px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.3;
}

.module-card-content p {
  margin: 0;
  font-size: 0.74rem;
  color: var(--on-surface-variant);
  line-height: 1.35;
}

.sub-modules-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #cbd5e1;
}

.sub-module-badge {
  font-size: 0.7rem;
  color: #334155;
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Step 3: Timeline & Session Option Styles */
.timeline-radio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 480px) {
  .timeline-radio-grid {
    grid-template-columns: 1fr;
  }
}

.timeline-radio-card {
  position: relative;
  cursor: pointer;
}

.timeline-radio-card input {
  position: absolute;
  opacity: 0;
}

.timeline-radio-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 8px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.78rem;
  color: var(--on-surface);
  transition: all 180ms ease;
  text-align: center;
}

.timeline-radio-card input:checked + .timeline-radio-content {
  border-color: var(--primary);
  background: #f0f7ff;
  color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 54, 111, 0.15);
}

.session-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.session-option-card {
  position: relative;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 180ms ease;
  display: block;
}

.session-option-card.featured-option {
  border-color: var(--secondary);
}

.session-option-card input {
  position: absolute;
  opacity: 0;
}

.session-option-card:has(input:checked) {
  border-color: var(--primary);
  background: #f0f7ff;
  box-shadow: 0 0 0 2.5px rgba(0, 54, 111, 0.15);
}

.option-badge {
  font-size: 0.6rem;
  font-weight: 800;
  background: var(--secondary);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
  display: inline-block;
}

.session-option-content h4 {
  margin: 0 0 3px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--on-surface);
}

.session-option-content p {
  margin: 0;
  font-size: 0.74rem;
  color: var(--on-surface-variant);
  line-height: 1.35;
}

.schedule-purpose-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #edf6ff 100%);
  color: var(--on-surface);
  box-shadow: 0 8px 18px rgba(0, 54, 111, 0.08);
}

.schedule-purpose-card .material-symbols-outlined {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #ffffff;
  color: var(--primary);
  font-size: 20px;
  box-shadow: inset 0 0 0 1px #dbeafe;
}

.schedule-purpose-card strong {
  display: block;
  font-size: 0.92rem;
  line-height: 1.25;
}

.schedule-purpose-card p {
  margin: 4px 0 0;
  color: var(--on-surface-variant);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
}

.specialist-contact-card {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
}

.specialist-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.specialist-info span {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
}

.specialist-info strong {
  font-size: 0.78rem;
  color: var(--primary);
  display: block;
}

.specialist-info p {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: var(--on-surface-variant);
  line-height: 1.3;
}

.wizard-nav-btns {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.wizard-nav-btns button {
  flex: 1;
}

@media (max-width: 520px) {
  .wizard-nav-btns {
    flex-direction: column;
  }

  .wizard-nav-btns button {
    width: 100%;
  }
}

.btn-outline {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: var(--on-surface);
  font-weight: 700;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: all 180ms ease;
}

.btn-outline:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

/* ===== Short Module Description ===== */
.module-desc-short {
  margin: 0;
  font-size: 0.73rem;
  color: var(--on-surface-variant);
  line-height: 1.35;
}

/* ===== Enhanced Interest Module Card Interactions ===== */
.interest-module-card {
  transform: translateY(0);
}

.interest-module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 54, 111, 0.08);
}

.interest-module-card:has(input:checked) {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 54, 111, 0.12);
}

.interest-module-card:has(input:checked) .module-card-tag {
  background: var(--primary);
  color: #ffffff;
}

/* Subtle pulse animation on check */
@keyframes cardPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.interest-module-card:has(input:checked) .card-check-icon {
  animation: cardPulse 300ms ease;
}

/* ===== Interactive Date Chip Picker ===== */
.interactive-date-picker {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.interactive-date-picker::-webkit-scrollbar {
  display: none;
}

.date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 200ms ease;
  flex-shrink: 0;
  min-width: 58px;
  font-family: inherit;
}

.date-chip:hover {
  border-color: var(--primary);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 54, 111, 0.08);
}

.date-chip.active {
  background: linear-gradient(135deg, #00366f, #1e4d8c);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 54, 111, 0.25);
  transform: translateY(-2px);
}

.date-chip.active .chip-day,
.date-chip.active .chip-date {
  color: #ffffff;
}

.chip-day {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--on-surface);
  line-height: 1.2;
}

.chip-date {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  line-height: 1.2;
}

.custom-date-btn {
  gap: 3px;
  flex-direction: row;
  padding: 10px 12px;
}

.custom-date-btn .chip-day {
  font-size: 0.68rem;
}

/* ===== Inline custom calendar & hourly time selector ===== */
.custom-calendar {
  display: none;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 54, 111, 0.12);
}

.custom-calendar.open {
  display: block;
}
.custom-calendar__header {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  margin-bottom: 12px;
  text-align: center;
  color: var(--on-surface);
}
.calendar-nav {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--primary);
  cursor: pointer;
}
.calendar-nav:hover:not(:disabled) {
  background: #e0ecfa;
}
.calendar-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.custom-calendar__weekdays,
.custom-calendar__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}
.custom-calendar__weekdays {
  margin-bottom: 5px;
}
.custom-calendar__weekdays span {
  color: var(--on-surface-variant);
  font-size: 0.7rem;
  font-weight: 800;
  text-align: center;
}
.calendar-day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--on-surface);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}
.calendar-day:hover:not(:disabled),
.calendar-day:focus-visible {
  border-color: var(--primary);
  background: #eaf2fc;
  outline: none;
}
.calendar-day.today {
  color: var(--primary);
  border-color: #9fc0e7;
}
.calendar-day.selected {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 3px 8px rgba(0, 54, 111, 0.25);
}
.calendar-day:disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.interactive-time-slots {
  display: none;
}
.hourly-time-select {
  width: 100%;
  min-height: 50px;
  padding: 0 42px 0 46px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  appearance: none;
  background: #f8fafc
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300366f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 14px center;
  color: var(--on-surface);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: inset 22px 0 0 -20px var(--primary);
}
.hourly-time-select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow:
    0 0 0 3px rgba(0, 54, 111, 0.12),
    inset 22px 0 0 -20px var(--primary);
}

/* Legacy time pill styles retained for other embedded modal variants. */
.interactive-time-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 480px) {
  .interactive-time-slots {
    grid-template-columns: 1fr;
  }
}

.time-slot-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 200ms ease;
  font-family: inherit;
  text-align: left;
}

.time-slot-pill:hover {
  border-color: var(--primary);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 54, 111, 0.08);
}

.time-slot-pill.active {
  background: linear-gradient(135deg, #00366f, #1e4d8c);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 54, 111, 0.25);
  transform: translateY(-2px);
}

.time-slot-pill.active strong,
.time-slot-pill.active small {
  color: #ffffff;
}

.slot-icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
}

.time-slot-pill strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--on-surface);
  line-height: 1.2;
  transition: color 180ms ease;
}

.time-slot-pill small {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  line-height: 1.2;
  transition: color 180ms ease;
}

/* ===== Schedule wheel picker ===== */
.wheel-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 520px;
  min-height: 70px;
  padding: 10px 12px;
  border: 1px solid #d6e0eb;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 22px rgba(0, 54, 111, 0.09);
  box-sizing: border-box;
}

.wheel-picker:focus-within {
  border-color: #1683ed;
  box-shadow:
    0 0 0 3px rgba(22, 131, 237, 0.13),
    0 12px 28px rgba(0, 54, 111, 0.1);
}

.wheel-picker__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #eef5fc;
  color: var(--primary);
  font-size: 21px;
}

.wheel-picker select {
  min-width: 0;
  flex: 1 1 0;
  height: 46px;
  padding: 0 24px 0 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  appearance: none;
  background: #ffffff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2300366f' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 7px center;
  color: #1f2d34;
  cursor: pointer;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  text-align: center;
  box-shadow: inset 0 0 0 1px #e5edf5;
}

.wheel-picker select:focus {
  outline: 0;
  border-color: #1683ed;
  background-color: #f1f7ff;
}

.wheel-picker__separator {
  color: #a4adb2;
  font-size: 1.55rem;
  font-weight: 300;
}
.wheel-picker--time {
  max-width: 390px;
}
.wheel-picker--time #wheelTimePeriod {
  flex: 0.8 1 0;
}

@media (max-width: 520px) {
  .wheel-picker {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 4px;
    min-height: auto;
    padding: 8px;
    border-radius: 12px;
  }

  .wheel-picker__icon {
    display: none;
  }

  .wheel-picker select {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding-left: 4px;
    padding-right: 20px;
    font-size: 0.85rem;
  }

  .wheel-picker__separator {
    flex-shrink: 0;
    font-size: 1rem;
  }
}

/* ===== Modal-safe custom dropdowns ===== */
#applyModal .custom-select__list {
  max-width: calc(100vw - 44px);
  isolation: isolate;
}

#applyModal .custom-select__option {
  white-space: normal;
  overflow-wrap: anywhere;
  background: #ffffff;
}

#applyModal .wheel-picker .custom-select {
  min-width: 62px;
  flex: 1 1 0;
}

#applyModal .wheel-picker .custom-select__button {
  justify-content: center;
  height: 46px;
  min-height: 46px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #e5edf5;
  color: #1f2d34;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
}

#applyModal .wheel-picker .custom-select__text {
  flex: 0 1 auto;
  min-width: 2ch;
  text-align: center;
}

#applyModal .wheel-picker .custom-select__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: #eef5fc;
  font-size: 16px;
}

#applyModal .wheel-picker .custom-select__list {
  left: 50%;
  right: auto;
  width: min(190px, calc(100vw - 48px));
  transform: translateX(-50%);
  max-height: 178px;
  overscroll-behavior: contain;
  background: #ffffff;
}

#applyModal .wheel-picker .custom-select__option {
  text-align: center;
  font-weight: 750;
  padding: 9px 10px;
  white-space: nowrap;
}

#applyModal .wheel-picker--time {
  max-width: 100%;
}

#applyModal .wheel-picker--time #wheelTimePeriod + .custom-select {
  flex: 0.82 1 0;
  min-width: 64px;
}

@media (max-width: 520px) {
  #applyModal .wheel-picker {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  #applyModal .wheel-picker__icon {
    display: none;
  }

  #applyModal .wheel-picker .custom-select {
    flex: 1;
    min-width: 0;
  }

  #applyModal .wheel-picker .custom-select__button {
    height: 44px;
    min-height: 44px;
    padding: 0 4px;
    font-size: 0.8rem;
    gap: 2px;
  }

  #applyModal .wheel-picker .custom-select__list {
    display: none;
    width: 100%;
    max-height: 154px;
    padding: 4px;
  }

  #applyModal .wheel-picker .custom-select.is-open .custom-select__list {
    display: block;
  }

  #applyModal .wheel-picker .custom-select__option {
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 0.86rem;
    background: #ffffff;
  }
}

/* Dropdowns open inline so lower fields are pushed down instead of showing behind. */
#applyModal .custom-select.is-open {
  z-index: 20;
}

#applyModal .custom-select.is-open .custom-select__list {
  position: static;
  left: auto;
  right: auto;
  top: auto;
  width: 100%;
  max-width: 100%;
  margin-top: 6px;
  transform: none;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

#applyModal .input-wrapper:has(.custom-select.is-open),
#applyModal .country-select-wrapper:has(.custom-select.is-open),
#applyModal .wheel-picker:has(.custom-select.is-open) {
  align-items: flex-start;
}

#applyModal .wheel-picker:has(.custom-select.is-open) {
  flex-wrap: wrap;
}

#applyModal .wheel-picker .custom-select.is-open {
  flex-basis: auto;
  order: 0;
}

#applyModal .wheel-picker .custom-select.is-open .custom-select__button {
  justify-content: space-between;
}

@media (max-width: 520px) {
  #applyModal .wheel-picker:has(.custom-select.is-open) {
    display: flex;
    flex-wrap: wrap;
  }

  #applyModal
    .wheel-picker:has(.custom-select.is-open)
    .wheel-picker__separator {
    display: inline;
  }

  #applyModal .wheel-picker .custom-select.is-open .custom-select__list {
    max-height: 180px;
  }
}

#applyModal .wheel-picker__icon {
  align-self: flex-start;
  margin-top: 6px;
}

#applyModal .custom-select__button {
  flex-shrink: 0;
}
