/* ============================================================
   APG Alpenglow Tek — Main CSS Design System
   Colors: White #FFFFFF | Deep Navy #061A3A | Neon Cyan #2FE8FA
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Noto+Sans+TC:wght@300;400;500;700;900&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --navy:     #061A3A;
  --navy-mid: #0C2D5A;
  --navy-lt:  #0F3878;
  --cyan:     #2FE8FA;
  --cyan-dim: rgba(47, 232, 250, 0.15);
  --cyan-glow:rgba(47, 232, 250, 0.35);
  --white:    #FFFFFF;
  --off-white:#F4F8FF;
  --gray-100: #EEF2FA;
  --gray-300: #B0BFDB;
  --gray-500: #6B7BA0;
  --gray-700: #3A4A6B;

  --radius-card: 20px;
  --radius-btn:  12px;
  --shadow-card: 0 4px 24px rgba(6, 26, 58, 0.08);
  --shadow-hover: 0 12px 40px rgba(6, 26, 58, 0.18);
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);

  --header-h: 72px;
  --max-w: 1280px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', 'Noto Sans TC', sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.7;
  overflow-x: hidden;
  word-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Typography ── */
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; line-height: 1.35; }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { color: var(--gray-700); line-height: 1.8; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
@media (min-width: 768px) { .container { padding: 0 2rem; } }
@media (min-width: 1280px) { .container { padding: 0 2.5rem; } }

.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ── Color Utilities ── */
.text-navy   { color: var(--navy); }
.text-cyan   { color: var(--cyan); }
.text-white  { color: var(--white); }
.text-gray   { color: var(--gray-500); }
.bg-navy     { background: var(--navy); }
.bg-cyan     { background: var(--cyan); }
.bg-white    { background: var(--white); }
.bg-off-white{ background: var(--off-white); }

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--navy-lt) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Labels ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-dim);
  border: 1px solid rgba(47,232,250,0.3);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-label-dark {
  background: rgba(47,232,250,0.2);
  color: var(--cyan);
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 2rem;
  font-size: 0.95rem; font-weight: 600;
  border-radius: var(--radius-btn);
  transition: var(--transition);
  white-space: normal;
  word-break: break-word;
}
.btn-primary {
  background: var(--cyan);
  color: var(--navy);
}
.btn-primary:hover {
  background: #00d4ec;
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-cyan {
  background: transparent;
  color: var(--cyan);
  border: 2px solid var(--cyan);
}
.btn-outline-cyan:hover {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-2px);
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  overflow: hidden;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-6px);
  border-color: var(--cyan-dim);
}
.card-body { padding: 2rem; }

.card-dark {
  background: var(--navy-mid);
  border: 1px solid rgba(47,232,250,0.12);
}
.card-dark:hover {
  border-color: rgba(47,232,250,0.35);
  box-shadow: 0 12px 40px rgba(47,232,250,0.08);
}

/* ── Icon Box ── */
.icon-box {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.4rem;
}
.icon-box-cyan   { background: var(--cyan); color: var(--navy); }
.icon-box-navy   { background: var(--navy); color: var(--cyan); }
.icon-box-outline{ background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(47,232,250,0.25); }

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Text Center / Align ── */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Section Header ── */
.section-header { margin-bottom: 3.5rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { font-size: 1.1rem; max-width: 680px; color: var(--gray-500); }

/* ── Divider ── */
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  border-radius: 2px;
  margin: 1rem 0 1.5rem;
}
.divider-center { margin: 1rem auto 1.5rem; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0A2550 100%);
  color: var(--white);
}
.hero-particles {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 { color: var(--white); }
.hero p   { color: rgba(255,255,255,0.75); font-size: 1.15rem; max-width: 600px; margin: 1.5rem 0 2.5rem; }

/* ── Particle dots (CSS-only) ── */
.particles-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle, rgba(47,232,250,0.25) 1px, transparent 1px),
    radial-gradient(circle, rgba(47,232,250,0.12) 1px, transparent 1px);
  background-size: 60px 60px, 120px 120px;
  background-position: 0 0, 30px 30px;
  animation: particlesDrift 20s linear infinite;
}
@keyframes particlesDrift {
  0%   { background-position: 0 0, 30px 30px; }
  100% { background-position: 60px 60px, 90px 90px; }
}

/* ── Tech grid overlay ── */
.tech-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(47,232,250,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47,232,250,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* ── Floating glow circles ── */
.glow-circle {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.3;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,0.7); margin-bottom: 2.5rem; font-size: 1.1rem; }

/* ── Tag / Badge ── */
.tag {
  display: inline-flex; align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  background: var(--cyan-dim);
  color: var(--navy);
  border: 1px solid rgba(47,232,250,0.3);
}
.tag-white {
  background: rgba(255,255,255,0.12);
  color: var(--cyan);
  border-color: rgba(255,255,255,0.15);
}

/* ── Check List ── */
.check-list { display: flex; flex-direction: column; gap: 0.75rem; }
.check-list li {
  display: flex; align-items: flex-start; gap: 0.75rem;
  color: var(--gray-700);
}
.check-list li::before {
  content: '\2713';
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--navy);
  font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.check-list-white li { color: rgba(255,255,255,0.8); }
.check-list-white li::before { background: var(--cyan); color: var(--navy); }

/* ── Number Steps ── */
.step-list { display: flex; flex-direction: column; gap: 2rem; }
.step-item { display: flex; gap: 1.5rem; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--navy-lt));
  color: var(--white);
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* ── Highlight Cards (3~4 key metrics) ── */
.highlight-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .highlight-cards { grid-template-columns: repeat(4, 1fr); } }
.highlight-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--gray-100);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.highlight-card .metric {
  font-size: 2.2rem; font-weight: 800;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.highlight-card .metric span { color: var(--cyan); }
.highlight-card .label { font-size: 0.85rem; color: var(--gray-500); font-weight: 500; }

/* ── Flow / Process ── */
.process-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}
@media (min-width: 768px) { .process-flow { flex-direction: row; align-items: flex-start; } }
.process-step {
  flex: 1;
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
}
.process-step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cyan);
  font-size: 1.1rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  position: relative; z-index: 2;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 2.5rem;
  right: -1px;
  width: calc(100% - 48px - 1rem);
  height: 2px;
  background: linear-gradient(90deg, var(--navy), var(--cyan));
  display: none;
}
@media (min-width: 768px) { .process-step:not(:last-child)::after { display: block; } }

/* ── News Cards ── */
.news-card { display: flex; flex-direction: column; }
.news-card .news-img {
  height: 200px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--cyan); font-size: 2rem;
}
.news-card .news-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.news-card .news-date { font-size: 0.8rem; color: var(--gray-500); margin-bottom: 0.5rem; }
.news-card .news-title { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 0.75rem; flex: 1; }
.news-card .news-excerpt { font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; }

/* ── Team Cards ── */
.team-card { text-align: center; padding: 2.5rem 2rem; }
.team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--cyan);
  border: 3px solid var(--cyan-dim);
}
.team-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--navy); }
.team-title { font-size: 0.85rem; color: var(--cyan); font-weight: 600; margin-bottom: 1rem; }
.team-bio { font-size: 0.9rem; color: var(--gray-500); line-height: 1.7; }

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid var(--gray-100);
  padding: 1.5rem 0;
}
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-weight: 600; color: var(--navy); gap: 1rem;
}
.faq-question .icon { transition: transform var(--transition); color: var(--cyan); font-size: 1.2rem; flex-shrink: 0; }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer { display: none; padding-top: 1rem; color: var(--gray-500); line-height: 1.8; }
.faq-item.open .faq-answer { display: block; }

/* ── Form ── */
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--navy); }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-btn);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--navy);
  background: var(--white);
  transition: var(--transition);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-dim);
}
.form-textarea { resize: vertical; min-height: 140px; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem;
  font-size: 0.85rem; color: var(--gray-500);
  padding: calc(var(--header-h) + 1.5rem) 0 1.5rem;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { color: var(--gray-300); }
.breadcrumb .current { color: var(--navy); font-weight: 600; }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: calc(var(--header-h) + 4rem) 0 4rem;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255,255,255,0.7); font-size: 1.1rem; max-width: 640px; margin-bottom: 2rem; }

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--cyan); }

/* ── Floating animation ── */
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}
.float-anim { animation: floatY 4s ease-in-out infinite; }

/* ── Responsive Utilities ── */
.hide-mobile  { display: none; }
.show-mobile  { display: block; }
@media (min-width: 768px) {
  .hide-mobile  { display: block; }
  .show-mobile  { display: none; }
}

/* ============================================================
   CONTACT MODAL
   ============================================================ */

/* Overlay / Backdrop */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.contact-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Dialog Box */
.contact-modal {
  background: #fff;
  border: 2px solid #004aad;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.30s cubic-bezier(0.34,1.46,0.64,1), opacity 0.28s ease;
  opacity: 0;
}
.contact-modal-overlay.active .contact-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
@media (max-width: 600px) {
  .contact-modal {
    padding: 28px 20px;
    width: 90%;
    max-height: 92vh;
  }
}

/* Scrollbar inside modal */
.contact-modal::-webkit-scrollbar { width: 5px; }
.contact-modal::-webkit-scrollbar-track { background: #f4f8ff; border-radius: 3px; }
.contact-modal::-webkit-scrollbar-thumb { background: #004aad33; border-radius: 3px; }
.contact-modal::-webkit-scrollbar-thumb:hover { background: #004aad88; }

/* Close Button */
.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f4ff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #004aad;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  line-height: 1;
}
.contact-modal-close:hover {
  background: #dce8ff;
  transform: rotate(90deg);
}

/* Header */
.contact-modal-header {
  margin-bottom: 28px;
}
.contact-modal-header h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #004aad;
  margin-bottom: 6px;
  line-height: 1.3;
}
.contact-modal-header p {
  font-size: 0.9rem;
  color: #6b7ba0;
  line-height: 1.6;
}
.contact-modal-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #2fe8fa, #004aad);
  border-radius: 2px;
  margin: 10px 0 0;
}

/* Form Grid */
.cform-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.25rem;
}
@media (max-width: 600px) {
  .cform-grid-2 { grid-template-columns: 1fr; }
}

/* Form Group */
.cform-group {
  margin-bottom: 1.25rem;
}
.cform-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #061a3a;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.cform-label .req {
  color: #e03e3e;
  margin-left: 2px;
}
.cform-input,
.cform-select,
.cform-textarea {
  width: 100%;
  padding: 0.72rem 1rem;
  border: 1.5px solid #d4dcf0;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #061a3a;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.cform-input:focus,
.cform-select:focus,
.cform-textarea:focus {
  outline: none;
  border-color: #004aad;
  box-shadow: 0 0 0 3px rgba(0, 74, 173, 0.12);
}
.cform-input.invalid,
.cform-select.invalid,
.cform-textarea.invalid {
  border-color: #e03e3e;
  box-shadow: 0 0 0 3px rgba(224, 62, 62, 0.12);
}
.cform-select {
  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='%23004aad' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 2.5rem;
}
.cform-textarea {
  resize: vertical;
  min-height: 110px;
}

/* Optional label badge */
.cform-opt-badge {
  font-size: 0.7rem;
  font-weight: 500;
  color: #8a9bc4;
  background: #f0f4ff;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  letter-spacing: 0.03em;
}

/* Turnstile / CAPTCHA area */
.cform-captcha-wrap {
  margin-bottom: 1.25rem;
  min-height: 65px;
  display: flex;
  align-items: center;
}

/* Error / Success banners */
.cform-message {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: none;
  align-items: center;
  gap: 10px;
}
.cform-message.show { display: flex; }
.cform-message.error {
  background: #fff0f0;
  border: 1.5px solid #f8b4b4;
  color: #b91c1c;
}
.cform-message.success {
  background: #f0fff8;
  border: 1.5px solid #6ee7b7;
  color: #065f46;
}
.cform-message-icon { font-size: 1.15rem; flex-shrink: 0; }

/* Submit Button */
.cform-submit {
  width: 100%;
  padding: 0.9rem 2rem;
  background: #004aad;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.02em;
}
.cform-submit:hover:not(:disabled) {
  background: #003580;
  box-shadow: 0 6px 20px rgba(0, 74, 173, 0.3);
  transform: translateY(-2px);
}
.cform-submit:active:not(:disabled) {
  transform: translateY(0);
}
.cform-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Loading spinner */
.cform-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cform-spin 0.7s linear infinite;
  display: none;
}
.cform-submit.loading .cform-spinner { display: block; }
.cform-submit.loading .cform-btn-text { display: none; }

@keyframes cform-spin {
  to { transform: rotate(360deg); }
}

/* Note text */
.cform-note {
  text-align: center;
  font-size: 0.75rem;
  color: #8a9bc4;
  margin-top: 10px;
}

/* Success state — replaces form */
.cform-success-state {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2.5rem 1rem;
  gap: 1rem;
}
.cform-success-state.show { display: flex; }
.cform-success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fe8fa22, #004aad22);
  border: 2px solid #2fe8fa88;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.cform-success-state h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #004aad;
}
.cform-success-state p {
  font-size: 0.95rem;
  color: #6b7ba0;
  max-width: 360px;
}

/* ── Video Section ── */
.video-section {
  padding: 8rem 0;
  background: var(--white);
}
.video-container {
  max-width: 1000px;
  margin: 0 auto;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 32px 80px rgba(6, 26, 58, 0.15);
  background: var(--navy);
}
.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
