:root {
  --primary: #6248dc;
  --secondary: #331d9a;
  --accent: #3a54fd;

  --background: #ffffff;
  --surface: #f7f7fb;
  --surface-elevated: #ffffff;

  --text: #150c3f;
  --text-light: #5c5478;

  --border: rgba(21, 12, 63, 0.1);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow: 0 4px 24px rgba(21, 12, 63, 0.08);
  --shadow-hover: 0 12px 40px rgba(98, 72, 220, 0.18);
  --shadow-header: 0 4px 30px rgba(21, 12, 63, 0.06);

  --font-zh: "Noto Sans TC", sans-serif;
  --font-en: "Inter", sans-serif;

  --header-height: 80px;
  --header-height-scrolled: 64px;
  --container: 1200px;
  --section-gap: clamp(4rem, 8vw, 7rem);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --h1: clamp(2.25rem, 4vw + 1rem, 3.75rem);
  --h2: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
  --h3: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  --body: clamp(1rem, 0.5vw + 0.875rem, 1.125rem);
  --small: clamp(0.8125rem, 0.3vw + 0.75rem, 0.9375rem);
  --button: clamp(0.875rem, 0.4vw + 0.8rem, 1rem);
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-zh);
  font-size: var(--body);
  line-height: 1.7;
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--secondary);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-zh);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { list-style: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: var(--section-gap);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-label {
  display: inline-block;
  font-family: var(--font-en);
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-light);
  font-size: var(--body);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}


/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  transition: height var(--transition), background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

/* 未捲動時：半透明黑底 + 白字導航（Hero / 頁首區） */
.site-header:not(.is-scrolled) {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header:not(.is-scrolled) .nav-desktop a,
.site-header:not(.is-scrolled) .nav-dropdown-trigger,
.site-header:not(.is-scrolled) .nav-toggle {
  color: #fff;
}

.site-header:not(.is-scrolled) .nav-desktop a:hover,
.site-header:not(.is-scrolled) .nav-desktop a.is-active,
.site-header:not(.is-scrolled) .nav-dropdown-trigger:hover,
.site-header:not(.is-scrolled) .nav-dropdown-trigger.is-active,
.site-header:not(.is-scrolled) .nav-dropdown.is-active .nav-dropdown-trigger,
.site-header:not(.is-scrolled) .nav-dropdown.is-open .nav-dropdown-trigger,
.site-header:not(.is-scrolled) .nav-dropdown:hover .nav-dropdown-trigger {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

/* 未捲動時：Sub Menu 白底配黑灰字（不受頂層白字規則影響） */
.site-header:not(.is-scrolled) .nav-dropdown-menu a {
  color: var(--text-light);
}

.site-header:not(.is-scrolled) .nav-dropdown-menu a:hover,
.site-header:not(.is-scrolled) .nav-dropdown-menu a.is-active {
  color: var(--primary);
  background: rgba(98, 72, 220, 0.08);
}

.site-header.is-scrolled {
  height: var(--header-height-scrolled);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-header);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  max-width: min(220px, 42vw);
  object-fit: contain;
  transition: height var(--transition);
}

.site-header.is-scrolled .logo-img {
  height: 44px;
}

.logo-en {
  font-family: var(--font-en);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  line-height: 1.2;
}

.logo-zh {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.site-header.is-scrolled .logo-zh {
  font-size: 1.1rem;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  font-size: var(--small);
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.is-active {
  color: var(--primary);
  background: rgba(98, 72, 220, 0.08);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.5rem;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small);
  font-weight: 500;
  color: var(--text);
  padding: 0.5rem 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-zh);
  transition: background var(--transition), color var(--transition);
}

.nav-dropdown-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger,
.nav-dropdown:hover .nav-dropdown-trigger {
  color: var(--primary);
  background: rgba(98, 72, 220, 0.08);
}

.site-header.is-scrolled .nav-dropdown-trigger:hover,
.site-header.is-scrolled .nav-dropdown-trigger.is-active,
.site-header.is-scrolled .nav-dropdown.is-active .nav-dropdown-trigger,
.site-header.is-scrolled .nav-dropdown.is-open .nav-dropdown-trigger,
.site-header.is-scrolled .nav-dropdown:hover .nav-dropdown-trigger {
  color: var(--primary);
  background: rgba(98, 72, 220, 0.08);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 200px;
  max-width: 320px;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 1001;
  pointer-events: none;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav-dropdown.is-open .nav-dropdown-trigger svg,
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg {
  transform: rotate(180deg);
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: var(--small);
  font-weight: 500;
  color: var(--text);
  border-radius: calc(var(--radius-sm) - 2px);
  white-space: normal;
  line-height: 1.4;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a.is-active {
  color: var(--primary);
  background: rgba(98, 72, 220, 0.08);
}

.nav-mobile-sub {
  padding-left: 2rem !important;
  font-size: 0.95rem !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 0.5rem;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 999;
}

.nav-mobile.is-open {
  transform: translateX(0);
}

.nav-mobile a {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:hover,
.nav-mobile a.is-active {
  color: var(--primary);
  background: rgba(98, 72, 220, 0.06);
}

@media (max-width: 960px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-zh);
  font-size: var(--button);
  font-weight: 600;
  line-height: 1;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(98, 72, 220, 0.35);
}

.btn-primary:hover {
  background: var(--secondary);
  color: #fff;
  box-shadow: var(--shadow-hover);
}

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

.btn-secondary:hover {
  background: var(--text);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(98, 72, 220, 0.05);
}

.btn-white {
  background: #fff;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--surface);
  color: var(--secondary);
}

/* Cards */
.card {
  background: var(--surface-elevated);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.card:hover .card-image img {
  transform: scale(1.06);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: var(--h3);
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-light);
  font-size: var(--small);
  margin-bottom: 1.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 1.75rem;
}

.card-grid-lg {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(21, 12, 63, 0.75) 0%,
    rgba(98, 72, 220, 0.45) 50%,
    rgba(21, 12, 63, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: var(--header-height);
  color: #fff;
  max-width: 720px;
}

.hero-subtitle {
  font-family: var(--font-en);
  font-size: var(--small);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.hero-title {
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-content .btn-white {
  color: var(--primary);
}

.hero-content .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

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

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.7);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

.page-hero {
  position: relative;
  min-height: 45vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3rem;
  margin-top: var(--header-height);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 12, 63, 0.85), rgba(21, 12, 63, 0.35));
}

.page-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
}

.page-hero-content h1 {
  color: #fff;
}

/* Split layout */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-section.reverse .split-image {
  order: -1;
}

.split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.split-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-image .course-video {
  box-shadow: none;
  border-radius: 0;
}

.split-image .course-video-player {
  max-height: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-image--stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: visible;
  box-shadow: none;
  background: transparent;
}

.split-image--stack > img,
.split-image--stack > .course-video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Course video */
.section--compact-top {
  padding-top: clamp(2rem, 4vw, 3rem);
  padding-bottom: 0;
}

.course-video {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}

.course-video-player {
  display: block;
  width: 100%;
  max-height: min(70vh, 640px);
  object-fit: contain;
  background: #000;
}

/* Media slider */
.media-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}

.media-slider-track {
  position: relative;
  aspect-ratio: 1;
}

.media-slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.media-slider-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.media-slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(21, 12, 63, 0.15);
  transition: background var(--transition), transform var(--transition);
}

.media-slider-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.05);
}

.media-slider-btn svg {
  width: 20px;
  height: 20px;
}

.media-slider-prev {
  left: 0.75rem;
}

.media-slider-next {
  right: 0.75rem;
}

.media-slider-dots {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.5rem;
}

.media-slider-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.media-slider-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .split-section {
    grid-template-columns: 1fr;
  }
  .split-section.reverse .split-image {
    order: 0;
  }
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: var(--small);
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-zh);
  font-size: var(--body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(98, 72, 220, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Newsletter */
.newsletter {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  color: #fff;
  text-align: center;
}

.newsletter h2 {
  color: #fff;
  margin-bottom: 0.75rem;
}

.newsletter p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 480px;
  margin-inline: auto;
  justify-content: center;
}

.newsletter-form input {
  flex: 1 1 220px;
  padding: 0.875rem 1.25rem;
  border: none;
  border-radius: 999px;
  font-size: var(--body);
}

.newsletter-success {
  display: none;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
}

.newsletter-success.is-visible {
  display: block;
}

.form-success {
  display: none;
  padding: 1rem;
  background: var(--surface-elevated);
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  color: var(--primary);
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 0.25rem;
  line-height: 0;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.footer-brand .logo-zh {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand .logo-en {
  color: rgba(255, 255, 255, 0.6);
}

.footer-desc {
  margin-top: 1rem;
  font-size: var(--small);
  color: rgba(255, 255, 255, 0.65);
}

.footer-col h4 {
  color: #fff;
  font-size: var(--small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--small);
  transition: color var(--transition);
}

.footer-col a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: background var(--transition), transform var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  transform: translateY(-2px);
  color: #fff;
}

.footer-social-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

.footer-contact-item svg,
.footer-contact-item i svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 1.5rem;
  font-size: var(--small);
  color: rgba(255, 255, 255, 0.5);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: var(--small);
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact-item a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

/* Coach cards */
.coach-card .card-image {
  aspect-ratio: 3 / 4;
}

.coach-role {
  color: var(--primary);
  font-size: var(--small);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.coach-credentials {
  font-size: var(--small);
  color: var(--text-light);
}

.coach-credentials li {
  padding-left: 1rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.coach-credentials li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Product */
.product-price {
  font-family: var(--font-en);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 1rem;
}

/* Gallery */
.gallery-grid {
  columns: 3;
  column-gap: 1rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .gallery-grid { columns: 2; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(21, 12, 63, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: var(--radius-sm);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 0.5rem;
}

/* Animations — 預設可見，避免 JS 未載入時內容消失 */
.animate {
  opacity: 1;
  transition: opacity 0.4s ease;
}

@media (prefers-reduced-motion: no-preference) {
  .animate {
    opacity: 0;
  }

  .animate.is-visible {
    opacity: 1;
  }
}

.animate.is-visible {
  opacity: 1;
}

/* 保留 class 名稱，統一為淡入（無位移） */
.fade-up,
.fade-left,
.fade-right,
.scale-in {
  transform: none;
}

.fade-up.is-visible,
.fade-left.is-visible,
.fade-right.is-visible,
.scale-in.is-visible {
  transform: none;
}

/* Map */
.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
  min-height: 320px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Competition list */
.competition-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.competition-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface-elevated);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.competition-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-hover);
}

.competition-date {
  font-family: var(--font-en);
  font-weight: 600;
  color: var(--primary);
  font-size: var(--small);
}

.competition-name {
  font-weight: 600;
  flex: 1;
}

.competition-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Price table */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.price-card {
  text-align: center;
  padding: 2rem 1.5rem;
}

.price-amount {
  font-family: var(--font-en);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin: 0.75rem 0;
}

.price-label {
  font-size: var(--small);
  color: var(--text-light);
}

.feature-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.2rem;
}

/* Course registration block (outdoor) */
.course-reg-panel {
  background: linear-gradient(180deg, #eef1fa 0%, #e8ecf7 100%);
  border: 1px solid rgba(98, 72, 220, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
  box-shadow: 0 8px 32px rgba(21, 12, 63, 0.06);
}

.course-reg-title {
  font-size: clamp(1.5rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.course-reg-label {
  font-size: var(--small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.course-reg-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

.btn-reg-lg {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-weight: 700;
  min-width: 0;
}

.course-reg-divider {
  height: 1px;
  background: rgba(21, 12, 63, 0.1);
  margin: 1.5rem 0 1.25rem;
}

.course-reg-note {
  font-size: var(--small);
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.course-reg-pdf-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.875rem 1rem;
  margin-bottom: 0.875rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.course-reg-pdf-card:hover {
  border-color: rgba(98, 72, 220, 0.35);
  box-shadow: 0 4px 16px rgba(98, 72, 220, 0.1);
  transform: translateY(-1px);
  color: var(--text);
}

.course-reg-pdf-text {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.course-reg-pdf-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-light);
  flex-shrink: 0;
}

.course-reg-actions {
  margin-bottom: 2.5rem;
}

.course-reg-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.course-reg-row + .course-reg-row {
  margin-top: 0.75rem;
}

.course-reg-row--secondary {
  align-items: center;
}

.btn-reg-returning {
  background: #b8e8d4;
  color: #150c3f;
  border: none;
}

.btn-reg-returning:hover {
  background: #9fdcc0;
  color: #150c3f;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 232, 212, 0.5);
}

.btn-reg-new {
  background: var(--accent);
  color: #fff;
  border: none;
  box-shadow: 0 4px 16px rgba(58, 84, 253, 0.35);
}

.btn-reg-new:hover {
  background: #2a43d4;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 84, 253, 0.4);
}

.btn-reg-timetable {
  background: var(--text);
  color: #fff;
  border: none;
}

.btn-reg-timetable:hover {
  background: #2a2050;
  color: #fff;
  transform: translateY(-2px);
}

.btn-reg-block {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
}

.btn-reg-block svg {
  width: 18px;
  height: 18px;
}

.course-reg-pdf {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-size: var(--small);
  text-decoration: none;
  transition: color var(--transition);
}

.course-reg-pdf:hover {
  color: var(--primary);
}

.course-reg-pdf-icon {
  width: 36px;
  height: 44px;
  flex-shrink: 0;
}

@media (max-width: 520px) {
  .course-reg-buttons {
    grid-template-columns: 1fr;
  }
}

.course-reg-actions--compact {
  margin-bottom: 0;
}

.course-reg-actions--compact .course-reg-row {
  margin-bottom: 0.5rem;
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  min-width: 0;
}

.booking-quick-links {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.booking-quick-links-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Course info panel (indoor / summer / group) */
.course-info-panel {
  background: #e8ecf7;
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.course-info-panel--left {
  text-align: left;
}

.course-info-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.course-info-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: -0.5rem 0 1.5rem;
}

.course-info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.25rem;
  margin-bottom: 1.75rem;
  border-radius: 999px;
  background: #ff8a65;
  color: #fff;
  font-size: var(--small);
  font-weight: 700;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.course-info-badge:hover {
  background: #ff7043;
  color: #fff;
  transform: translateY(-1px);
}

.pricing-bubbles {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 420px;
  margin: 0 auto 2rem;
  padding-top: 0.5rem;
}

.pricing-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 50%;
  aspect-ratio: 1;
  padding: 1rem;
  box-shadow: 0 4px 20px rgba(21, 12, 63, 0.08);
}

.pricing-bubble--main {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(180px, 55%);
  background: #fff;
  margin-bottom: 0.25rem;
}

.pricing-bubble--left {
  background: #eceef2;
}

.pricing-bubble--right {
  background: #d6e4ff;
}

.pricing-bubble-label {
  font-size: var(--small);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.pricing-bubble-amount {
  font-family: var(--font-en);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.pricing-bubble-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.35rem;
  line-height: 1.35;
}

.course-info-list {
  text-align: left;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  padding-left: 1.25rem;
}

.course-info-list li {
  margin-bottom: 0.65rem;
  line-height: 1.6;
}

.course-info-list li::marker {
  color: var(--primary);
}

.course-info-note {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.course-info-panel .course-reg-actions {
  justify-content: center;
  margin-bottom: 1.75rem;
}

.course-info-panel .course-reg-row {
  justify-content: center;
}

.early-bird-box {
  text-align: center;
  background: #fff;
  border-radius: 50%;
  width: min(280px, 100%);
  aspect-ratio: 1;
  padding: 2rem 1.5rem;
  margin: 0 auto 1.75rem;
  box-shadow: 0 4px 24px rgba(21, 12, 63, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.early-bird-box h3 {
  color: #ff4040;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.early-bird-box ol {
  text-align: left;
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.early-bird-box li {
  margin-bottom: 0.35rem;
}

.early-bird-footnote {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.btn-cta-red {
  background: #ff4444;
  color: var(--accent);
  border: none;
  font-weight: 700;
  min-width: 220px;
}

.btn-cta-red:hover {
  background: #e83838;
  color: #fff;
}

.btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
}

.btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.course-page-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

@media (max-width: 900px) {
  .course-page-layout {
    grid-template-columns: 1fr;
  }
}

.bg-surface {
  background: var(--surface);
}

/* Join us page */
.join-hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, #3a54fd 0%, #6248dc 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  text-align: center;
}

.join-hero h1 {
  color: #fff;
  margin: 0;
}

.join-section {
  background: #e8ecf7;
}

.join-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.join-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.45;
  margin-bottom: 2rem;
}

.join-contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.join-contact-list li {
  margin-bottom: 0.85rem;
  line-height: 1.6;
}

.join-contact-list a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.join-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.join-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.join-social a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

.join-social-icon {
  width: 18px;
  height: 18px;
}

.join-form-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2rem);
}

.join-form-card .btn-submit-full {
  width: 100%;
}

@media (max-width: 900px) {
  .join-layout {
    grid-template-columns: 1fr;
  }
}

/* Booking page */
.booking-hero {
  margin-top: var(--header-height);
  background: linear-gradient(135deg, #150c3f 0%, #331d9a 55%, #150c3f 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}

.booking-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(255, 255, 255, 0.03) 12px,
    rgba(255, 255, 255, 0.03) 24px
  );
  pointer-events: none;
}

.booking-hero-inner {
  position: relative;
  z-index: 1;
}

.booking-hero h1 {
  color: #fff;
  margin-bottom: 1rem;
  max-width: 16ch;
}

.booking-hero-desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 640px;
  margin-bottom: 2rem;
}

.booking-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
}

.booking-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--small);
  color: rgba(255, 255, 255, 0.9);
}

.booking-meta-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
  padding-block: var(--section-gap);
}

.booking-form-card {
  background: var(--surface-elevated);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.booking-section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 1.75rem;
  color: var(--text);
}

.booking-section-title::before {
  content: "";
  width: 4px;
  height: 1.4em;
  background: var(--primary);
  border-radius: 2px;
  flex-shrink: 0;
}

.form-section-label {
  font-size: var(--small);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.form-section-label:first-of-type {
  margin-top: 0;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.form-required {
  color: #e80f73;
}

.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-zh);
  font-size: var(--body);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23150c3f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(98, 72, 220, 0.15);
}

.form-checkbox-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  font-size: var(--small);
  color: var(--text-light);
}

.form-checkbox-row input {
  margin-top: 0.25rem;
  flex-shrink: 0;
  accent-color: var(--primary);
}

.btn-submit-full {
  width: 100%;
  margin-top: 1.5rem;
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.booking-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.booking-price-box {
  background: linear-gradient(145deg, var(--secondary) 0%, var(--text) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  text-align: center;
}

.booking-price-label {
  font-size: var(--small);
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.booking-price-amount {
  font-family: var(--font-en);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.booking-price-note {
  font-size: var(--small);
  opacity: 0.8;
  line-height: 1.6;
}

.booking-offers-box {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.booking-offers-box h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.booking-offers-box h3 svg {
  color: var(--primary);
}

.booking-offers-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: var(--small);
  color: var(--text-light);
  margin-bottom: 0.65rem;
}

.booking-offers-list li svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.booking-sidebar-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(98, 72, 220, 0.08);
  border: 1px solid rgba(98, 72, 220, 0.15);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
  font-size: var(--small);
  transition: background var(--transition), transform var(--transition);
}

.booking-sidebar-link:hover {
  background: rgba(98, 72, 220, 0.14);
  color: var(--secondary);
  transform: translateX(4px);
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-zh);
  font-size: var(--button);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-whatsapp:hover {
  background: #1fb855;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.booking-terms {
  padding-bottom: var(--section-gap);
}

.booking-terms-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-terms-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.booking-terms-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: var(--small);
}

.booking-terms-item p {
  margin: 0;
  font-size: var(--small);
  color: var(--text-light);
  line-height: 1.7;
}

@media (max-width: 960px) {
  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    position: static;
    order: -1;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Booking wizard & payment */
.booking-form-deadline {
  color: var(--text-light);
  font-size: var(--small);
  margin: -1rem 0 1.5rem;
}

.booking-steps {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.booking-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--small);
  font-weight: 600;
  color: var(--text-light);
}

.booking-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  font-family: var(--font-en);
  font-size: 0.8rem;
}

.booking-step.is-active {
  color: var(--primary);
}

.booking-step.is-active .booking-step-num {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.booking-step.is-done {
  color: var(--text);
}

.booking-step.is-done .booking-step-num {
  background: rgba(98, 72, 220, 0.12);
  border-color: var(--primary);
  color: var(--primary);
}

.booking-step-line {
  flex: 1;
  height: 2px;
  min-width: 1rem;
  background: var(--border);
}

.booking-panel.is-hidden {
  display: none;
}

.booking-fee-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #e8ecf7 0%, #f7f7fb 100%);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.booking-fee-label {
  font-size: var(--small);
  color: var(--text-light);
  margin-bottom: 0.35rem;
}

.booking-fee-amount {
  font-family: var(--font-en);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.booking-fee-hint {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.booking-preview-badge {
  flex-shrink: 0;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #ff8a65;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.booking-summary-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.booking-summary-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.booking-summary {
  margin: 0;
}

.booking-summary-row {
  display: grid;
  grid-template-columns: minmax(7rem, 32%) 1fr;
  gap: 0.5rem 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(21, 12, 63, 0.06);
  font-size: var(--small);
}

.booking-summary-row:last-child {
  border-bottom: none;
}

.booking-summary-row dt {
  font-weight: 600;
  color: var(--text-light);
}

.booking-summary-row dd {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.booking-wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.booking-hero--compact {
  padding-bottom: clamp(2rem, 5vw, 3rem);
}

.booking-payment-layout {
  max-width: 720px;
  margin-inline: auto;
  padding-block: var(--section-gap);
}

.booking-payment-instructions {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--small);
  line-height: 1.7;
  color: var(--text);
}

.booking-payment-instructions p {
  margin: 0 0 0.5rem;
}

.booking-payment-instructions p:last-child {
  margin-bottom: 0;
}

.form-hint {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-light);
}

.form-file {
  padding: 0.65rem;
  background: var(--surface);
}
