/* ── TOKENS ─────────────────────────── */
:root {
  --navy-950: #111111;
  --navy-900: #1a1a1a;
  --navy-800: #242424;
  --navy-700: #333333;
  --navy-600: #444444;
  --blue-600: #1d4ed8;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-300: #93c5fd;
  --blue-200: #bfdbfe;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --slate-900: #0f172a;
  --slate-700: #1e3a5f;
  --slate-500: #475569;
  --slate-400: #64748b;
  --slate-300: #cbd5e1;
  --slate-600: #475569;
  --slate-200: #cbd5e1;
  --slate-100: #e2ecf8;
  --slate-50: #f4f7fc;
  --success: #16a34a;
  --success-bg: #dcfce7;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --shadow-sm: 0 2px 8px rgba(7, 20, 40, .09);
  --shadow-md: 0 6px 24px rgba(7, 20, 40, .14);
  --shadow-lg: 0 12px 44px rgba(7, 20, 40, .18);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --ease: .2s ease;
  --ease-md: .3s ease;
}

/* ── BASE ─────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 116px;
}

[hidden] { display: none !important; }

body {
  font-family: 'Noto Sans', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-900);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: 'Noto Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-900)
}

a {
  color: var(--blue-500);
  text-decoration: none;
  transition: color var(--ease)
}

a:hover {
  color: var(--blue-400)
}

/* ── NAVBAR ─────────────────────────── */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 17, .97);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(14px);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Noto Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.nav-logo-img {
  width: 100%;
  max-height: 72px;
  max-width: 420px;
  object-fit: contain;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-500);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  color: #fff;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, .68);
  font-size: 16px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  transition: all var(--ease);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .09)
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--danger);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(220, 38, 38, .4);
  transition: all var(--ease);
}

.nav-cta:hover {
  background: #b91c1c !important;
  transform: translateY(-1px)
}

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

@media(max-width:1099px) {
  .has-navigation .nav-links {
    display: none
  }

  .has-navigation .nav-links.is-mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(17, 17, 17, .97);
    padding: 16px 24px 24px;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .nav-mobile-btn {
    display: block
  }

  .navbar-inner { height: auto; min-height: 88px; flex-wrap: wrap; gap: 12px; padding-block: 8px; }
  .nav-logo { min-width: 0; max-width: calc(100% - 60px); }
  .nav-links { flex-wrap: wrap; }
  .nav-links a { display: block; min-height: 44px; }
  .nav-mobile-btn { min-width: 44px; min-height: 44px; }
}

/* ── HERO ─────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%);
  padding: 100px 0 80px;
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
}

/* Grid texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, .08) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* Radial blue glow */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 40%, rgba(37, 99, 235, .18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 50% at 10% 80%, rgba(37, 99, 235, .1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, .18);
  border: 1px solid rgba(37, 99, 235, .35);
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-tag span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-400);
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .5;
    transform: scale(.8)
  }
}

.hero h1 {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--blue-400), var(--blue-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: rgba(255, 255, 255, .65);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--blue-500);
  color: #fff;
  padding: 15px 32px;
  border-radius: var(--r-md);
  font-family: 'Noto Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 99, 235, .5);
  transition: all var(--ease);
  text-decoration: none;
}

.hero-btn-primary:hover {
  background: var(--blue-600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 99, 235, .55);
}

.hero-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .85);
  padding: 14px 28px;
  border-radius: var(--r-md);
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, .18);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all var(--ease);
}

.hero-btn-ghost:hover {
  background: rgba(255, 255, 255, .18);
  color: #fff
}

/* Stats strip */
.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
  gap: 2px
}

.hero-stat-num {
  font-family: 'Noto Sans', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat-num span {
  color: var(--blue-400)
}

.hero-stat-label {
  font-size: 12px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .05em;
  text-transform: uppercase
}

/* Right decorative panel */
.hero-visual {
  position: relative;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-xl);
  padding: 28px;
  backdrop-filter: blur(6px);
}

.hero-visual-title {
  font-family: 'Noto Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 12px;
  transition: all var(--ease);
}

.cert-badge:hover {
  background: rgba(255, 255, 255, .1)
}

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.cert-icon-blue {
  background: rgba(37, 99, 235, .25);
}

.cert-icon-blue i {
  color: #7bb8fa;
}

.cert-icon-green {
  background: rgba(22, 163, 74, .2);
}

.cert-icon-green i {
  color: #6ee7b7;
}

.cert-icon-amber {
  background: rgba(217, 119, 6, .2);
}

.cert-icon-amber i {
  color: #fcd34d;
}

.cert-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px
}

.cert-info p {
  font-size: 12px;
  color: rgba(255, 255, 255, .5)
}

.cert-badge .badge-arrow {
  color: rgba(255, 255, 255, .3);
  font-size: 18px;
  margin-left: auto
}

/* ── SECTION SHARED ─────────────────── */
.section {
  padding: 88px 0
}

.container-custom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-50);
  color: var(--blue-500);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
  border: 1px solid var(--blue-100);
}

.section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 12px;
}

.section-sub {
  font-size: 16px;
  color: var(--slate-500);
  line-height: 1.75;
  max-width: 560px
}

.accent-bar {
  width: 40px;
  height: 3px;
  background: var(--blue-500);
  border-radius: 2px;
  margin-top: 14px
}

/* ── TRAINING CARDS ─────────────────── */
.training-section {
  padding: 88px 0;
  background: var(--slate-50)
}

.training-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow-wrap: anywhere;
}

.tc-heading {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.tc-heading-copy {
  min-width: 0;
}

.tc-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.training-card h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.tc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.tc-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--slate-500);
  padding: 6px 0;
  border-bottom: 1px solid var(--slate-100);
}

.tc-features li:last-child {
  border: none;
}

.tc-features li::before {
  content: "";
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  margin-top: .65em;
  border-radius: 50%;
  background: var(--blue-400);
}

.tc-subject-text {
  min-width: 0;
}

.tc-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 6px;
  display: inline-block;
}

.tc-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--blue-200);
  border-radius: var(--r-md);
  background: var(--blue-50);
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-600);
  margin-top: auto;
}

.tc-link:hover {
  background: var(--blue-100);
  border-color: var(--blue-500);
  color: var(--blue-600);
}

.tc-link:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
}

/* ── BOOKING SECTION ─────────────────── */
.booking-section {
  padding: 88px 0
}

.booking-form-wrap {
  background: #fff;
  border-radius: var(--r-xl);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-lg);
  padding: 40px 44px;
}

.booking-side {
  position: sticky;
  top: 116px;
}

/* Mini Calendar */
.calendar-card {
  background: #fff;
  border-radius: var(--r-xl);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  padding: 24px;
}

.cal-heading {
  font-size: 19px;
  margin-bottom: 8px;
}

.cal-selection {
  margin: 12px 0 0;
  color: var(--blue-600);
  font-size: 14px;
  font-weight: 700;
}

.cal-field-link {
  padding: 8px 0;
  min-height: 44px;
  margin-bottom: 12px;
  border: 0;
  background: transparent;
  color: var(--blue-600);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#inline-calendar:not(:empty) {
  margin-bottom: 28px;
}

.date-slot.is-calendar-active .field-label {
  color: var(--blue-600);
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.cal-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy-900)
}

.cal-nav {
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-400);
  padding: 4px;
  border-radius: 4px;
  transition: all var(--ease);
  font-size: 14px
}

.cal-nav:hover {
  color: var(--blue-500);
  background: var(--blue-50)
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px
}

.cal-day-name {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: .06em;
  padding: 6px 2px;
}

.cal-day {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 44px;
  padding: 4px 0;
  border: 2px solid transparent;
  background: transparent;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  color: var(--slate-600);
}

.cal-day::before,
.cal-day::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  opacity: 0;
  transition: opacity var(--ease);
  z-index: 0;
}

.cal-day::before {
  left: 0;
  background: rgba(37, 99, 235, .16);
}

.cal-day::after {
  right: 0;
  background: rgba(245, 158, 11, .24);
}

.cal-day span {
  position: relative;
  z-index: 1;
}

.cal-day:not(:disabled):hover {
  background: var(--blue-50);
  color: var(--blue-500)
}

.cal-day.non-bookable {
  background: var(--slate-50);
  color: var(--slate-400);
  font-weight: 600;
  cursor: not-allowed;
}

.cal-day.non-bookable:hover {
  background: var(--slate-50);
  color: var(--slate-400)
}

.cal-day.booked {
  background: transparent;
  color: var(--slate-700);
  font-weight: 600;
}

.cal-day.partly-booked {
  background: transparent;
  color: var(--slate-700);
  font-weight: 600;
}

.cal-day.slot-morning-booked::before,
.cal-day.slot-afternoon-booked::after {
  opacity: 1;
}

.cal-day.slot-morning-booked.slot-afternoon-booked::before {
  background: rgba(220, 38, 38, .28);
}

.cal-day.slot-morning-booked.slot-afternoon-booked::after {
  background: rgba(220, 38, 38, .28);
}

.cal-day.partly-booked:not(:disabled):hover {
  background: var(--blue-50);
  color: var(--slate-900)
}

.cal-day.today {
  border-bottom-color: var(--navy-800);
  font-weight: 800;
}

.cal-day.selected {
  border-color: var(--blue-600);
  color: var(--navy-900);
  font-weight: 800;
}

.cal-day-status {
  min-height: 12px;
  font-size: 10px;
  line-height: 1.2;
}

.cal-day:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 1px;
  z-index: 2;
}

.cal-legend-dot-selected {
  border: 2px solid var(--blue-600);
}

@media (min-width: 768px) {
  .contact-section .col-md-4 {
    display: flex;
  }
  .contact-card {
    flex: 1;
  }
}

.flatpickr-day.fp-slot-has-booking:not(.selected) {
  border-color: transparent;
  color: var(--slate-700);
  font-weight: 600;
}

.flatpickr-day.fp-slot-morning-booked:not(.selected) {
  background: linear-gradient(90deg, rgba(37, 99, 235, .26) 0 50%, transparent 50% 100%);
}

.flatpickr-day.fp-slot-afternoon-booked:not(.selected) {
  background: linear-gradient(90deg, transparent 0 50%, rgba(245, 158, 11, .34) 50% 100%);
}

.flatpickr-day.fp-slot-morning-booked.fp-slot-afternoon-booked:not(.selected) {
  background: linear-gradient(90deg, rgba(220, 38, 38, .24) 0 50%, rgba(220, 38, 38, .36) 50% 100%);
}

.flatpickr-day.fp-slot-has-booking.flatpickr-disabled:not(.selected),
.flatpickr-day.fp-slot-has-booking.flatpickr-disabled:not(.selected):hover {
  color: var(--slate-700);
  opacity: 1;
  cursor: not-allowed;
}

.flatpickr-day.fp-slot-has-booking:not(.selected):hover,
.flatpickr-day.fp-slot-has-booking:not(.selected):focus {
  border-color: rgba(37, 99, 235, .35);
}

.cal-legend {
  display: flex;
  align-items: center;
  gap: 8px 14px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-100);
}

.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--slate-500)
}

.cal-legend-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  border-radius: 3px;
  color: var(--slate-700);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* Form fields */
.field-group {
  margin-bottom: 20px
}

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 7px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--r-md);
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  color: var(--slate-900);
  background: #fff;
  transition: all var(--ease);
  outline: none;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.field-group.has-client-error input,
.field-group.has-client-error select,
.field-group.has-client-error textarea {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.field-group textarea {
  resize: vertical;
  min-height: 100px
}

.field-group select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.field-group .errorlist {
  list-style: none;
  margin-top: 5px;
}

.field-group .errorlist li {
  font-size: 12px;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 4px;
}

.field-group .errorlist li::before {
  content: '⚠ '
}

.client-error { color: #b91c1c; font-size: 13px; }

.field-group.has-client-error .topic-selector {
  border: 1.5px solid rgba(220, 38, 38, .35);
  border-radius: var(--r-md);
  padding: 8px;
}

.topic-selector-help {
  font-size: 14px;
  color: var(--slate-500);
  margin: -2px 0 12px;
}

.topic-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.topic-category {
  min-width: 0;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-lg);
  background: #fff;
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.topic-category:hover {
  border-color: var(--blue-300);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .08);
}

.topic-category.is-expanded {
  border-color: var(--blue-400);
  box-shadow: 0 6px 18px rgba(37, 99, 235, .1);
}

.topic-category.has-selections {
  border-color: var(--blue-400);
  background: var(--blue-50);
}

.topic-category-trigger {
  width: 100%;
  min-height: 104px;
  padding: 16px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--slate-900);
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.topic-category-trigger:hover {
  background: rgba(37, 99, 235, .045);
}

.topic-category-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  background: var(--blue-50);
  color: var(--blue-500);
  font-size: 19px;
}

.has-selections .topic-category-icon {
  background: var(--blue-500);
  color: #fff;
}

.topic-category-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.topic-category-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.topic-category-action {
  min-height: 18px;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--slate-500);
}

.topic-category-action-icon {
  grid-area: 1 / 1;
  color: var(--blue-600);
  visibility: hidden;
}

.has-selections .topic-category-action-icon {
  visibility: visible;
}

/* Reserve both labels' wrapped height so selections never move the title. */
.topic-category-action [data-topic-category-status],
.topic-category-action::before,
.topic-category-action::after {
  grid-area: 1 / 2;
}

.topic-category-action::before {
  content: 'Сэдвүүдийг харах';
  visibility: hidden;
}

.topic-category-action::after {
  content: attr(data-topic-max-status);
  visibility: hidden;
}

.topic-category-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
}

.topic-category-chevron {
  color: var(--slate-400);
  transition: transform var(--ease-md);
}

.topic-category.is-expanded .topic-category-chevron {
  transform: rotate(180deg);
}

.topic-category-panel {
  --topic-max-height: calc(100dvh - 24px);
  position: fixed;
  inset: auto;
  width: min(420px, calc(100vw - 24px));
  max-width: none;
  max-height: var(--topic-max-height);
  margin: 0;
  padding: 0;
  overflow: visible;
  border: 1px solid var(--blue-200);
  border-radius: var(--r-lg);
  background: #fff;
  color: var(--slate-900);
  box-shadow: 0 16px 40px rgba(15, 23, 42, .18), 0 2px 8px rgba(37, 99, 235, .1);
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity .16s ease, transform .16s ease;
  z-index: 1200;
}

.topic-category-panel[open] {
  opacity: 1;
  transform: translateY(0);
}

.topic-category-panel::backdrop {
  background: rgba(15, 23, 42, .08);
}

.topic-category-panel::before {
  content: '';
  position: absolute;
  top: -7px;
  left: var(--topic-arrow-left, 28px);
  width: 13px;
  height: 13px;
  border-top: 1px solid var(--blue-200);
  border-left: 1px solid var(--blue-200);
  background: #fff;
  transform: rotate(45deg);
}

.topic-category-panel.is-above::before {
  top: auto;
  bottom: -7px;
  transform: rotate(225deg);
}

.topic-category-panel-inner {
  max-height: calc(var(--topic-max-height) - 2px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border-radius: inherit;
}

.topic-picker-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--slate-100);
}

.topic-picker-heading {
  min-width: 0;
  flex: 1 1 240px;
}

.topic-picker-kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.topic-picker-title {
  margin: 0;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.4;
}

.topic-picker-help {
  margin: 4px 0 0;
  color: var(--slate-500);
  font-size: 13px;
}

.topic-picker-count {
  flex: 0 0 auto;
  padding: 5px 8px;
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.topic-options {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
}

.topic-picker-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 12px 14px 14px;
  border-top: 1px solid var(--slate-100);
  background: #fff;
}

.topic-picker-done {
  min-height: 44px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--blue-300);
  border-radius: var(--r-md);
  background: var(--blue-50);
  color: var(--blue-600);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.topic-picker-done:hover {
  border-color: var(--blue-500);
  background: var(--blue-100);
}

.topic-picker-done:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 3px;
}

.topic-category-trigger:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: -4px;
  border-radius: inherit;
}

.topic-option {
  position: relative;
  scroll-margin-block: 8px 90px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--slate-200);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 14px;
  color: var(--slate-700);
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.topic-option:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
}

.field-group .topic-option-input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topic-option-check {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  border: 1.5px solid var(--slate-400);
  border-radius: 6px;
  background: #fff;
  color: transparent;
  font-size: 14px;
}

.topic-option:has(.topic-option-input:checked) {
  border-color: var(--blue-500);
  background: var(--blue-50);
  box-shadow: inset 3px 0 0 var(--blue-500);
}

.topic-option:has(.topic-option-input:checked) .topic-option-check {
  border-color: var(--blue-500);
  background: var(--blue-500);
  color: #fff;
}

.topic-option:has(.topic-option-input:focus-visible) {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

.topic-option-content {
  min-width: 0;
  display: grid;
  gap: 4px;
  line-height: 1.55;
}

.topic-package-heading {
  color: var(--navy-900);
  font-size: 14px;
}

.topic-package-note {
  color: var(--slate-500);
  font-size: 12px;
}

.topic-package-topics {
  display: block;
  margin-top: 5px;
  color: var(--slate-700);
}

.topic-package-list {
  display: grid;
  gap: 3px;
  margin: 5px 0 0;
}

/* The server renders one usable set of checkboxes, even if enhancement fails. */
.topic-selector:not(.is-enhanced) .topic-category-grid {
  grid-template-columns: 1fr;
}

.topic-selector:not(.is-enhanced) .topic-category-panel {
  position: static;
  width: auto;
  max-height: none;
  opacity: 1;
  transform: none;
  border: 0;
  box-shadow: none;
}

.topic-selector:not(.is-enhanced) .topic-category-panel::before,
.topic-selector:not(.is-enhanced) .topic-picker-count {
  display: none;
}

.topic-selector:not(.is-enhanced) .topic-category-panel-inner {
  max-height: none;
}

.topic-category-panel.is-detached::before {
  display: none;
}

.form-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--slate-100);
}

.submit-btn {
  width: 100%;
  padding: 15px;
  border-radius: var(--r-md);
  background: var(--blue-500);
  color: #fff;
  font-family: 'Noto Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  letter-spacing: .02em;
  box-shadow: 0 4px 18px rgba(37, 99, 235, .42);
  transition: all var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, .5);
}

.submit-btn:disabled {
  background: var(--slate-300);
  color: var(--slate-500);
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.success-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--success-bg);
  border: 1px solid rgba(22, 163, 74, .25);
  border-radius: var(--r-md);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.success-banner i {
  font-size: 22px;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 1px
}

.success-banner h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 3px
}

.success-banner p {
  font-size: 13px;
  color: #166534
}

/* ── WHY US ─────────────────────────── */
.why-section {
  padding: 88px 0;
  background: var(--slate-50)
}

.why-card {
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px;
  height: 100%;
  transition: all var(--ease-md);
}

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

.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

.why-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 8px
}

.why-card p {
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.7
}

/* ── CONTACT ─────────────────────────── */
.contact-section {
  padding: 88px 0;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800))
}

.contact-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all var(--ease);
  backdrop-filter: blur(4px);
}

.contact-card:hover {
  background: rgba(255, 255, 255, .09);
  border-color: rgba(255, 255, 255, .2)
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(37, 99, 235, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--blue-400);
  margin-bottom: 16px;
}

.contact-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px
}

.contact-card p,
.contact-card a {
  font-size: 14px;
  color: rgba(255, 255, 255, .6)
}

.contact-card a:hover {
  color: var(--blue-300)
}

/* ── FOOTER ─────────────────────────── */
.footer {
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, .06);
  padding: 18px 0;
}

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

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .65);
  font-size: 13px
}

.trust-strip {
  background: #f8faff;
  border-bottom: 1px solid var(--slate-100);
  padding: 18px 0;
}

.trust-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-400);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.trust-items {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  align-items: center;
}

.trust-item {
  font-size: 14px;
  font-weight: 700;
  color: var(--slate-600);
}

.cert-note {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cert-note i {
  color: #4ade80;
  font-size: 15px;
}

.cert-note span {
  font-size: 13px;
  color: rgba(255, 255, 255, .55);
}

.section-tag-inverse {
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .8);
  border-color: rgba(255, 255, 255, .15);
}

.section-sub-inverse {
  color: rgba(255, 255, 255, .6);
}

.tc-icon-blue {
  background: #eff6ff;
}

.tc-icon-blue i {
  color: var(--blue-500);
}

.tc-icon-featured {
  background: rgba(37, 99, 235, .2);
}

.tc-icon-featured i {
  color: var(--blue-300);
}

.tc-icon-warning {
  background: #fff7ed;
}

.tc-icon-warning i {
  color: #d97706;
}

.tc-badge-blue {
  background: var(--blue-50);
  color: var(--blue-500);
}

.tc-badge-featured {
  background: rgba(37, 99, 235, .2);
  color: var(--blue-600);
}

.tc-badge-warning {
  background: #fff7ed;
  color: #d97706;
}

.booking-form-head {
  margin-bottom: 28px;
}

.booking-form-title {
  margin-top: 8px;
}

.booking-form-sub {
  font-size: 15px;
  color: var(--slate-500);
}

.error-banner {
  background: var(--danger-bg);
  border: 1px solid rgba(220, 38, 38, .2);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.error-banner > i {
  color: var(--danger);
  margin-top: 1px;
}

.error-banner p {
  font-size: 14px;
  font-weight: 600;
  color: var(--danger);
  margin-bottom: 4px;
}

.error-banner ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: #991b1b;
}

.empty-subject-message {
  font-size: 13px;
  color: var(--slate-400);
  margin: 0;
}

.field-label-note {
  color: var(--slate-400);
  font-weight: 400;
  text-transform: none;
  font-size: 11px;
}

.privacy-note {
  text-align: center;
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 12px;
}

.cal-nav-group {
  display: flex;
  gap: 4px;
}

.cal-legend-dot-booked {
  background: rgba(220, 38, 38, .28);
}

/* ── MULTI-DATE SLOTS ──────────────────── */
.date-slot-extra {
  margin-top: 14px;
}

.date-slot-sep {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--slate-200);
}

.date-slot-sep span {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-400);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.remove-slot-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-sm);
  border: 1px solid var(--danger);
  background: transparent;
  color: var(--danger);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
  font-family: 'Noto Sans', sans-serif;
}

.remove-slot-btn:hover {
  background: var(--danger-bg);
}

.add-date-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--blue-400);
  background: transparent;
  color: var(--blue-500);
  font-family: 'Noto Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
}

.add-date-btn:hover {
  background: var(--blue-50);
  border-color: var(--blue-500);
  border-style: solid;
}

/* Reached the per-booking slot limit (or a submission is in progress). */
.add-date-btn:disabled {
  background: transparent;
  border-color: var(--blue-400);
  border-style: dashed;
  opacity: .55;
  cursor: not-allowed;
}

.cal-legend-dot-morning {
  background: rgba(37, 99, 235, .16);
  border: 1px solid rgba(37, 99, 235, .3);
}

.cal-legend-dot-afternoon {
  background: rgba(245, 158, 11, .24);
  border: 1px solid rgba(245, 158, 11, .35);
}

.cal-legend-dot-today {
  border-bottom: 2px solid var(--navy-800);
}

.why-icon-blue {
  background: #eff6ff;
}

.why-icon-blue i {
  color: var(--blue-500);
}

.why-icon-success {
  background: #dcfce7;
}

.why-icon-success i {
  color: var(--success);
}

.why-icon-warning {
  background: #fef3c7;
}

.why-icon-warning i {
  color: var(--warning);
}

.why-icon-danger {
  background: #fee2e2;
}

.why-icon-danger i {
  color: var(--danger);
}

.contact-card .contact-meta {
  font-size: 12px;
  margin-top: 4px;
}

.reveal-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media(max-width:767px) {
  .hero {
    padding: 72px 0 60px;
    min-height: auto
  }

  .section {
    padding: 60px 0
  }

  .booking-form-wrap {
    padding: 24px 20px
  }

  .hero-stats {
    gap: 20px
  }

  .booking-side {
    position: static
  }
}

@media (max-width: 575px) {
  .topic-category-grid {
    grid-template-columns: 1fr;
  }

  .topic-category-trigger {
    min-height: 96px;
    padding: 14px;
  }

  body.topic-picker-open {
    overflow: hidden;
  }

  .topic-category-panel {
    --topic-max-height: min(calc(var(--topic-viewport-height, 100dvh) * .78), 680px);
    inset: auto 8px calc(var(--topic-viewport-bottom, 0px) + max(8px, env(safe-area-inset-bottom))) 8px;
    width: auto;
    border-radius: 20px;
    transform: translateY(12px);
  }

  .topic-category-panel[open] {
    transform: translateY(0);
  }

  .topic-category-panel::backdrop {
    background: rgba(15, 23, 42, .46);
  }

  .topic-category-panel::before {
    display: none;
  }

  .topic-picker-head {
    padding: 18px 16px 14px;
  }

  .topic-options {
    padding: 12px;
  }

  .topic-option {
    min-height: 52px;
  }

  .topic-picker-footer {
    padding: 12px;
  }

  .topic-picker-done {
    width: 100%;
    min-height: 48px;
  }
}

/* Let the form use the available desktop width while keeping its sidebar readable. */
@media(min-width:1440px) {
  .container-custom, .navbar-inner { max-width: 1360px; }
}
@media(min-width:1920px) {
  .container-custom, .navbar-inner { max-width: 1480px; }
}
@media(max-width:1199px) {
  .booking-form-wrap { padding: 28px 24px; }
}
@media(max-width:991px) {
  .booking-side { position: static; }
}
@media(max-width:767px) {
  .training-section, .booking-section, .contact-section { padding: 48px 0; }
  .container-custom { padding-inline: 24px; }
  .booking-section .row.g-5 { --bs-gutter-x: 24px; }
  .booking-form-wrap { padding: 24px 18px; }
  .training-card { padding: 20px; }
  .tc-heading { gap: 12px; }
  .training-card h2 { font-size: 19px; }
  .submit-btn { font-size: 14px; padding-inline: 12px; letter-spacing: 0; }
  .footer a, .contact-card { overflow-wrap: anywhere; }
}
.field-group input, .field-group select, .field-group textarea { min-width: 0; max-width: 100%; }
.booking-form-wrap, .calendar-card { overflow-wrap: anywhere; }
.submit-feedback { scroll-margin-top: 116px; }

/* ── SKIP LINK ──────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 9999;
  padding: 8px 16px;
  background: #fff;
  color: var(--blue-500);
  font-weight: 600;
  font-size: 14px;
  border: 2px solid var(--blue-500);
  border-radius: var(--r-md);
  text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* ── FOCUS VISIBILITY ────────────────── */
:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
}

.navbar-wrap :focus-visible,
.contact-section :focus-visible,
.footer :focus-visible {
  outline-color: var(--blue-300);
}

/* ── REDUCED MOTION ──────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-tag span { animation: none; }
  .reveal-card { transition: opacity .3s ease; transform: none; }
  .reveal-card.is-visible { transform: none; }
  .topic-category-panel,
  .topic-category-chevron,
  .topic-category,
  .topic-category-trigger,
  .topic-option { transition: none; }
}
