/* ===== FixTax.ca — Main Stylesheet ===== */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/inter-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/inter-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/inter-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/inter-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/outfit-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/outfit-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/outfit-800.ttf') format('truetype');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/jetbrains-mono-700.ttf') format('truetype');
}

/* --- Design Tokens --- */
:root {
  --white: #FFFFFF;
  --off-white: #F7FBF4;
  --lime-lightest: #EEFBD5;
  --lime-light: #D4F5A0;
  --lime: #A8E063;
  --lime-dark: #56AB2F;
  --lime-darker: #3D8B1F;
  --form-heading-green: #3D8B1F;
  --form-label-green: #56AB2F;
  --form-placeholder-green: var(--grey);
  --charcoal: #1E1E2F;
  --grey: #6B7280;
  --grey-light: #E5E7EB;
  --red-alert: #EF4444;
  --banner-height: 44px;
  --navbar-height: 64px;
  --header-offset: calc(var(--banner-height) + var(--navbar-height));
  --gradient-lime: linear-gradient(135deg, #A8E063, #56AB2F);
  --gradient-hero: linear-gradient(160deg, #FFFFFF 0%, #F0FADF 50%, #E2F7C2 100%);
  --shadow-sm: 0 2px 8px rgba(30,30,47,0.06);
  --shadow-md: 0 8px 30px rgba(30,30,47,0.08);
  --shadow-lg: 0 16px 48px rgba(30,30,47,0.12);
  --shadow-lime: 0 8px 32px rgba(168,224,99,0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  overflow-x: hidden;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }

a { color: var(--lime-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--lime-darker); }

.phone-number { white-space: nowrap; }

img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* --- Deadline Banner --- */
.deadline-banner {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: linear-gradient(90deg, var(--lime-lightest), var(--lime-light), var(--lime));
  color: var(--lime-darker);
  box-shadow: 0 3px 14px rgba(86,171,47,0.16);
  text-align: center;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s linear 0s;
}

body.desktop-interacted .deadline-banner,
body.desktop-interacted .countdown-wrap {
  animation: desktop-intro-fade 0.7s ease forwards;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  pointer-events: none;
  transition: visibility 0s linear 0.7s;
}

@keyframes desktop-intro-fade {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

.deadline-clock {
  display: inline-flex;
  align-items: center;
}

.deadline-clock svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.deadline-clock i,
.deadline-clock svg {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.countdown-label svg {
  width: 1.2em;
  height: 1.2em;
  flex: 0 0 auto;
}

.countdown-label-centered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#deadlineMessage {
  white-space: nowrap;
}

/* --- Navigation --- */
.navbar {
  position: absolute;
  top: var(--banner-height);
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(168,224,99,0.15);
  padding: 0 24px;
  transition: top 0.95s cubic-bezier(0.16, 1, 0.3, 1), var(--transition);
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255,255,255,0.95);
}

body.desktop-interacted .navbar {
  top: 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gradient-lime);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
  transition: transform 0.2s ease, opacity 0.3s ease;
  opacity: 1;
}

.whatsapp-float:hover {
  color: var(--white);
  transform: translateY(-3px) scale(1.03);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
}

.logo-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
}

.logo-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.canada-flag {
  width: 38px;
  height: 26px;
  flex: 0 0 38px;
  display: block;
}

.footer-logo-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-canada-flag {
  width: 24px;
  height: 16px;
  flex: 0 0 24px;
  display: block;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.1;
}

.logo span { color: var(--lime-dark); }

.logo-group:hover > .logo,
.logo-group:hover > .logo span,
.logo-group > .logo:hover,
.logo-group > .logo:hover span {
  color: var(--lime-dark);
  -webkit-text-fill-color: var(--lime-dark);
}

.logo-credit {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--grey);
  letter-spacing: 0.02em;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  transform: translateY(-2px);
  transition: var(--transition);
}

.logo-group:hover .logo-credit {
  color: var(--lime-dark);
}

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

.nav-links a {
  color: var(--grey);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.nav-links > li > a:not(.nav-phone) {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--grey);
  opacity: 1;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
}

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

.nav-links a:hover,
.nav-links > li > a:not(.nav-phone):hover { color: var(--lime-dark); opacity: 1; }
.nav-links a:hover::after { width: 100%; }

.nav-phone {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-phone span {
  color: var(--grey);
  font-size: 13px;
  font-weight: 400;
  text-align: right;
}

.nav-phone strong {
  color: var(--lime-dark);
  font-size: 0.9rem;
}

.nav-links a.nav-phone::after,
.nav-links a.nav-phone:hover::after {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-primary {
  background: var(--gradient-lime);
  color: var(--white);
  box-shadow: var(--shadow-lime);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168,224,99,0.45);
}

button:active,
.btn:active {
  transform: translateY(1px) scale(0.98);
}

.estimator-grid a.btn-primary:hover {
  color: var(--white);
}

.nav-links a.btn-primary:hover {
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  color: var(--lime-dark);
  border: none;
  box-shadow: var(--shadow-lg);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--lime-dark);
  box-shadow: var(--shadow-lg);
}

@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover { transform: translateY(-2px); }
}

.btn-nav {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.nav-links a.btn-nav::after,
.nav-links a.btn-nav:hover::after {
  display: none;
  width: 0;
  height: 0;
}

.nav-links a.btn-nav,
.nav-links a.btn-nav:hover {
  color: var(--white);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--gradient-hero);
  padding-top: calc(var(--header-offset) + 16px);
  transition: padding-top 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  overflow-x: hidden;
}

.hero-particles,
.services-final-cta-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.services-final-cta-particles {
  opacity: 0.45;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(246,255,232,0.96) 0%, rgba(214,245,160,0.76) 14%, rgba(168,224,99,0.8) 28%, rgba(86,171,47,0.42) 58%, rgba(86,171,47,0.12) 100%);
  box-shadow:
    inset -18px -18px 26px rgba(52,111,24,0.18),
    inset 12px 12px 18px rgba(249,255,235,0.6),
    0 0 18px rgba(168,224,99,0.18),
    0 0 34px rgba(86,171,47,0.08);
  opacity: 0.78;
  filter: blur(0.5px);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 560px;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  container-type: inline-size;
}

@media (min-width: 1025px) {
  .nav-links {
    margin-left: auto;
  }

  .hero {
    min-height: calc(1000px + var(--banner-height));
  }

  .hero .container {
    padding-left: 0;
    padding-right: 0;
  }

  .hero-content {
    transform: none;
  }

  .hero-visual {
    transform: none;
    margin-right: 24px;
    align-items: flex-start;
  }

  .hero-card {
    height: calc(100% - 54px);
    margin-top: 6px;
    margin-bottom: 48px;
  }

  .upload-documents-block {
    transform: translateY(-10px);
  }

  .upload-meta {
    transform: none;
  }

  .upload-fields-group {
    transform: none;
  }

  .countdown-wrap {
    margin-bottom: 48px;
  }
}

@media (min-width: 1280px) {
  .hero-content {
    transform: translateX(-24px);
  }
}

.hero-seo-heading {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 34px;
}

.hero .container.hero-seo-heading {
  display: block;
  text-align: center;
}

.hero .hero-seo-heading h1 {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  color: #111111;
  font-size: min(62px, calc((100vw - 48px) / 18.53));
  font-weight: 800;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: break-word;
}

.hero-mobile-break {
  display: none;
}

.hero-phrase-start {
  color: #111111;
}

.hero-phrase {
  color: #111111;
}

.hero-mobile-line {
  display: inline;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime-lightest);
  color: var(--lime-darker);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(168,224,99,0.3);
}

.hero-badge .pulse-dot {
  width: 8px; height: 8px;
  background: var(--lime-dark);
  border-radius: 50%;
}

.hero h1,
.hero h2 {
  width: 100%;
  margin-bottom: 20px;
  text-align: center;
  font-size: clamp(1.4rem, 8.2cqw, 2.8rem);
  text-wrap: balance;
}

.hero .hero-content h1 {
  font-weight: 700;
  line-height: 1.15;
}

@media (max-width: 767px) {
  .hero-seo-heading {
    margin-bottom: 16px;
  }

  .hero .hero-seo-heading h1 {
    width: min(100%, 440px);
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .hero-mobile-break {
    display: block;
  }

  .hero-phrase-start {
    color: transparent;
    background: none;
    -webkit-text-fill-color: transparent;
  }

  .hero-mobile-line {
    display: block;
    width: max-content;
    max-width: 100%;
    white-space: nowrap;
  }

  .hero-phrase {
    color: var(--lime-darker);
    background: var(--gradient-lime);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .hero-phrase .highlight {
    background: none;
    -webkit-text-fill-color: transparent;
  }

  .hero .hero-content h2 {
    display: none;
  }
}
.highlight {
  color: var(--lime-darker);
  background: var(--gradient-lime);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: var(--grey);
  opacity: 0.65;
  margin-bottom: 36px;
  max-width: 440px;
  width: 100%;
  line-height: 1.5;
  text-align: justify;
}

.hero-ctas {
  display: flex;
  width: 100%;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-ctas .btn {
  width: 200px;
  height: 54px;
}

/* Countdown */
.countdown-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(168,224,99,0.15);
  display: block;
  width: min(100%, 440px);
  margin: auto auto 0;
  transition: opacity 0.7s ease, transform 0.7s ease, visibility 0s linear 0s;
}

.countdown-label {
  font-size: 0.9rem;
  color: var(--grey);
  font-weight: 500;
  opacity: 0.65;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.countdown {
  display: flex;
  gap: 20px;
  min-width: 0;
}

.countdown-note {
  max-width: 290px;
  margin: 18px auto 0;
  transform: translateY(-8px);
  color: var(--grey);
  opacity: 0.65;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
}

.countdown-item {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.countdown-item .number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--charcoal);
  background: var(--off-white);
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  min-width: 0;
  width: 100%;
  display: block;
  border: 1px solid var(--grey-light);
  font-variant-numeric: tabular-nums;
}

.countdown-item .unit {
  font-size: 0.8rem;
  color: var(--grey);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
  display: block;
}

/* Hero visual side */
.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 0;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(168,224,99,0.12);
  width: 100%;
  max-width: 440px;
  margin-bottom: 0;
}

.hero-card::after {
  content: '';
  position: absolute;
  top: -35%;
  left: -45%;
  z-index: 2;
  width: 32%;
  height: 170%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.03) 35%, rgba(255,255,255,0.38) 50%, rgba(255,255,255,0.03) 65%, transparent 100%);
  mix-blend-mode: screen;
  transform: translateX(-180%) skewX(-18deg);
  opacity: 0;
}

.hero-card.shine-once::after {
  animation: upload-meta-shine 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 1 forwards;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-card-icon {
  width: 48px; height: 48px;
  background: var(--gradient-lime);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.hero-card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.hero-card-icon:hover,
.hero-card-icon:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lime);
}

.hero-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--lime-dark);
}

.hero-card-sub {
  font-size: 13px;
  font-weight: 400;
  color: var(--grey);
}

.upload-zone {
  border: 2px dashed var(--lime);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background: var(--off-white);
  position: relative;
}

.upload-zone:hover,
.upload-zone:focus-visible {
  background: var(--lime-lightest);
  outline: none;
}

.upload-zone.dragging,
.upload-zone.is-selected {
  border-style: solid;
  background: rgba(168, 224, 99, 0.12);
  box-shadow: 0 0 0 4px rgba(168, 224, 99, 0.14);
}

.upload-zone .upload-icon {
  font-size: 2.5rem;
  color: var(--lime-dark);
  margin-bottom: 10px;
  line-height: 1;
}

.upload-zone .upload-icon svg {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  fill: none;
  stroke: none;
  shape-rendering: geometricPrecision;
}

.upload-zone p {
  color: var(--charcoal);
  font-size: 1.2rem;
  margin: 0;
}

.upload-zone .browse-link {
  color: var(--lime-dark);
  font-weight: 600;
  text-decoration: underline;
}

.upload-documents-note {
  display: block;
  margin-top: 10px;
  min-height: 35px;
  color: #1E1E2F;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
}

.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
}

.uploaded-file {
  display: block;
  margin-top: 16px;
  color: var(--text);
}

.uploaded-file-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.uploaded-file-wrap {
  display: grid;
  gap: 8px;
}

.uploaded-file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px 12px 22px;
  border: 2px solid var(--lime);
  border-radius: 50px;
  background: var(--white);
}

.uploaded-file-wrap.upload-error .uploaded-file-item {
  border-color: #d04a3a;
}

.uploaded-file-item-remove {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 0;
  border-radius: 50%;
  background: var(--lime-dark);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(86, 171, 47, 0.25);
  transition: var(--transition);
}

.uploaded-file-item-remove:hover {
  background: var(--lime-dark);
  color: var(--white);
  transform: scale(1.08);
}

.uploaded-file-wrap.upload-error .uploaded-file-item-remove {
  background: #d04a3a;
  box-shadow: 0 3px 10px rgba(208, 74, 58, 0.24);
}

.uploaded-file-wrap.upload-error .uploaded-file-item-remove:hover {
  background: #b53b2d;
}

.uploaded-file-item-remove svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.uploaded-file[hidden] {
  display: none;
}

.uploaded-file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 calc(100% - 42px);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.uploaded-file-name-base {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uploaded-file-name-extension {
  flex: 0 0 auto;
  margin-left: auto;
}

.uploaded-file-progress {
  position: relative;
  order: 4;
  flex: 1 1 100%;
  height: 7px;
  margin: 0 34px 0 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(86, 171, 47, 0.16);
}

.uploaded-file-progress-bar {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 20%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--lime-light), var(--lime)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.0) 0 8px, rgba(255,255,255,0.35) 8px 16px);
  transition: width 0.22s ease;
}

.upload-uploading .uploaded-file-progress-bar,
.upload-waiting .uploaded-file-progress-bar {
  background:
    repeating-linear-gradient(110deg, rgba(255,255,255,0.0) 0 10px, rgba(255,255,255,0.35) 10px 20px),
    linear-gradient(90deg, var(--lime-light), var(--lime));
  background-size: 38px 38px, auto;
  animation: file-upload-stripes 0.8s linear infinite;
}

.upload-done .uploaded-file-status {
  color: var(--form-heading-green);
  font-weight: 700;
}

.uploaded-file-status::before {
  display: none;
}

.upload-waiting .uploaded-file-status {
  animation: verify-pulse-color 1.2s ease-in-out infinite;
  font-weight: 700;
}

.upload-waiting .uploaded-file-status::after,
.upload-uploading .uploaded-file-status::after {
  content: '.';
  display: inline-block;
  width: 12px;
  text-align: center;
  animation: verify-dots 1.2s steps(1, end) infinite;
}

.upload-error.uploaded-file-item {
  border-color: #d04a3a;
}

.upload-error .uploaded-file-progress {
  background: rgba(208, 74, 58, 0.14);
}

.upload-error .uploaded-file-progress-bar {
  min-width: 100%;
  background: #d04a3a;
}

.upload-error .uploaded-file-status {
  color: #b53b2d;
  font-weight: 700;
}

.uploaded-file-status {
  order: 3;
  display: block;
  width: 100%;
  margin: -2px 0 0;
  font-size: 0.74rem;
  line-height: 1.2;
  color: var(--form-label-green);
  text-align: center;
  font-weight: 700;
}

.uploaded-file-meta {
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 0 14px;
  justify-items: center;
  text-align: center;
}

.uploaded-file-wrap.upload-done .uploaded-file-meta {
  display: none;
}

.uploaded-file-remove {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: rgba(18, 22, 21, 0.08);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}

.uploaded-file-remove:hover {
  background: rgba(209, 72, 72, 0.12);
  color: #d14848;
}

.upload-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: end;
  margin-top: 24px;
  position: relative;
}

.upload-fields-group {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  align-items: center;
  width: min(100%, 320px);
  justify-self: center;
}

.upload-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.upload-field:first-child {
  margin-top: 0;
}

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

.upload-field input {
  width: 100%;
  min-height: 44px;
  border: 2px solid var(--lime);
  border-radius: 50px;
  background: var(--white);
  padding: 10px 12px;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.upload-field input::placeholder {
  color: #1E1E2F;
  opacity: 1;
}

.upload-field input:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: inset 0 0 0 2px rgba(168, 224, 99, 0.18);
}

.upload-field input:focus::placeholder {
  opacity: 0;
}

.upload-field input.is-required,
.upload-field input.demo-highlight {
  border: 2px solid var(--lime);
  box-shadow: inset 0 0 0 2px rgba(168,224,99,0.15);
}

.upload-send-group {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 0;
  width: min(100%, 320px);
  justify-self: center;
}

.upload-send {
  position: relative;
  overflow: hidden;
  width: calc(100% + 4px);
  min-width: 0;
  height: 60.64px;
  flex: 0 0 auto;
  border: none;
  animation: none;
  box-shadow: 0 4px 14px rgba(168, 224, 99, 0.24);
}

.hero .upload-send {
  animation: none;
}

.btn.button-shine-target {
  position: relative;
  overflow: hidden;
}

.btn.button-shine-target::after {
  content: '';
  position: absolute;
  inset: -30% auto -30% -75%;
  z-index: 1;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: translateX(-180%) skewX(var(--button-shine-angle, -18deg));
  opacity: 0;
}

.btn.button-shine-target.button-shine::after {
  animation: upload-button-shine 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 1;
}

.btn.button-shine-target > * {
  position: relative;
  z-index: 2;
}

.upload-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(168, 224, 99, 0.3);
}
.upload-send:active { transform: translateY(1px) scale(0.98); }

.upload-send-note {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  color: var(--grey);
  opacity: 0.65;
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: center;
}

.upload-send-message {
  margin: 0;
  transform: none;
  color: var(--grey);
  opacity: 0.7;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  text-align: center;
}

.file-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 16px;
  margin-bottom: 12px;
  justify-content: center;
  font-family: 'Inter', -apple-system, sans-serif;
}

.file-types-label,
.file-tag {
  color: var(--grey);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.file-types-label {
  margin-right: 0.35rem;
}

.file-tag {
  display: inline;
}

.file-tag:not(:last-child)::after {
  content: ',';
  margin-left: 0.1rem;
}

/* --- Section Shared --- */
.section {
  padding: 100px 0;
}

.section-alt { background: var(--off-white); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header p {
  color: var(--grey);
  font-size: 1rem;
  margin-top: 16px;
  white-space: nowrap;
}

#services .section-header p {
  max-width: none;
  white-space: nowrap;
}

.pricing-section .section-header p {
  font-size: 1rem;
  white-space: nowrap;
}

@media (max-width: 700px) {
  #services .section-header p {
    white-space: normal;
  }

  .pricing-section .section-header p {
    font-size: 1rem;
    white-space: normal;
  }
}

.estimator-form .estimator-footnote {
  color: var(--grey);
  font-size: 0.8rem;
  margin-top: 8px;
  opacity: 0.65;
  text-align: center;
}

.section-tag {
  display: inline-block;
  border: 0;
  font-family: inherit;
  background: var(--gradient-lime);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.pricing-section {
  background: var(--off-white);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.pricing-card {
  grid-column: span 2;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: var(--white);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: color 0.18s ease, box-shadow 0.45s ease;
  cursor: pointer;
}

.pricing-card::before {
  position: absolute;
  inset: 0;
  content: '';
  border-radius: inherit;
  background: var(--gradient-lime);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.pricing-card > * {
  position: relative;
  z-index: 1;
}

.pricing-card:hover {
  transform: none;
  border: 0;
  box-shadow: none;
}

.pricing-card:not(.pricing-card-featured):hover {
  color: var(--white);
}

.pricing-card:not(.pricing-card-featured):hover::before,
.pricing-card.is-center-highlight:not(.pricing-card-featured)::before {
  opacity: 1;
}

.pricing-card.is-center-highlight:not(.pricing-card-featured) {
  color: var(--white);
}

.pricing-card:not(.pricing-card-featured):hover .pricing-icon {
  background: var(--white);
  color: var(--lime-dark);
}

.pricing-card.is-center-highlight:not(.pricing-card-featured) .pricing-icon {
  background: var(--white);
  color: var(--lime-dark);
}

.pricing-card:not(.pricing-card-featured):hover .pricing-label {
  color: rgba(255,255,255,0.82);
}

.pricing-card.is-center-highlight:not(.pricing-card-featured) .pricing-label {
  color: rgba(255,255,255,0.82);
}

.pricing-card-featured {
  background: var(--gradient-lime);
  color: var(--white);
  box-shadow: none;
}

.pricing-card-featured:hover {
  box-shadow: none;
}

.pricing-card:focus-visible {
  outline: 3px solid var(--charcoal);
  outline-offset: 4px;
}

.pricing-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--lime-lightest);
  color: var(--lime-dark);
}

.pricing-card-featured .pricing-icon {
  background: var(--white);
  color: var(--lime-dark);
}

.pricing-icon svg {
  width: 21px;
  height: 21px;
}

.pricing-card h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.pricing-label {
  margin-bottom: 2px;
  color: var(--grey);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-card-featured .pricing-label {
  color: rgba(255,255,255,0.82);
}

.pricing-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.pricing-note {
  display: block;
  margin: 28px auto 0;
  color: var(--grey);
  font-size: 0.9rem;
  text-align: center;
}

.pricing-note svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  color: var(--lime-dark);
  vertical-align: text-top;
}

.pricing-note span {
  display: inline;
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-start {
  display: flex;
  width: 240px;
  height: 54px;
  margin: 32px auto 0;
  white-space: nowrap;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 60px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: var(--lime-light);
  z-index: 0;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(168,224,99,0.1);
  transition: var(--transition);
}

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

.step-number {
  width: 56px; height: 56px;
  background: var(--gradient-lime);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 auto 20px;
  box-shadow: var(--shadow-lime);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}

.step-icon svg {
  width: 32px;
  height: 32px;
  color: var(--lime-dark);
}

.step-card h3 { margin-bottom: 12px; }

.step-card p {
  color: var(--grey);
  font-size: 1rem;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 28px 26px 26px;
  background: var(--white);
  border: 1px solid rgba(168,224,99,0.24);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 0;
  width: 5px;
  height: 32px;
  background: var(--gradient-lime);
  transform-origin: top;
  transition: transform var(--transition);
}

.service-card h3,
.service-card p {
  position: relative;
  z-index: 1;
}

.service-card h3 {
  margin-bottom: 12px;
  color: var(--charcoal);
  font-size: 1.3rem;
}

.service-card p {
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.65;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(86,171,47,0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.service-card:hover::before,
.service-card:focus-visible::before {
  transform: scaleY(1);
}

/* --- Smart Solutions --- */
.smart-solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.smart-solution-card {
  background: var(--white);
  border: 1px solid rgba(168,224,99,0.18);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.smart-solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-lime);
  opacity: 0;
  transition: var(--transition);
}

.smart-solution-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.smart-solution-card:hover::before { opacity: 0.04; }

.smart-solution-card > * {
  position: relative;
  z-index: 1;
}

.smart-solution-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--lime-lightest);
  color: var(--lime-dark);
}

.smart-solution-icon svg {
  width: 22px;
  height: 22px;
}

.smart-solution-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
}

.smart-solution-card p {
  color: var(--grey);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Tax Estimator --- */
.estimator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}

.estimator-grid .btn {
  height: 48px;
}

.estimator-form #calcBtn {
  display: flex;
  width: fit-content;
  min-width: 218px;
  margin: 8px auto 0;
}

.estimator-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(168,224,99,0.12);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.estimator-form .form-group label {
  color: #1E1E2F;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--grey-light);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
  color: var(--charcoal);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(168,224,99,0.15);
}

.estimator-form .form-group input {
  height: 52px;
  border: 2px solid var(--lime);
  border-radius: 50px;
  padding-left: 24px;
}

.estimator-form .form-group input:focus {
  border-color: var(--lime);
}

.estimator-result {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(168,224,99,0.12);
  display: flex;
  flex-direction: column;
}

.estimator-result svg {
  width: 1em;
  height: 1em;
}

.estimator-calculate {
  margin-top: 8px;
}

.estimator-result-icon {
  font-size: 3rem;
  margin-bottom: 8px;
  line-height: 1;
  color: var(--lime-dark);
}

.estimator-result > .btn {
  margin-top: auto;
  align-self: center;
}

.result-amount {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--gradient-lime);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 24px 0 16px;
}

.result-label {
  color: var(--grey);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* --- Trust Section --- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(168,224,99,0.08);
  transition: var(--transition);
}

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

.trust-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.trust-icon svg {
  width: 24px;
  height: 24px;
}

.trust-number {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--lime-dark);
  display: block;
}

.trust-label {
  font-size: 0.9rem;
  color: var(--grey);
  margin-top: 4px;
}

/* --- FAQ --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(168,224,99,0.08);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.active { border-color: var(--lime); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover { color: var(--lime-dark); }

.faq-question > span:first-child {
  flex: 1;
  min-width: 0;
  min-height: 2.4em;
  padding-right: 16px;
  display: flex;
  align-items: center;
}

.faq-chevron {
  flex: 0 0 24px;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--lime-dark);
}

.faq-chevron svg {
  width: 24px;
  height: 24px;
}

.faq-item.active .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--grey);
  line-height: 1.7;
  font-size: 1rem;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--gradient-lime);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -30%;
  width: 28%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  opacity: 0;
  transform: translateX(-220%) skewX(-20deg);
  pointer-events: none;
}

.cta-banner > .container {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255,255,255,0.9);
  font-size: 1.2rem;
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  background: var(--white);
  color: var(--lime-dark);
  padding: 16px 36px;
  font-weight: 700;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

/* --- Footer --- */
.footer {
  background: #111111;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

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

.footer-brand .logo { color: var(--white); display: block; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  padding: 4px 0;
}

.footer-col a svg {
  width: 12px;
  height: 12px;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col a:hover { color: var(--lime); }

.footer-col a.footer-address {
  white-space: nowrap;
  flex-wrap: nowrap;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px 16px;
  font-size: 0.9rem;
  position: relative;
}

.footer-bottom > span {
  display: block;
}

.footer-bottom > span:first-child {
  justify-self: start;
}

.footer-bottom > span:last-child {
  justify-self: end;
}

.footer-legal-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  position: static;
  transform: none;
  justify-self: center;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.7);
}

.footer-legal-links a:hover {
  color: var(--lime);
}

.legal-page {
  min-height: 100vh;
  padding: 64px 0;
  background: var(--gradient-hero);
}

.legal-page .container {
  max-width: 800px;
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  font-weight: 600;
}

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--grey);
  margin-bottom: 36px;
}

.legal-page h2 {
  font-size: 1.4rem;
  margin: 28px 0 10px;
}

.legal-page p {
  color: var(--charcoal);
  line-height: 1.7;
}

/* --- Exit Intent Popup --- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30,30,47,0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.popup-overlay.show { display: flex; opacity: 1; }

.popup-icon {
  line-height: 1;
}

.popup {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.popup-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--off-white);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-close:hover { background: var(--grey-light); }

.popup-icon { font-size: 3rem; margin-bottom: 16px; }
.popup-icon svg { width: 1em; height: 1em; }
.popup h3 { margin-bottom: 12px; }
.popup p { color: var(--grey); margin-bottom: 28px; line-height: 1.6; }

/* --- Filing Modal --- */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 47, 0.7);
  backdrop-filter: blur(2px);
}

.modal-content {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 700px;
  width: 90%;
  height: calc(100vh - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  overscroll-behavior: contain;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --lime-lightest: #F3F4F6;
  --lime-light: #D1D5DB;
  --lime: #AAB2BC;
  --lime-dark: #59636E;
  --lime-darker: #1E1E2F;
  --form-heading-green: #1E1E2F;
  --form-label-green: #343946;
  --form-placeholder-green: var(--grey);
  --modal-accent-lime: #A8E063;
  --modal-accent-green: #56AB2F;
}

.modal-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

@supports (height: 100dvh) {
  .modal-content {
    height: calc(100dvh - 32px);
    max-height: calc(100dvh - 32px);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.modal-header {
  padding: 28px 32px 22px;
  position: relative;
  text-align: center;
}

.modal-header h2 {
  font-size: 1.8rem;
  color: var(--form-heading-green);
  margin: 0 0 6px;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--grey);
  margin: 0;
}

.modal-close {
  position: sticky;
  top: max(16px, env(safe-area-inset-top));
  z-index: 3;
  flex: 0 0 auto;
  margin: 20px 0 0 20px;
  width: 40px;
  height: 40px;
  border: none;
  background: var(--modal-accent-green);
  color: var(--white);
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:focus-visible,
.form-actions button:focus-visible {
  outline: 3px solid rgba(86,171,47,0.28);
  outline-offset: 3px;
}

.modal-close:hover {
  background: var(--white);
  color: var(--modal-accent-green);
}

.modal-close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.modal-close.is-hidden {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.filing-form {
  padding: 28px 32px 32px;
}

.form-section {
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--lime-light);
}

.form-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.filing-form > .form-section:nth-last-child(2) {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.form-section-title {
  font-size: 1rem;
  color: var(--form-heading-green);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.form-group > .form-section-title {
  margin-top: 26px;
}

.form-section-title i,
.form-section-title svg {
  display: none;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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


.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--form-label-green);
  margin-bottom: 8px;
}

.filing-form .form-group > label:not(.checkbox-label) {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--form-label-green);
  text-align: left;
}

.form-group input,
.form-group select,
.form-group textarea {
  box-sizing: border-box;
  padding: 12px 14px;
  border: 2px solid #7B8490;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: var(--transition);
  background: var(--white);
}

.filing-form .form-group input:not([type="checkbox"]):not([type="file"]):hover,
.filing-form .form-group textarea:hover,
.filing-form .custom-select-trigger:hover {
  border-color: var(--modal-accent-green);
  background: #FAFDF6;
  box-shadow: 0 0 0 3px rgba(168, 224, 99, 0.16);
}

.form-group input[type="checkbox"],
.form-group input[type="file"] {
  border: 0;
  border-radius: 0;
  font-size: inherit;
  font-weight: inherit;
  padding: 0;
}

.filing-form .form-group input {
  height: 52px;
}

.filing-form .form-group input:required,
.filing-form .form-group textarea:required,
.filing-form .custom-select:has(select:required) .custom-select-trigger {
  border-color: var(--modal-accent-green);
}

.filing-form input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.number-input-wrap {
  position: relative;
}

.number-input-wrap input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
  padding-right: 40px;
}

.number-input-wrap input[type="number"]::-webkit-inner-spin-button,
.number-input-wrap input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-stepper {
  position: absolute;
  top: 50%;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-50%);
}

.number-stepper-btn {
  width: 18px;
  height: 13px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.number-stepper-btn svg {
  display: none;
}

.number-stepper-btn:hover svg,
.number-stepper-btn:focus-visible svg {
  stroke: var(--lime-darker);
  transform: scale(1.12);
}

/* Select dropdown styling with green accent */
.form-group select {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
}

.custom-select {
  position: relative;
}

.custom-select-trigger {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 12px 46px 12px 22px;
  border: 2px solid var(--modal-accent-green);
  border-radius: 50px;
  background: var(--white);
  color: var(--form-placeholder-green);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: normal;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.custom-select.has-value .custom-select-trigger {
  color: var(--form-heading-green);
}

.custom-select-trigger::after {
  display: none;
}

.custom-select-chevron {
  position: absolute;
  top: 50%;
  right: 18px;
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  fill: none;
  stroke: var(--lime-darker);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  pointer-events: none;
  transition: var(--transition);
}

.custom-select.open .custom-select-trigger,
.custom-select-trigger:focus-visible {
  outline: none;
  border-color: var(--modal-accent-green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(168, 224, 99, 0.24);
}

.custom-select.open .custom-select-trigger::after {
  transform: none;
}

.custom-select.open .custom-select-chevron {
  transform: translateY(-50%) rotate(180deg);
}

.custom-select-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  max-height: 220px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(168, 224, 99, 0.45);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 14px 30px rgba(30, 30, 47, 0.16);
  scrollbar-width: thin;
  scrollbar-color: var(--lime-dark) var(--lime-lightest);
}

.custom-select-menu::-webkit-scrollbar {
  width: 8px;
}

.custom-select-menu::-webkit-scrollbar-track {
  background: var(--lime-lightest);
  border-radius: 999px;
}

.custom-select-menu::-webkit-scrollbar-thumb {
  background: var(--lime-dark);
  border: 2px solid var(--lime-lightest);
  border-radius: 999px;
}

.custom-select-menu::-webkit-scrollbar-thumb:hover {
  background: var(--lime-darker);
}

.custom-select.open .custom-select-menu {
  display: grid;
  gap: 2px;
}

.custom-select-employmentType .custom-select-menu {
  max-height: none;
  overflow-y: visible;
}

.custom-select-option {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--lime-dark);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.custom-select-option:hover,
.custom-select-option:focus-visible,
.custom-select-option[aria-selected="true"] {
  outline: none;
  background: var(--lime-lightest);
  color: var(--lime-darker);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--modal-accent-green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(168, 224, 99, 0.24);
}

.filing-form .form-group input:focus,
.filing-form .form-group textarea:focus {
  border-color: var(--modal-accent-green);
  box-shadow: 0 0 0 3px rgba(168, 224, 99, 0.24);
}

.form-group input::placeholder {
  color: var(--form-placeholder-green);
  opacity: 1;
}

.filing-form .form-group input:not([type="checkbox"]):not([type="file"]),
.filing-form .form-group textarea {
  text-indent: 8px;
}

.form-group input[type="date"] {
  position: relative;
  color: var(--form-placeholder-green);
}

.filing-form #dateOfBirth {
  display: block;
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 12px 22px;
  box-sizing: border-box;
  border: 2px solid #7B8490;
  border-radius: 50px;
  background: var(--white);
  color: var(--charcoal);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  -webkit-appearance: none;
  appearance: none;
}

.filing-form #dateOfBirth::placeholder {
  color: var(--form-placeholder-green);
  opacity: 1;
}

.filing-form #dateOfBirth.is-default {
  color: var(--form-placeholder-green);
}

.filing-form #dateOfBirth:focus {
  outline: none;
  border-color: var(--modal-accent-green);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(168, 224, 99, 0.24);
}

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

.checkbox-label {
  display: flex;
  align-items: center;
  height: 52px;
  min-height: 52px;
  gap: 16px;
  padding: 12px 14px 12px 22px;
  border: 2px solid var(--lime);
  border-radius: 50px;
  background: var(--white);
  cursor: pointer;
  font-size: 1rem;
  line-height: 18px;
  color: var(--lime-dark);
  user-select: none;
  transition: var(--transition);
}

.form-group .checkbox-label {
  display: flex;
  margin-bottom: 0;
}

.checkbox-label:hover {
  border-color: var(--modal-accent-green);
  background: linear-gradient(135deg, #F3FBE7, #E5F5CF);
  box-shadow: 0 0 0 3px rgba(168, 224, 99, 0.16);
}

.checkbox-box {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 2px solid var(--lime-dark);
  border-radius: 5px;
  background: var(--white);
  flex-shrink: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkbox-box input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.checkbox-checkmark {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  pointer-events: none;
  display: none;
  fill: none;
  stroke: var(--white);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.checkbox-box:has(input[type="checkbox"]:focus-visible) {
  outline: 2px solid var(--lime-dark);
  outline-offset: 3px;
}

.checkbox-box:has(input[type="checkbox"]:checked) {
  background: var(--modal-accent-green);
  border-color: var(--modal-accent-green);
}

.checkbox-box input[type="checkbox"]:checked + .checkbox-checkmark {
  display: block;
}

.upload-input-wrapper {
  position: relative;
  border: 2px solid var(--modal-accent-green);
  border-radius: var(--radius-lg);
  min-height: 180px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-input-wrapper:hover {
  border-color: var(--modal-accent-green);
  background: #FFFFFF;
  box-shadow: none;
}

.upload-input-wrapper.has-upload-error,
.upload-input-wrapper.has-upload-error:hover,
.upload-input-wrapper.has-upload-error:focus-visible {
  border-color: #d04a3a;
}

.upload-input-wrapper:focus-visible,
.upload-input-wrapper.dragging,
.upload-input-wrapper.has-files {
  border-color: var(--modal-accent-green);
  background: #FFFFFF;
  box-shadow: none;
}

.upload-input-wrapper.has-files.has-upload-error,
.upload-input-wrapper.has-files.has-upload-error:hover,
.upload-input-wrapper.has-files.has-upload-error:focus-visible {
  border-color: #d04a3a;
}

.upload-input-wrapper.has-upload-error .upload-placeholder svg {
  color: #d04a3a;
}

.upload-input-wrapper input[type="file"] {
  display: none;
}

.upload-placeholder {
  pointer-events: none;
}

.upload-placeholder i {
  font-size: 2.5rem;
  color: var(--lime);
  display: block;
  margin-bottom: 12px;
}

.upload-placeholder svg {
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto 10px;
  color: var(--modal-accent-green);
}

.upload-placeholder svg * {
  fill: none;
  stroke: currentColor;
  animation: none;
}

.upload-placeholder p {
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 6px;
}

.upload-placeholder small {
  color: var(--grey);
  display: block;
}

.file-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item-wrap {
  display: grid;
  gap: 8px;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  padding: 12px 14px;
  border: 2px solid var(--modal-accent-green);
  border-radius: 50px;
  background: var(--white);
  font-size: 0.9rem;
  color: var(--charcoal);
}

.file-name {
  display: flex;
  align-items: center;
  column-gap: 0;
  min-width: 0;
  flex: 1 1 calc(100% - 42px);
  text-indent: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.file-name-base {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name-extension,
.file-size {
  flex: 0 0 auto;
}

.file-name-extension {
  margin-left: auto;
}

.file-size {
  margin-left: 8px;
}

.file-upload-progress {
  position: relative;
  order: 4;
  flex: 1 1 100%;
  height: 7px;
  margin: 0 34px 0 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(86, 171, 47, 0.16);
}

.file-upload-bar {
  position: absolute;
  inset: 0 auto 0 0;
  min-width: 20%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--lime-light), var(--lime)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.0) 0 8px, rgba(255,255,255,0.35) 8px 16px);
  transition: width 0.22s ease;
}

.upload-uploading .file-upload-bar,
.upload-waiting .file-upload-bar {
  background:
    repeating-linear-gradient(110deg, rgba(255,255,255,0.0) 0 10px, rgba(255,255,255,0.35) 10px 20px),
    linear-gradient(90deg, var(--lime-light), var(--lime));
  background-size: 38px 38px, auto;
  animation: file-upload-stripes 0.8s linear infinite;
}

.upload-done .file-upload-progress {
  background: rgba(86, 171, 47, 0.2);
}

.upload-error {
  border-color: #d04a3a;
}

.upload-error .file-item {
  border-color: #d04a3a;
}

.upload-error .file-item-remove {
  background: #d04a3a;
  box-shadow: 0 3px 10px rgba(208, 74, 58, 0.24);
}

.upload-error .file-item-remove:hover {
  background: #b53b2d;
}

.upload-error .file-upload-progress {
  background: rgba(208, 74, 58, 0.14);
}

.upload-error .file-upload-bar {
  min-width: 100%;
  background: #d04a3a;
}

.file-upload-status {
  order: 3;
  display: block;
  width: 100%;
  margin: -2px 0 0;
  font-size: 0.74rem;
  line-height: 1.2;
  color: var(--form-label-green);
  text-align: center;
}

.upload-done .file-upload-status {
  color: var(--lime-dark);
  font-weight: 700;
}

.upload-error .file-upload-status {
  color: #b53b2d;
  font-weight: 700;
}

.file-item-meta {
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 0 14px;
  justify-items: center;
  text-align: center;
}

@keyframes file-upload-stripes {
  from { background-position: 0 0, 0 0; }
  to { background-position: 38px 0, 0 0; }
}

.file-item-remove {
  order: 2;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  border: 0;
  border-radius: 50%;
  background: var(--modal-accent-green);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(86, 171, 47, 0.25);
  transition: var(--transition);
}

.file-item-remove:hover {
  background: var(--lime-dark);
  color: var(--white);
  transform: scale(1.08);
}

.file-item-remove svg {
  width: 14px;
  height: 14px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.form-actions {
  display: flex;
  gap: 12px;
  width: min(100%, 640px);
  margin: 8px 0 0;
  padding: 0;
}

.form-actions button {
  flex: 1;
}

.modal-footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  min-height: 72px;
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  border: none;
  box-shadow: 0 -12px 28px rgba(30, 30, 47, 0.18);
  color: var(--grey);
  font-size: 0.9rem;
}

.modal-footer p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--modal-accent-green);
  white-space: nowrap;
  text-align: center;
}

.modal-footer i,
.modal-footer svg {
  width: 18px;
  height: 18px;
  color: var(--modal-accent-green);
  flex: 0 0 auto;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; margin: 0 auto; }
  .hero-seo-heading { margin-bottom: 16px; }
  .hero .hero-seo-heading h1 {
    width: min(100%, 440px);
    font-size: clamp(1rem, 6vw, 2.5rem);
    text-align: left;
  }
  .hero-mobile-break { display: block; }
  .hero .hero-content h2 { display: none; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-ctas .btn-outline { display: none; }
  .countdown-wrap { margin: 0 auto; }
  .hero-visual { align-items: center; margin-top: 40px; justify-content: center; }
  .hero-card { margin-bottom: 60px; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .steps-grid::before { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-card,
  .pricing-card:nth-child(4) { grid-column: auto; }
  .smart-solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .estimator-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 63px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-bottom > span:first-child,
  .footer-bottom > span:last-child {
    justify-self: auto;
  }

  .footer-legal-links {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
  }

  /* Modal styles for mobile */
  .modal-content {
    width: 95%;
    height: calc(100vh - 20px);
    max-height: calc(100vh - 20px);
    border-radius: var(--radius-md);
  }

  @supports (height: 100dvh) {
    .modal-content {
      height: calc(100dvh - 20px);
      max-height: calc(100dvh - 20px);
    }
  }

  .modal-header {
    padding: 24px 56px 16px;
  }

  .modal-header h2 {
    font-size: 1.4rem;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.3rem;
    margin-top: 16px;
    margin-left: 16px;
  }

  .filing-form {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-section {
    margin-bottom: 20px;
  }

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

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

  .form-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .modal-footer {
    min-height: 64px;
    padding: 20px;
    font-size: 0.9rem;
  }
  .nav-links { display: none; }
  .logo-group {
    position: absolute;
    top: 50%;
    left: 6%;
    transform: translateY(calc(-50% + 4px));
  }
  .logo-line { justify-content: flex-start; }
  .logo-credit { text-align: left; }
  .menu-toggle {
    display: flex;
    position: absolute;
    right: 6%;
    left: auto;
    transform: none;
  }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--navbar-height); left: 0; right: 0;
    background: var(--white);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .hero {
    padding-top: calc(var(--header-offset) + 20px);
    padding-bottom: 64px;
  }
  .hero-seo-heading { margin-top: 12px; }
  .hero .container {
    gap: 28px;
  }
  .hero-visual {
    width: 100%;
    margin-top: 8px;
  }
  .hero-card {
    width: min(100%, 440px);
    margin: 0 auto 60px auto;
    padding: 28px 20px 30px;
  }
  .hero-card-header {
    margin-bottom: 22px;
  }
  .upload-zone {
    padding: 28px 18px;
  }
  .upload-meta {
    grid-template-columns: 1fr;
  }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .smart-solutions-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .footer-legal-links { position: static; transform: none; }
}

@media (max-width: 480px) {
  .hero { padding-top: calc(var(--header-offset) + 18px); padding-bottom: 72px; }
  .hero .hero-seo-heading h1 {
    width: 100%;
    font-size: clamp(1.4rem, 7vw, 2.5rem);
  }
  .estimator-grid > * { min-width: 0; }
  .estimator-form { padding: 28px 16px; }
  .estimator-result { padding: 32px 16px 28px; }
  .estimator-form #calcBtn { min-width: 0; max-width: 100%; }
  .upload-meta { gap: 14px; margin-top: 14px; }
  .upload-fields-group { gap: 8px; transform: none; }
  .upload-send { width: calc(100% + 4px); min-width: 0; height: 60.64px; transform: none; }
  .countdown-note { max-width: none; font-size: 12px; white-space: nowrap; }
  .countdown { gap: 8px; }
  .countdown-item .number { font-size: 1.7rem; padding: 6px 3px; }
  .trust-grid { grid-template-columns: 1fr; }
  .hero-card { 
    padding: 26px 18px 28px;
    margin-bottom: 60px;
  }
  .section { padding: 60px 0; }
  .hero-card-title { font-size: 1.2rem; }
  .hero-card-sub { font-size: 13px; }
  .file-types {
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    padding: 2px 0 8px;
  }
  .file-types-label,
  .file-tag {
    flex: 0 0 auto;
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  :root { --banner-height: 40px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .footer-col a.footer-address { white-space: normal; overflow-wrap: anywhere; }
  .hero-seo-heading h1 { font-size: min(62px, calc((100vw - 32px) / 18.53)); }
  .deadline-banner {
    padding: 8px 16px;
    font-size: 0.7rem;
    line-height: 1;
  }
  .hero .container { gap: 24px; }
  .hero-ctas { gap: 12px; margin-bottom: 36px; }
  .hero-ctas .btn { width: 100%; }
  .countdown-wrap { padding: 20px 16px; }
  .countdown { gap: 5px; }
  .countdown-item .number { font-size: 1.5rem; padding: 6px 2px; }
  .countdown-item .unit { font-size: 0.7rem; letter-spacing: 0.04em; }
  .file-types { gap: 0.35rem; flex-wrap: wrap; }
  .file-types-label,
  .file-tag { font-size: 1rem; }
}

/* Input cursor */
:root {
  --cursor-pencil: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='white' stroke='url(%23green)' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3ClinearGradient id='green' x1='0%25' y1='0%25' x2='100%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%23A8E063'/%3E%3Cstop offset='100%25' stop-color='%2356AB2F'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L8 18l-4 1 1-4Z'/%3E%3C/svg%3E") 3 21, text;
}

a,
button:not(:disabled),
label,
[role="button"],
input[type="checkbox"],
select,
.custom-select-trigger,
.custom-select-option {
  cursor: pointer;
}

input:not([type="checkbox"]):not([type="file"]),
textarea {
  cursor: var(--cursor-pencil);
}

.upload-zone {
  cursor: grab;
}

.upload-zone.dragging {
  cursor: grabbing;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
  cursor: not-allowed;
}

@media (pointer: coarse) {
  body,
  button,
  label,
  [role="button"],
  input,
  select,
  textarea,
  .upload-zone {
    cursor: auto;
  }
}

/* --- Services Page --- */
.services-page { background: var(--white); }

.services-article {
  padding: calc(var(--header-offset) + 76px) 0 112px;
  background:
    linear-gradient(180deg, var(--lime-lightest) 0, rgba(238,251,213,0.35) 360px, var(--white) 760px);
}

.services-article-inner {
  max-width: 1040px;
}

.services-article-header {
  max-width: 860px;
  margin: 0 auto 72px;
  text-align: left;
}

.services-article-header h1 {
  margin-bottom: 22px;
}

.services-article-lede {
  max-width: none;
  margin: 0;
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.75;
}

.services-article-body {
  max-width: 860px;
  margin: 0 auto;
}

.service-article-section {
  padding: 48px 0 54px;
  border-top: 1px solid var(--grey-light);
  scroll-margin-top: calc(var(--header-offset) + 24px);
}

.service-article-section:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-article-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 24px;
}

.service-article-heading h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.service-article-heading strong {
  color: var(--lime-darker);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  white-space: nowrap;
}

.service-article-section p {
  max-width: none;
  margin: 0 0 18px;
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.85;
  text-align: justify;
}

.service-article-section p:last-child {
  margin-bottom: 0;
}

.search-phrase {
  color: var(--charcoal);
  font-weight: 700;
}

.search-phrase em {
  color: var(--lime-darker);
  font-style: normal;
}

.services-page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-offset) + 72px) 0 84px;
  background: var(--gradient-hero);
}

.services-page-hero::before,
.services-page-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.services-page-hero::before {
  width: 280px;
  height: 280px;
  right: -110px;
  top: 90px;
  background: rgba(168,224,99,0.25);
}

.services-page-hero::after {
  width: 150px;
  height: 150px;
  left: 5%;
  bottom: -70px;
  background: rgba(86,171,47,0.12);
}

.services-page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  align-items: end;
  gap: 72px;
  position: relative;
  z-index: 1;
}

.services-page-copy { max-width: 680px; }
.services-page-copy h1 {
  max-width: 650px;
  margin-bottom: 20px;
}

.services-page-copy p {
  max-width: 590px;
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.75;
}

.services-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.services-page-list .service-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.services-page-list { background: var(--white); }
.services-page-list .section-header { max-width: 700px; }

.services-page-list .service-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
}

.services-page-list .service-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: var(--radius-sm);
  background: var(--lime-lightest);
  color: var(--lime-dark);
}

.services-page-list .service-card h3 { font-size: 1.3rem; }
.services-page-list .service-card p { max-width: 34ch; }

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: auto;
  padding-top: 22px;
  color: var(--lime-darker);
  font-size: 0.9rem;
  font-weight: 700;
}

.service-card-link span { transition: transform var(--transition); }
.service-card-link:hover span { transform: translateX(4px); }

.services-page-process { padding: 88px 0; }

.services-page-process-inner {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 72px;
}

.services-page-process h2 { max-width: 400px; margin-top: 18px; }

.services-page-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  list-style: none;
}

.services-page-steps li {
  min-height: 170px;
  padding: 24px 20px;
  border-top: 3px solid var(--lime);
  background: rgba(255,255,255,0.72);
}

.services-page-steps li > span,
.services-page-steps strong,
.services-page-steps small { display: block; }

.services-page-steps li > span {
  margin-bottom: 24px;
  color: var(--lime-dark);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
}

.services-page-steps strong {
  margin-bottom: 8px;
  color: var(--charcoal);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
}

.services-page-steps small {
  color: var(--grey);
  font-size: 0.8rem;
  line-height: 1.5;
}

.services-page-cta { padding: 86px 0; }

.services-final-cta {
  padding: 104px 0 112px;
  background: var(--gradient-lime);
  text-align: left;
}

.services-final-cta .container {
  max-width: 1040px;
}

.services-final-cta h2 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0;
}

.services-final-cta h2 span {
  color: var(--lime-lightest);
}

.services-final-cta p {
  max-width: 560px;
  margin: 0 0 32px;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
}

.services-final-cta-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

.services-final-cta .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.services-final-cta .btn-white span {
  font-size: 1.2em;
  transition: transform var(--transition);
}

.services-final-cta .btn-white:hover span {
  transform: translateX(4px);
}

.services-final-cta-phone {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

.services-final-cta-phone:hover {
  color: var(--lime-lightest);
}

@media (max-width: 1024px) {
  .services-page-hero-inner,
  .services-page-process-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

}

@media (max-width: 768px) {
  .services-article {
    padding-top: calc(var(--header-offset) + 48px);
    padding-bottom: 72px;
  }

  .services-article-header {
    margin-bottom: 48px;
  }

  .services-article-lede {
    font-size: 1rem;
  }

  .service-article-section {
    padding: 36px 0 42px;
  }

  .service-article-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .service-article-heading strong {
    grid-column: auto;
  }

  .service-article-section p {
    margin-left: 0;
    font-size: 1rem;
    line-height: 1.75;
  }

  .services-final-cta {
    padding: 76px 0 82px;
  }

  .services-final-cta h2 {
    font-size: clamp(2rem, 10vw, 3.2rem);
  }

  .services-final-cta p {
    font-size: 1rem;
  }

  .services-final-cta-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .services-page-hero {
    padding-top: calc(var(--header-offset) + 48px);
    padding-bottom: 64px;
  }

  .services-page-copy h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .services-page-copy p { font-size: 1rem; }
  .services-page-actions .btn { flex: 1 1 180px; }
  .services-page-steps { grid-template-columns: 1fr; }
  .services-page-steps li { min-height: auto; }
}

@media (min-width: 1025px) {
  .hero-card {
    height: auto;
    margin-bottom: 48px;
    padding-bottom: 65px;
    transform: none;
  }

  .countdown-wrap {
    margin-bottom: 48px;
  }

  .upload-meta {
    transform: translateY(30px);
  }

  .upload-fields-group {
    transform: none;
  }

  .upload-meta {
    grid-template-rows: max-content max-content;
    align-content: start;
  }

  .upload-send-group {
    transform: translateY(6px);
  }
}

@media (max-width: 1024px) {
  body.desktop-interacted .countdown-wrap {
    animation: none;
    opacity: 1;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    transition: none;
  }
}
