/* ============================================
   MERCHANT APPLICATION — SELF-CONTAINED STYLES
   Includes base design system + page-specific styles
   ============================================ */

/* ---------- CSS VARIABLES ---------- */
:root {
  /* Colors — per brand guidelines */
  --color-bg-primary: #0A0A0A;
  --color-bg-elevated: #1A1A1A;
  --color-bg-input: #1E1E1E;
  --color-accent: #00D26A;
  --color-accent-hover: #00E676;
  --color-accent-glow: rgba(0, 210, 106, 0.15);
  --color-accent-glow-strong: rgba(0, 210, 106, 0.25);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #B0B0B0;
  --color-text-muted: #808080;
  --color-border: #2A2A2A;
  --color-border-focus: #00D26A;

  /* Gradient */
  --gradient-hero-card: linear-gradient(135deg, #1A3A2A 0%, #0A0A0A 100%);

  /* Typography */
  --font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font-size-hero: clamp(2.5rem, 5vw, 3.5rem);
  --font-size-h2: clamp(1.75rem, 3vw, 2rem);
  --font-size-h3: clamp(1.25rem, 2vw, 1.5rem);
  --font-size-body: 1rem;
  --font-size-small: 0.875rem;
  --font-size-nav: 0.9375rem;
  --line-height-tight: 1.1;
  --line-height-normal: 1.6;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Borders & Radii — 6px per brand, NOT pill-shaped */
  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 12px;
  --border-default: 1px solid var(--color-border);
  --border-accent: 4px solid var(--color-accent);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-focus: 0 0 0 2px var(--color-accent-glow);
  --shadow-glow: 0 0 30px var(--color-accent-glow);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --container-max: 1280px;
  --section-padding: 120px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  line-height: var(--line-height-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul {
  list-style: none;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- UTILITIES ---------- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.accent-text {
  color: var(--color-accent);
}

/* ---------- BUTTONS (6px radius, NOT pills) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--font-size-body);
  letter-spacing: 0.02em;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.btn-primary {
  background: linear-gradient(135deg, #00D26A 0%, #00C9B7 100%);
  color: var(--color-bg-primary);
  box-shadow: 0 2px 12px rgba(0, 210, 106, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #00E676 0%, #00DCC6 100%);
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 210, 106, 0.4);
}

.btn-ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text-primary);
  background: linear-gradient(135deg, #1A1A1A 0%, #1A2A22 100%);
}

.btn-ghost:hover {
  background: linear-gradient(135deg, #1A2A22 0%, #1A3A2A 100%);
  border-color: rgba(0, 210, 106, 0.3);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition-base);
  background: transparent;
  pointer-events: none;
  /* Let mouse events pass through to Spline canvas */
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

/* Re-enable clicks on all interactive navbar children */
.navbar .nav-logo,
.navbar .nav-links a,
.navbar .nav-phone,
.navbar .nav-actions a,
.navbar .nav-actions .btn,
.navbar .nav-toggle {
  pointer-events: auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 10;
}

.logo-img {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: var(--font-size-nav);
  font-weight: 500;
  color: var(--color-text-primary);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-phone {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-decoration: none;
  padding-right: 14px;
  margin-right: 2px;
  border-right: 1px solid var(--color-border);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-phone:hover {
  color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

/* Checkbox group for multi-select services */
.checkbox-group {
  grid-column: 1 / -1;
}

.checkbox-group-label {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.85rem;
  color: var(--color-text-secondary);
}

.checkbox-item:hover {
  border-color: rgba(0, 210, 106, 0.4);
  color: var(--color-text-primary);
}

.checkbox-item:has(input:checked) {
  border-color: var(--color-accent);
  background: rgba(0, 210, 106, 0.06);
  color: var(--color-accent);
  box-shadow: 0 0 12px rgba(0, 210, 106, 0.1);
}

.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-item span {
  white-space: nowrap;
}

/* ---------- CONTACT BAR ---------- */
.contact-bar {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
  background: #000000bf;
  pointer-events: none;
  /* Let mouse events pass through to Spline canvas */
}

.contact-bar .container,
.contact-bar .contact-grid {
  pointer-events: none;
}

/* Re-enable clicks on contact bar interactive elements */
.contact-bar .contact-item,
.contact-bar a {
  pointer-events: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}

.contact-item:hover {
  background: var(--color-bg-elevated);
}

.contact-icon {
  font-size: 1.6rem;
}

.contact-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.contact-value {
  font-size: var(--font-size-body);
  font-weight: 500;
  color: var(--color-text-primary);
}

a.contact-value:hover {
  color: var(--color-accent);
}

/* ---------- FOOTER ---------- */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-primary);
  pointer-events: none;
  /* Let mouse events pass through to Spline canvas */
}

.footer .container,
.footer .footer-grid,
.footer .footer-bottom {
  pointer-events: none;
}

/* Re-enable clicks on footer interactive elements */
.footer a,
.footer .footer-brand,
.footer .footer-links-group {
  pointer-events: auto;
}

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

.footer-brand p {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  margin-top: 16px;
  max-width: 300px;
  line-height: var(--line-height-normal);
}

.footer-links-group h4 {
  font-size: var(--font-size-body);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text-primary);
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-group a {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.footer-links-group a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
}

/* ============================================
   MERCHANT APPLICATION PAGE STYLES
   ============================================ */

/* ---- Spline 3D Fixed Background ---- */
.spline-fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: none;
  /* shown by JS */
  pointer-events: auto;
}

.spline-fixed-bg canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease-out;
}

/* Dark overlay for form readability — bold but readable */
.spline-page-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(0, 210, 106, 0.06) 0%, transparent 70%),
    linear-gradient(180deg, rgba(13, 17, 23, 0.25) 0%, rgba(13, 17, 23, 0.35) 100%);
  pointer-events: none;
}

/* All page content sits above the 3D background */
.navbar,
.page-hero,
.app-section,
.form-section,
.contact-bar,
footer {
  position: relative;
  z-index: 2;
}

/* Let mouse events pass through non-interactive page areas to the Spline canvas */
.page-hero,
.page-hero-bg,
.page-hero-content,
.app-section,
.merchant-form,
.form-section,
.form-section-header,
.form-row,
.form-group,
.hero-stats,
.scroll-indicator {
  pointer-events: none;
}

/* Re-enable clicks on ALL interactive form elements */
.page-hero a,
.page-hero button,
.page-hero .btn,
.app-section a,
.app-section button,
.app-section .btn,
.form-section-header,
.form-section-body,
.form-section input,
.form-section select,
.form-section textarea,
.form-section label,
.form-section .form-label,
.form-section .file-upload-label,
.form-section .file-upload,
.form-section .checkbox-group,
.form-section .radio-group,
.form-section .form-hint,
.form-section .required,
.form-section .owner-toggle,
.form-section .form-section-number,
.form-section .form-section-title,
.form-section .completed-tag,
.form-section .section-progress,
.form-section [type="checkbox"],
.form-section [type="radio"],
.form-section [type="file"] {
  pointer-events: auto;
}

/* Loading spinner (reuses shared styles from main CSS, but scoped here for independence) */
.spline-fixed-bg .spline-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 2;
  transition: opacity 0.6s ease-out;
}

.spline-fixed-bg .spline-loading span {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  font-family: var(--font-primary, 'Inter', sans-serif);
  letter-spacing: 0.5px;
}

.spline-fixed-bg .spline-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(0, 210, 106, 0.15);
  border-top-color: #00D26A;
  border-radius: 50%;
  animation: splineSpin 0.8s linear infinite;
}

@keyframes splineSpin {
  to {
    transform: rotate(360deg);
  }
}

/* When Spline is active, reduce the page-hero gradient orbs */
.spline-fixed-bg[style*="display: block"]~.page-hero .gradient-orb {
  opacity: 0.1;
}

/* PAGE HERO */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  text-align: center;
  overflow: hidden;
}

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

.page-hero-bg .gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
}

.page-hero-bg .orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(0, 210, 106, 0.08);
  top: -100px;
  left: 20%;
}

.page-hero-bg .orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(0, 201, 183, 0.06);
  bottom: -50px;
  right: 15%;
}

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

.page-hero-title {
  font-size: var(--font-size-hero);
  font-weight: 800;
  line-height: var(--line-height-tight);
  color: var(--color-text-primary);
  margin-bottom: var(--space-md);
}

.page-hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 550px;
  margin: 0 auto;
}

/* APPLICATION SECTION */
.app-section {
  padding: 40px 0 120px;
  background: transparent;
}

/* FORM CONTAINER */
.merchant-form {
  max-width: 860px;
  margin: 0 auto;
}

/* FORM SECTIONS */
.form-section {
  /*background: rgba(26, 26, 26, 0.75);*/
  background: #000000bf;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #b0b0b0;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 24px;
  position: relative;
  transition: border-color var(--transition-base), box-shadow 0.6s ease;
}

.form-section:hover {
  border-color: rgba(0, 210, 106, 0.5);
  box-shadow:
    0 0 15px rgba(0, 210, 106, 0.12),
    0 0 40px rgba(0, 210, 106, 0.06);
}

/* ★ SECTION COMPLETE GLOW ★ */
.form-section.section-complete {
  border-color: rgba(0, 210, 106, 0.55);
  box-shadow:
    0 0 20px rgba(0, 210, 106, 0.12),
    0 0 50px rgba(0, 210, 106, 0.06),
    inset 0 0 40px rgba(0, 210, 106, 0.03);
  animation: sectionGlow 3s ease-in-out infinite alternate;
}

@keyframes sectionGlow {
  0% {
    box-shadow: 0 0 15px rgba(0, 210, 106, 0.08), 0 0 40px rgba(0, 210, 106, 0.04), inset 0 0 30px rgba(0, 210, 106, 0.02);
    border-color: rgba(0, 210, 106, 0.45);
  }

  100% {
    box-shadow: 0 0 25px rgba(0, 210, 106, 0.18), 0 0 70px rgba(0, 210, 106, 0.08), inset 0 0 50px rgba(0, 210, 106, 0.04);
    border-color: rgba(0, 210, 106, 0.65);
  }
}

.form-section.section-complete .form-section-number {
  background: var(--color-accent, #00d26a);
  color: #fff;
  transition: all 0.4s ease;
  box-shadow: 0 0 12px rgba(0, 210, 106, 0.35);
}

.form-section.section-complete .form-section-header {
  border-bottom-color: rgba(0, 210, 106, 0.2);
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  cursor: pointer;
  user-select: none;
  transition: margin-bottom 0.35s ease;
}

/* Chevron toggle indicator */
.form-section-header::after {
  content: '';
  display: none;
  /* only visible on completed sections */
  margin-left: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  transform: rotate(45deg);
  transition: transform 0.35s ease, border-color 0.35s ease;
  flex-shrink: 0;
}

.form-section.section-complete .form-section-header::after {
  display: block;
  border-color: var(--color-accent);
}

/* Collapsed state — hide content with smooth body wrapper */
.form-section-body {
  overflow: hidden;
  transition: max-height 0.45s ease, opacity 0.35s ease;
  max-height: 5000px;
  /* large enough for any section */
  opacity: 1;
}

.form-section.section-collapsed .form-section-body {
  max-height: 0;
  opacity: 0;
}

.form-section.section-collapsed .form-section-header {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom-color: transparent;
}

/* Rotate chevron when collapsed */
.form-section.section-collapsed .form-section-header::after {
  transform: rotate(-45deg);
}

/* "Completed" tag when collapsed */
.form-section-header .completed-tag {
  display: none;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(0, 210, 106, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  margin-left: auto;
  margin-right: 12px;
}

.form-section.section-complete.section-collapsed .form-section-header .completed-tag {
  display: inline-block;
}

.form-section-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: rgba(0, 210, 106, 0.1);
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.form-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

/* ---- Section Progress Bar ---- */
.section-progress {
  width: 100%;
  margin: 20px 0px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-progress-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.section-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(90deg, #00D26A, #00E676, #69F0AE);
  box-shadow: 0 0 8px rgba(0, 210, 106, 0.4), 0 0 20px rgba(0, 210, 106, 0.15);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

/* Animated shimmer on the fill */
.section-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.3) 50%,
      transparent 100%);
  background-size: 200% 100%;
  animation: progressShimmer 2s ease-in-out infinite;
}

@keyframes progressShimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.section-progress-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  min-width: 32px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  transition: color 0.5s ease;
}

/* When 100%, extra glow burst */
.section-progress-fill[data-percent="100"] {
  box-shadow:
    0 0 12px rgba(0, 210, 106, 0.6),
    0 0 30px rgba(0, 210, 106, 0.25),
    0 0 50px rgba(0, 210, 106, 0.1);
}

.section-progress-fill[data-percent="100"]+.section-progress-label,
.section-progress[data-complete="true"] .section-progress-label {
  color: var(--color-accent);
}

/* Hide progress bar when section is collapsed */
.form-section.section-collapsed .section-progress {
  display: none;
}

.form-section-desc {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
}

/* FORM GRID */
.form-row {
  display: grid;
  gap: 20px;
  margin-bottom: 0;
}

.form-row.two-col {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.form-row.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

/* FORM GROUPS */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: var(--font-size-small);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.required {
  color: var(--color-accent);
  font-weight: 400;
}

/* INPUTS */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-bg-input);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-body);
  transition: all var(--transition-fast);
  outline: none;
  box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-muted);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(0, 210, 106, 0.15);
}

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

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

.form-group select option {
  background: var(--color-bg-elevated);
  color: var(--color-text-primary);
}

/* FORM HINTS */
.form-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* FILE UPLOADS */
.file-upload {
  position: relative;
}

.file-upload input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: var(--color-bg-input);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  font-size: var(--font-size-small);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.file-upload-label:hover {
  border-color: var(--color-accent);
  color: var(--color-text-primary);
  background: rgba(0, 210, 106, 0.03);
}

.file-icon {
  font-size: 1.2rem;
}

/* File upload: has-file state */
.file-upload.has-file .file-upload-label {
  border-style: solid;
  border-color: var(--color-accent);
  background: rgba(0, 210, 106, 0.06);
  color: var(--color-accent);
}

/* File list indicator */
.file-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  max-height: 120px;
  overflow-y: auto;
  max-width: 100%;
}

.file-list-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(0, 210, 106, 0.08);
  border: 1px solid rgba(0, 210, 106, 0.2);
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--color-text-primary);
  animation: fileSlideIn 0.2s ease-out;
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
}

@keyframes fileSlideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.file-list-item .file-item-icon {
  flex-shrink: 0;
  font-size: 0.85rem;
}

.file-list-item .file-item-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ccc;
  min-width: 0;
}

.file-list-item .file-item-size {
  flex-shrink: 0;
  color: #888;
  font-size: 0.7rem;
}

.file-list-item .file-item-remove {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 77, 77, 0.15);
  color: #ff4d4d;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1;
  transition: background 0.2s;
  pointer-events: auto;
}

.file-list-item .file-item-remove:hover {
  background: rgba(255, 77, 77, 0.35);
}

/* SUBMIT AREA */
.form-submit {
  margin-top: 40px;
}

.form-submit .btn {
  padding: 18px 40px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.form-disclaimer {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  /*max-width: 500px;*/
  margin-left: auto;
  margin-right: auto;
}

/* CONDITIONAL SECTIONS */
.owner-section {
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* VALIDATION ERROR STATES */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
  border-color: #ff4d4d;
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.15);
}

.form-group.has-error .file-upload-label {
  border-color: #ff4d4d;
}

.form-error-msg {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: #ff4d4d;
  line-height: 1.4;
  animation: fadeInError 0.3s ease;
}

@keyframes fadeInError {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Form-level error banner */
.form-error-banner {
  background: rgba(255, 77, 77, 0.08);
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.4s ease;
}

.form-error-banner .error-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.form-error-banner .error-text {
  font-size: 0.9rem;
  color: #ff6b6b;
  font-weight: 500;
  line-height: 1.5;
}

/* Shake animation on submit */
@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  15%,
  45%,
  75% {
    transform: translateX(-6px);
  }

  30%,
  60%,
  90% {
    transform: translateX(6px);
  }
}

.form-section.shake {
  animation: shake 0.5s ease;
}

/* Success toast */
.form-toast {
  position: fixed;
  top: 100px;
  right: 30px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.4s ease;
}

.form-toast.toast-out {
  animation: toastOut 0.4s ease forwards;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(40px);
  }
}

.form-toast .toast-icon {
  font-size: 1.5rem;
}

.form-toast .toast-body h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--color-text-primary);
}

.form-toast .toast-body p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

/* Field valid state indicator */
.form-group.is-valid input,
.form-group.is-valid textarea,
.form-group.is-valid select {
  border-color: #00D26A;
}

/* ---- Slide + Fade Transition for toggled sections ---- */
.slide-fade {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease,
              margin 0.35s ease,
              padding 0.35s ease;
  pointer-events: none;
}

.slide-fade.is-open {
  max-height: 4000px;            /* generous ceiling – CSS handles the rest */
  opacity: 1;
  pointer-events: auto;
}

/* Disabled submit state */
.btn.is-submitting {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.btn.is-submitting::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-left: 10px;
}

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

/* ---- SHARED RESPONSIVE (navbar, footer, contact bar) ---- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .container,
  .nav-container {
    padding-left: 24px;
    padding-right: 24px;
  }

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

  .footer-brand {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
  }

  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg-primary);
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 5;
  }

  .nav-links.active a {
    font-size: 1.4rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}

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

  .footer-brand {
    grid-column: span 1;
  }
}

/* ---- PAGE-SPECIFIC RESPONSIVE ---- */
/* RESPONSIVE */
@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 60px;
  }

  .form-section {
    padding: 24px;
  }

  .form-row.two-col,
  .form-row.three-col {
    grid-template-columns: 1fr;
  }

  .form-section-header {
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
  }

  .form-section-number {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .form-section-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .page-hero-title {
    font-size: 2rem;
  }

  .form-section {
    padding: 20px 16px;
    border-radius: var(--radius-md);
  }
}

/* ========== Submission Overlays ========== */
.submission-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.submission-overlay.overlay-visible {
  opacity: 1;
}

.overlay-card {
  background: var(--color-bg-elevated, #1a1d23);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 40px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  animation: overlaySlideUp 0.5s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

@keyframes overlaySlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.overlay-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.overlay-card h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.3;
}

.success-overlay .overlay-card h2 {
  background: linear-gradient(135deg, #00d26a, #00e5a0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-overlay .overlay-card h2 {
  color: #ff9f43;
}

.overlay-lead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin: 0 0 28px;
}

.overlay-lead strong {
  color: #fff;
}

.overlay-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.detail-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.overlay-detail p {
  margin: 0;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.overlay-detail p strong {
  color: #fff;
}

.overlay-detail p a {
  color: #00d26a;
  text-decoration: none;
  font-weight: 600;
}

.overlay-detail p a:hover {
  text-decoration: underline;
}

.overlay-btn {
  display: inline-block;
  margin-top: 28px;
  padding: 16px 36px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
}

.success-overlay .overlay-btn {
  background: linear-gradient(135deg, #00d26a, #00b85c);
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 210, 106, 0.3);
}

.success-overlay .overlay-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 210, 106, 0.4);
}

.error-overlay .overlay-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.error-overlay .overlay-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .overlay-card {
    padding: 32px 24px;
  }

  .overlay-card h2 {
    font-size: 1.3rem;
  }

  .overlay-lead {
    font-size: 0.95rem;
  }

  .overlay-detail {
    flex-direction: column;
    gap: 8px;
    padding: 14px 16px;
  }
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  pointer-events: auto;
}

.theme-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-family);
  position: relative;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

.theme-toggle-icon {
  font-size: 1rem;
  line-height: 1;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-icon-dark {
  opacity: 1;
}

.theme-icon-light {
  opacity: 0.5;
}

.theme-toggle-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.theme-toggle-label:first-of-type {
  color: #fff;
}

.theme-toggle-slider {
  width: 36px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  position: relative;
  transition: background 0.3s ease;
}

.theme-toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Light mode toggle state */
body.light-mode .theme-toggle {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.25);
}

body.light-mode .theme-icon-dark {
  opacity: 0.4;
}

body.light-mode .theme-icon-light {
  opacity: 1;
}

body.light-mode .theme-toggle-label:first-of-type {
  color: rgba(0, 0, 0, 0.4);
}

body.light-mode .theme-toggle-label:last-of-type {
  color: #111;
}

body.light-mode .theme-toggle-slider {
  background: var(--color-accent);
}

body.light-mode .theme-toggle-slider::after {
  transform: translateX(16px);
}

/* ============================================
   LIGHT MODE OVERRIDES (form sections only)
   ============================================ */

/* ---- Form Sections ---- */
body.light-mode .form-section {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 2px solid rgba(0, 210, 106, 0.25);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06), 0 0 20px rgba(0, 210, 106, 0.12);
}

body.light-mode .form-section:hover {
  border-color: rgba(0, 210, 106, 0.6);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 0 30px rgba(0, 210, 106, 0.2), 0 0 60px rgba(0, 210, 106, 0.08);
}

body.light-mode .form-section.section-complete {
  border-color: rgba(0, 210, 106, 0.6);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 30px rgba(0, 210, 106, 0.18), 0 0 60px rgba(0, 210, 106, 0.06);
  animation: none;
}

body.light-mode .form-section-header {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
  border-bottom-color: rgba(0, 210, 106, 0.3);
  margin: -32px -32px 24px -32px;
  padding: 24px 32px;
  border-radius: 12px 12px 0 0;
}

body.light-mode .form-section-title {
  color: #FFFFFF;
}

body.light-mode .form-section-number {
  background: rgba(0, 210, 106, 0.2);
  color: #00D26A;
}


/* ---- Labels & Hints ---- */
body.light-mode .form-label {
  color: #1A1A1A;
}

body.light-mode .checkbox-group-label {
  color: #666;
}

body.light-mode .form-hint {
  color: #888;
}

body.light-mode .required {
  color: #E53935;
}

body.light-mode .form-disclaimer {
  color: #888;
}

/* ---- Inputs ---- */
body.light-mode .form-group input[type="text"],
body.light-mode .form-group input[type="email"],
body.light-mode .form-group input[type="tel"],
body.light-mode .form-group input[type="url"],
body.light-mode .form-group input[type="number"],
body.light-mode .form-group input[type="date"],
body.light-mode .form-group textarea,
body.light-mode .form-group select {
  background: #FAFAFA;
  border-color: #D0D0D0;
  color: #1A1A1A;
}

body.light-mode .form-group input::placeholder,
body.light-mode .form-group textarea::placeholder {
  color: #AAA;
}

body.light-mode .form-group input:focus,
body.light-mode .form-group textarea:focus,
body.light-mode .form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(0, 210, 106, 0.12);
  background: #FFF;
}

body.light-mode .form-group select option {
  background: #FFF;
  color: #1A1A1A;
}

/* ---- Checkboxes ---- */
body.light-mode .checkbox-item {
  background: #FAFAFA;
  border-color: #D0D0D0;
  color: #555;
}

body.light-mode .checkbox-item:hover {
  border-color: rgba(0, 210, 106, 0.5);
  color: #333;
}

body.light-mode .checkbox-item:has(input:checked) {
  border-color: var(--color-accent);
  background: #FFF;
  color: #008F47;
}

/* ---- File Uploads ---- */
body.light-mode .file-upload-label {
  background: #FAFAFA;
  border-color: #D0D0D0;
  color: #888;
}

body.light-mode .file-upload-label:hover {
  border-color: var(--color-accent);
  color: #333;
  background: rgba(0, 210, 106, 0.03);
}

body.light-mode .file-upload.has-file .file-upload-label {
  background: rgba(0, 210, 106, 0.05);
  border-color: var(--color-accent);
  color: #008F47;
}

body.light-mode .file-list-item {
  background: rgba(0, 210, 106, 0.06);
  border-color: rgba(0, 210, 106, 0.15);
  color: #333;
}

body.light-mode .file-list-item .file-item-name {
  color: #555;
}

body.light-mode .file-list-item .file-item-size {
  color: #999;
}

/* ---- Progress Bar ---- */
body.light-mode .section-progress-track {
  background: rgba(0, 0, 0, 0.06);
}

body.light-mode .section-progress-label {
  color: rgba(0, 0, 0, 0.35);
}

body.light-mode .section-progress-fill[data-percent="100"]+.section-progress-label,
body.light-mode .section-progress[data-complete="true"] .section-progress-label {
  color: #008F47;
}

/* ---- Chevron toggle ---- */
body.light-mode .form-section-header::after {
  border-right-color: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.6);
}

body.light-mode .form-section.section-complete .form-section-header::after {
  border-color: var(--color-accent);
}

/* ---- Completed Tag ---- */
body.light-mode .completed-tag {
  color: #008F47;
}

/* ---- Toast ---- */
body.light-mode .form-toast {
  background: #FFF;
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

body.light-mode .form-toast .toast-body h4 {
  color: #1A1A1A;
}

body.light-mode .form-toast .toast-body p {
  color: #666;
}

/* ---- Error Banner ---- */
body.light-mode .form-error-banner {
  background: rgba(255, 77, 77, 0.06);
  border-color: rgba(255, 77, 77, 0.25);
}

/* ---- Valid States ---- */
body.light-mode .form-group.is-valid input,
body.light-mode .form-group.is-valid textarea,
body.light-mode .form-group.is-valid select {
  border-color: #00D26A;
}

/* ---- Save Partial / Modals ---- */
body.light-mode #savePartialBtn {
  background: rgba(0, 210, 106, 0.08);
  border-color: rgba(0, 210, 106, 0.3);
  color: #008F47;
}

body.light-mode #savePartialBtn:hover {
  background: rgba(0, 210, 106, 0.12);
}

/* ==========================================
   OVERALL APPLICATION PROGRESS BAR
   ========================================== */
.overall-progress-wrapper {
  margin: 32px 0 24px;
  padding: 24px 28px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: blur(12px);
}

.overall-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.overall-progress-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.overall-progress-pct {
  font-size: 1.1rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
  transition: color 0.5s ease;
}

.overall-progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
}

.overall-progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 100px;
  background: linear-gradient(90deg, #00D26A, #00E676, #69F0AE);
  box-shadow: 0 0 8px rgba(0, 210, 106, 0.4), 0 0 20px rgba(0, 210, 106, 0.15);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.overall-progress-fill::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%);
  background-size: 200% 100%;
  animation: progressShimmer 2s ease-in-out infinite;
}

.overall-progress-status {
  margin-top: 10px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  transition: color 0.5s ease;
}

/* 100% complete state */
.overall-progress-wrapper.is-complete {
  border-color: rgba(0, 210, 106, 0.3);
  background: rgba(0, 210, 106, 0.04);
  animation: overallPulse 2s ease-in-out 1;
}

.overall-progress-wrapper.is-complete .overall-progress-title {
  color: var(--color-accent);
}

.overall-progress-wrapper.is-complete .overall-progress-pct {
  color: var(--color-accent);
}

.overall-progress-wrapper.is-complete .overall-progress-fill {
  box-shadow:
    0 0 12px rgba(0, 210, 106, 0.6),
    0 0 30px rgba(0, 210, 106, 0.25),
    0 0 50px rgba(0, 210, 106, 0.1);
}

.overall-progress-wrapper.is-complete .overall-progress-status {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

@keyframes overallPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(0, 210, 106, 0); }
  50% { box-shadow: 0 0 30px rgba(0, 210, 106, 0.2), 0 0 60px rgba(0, 210, 106, 0.08); }
}

/* ---- Light mode ---- */
body.light-mode .overall-progress-wrapper {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .overall-progress-title {
  color: rgba(0, 0, 0, 0.6);
}

body.light-mode .overall-progress-pct {
  color: rgba(0, 0, 0, 0.5);
}

body.light-mode .overall-progress-track {
  background: rgba(0, 0, 0, 0.06);
}

body.light-mode .overall-progress-status {
  color: rgba(0, 0, 0, 0.35);
}

body.light-mode .overall-progress-wrapper.is-complete {
  border-color: rgba(0, 143, 71, 0.3);
  background: rgba(0, 210, 106, 0.04);
}

body.light-mode .overall-progress-wrapper.is-complete .overall-progress-title,
body.light-mode .overall-progress-wrapper.is-complete .overall-progress-pct,
body.light-mode .overall-progress-wrapper.is-complete .overall-progress-status {
  color: #008F47;
}
