/* ============================================================
   Ontario Certified Translation — Design System
   ============================================================ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Sora:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --background: 210 40% 99%;
  --foreground: 222 47% 11%;
  --primary: 222 72% 24%;
  --primary-foreground: 0 0% 100%;
  --brand: 221 83% 53%;
  --brand-foreground: 0 0% 100%;
  --accent: 187 88% 42%;
  --accent-foreground: 0 0% 100%;
  --accent-light: 187 80% 58%;
  --accent-dark: 191 84% 32%;
  --secondary: 210 40% 96%;
  --secondary-foreground: 222 47% 18%;
  --muted: 210 40% 96%;
  --muted-foreground: 215 16% 42%;
  --card: 0 0% 100%;
  --card-foreground: 222 47% 11%;
  --popover: 0 0% 100%;
  --popover-foreground: 222 47% 11%;
  --success: 152 60% 40%;
  --success-foreground: 0 0% 100%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 0 0% 100%;
  --border: 214 32% 91%;
  --input: 214 32% 91%;
  --ring: 187 88% 42%;
  --radius: 0.75rem;

  --gradient-hero: linear-gradient(135deg, hsl(222 72% 16%), hsl(221 70% 28%) 45%, hsl(191 80% 30%));
  --gradient-brand: linear-gradient(135deg, hsl(221 83% 53%), hsl(187 88% 42%));
  --gradient-accent: linear-gradient(135deg, hsl(187 88% 46%), hsl(174 72% 45%));
  --gradient-subtle: linear-gradient(180deg, hsl(210 40% 99%), hsl(210 40% 96%));
  --gradient-card: linear-gradient(180deg, hsl(0 0% 100%), hsl(210 40% 98%));

  --shadow-soft: 0 4px 20px -6px hsl(222 47% 11% / .08);
  --shadow-card: 0 10px 34px -10px hsl(222 47% 20% / .12);
  --shadow-elevated: 0 24px 60px -18px hsl(222 47% 18% / .22);
  --shadow-brand: 0 16px 40px -12px hsl(221 83% 53% / .4);
  --shadow-accent: 0 16px 40px -12px hsl(187 88% 42% / .38);

  --wa-green: #25D366;
  --font-display: 'Sora', sans-serif;
  --font-sans: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: inline-block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.08em;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

@media (min-width: 640px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1024px) {
  .container { padding-left: 2.5rem; padding-right: 2.5rem; }
}

.section-padding {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .section-padding { padding-top: 3.5rem; padding-bottom: 3.5rem; }
}

@media (min-width: 1024px) {
  .section-padding { padding-top: 5rem; padding-bottom: 5rem; }
}

/* ── Background Utilities ── */
.bg-gradient-hero { background: var(--gradient-hero); }
.bg-gradient-brand { background: var(--gradient-brand); }
.bg-gradient-accent { background: var(--gradient-accent); }
.bg-gradient-subtle { background: var(--gradient-subtle); }
.bg-gradient-card { background: var(--gradient-card); }
.bg-primary { background: hsl(var(--primary)); }
.bg-background { background: hsl(var(--background)); }
.bg-secondary { background: hsl(var(--secondary)); }

/* ── Text Utilities ── */
.text-gradient-brand {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-primary { color: hsl(var(--primary)); }
.text-brand { color: hsl(var(--brand)); }
.text-accent { color: hsl(var(--accent)); }
.text-accent-light { color: hsl(var(--accent-light)); }
.text-muted { color: hsl(var(--muted-foreground)); }
.text-white { color: #fff; }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }

/* ── Shadows ── */
.shadow-soft { box-shadow: 0 2px 8px -2px rgba(0,0,0,.08), 0 4px 12px -4px rgba(0,0,0,.05); }
.shadow-card { box-shadow: 0 4px 16px -4px rgba(0,0,0,.1), 0 2px 6px -2px rgba(0,0,0,.06); }
.shadow-elevated { box-shadow: 0 8px 30px -6px rgba(0,0,0,.12), 0 4px 12px -4px rgba(0,0,0,.08); }

/* ── Eyebrow Label ── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--accent));
  margin-bottom: 0.75rem;
}

.eyebrow-white {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: hsl(var(--accent-light));
  margin-bottom: 0.75rem;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.btn-brand:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px -4px hsla(var(--brand), 0.4);
}

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

.btn-white:hover {
  background: hsl(var(--secondary));
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: var(--wa-green);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: hsl(var(--primary));
  border: 1.5px solid hsl(var(--border));
}

.btn-outline:hover {
  border-color: hsl(var(--brand));
  color: hsl(var(--brand));
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-block { width: 100%; }

.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.shine:hover::after { left: 100%; }

/* ── Dot Grid Background ── */
.bg-dot-grid {
  background-image: radial-gradient(circle, rgba(255,255,255,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.card:hover {
  box-shadow: 0 4px 16px -4px rgba(0,0,0,.1);
  transform: translateY(-2px);
}

.card-glass {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
  height: 4rem;
  transition: box-shadow 0.3s;
}

@media (min-width: 1024px) {
  .site-nav { height: 4.25rem; }
}

.site-nav.scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.nav-logo img {
  height: 2.5rem;
  width: auto;
}

@media (min-width: 640px) {
  .nav-logo img { height: 2.75rem; }
}

@media (min-width: 1024px) {
  .nav-logo img { height: 3rem; }
}

.nav-links {
  display: none;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: hsl(var(--primary));
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -0.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-phone {
  display: none;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

@media (min-width: 1024px) {
  .nav-phone { display: flex; }
}

.nav-cta {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta { display: inline-flex; }
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 4rem;
  left: 0;
  height: 2px;
  background: var(--gradient-brand);
  z-index: 49;
  transition: width 0.1s linear;
}

@media (min-width: 1024px) {
  .scroll-progress { top: 4.25rem; }
}

/* Mobile Menu */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: hsl(var(--foreground));
}

@media (min-width: 1024px) {
  .mobile-toggle { display: none; }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem;
  z-index: 48;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}

.mobile-menu.open { display: inline-block; }

.mobile-menu a {
  display: inline-block;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.mobile-menu a:hover {
  background: hsl(var(--secondary));
}

.mobile-menu .btn {
  margin-top: 0.5rem;
  width: 100%;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  padding: 7rem 0 4rem;
  overflow: hidden;
  scroll-margin-top: 0;
}

@media (min-width: 1024px) {
  .hero { padding: 8rem 0 5rem; }
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1.05fr minmax(340px, 460px); gap: 3rem; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.08em;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .hero h1 { font-size: 2rem; }
}

@media (min-width: 1024px) {
  .hero h1 { font-size: 2.1rem; }
}

.hero-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  max-width: 520px;
}

@media (min-width: 640px) {
  .hero-desc { font-size: 1.125rem; }
}

.hero-highlights {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.hero-highlight {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-highlight-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Rotating Word */
.rotating-word-wrapper {

  display: block;
  position: relative;
  overflow: hidden;
  height: 1.2em;
  white-space: nowrap;
}

.rotating-word {
  display: none;
  color: hsl(var(--accent-light));
}

.rotating-word.active {
  display: inline-block;
  animation: fadeInUp 0.5s ease forwards;
}

@keyframes fadeInUp {
  0% { transform: translateY(100%); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Hero Decorative Elements */
.hero-aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
  animation: aurora 8s ease-in-out infinite alternate;
}

.hero-aurora-1 {
  width: 400px; height: 400px;
  background: hsl(var(--accent));
  top: -100px; right: -100px;
}

.hero-aurora-2 {
  width: 300px; height: 300px;
  background: hsl(var(--brand));
  bottom: -50px; left: -50px;
  animation-delay: -4s;
}

@keyframes aurora {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.1); }
}

/* Conic Gradient Spinner */
.hero-conic {
  position: absolute;
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, hsl(187 88% 42% / 0.15), transparent, hsl(221 83% 53% / 0.12), transparent);
  animation: spin-slow 20s linear infinite;
  pointer-events: none;
  opacity: 0.5;
}

@keyframes spin-slow {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Wave Divider */
.wave-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: inline-block;
  width: 100%;
  height: 48px;
}

@media (min-width: 768px) {
  .wave-divider svg { height: 64px; }
}

/* ── Quote Widget ── */
.quote-widget {
  background: #fff;
  border-radius: 1.5rem;
  padding: 1.5rem;
  box-shadow: 0 8px 30px -6px rgba(0,0,0,.12), 0 4px 12px -4px rgba(0,0,0,.08);
}

@media (min-width: 640px) {
  .quote-widget { padding: 1.75rem; }
}

.quote-widget-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background: hsl(var(--secondary));
  border-radius: 1rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--primary));
  margin-bottom: 0.625rem;
}

.quote-widget h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-bottom: 0.75rem;
}

.quote-widget .form-group {
  margin-bottom: 0.875rem;
}

.quote-widget label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.25rem;
}

.quote-widget input,
.quote-widget select,
.quote-widget textarea {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) - 2px);
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: border-color 0.2s;
  font-family: var(--font-sans);
}

.quote-widget input:focus,
.quote-widget select:focus,
.quote-widget textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsla(var(--ring), 0.15);
}

.quote-widget .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.quote-widget .submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.quote-widget .trust-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.375rem;
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
}

.quote-widget .trust-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.quote-note {
  text-align: center;
  font-size: 0.6875rem;
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* ── File Drop Zone ── */
.file-drop-zone {
  border: 2px dashed hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: hsl(var(--background));
}

.file-drop-zone:hover,
.file-drop-zone.dragover {
  border-color: hsl(var(--brand));
  background: hsl(221 83% 53% / 0.04);
}

.file-drop-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.file-drop-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin: 0;
}

.file-drop-browse {
  color: hsl(var(--brand));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.file-drop-hint {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin: 0;
}

.file-list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-top: 0;
}

.file-list:not(:empty) {
  margin-top: 0.75rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.375rem 0.625rem;
  background: hsl(var(--secondary));
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.8125rem;
}

.file-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: hsl(var(--foreground));
}

.file-item-size {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
}

.file-item-remove {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: hsl(var(--muted-foreground));
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
  font-size: 0.875rem;
  line-height: 1;
}

.file-item-remove:hover {
  background: hsl(0 84% 60% / 0.1);
  color: hsl(0 84% 60%);
}

/* ── Rush Button ── */
.rush-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.625rem 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-family: var(--font-sans);
}

.rush-btn:hover {
  background: hsl(var(--secondary) / 0.6);
}

.rush-btn.active {
  border-color: hsl(var(--accent));
  background: hsl(var(--accent) / 0.05);
}

.rush-btn-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.rush-btn-check {
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid hsl(var(--border));
  border-radius: 0.375rem;
  transition: all 0.2s;
  color: transparent;
}

.rush-btn.active .rush-btn-check {
  border-color: hsl(var(--accent));
  background: hsl(var(--accent));
  color: #fff;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: #fff;
  border-top: 1px solid hsl(var(--border));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1.25rem 0;
}

.trust-bar-inner {
  text-align: center;
}

.trust-bar-title {
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.trust-badge-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

/* ============================================================
   ATIO SECTION
   ============================================================ */
.atio-section {
  background: hsl(var(--background));
}

.atio-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .atio-grid { grid-template-columns: 1fr 1fr; }
}

.atio-content h2 {
  font-size: 1.875rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .atio-content h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .atio-content h2 { font-size: 2.6rem; }
}

.atio-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .atio-content p { font-size: 1.125rem; }
}

.atio-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Sample Card */
.sample-card {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 30px -6px rgba(0,0,0,.12);
  transition: transform 0.3s, box-shadow 0.3s;
}

.sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px -8px rgba(0,0,0,.15);
}

.sample-card-img {
  position: relative;
  background: hsl(var(--secondary));
  padding: 1rem;
  cursor: pointer;
  overflow: hidden;
}

.sample-card-img img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.sample-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.sample-card-img:hover .sample-hover-overlay {
  opacity: 1;
}

.sample-hover-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  background: rgba(0,0,0,0.4);
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

.sample-card-body {
  text-align: center;
  padding: 1.5rem;
}

.sample-card-body h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: hsl(var(--foreground));
  margin-top: 1rem;
  margin-bottom: 0.25rem;
}

.sample-card-body p {
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0;
}

.sample-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sample-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
}

/* ── Sample Preview Modal ── */
.sample-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sample-overlay.open { display: flex; }

.sample-modal {
  background: #fff;
  border-radius: 1rem;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.sample-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
  flex-shrink: 0;
}

.sample-modal-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
}

.sample-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sample-open-pdf-btn {
  display: none;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--primary));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  transition: background 0.2s;
}

.sample-open-pdf-btn:hover {
  background: hsl(var(--secondary));
}

@media (min-width: 768px) {
  .sample-open-pdf-btn { display: inline-flex; }
}

.sample-modal-close {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--destructive) / 0.5);
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
  transition: background 0.2s, color 0.2s;
}

.sample-modal-close:hover {
  background: hsl(var(--destructive));
  color: #fff;
}

.sample-modal-body {
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: hsl(var(--secondary));
}

.sample-pdf-loading {
  padding: 3rem;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 0.875rem;
}

.sample-pdf-page {
  width: 100%;
  max-width: 600px;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  overflow: hidden;
}

.sample-pdf-page img {
  width: 100%;
  height: auto;
  display: inline-block;
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  position: relative;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-item { text-align: center; }

.stat-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: hsl(var(--accent-light));
  line-height: 1;
  margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .stat-value { font-size: 3rem; }
}

.stat-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section { background: #fff; }

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section-heading h2 {
  font-size: 1.875rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .section-heading h2 { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .section-heading h2 { font-size: 2.6rem; }
}

.section-heading p {
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 640px) {
  .section-heading p { font-size: 1.125rem; }
}

.steps-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.step-card {
  text-align: center;
  position: relative;
}

.step-icon-wrap {
  width: 3.5rem;
  height: 3.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: var(--gradient-brand);
  border-radius: 1rem;
  color: #fff;
  position: relative;
  box-shadow: var(--shadow-brand);
}

.step-badge {
  position: absolute;
  top: -0.5rem;
  right: -0.5rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--accent));
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 0 0 3px #fff;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: hsl(var(--foreground));
}

.step-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   DOCUMENTS SECTION
   ============================================================ */
.docs-section { background: var(--gradient-subtle); }

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .docs-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

.doc-card {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: all 0.2s;
  cursor: pointer;
}

.doc-card:hover {
  border-color: hsl(var(--brand));
  color: hsl(var(--brand));
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

.doc-card svg, .doc-card i {
  display: none;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.doc-card:hover svg { opacity: 1; }

.docs-fallback {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

/* ============================================================
   GUARANTEE SECTION
   ============================================================ */
.guarantee-section {
  position: relative;
  overflow: hidden;
}

.guarantee-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .guarantee-grid { grid-template-columns: 1fr 1fr; }
}

.guarantee-content h2 {
  font-size: 1.875rem;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .guarantee-content h2 { font-size: 2.25rem; }
}

.guarantee-content p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
}

.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.promise-card {
  padding: 1.25rem;
}

.promise-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  color: hsl(var(--accent-light));
}

.promise-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.375rem;
}

.promise-card p {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

/* ============================================================
   LANGUAGES SECTION (MARQUEE)
   ============================================================ */
.languages-section { background: hsl(var(--background)); overflow: hidden; }

.marquee-wrapper {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 0.75rem;
  animation: marquee 40s linear infinite;
  width: max-content;
}

.marquee-track:hover { animation-play-state: paused; }

.marquee-track.reverse { animation-direction: reverse; }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.lang-pill:hover {
  border-color: hsl(var(--brand));
  color: hsl(var(--brand));
}

.lang-flag { font-size: 1.25rem; }

/* ============================================================
   TESTIMONIALS (MARQUEE)
   ============================================================ */
.testimonials-section { background: #fff; overflow: hidden; }

.testimonial-card {
  width: 330px;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 1.5rem;
  padding: 1.5rem;
  transition: box-shadow 0.3s;
}

.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.testimonial-quote {
  font-size: 0.875rem;
  line-height: 1.6;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 0.75rem;
  color: #facc15;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.testimonial-role {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.review-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.review-stars { color: #facc15; display: flex; gap: 2px; }

/* ============================================================
   START CTA SECTION
   ============================================================ */
.start-section {
  position: relative;
  overflow: hidden;
}

.start-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .start-grid { grid-template-columns: 1fr minmax(340px, 460px); }
}

.start-content h2 {
  font-size: 1.875rem;
  color: #fff;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .start-content h2 { font-size: 2.25rem; }
}

.start-content > p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  transition: transform 0.2s, background 0.2s;
}

.contact-card:hover { transform: translateY(-1px); }

.contact-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  flex-shrink: 0;
}

.contact-card-wa .contact-card-icon { background: var(--wa-green); color: #fff; }
.contact-card-email .contact-card-icon { background: hsl(var(--brand)); color: #fff; }
.contact-card-phone .contact-card-icon { background: hsl(var(--accent)); color: #fff; }

.contact-card-text h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.125rem;
}

.contact-card-text p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0;
}

.contact-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  background: var(--wa-green);
  color: #fff;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  margin-left: auto;
  flex-shrink: 0;
}

.contact-card-action {
  display: inline-block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  border-radius: calc(var(--radius) - 2px);
  transition: opacity 0.2s;
}

.contact-card-action:hover { opacity: 0.85; }

.btn-wa-action {
  background: var(--wa-green);
  color: #fff;
}

.btn-email-action {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-phone-action {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ============================================================
   FAQ SECTION
   ============================================================ */
.faq-section { background: var(--gradient-subtle); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open {
  border-color: hsl(var(--accent));
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1.125rem 1.25rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-align: left;
  cursor: pointer;
  background: none;
  border: none;
}

.faq-chevron {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
  transition: transform 0.2s;
  color: hsl(var(--muted-foreground));
}

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

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

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding: 0 1.25rem 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
}

.faq-footer {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.faq-footer a {
  color: hsl(var(--brand));
  font-weight: 600;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 3rem; }
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-top: 1rem;
  max-width: 320px;
}

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

.footer-social a {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 0.5rem;
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 0;
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   FLOATING ACTIONS
   ============================================================ */
.floating-actions {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.wa-fab {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--wa-green);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.2s;
  position: relative;
}

.wa-fab:hover { transform: scale(1.08); }

.wa-fab .ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa-green);
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
  opacity: 0;
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.6); opacity: 0; }
}

.mobile-quote-pill {
  display: none;
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 9999px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
}

.mobile-quote-pill.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1023px) {
  .mobile-quote-pill { display: inline-flex; }
}

/* ============================================================
   LEGAL MODAL
   ============================================================ */
.legal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.legal-overlay.open { display: flex; }

.legal-modal {
  background: #fff;
  border-radius: 1rem;
  max-width: 640px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
}

.legal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: background 0.2s;
}

.legal-close:hover { background: hsl(var(--secondary)); }

.legal-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-modal .legal-date {
  font-size: 0.8125rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
}

.legal-modal h3 {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-modal p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.75rem;
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.21, 0.47, 0.32, 0.98),
              transform 0.6s cubic-bezier(0.21, 0.47, 0.32, 0.98);
}

.reveal.visible,
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   WPForms Overrides (match our design system)
   ============================================================ */

/* ── Container reset ── */
.quote-widget .wpforms-container {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
}

.quote-widget .wpforms-container * {
  font-family: var(--font-sans) !important;
}

.quote-widget .wpforms-form {
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Hide WPForms title & noscript (we use our own h3) ── */
.quote-widget .wpforms-head-container {
  display: none !important;
}

.quote-widget .wpforms-form > noscript,
.quote-widget .wpforms-form > #wpforms-error-noscript {
  display: none !important;
}

/* ── Two-column grid for the field container ── */
.quote-widget .wpforms-field-container {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0 0.625rem !important;
}

/* Default: all fields span full width */
.quote-widget .wpforms-field-container > .wpforms-field {
  grid-column: 1 / -1 !important;
}

/* Medium fields go side-by-side (email+phone, translate from+to) */
.quote-widget .wpforms-field-container > .wpforms-field:has(.wpforms-field-medium) {
  grid-column: span 1 !important;
}

/* Also target email + phone specifically */
.quote-widget .wpforms-field-container > .wpforms-field-email,
.quote-widget .wpforms-field-container > .wpforms-field-phone {
  grid-column: span 1 !important;
}

/* Large selects (doc-type) stay full width */
.quote-widget .wpforms-field-container > .wpforms-field-select:has(.wpforms-field-large) {
  grid-column: 1 / -1 !important;
}

/* ── Field spacing — compact ── */
.quote-widget .wpforms-form .wpforms-field {
  padding: 0 0 0.375rem 0 !important;
  margin: 0 !important;
}

.quote-widget .wpforms-form .wpforms-field:last-of-type {
  padding-bottom: 0.25rem !important;
}

/* ── Labels ── */
.quote-widget .wpforms-form .wpforms-field-label {
  font-family: var(--font-sans) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: hsl(var(--foreground)) !important;
  margin: 0 0 0.125rem 0 !important;
  padding: 0 !important;
}

.quote-widget .wpforms-form .wpforms-field-sublabel {
  font-size: 0.6875rem !important;
  color: hsl(var(--muted-foreground)) !important;
  margin-top: 0.125rem !important;
}

/* ── Inputs / Selects / Textareas ── */
.quote-widget .wpforms-form input[type="text"],
.quote-widget .wpforms-form input[type="email"],
.quote-widget .wpforms-form input[type="tel"],
.quote-widget .wpforms-form input[type="url"],
.quote-widget .wpforms-form input[type="number"],
.quote-widget .wpforms-form input[type="date"],
.quote-widget .wpforms-form select,
.quote-widget .wpforms-form textarea {
  width: 100% !important;
  padding: 0.4375rem 0.5rem !important;
  font-size: 0.8125rem !important;
  font-family: var(--font-sans) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: calc(var(--radius) - 2px) !important;
  background: hsl(var(--background)) !important;
  color: hsl(var(--foreground)) !important;
  transition: border-color 0.2s, box-shadow 0.2s !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none !important;
  line-height: 1.5 !important;
  height: auto !important;
}

.quote-widget .wpforms-form select {
  padding-right: 2rem !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23636e7b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.5rem center !important;
  background-size: 0.7rem !important;
}

.quote-widget .wpforms-form textarea {
  min-height: 2.5rem !important;
  resize: vertical !important;
}

.quote-widget .wpforms-form input:focus,
.quote-widget .wpforms-form select:focus,
.quote-widget .wpforms-form textarea:focus {
  border-color: hsl(var(--ring)) !important;
  box-shadow: 0 0 0 3px hsla(var(--ring), 0.15) !important;
  outline: none !important;
}

.quote-widget .wpforms-form input::placeholder,
.quote-widget .wpforms-form textarea::placeholder {
  color: hsl(var(--muted-foreground)) !important;
  opacity: 0.6 !important;
}

/* ── Checkbox (Rush Service) — styled like rush button ── */
.quote-widget .wpforms-form .wpforms-field-checkbox fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.quote-widget .wpforms-form .wpforms-field-checkbox fieldset legend {
  font-size: 0 !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  width: 1px !important;
}

.quote-widget .wpforms-form .wpforms-field-checkbox ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.quote-widget .wpforms-form .wpforms-field-checkbox li {
  margin: 0 !important;
  padding: 0 !important;
}

.quote-widget .wpforms-form .wpforms-field-checkbox li label {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.5rem !important;
  width: 100% !important;
  padding: 0.375rem 0.625rem !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: 0.5rem !important;
  background: none !important;
  cursor: pointer !important;
  transition: border-color 0.2s, background 0.2s !important;
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: hsl(var(--foreground)) !important;
}

.quote-widget .wpforms-form .wpforms-field-checkbox li label:hover {
  background: hsl(var(--secondary) / 0.6) !important;
}

.quote-widget .wpforms-form .wpforms-field-checkbox li:has(input:checked) label {
  border-color: hsl(var(--accent)) !important;
  background: hsl(var(--accent) / 0.05) !important;
}

.quote-widget .wpforms-form .wpforms-field-checkbox input[type="checkbox"] {
  width: 1rem !important;
  height: 1rem !important;
  accent-color: hsl(var(--accent)) !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  order: 1 !important;
}

.quote-widget .wpforms-form .wpforms-field-checkbox .wpforms-field-label-inline {
  order: 2 !important;
  flex: 1 !important;
}

/* ── Radio ── */
.quote-widget .wpforms-form .wpforms-field-radio ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.quote-widget .wpforms-form .wpforms-field-radio li {
  margin: 0 0 0.375rem !important;
  padding: 0 !important;
}

.quote-widget .wpforms-form .wpforms-field-radio li label {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  padding: 0.5rem 0.75rem !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: calc(var(--radius) - 2px) !important;
  cursor: pointer !important;
  transition: border-color 0.2s, background 0.2s !important;
  font-size: 0.875rem !important;
  color: hsl(var(--foreground)) !important;
}

.quote-widget .wpforms-form .wpforms-field-radio li label:hover {
  background: hsl(var(--secondary) / 0.6) !important;
}

.quote-widget .wpforms-form .wpforms-field-radio input[type="radio"] {
  width: 1.125rem !important;
  height: 1.125rem !important;
  accent-color: hsl(var(--accent)) !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* ── File Upload (Modern Dropzone Style) ── */
.quote-widget .wpforms-form .wpforms-field-file-upload {
  padding-bottom: 0.375rem !important;
}

.quote-widget .wpforms-form .wpforms-field-file-upload .wpforms-field-label {
  font-size: 0 !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.quote-widget .wpforms-form .wpforms-uploader {
  border: 2px dashed hsl(var(--border)) !important;
  border-radius: var(--radius) !important;
  padding: 0.5rem 0.75rem !important;
  text-align: center !important;
  cursor: pointer !important;
  transition: border-color 0.2s, background 0.2s !important;
  background: hsl(var(--background)) !important;
  min-height: auto !important;
}

.quote-widget .wpforms-form .wpforms-uploader:hover,
.quote-widget .wpforms-form .wpforms-uploader.dz-drag-hover {
  border-color: hsl(var(--brand)) !important;
  background: hsl(221 83% 53% / 0.04) !important;
}

.quote-widget .wpforms-form .wpforms-uploader .dz-message {
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 0.1875rem !important;
}

.quote-widget .wpforms-form .wpforms-uploader .dz-message svg {
  width: 20px !important;
  height: 20px !important;
  color: hsl(var(--accent)) !important;
}

.quote-widget .wpforms-form .wpforms-uploader .dz-message .modern-title {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: hsl(var(--foreground)) !important;
}

.quote-widget .wpforms-form .wpforms-uploader .dz-message .modern-title span {
  color: hsl(var(--brand)) !important;
  font-weight: 600 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}

.quote-widget .wpforms-form .wpforms-uploader .dz-message .modern-hint {
  font-size: 0.75rem !important;
  color: hsl(var(--muted-foreground)) !important;
}

/* File upload previews */
.quote-widget .wpforms-form .wpforms-uploader .dz-preview {
  background: hsl(var(--secondary)) !important;
  border-radius: calc(var(--radius) - 2px) !important;
  padding: 0.375rem 0.625rem !important;
  margin: 0.375rem 0 0 !important;
  min-height: auto !important;
}

.quote-widget .wpforms-form .wpforms-uploader .dz-preview .dz-filename span {
  font-size: 0.8125rem !important;
  color: hsl(var(--foreground)) !important;
}

.quote-widget .wpforms-form .wpforms-uploader .dz-preview .dz-size span {
  font-size: 0.75rem !important;
  color: hsl(var(--muted-foreground)) !important;
}

.quote-widget .wpforms-form .wpforms-uploader .dz-preview .dz-remove {
  font-size: 0.75rem !important;
  color: hsl(var(--destructive)) !important;
  text-decoration: none !important;
}

/* File upload description — hide (redundant with hint inside dropzone) */
.quote-widget .wpforms-form .wpforms-field-file-upload .wpforms-field-description {
  display: none !important;
}

/* ── Field Descriptions ── */
.quote-widget .wpforms-form .wpforms-field-description {
  font-size: 0.75rem !important;
  color: hsl(var(--muted-foreground)) !important;
}

/* ── Required asterisk ── */
.quote-widget .wpforms-form .wpforms-required-label {
  color: hsl(var(--destructive)) !important;
  font-weight: 600 !important;
}

/* ── Error states ── */
.quote-widget .wpforms-form .wpforms-error {
  border-color: hsl(var(--destructive)) !important;
}

.quote-widget .wpforms-form label.wpforms-error {
  font-size: 0.75rem !important;
  color: hsl(var(--destructive)) !important;
  margin-top: 0.25rem !important;
  font-weight: 500 !important;
}

/* ── Submit Button ── */
.quote-widget .wpforms-form .wpforms-submit-container {
  padding: 0 !important;
  margin: 0.25rem 0 0 0 !important;
  text-align: center !important;
}

.quote-widget .wpforms-form .wpforms-submit-container button,
.quote-widget .wpforms-form .wpforms-submit-container .wpforms-submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  padding: 0.75rem 1.5rem !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.9375rem !important;
  color: #fff !important;
  background: var(--gradient-brand) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  cursor: pointer !important;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s !important;
  box-shadow: var(--shadow-brand) !important;
  position: relative !important;
  overflow: hidden !important;
  letter-spacing: 0.01em !important;
  line-height: 1.4 !important;
}

.quote-widget .wpforms-form .wpforms-submit-container button:hover,
.quote-widget .wpforms-form .wpforms-submit-container .wpforms-submit:hover {
  opacity: 0.92 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 20px 50px -14px hsl(221 83% 53% / .5) !important;
}

.quote-widget .wpforms-form .wpforms-submit-container button:active,
.quote-widget .wpforms-form .wpforms-submit-container .wpforms-submit:active {
  transform: translateY(0) !important;
}

/* Shine effect on submit */
.quote-widget .wpforms-form .wpforms-submit-container button::after {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.25) 45%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0.25) 55%, transparent 60%) !important;
  background-size: 250% 100% !important;
  animation: shine 4s ease-in-out infinite !important;
}

/* Spinner */
.quote-widget .wpforms-form .wpforms-submit-spinner {
  margin: 0.5rem auto 0 !important;
}

/* ── Honeypot & hidden fields ── */
.quote-widget .wpforms-form .wpforms-field-hp {
  display: none !important;
}

/* ── Page break / multi-page ── */
.quote-widget .wpforms-form .wpforms-page-indicator {
  margin-bottom: 1rem !important;
}

/* ── GDPR / Consent ── */
.quote-widget .wpforms-form .wpforms-field-gdpr-checkbox label {
  font-size: 0.8125rem !important;
  color: hsl(var(--muted-foreground)) !important;
}

/* ── Confirmation message ── */
.quote-widget .wpforms-confirmation-container-full {
  background: hsl(var(--success) / 0.08) !important;
  border: 1px solid hsl(var(--success) / 0.25) !important;
  border-radius: var(--radius) !important;
  padding: 1.25rem !important;
  color: hsl(var(--foreground)) !important;
  font-size: 0.9375rem !important;
  text-align: center !important;
}

/* ── Two-column layout for side-by-side fields ── */
.quote-widget .wpforms-form .wpforms-field-row {
  display: flex !important;
  gap: 0.75rem !important;
}

.quote-widget .wpforms-form .wpforms-field-row .wpforms-field-row-block {
  flex: 1 !important;
}

.quote-widget .wpforms-form .wpforms-one-half {
  width: calc(50% - 0.375rem) !important;
  float: left !important;
}

.quote-widget .wpforms-form .wpforms-one-half:nth-of-type(even) {
  margin-left: 0.75rem !important;
}

.quote-widget .wpforms-form .wpforms-field.wpforms-field-medium {
  max-width: 100% !important;
}

/* ── International Phone Input (intl-tel-input) ── */
.quote-widget .wpforms-form .iti {
  width: 100% !important;
  display: block !important;
}

.quote-widget .wpforms-form .iti__flag-container {
  z-index: 2 !important;
}

.quote-widget .wpforms-form .iti__selected-flag {
  padding: 0 8px 0 12px !important;
  background: transparent !important;
  border-right: 1px solid hsl(var(--border)) !important;
  border-radius: calc(var(--radius) - 2px) 0 0 calc(var(--radius) - 2px) !important;
  height: 100% !important;
}

.quote-widget .wpforms-form .iti__selected-flag:hover {
  background: hsl(var(--secondary)) !important;
}

.quote-widget .wpforms-form .iti input[type="tel"] {
  padding-left: 52px !important;
}

.quote-widget .wpforms-form .iti__country-list {
  border: 1px solid hsl(var(--border)) !important;
  border-radius: calc(var(--radius) - 2px) !important;
  box-shadow: var(--shadow-elevated) !important;
  background: #fff !important;
  max-height: 200px !important;
  z-index: 100 !important;
}

.quote-widget .wpforms-form .iti__country-list .iti__country {
  padding: 6px 12px !important;
  font-size: 0.8125rem !important;
}

.quote-widget .wpforms-form .iti__country-list .iti__country:hover,
.quote-widget .wpforms-form .iti__country-list .iti__country--highlight {
  background: hsl(var(--secondary)) !important;
}

.quote-widget .wpforms-form .iti__country-list .iti__dial-code {
  color: hsl(var(--muted-foreground)) !important;
}

/* ── hCaptcha / CAPTCHA ── */
.quote-widget .wpforms-form .wpforms-recaptcha-container {
  margin: 0.125rem 0 !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.quote-widget .wpforms-form .wpforms-recaptcha-container > div {
  transform: scale(0.85) !important;
  transform-origin: center !important;
}

/* Hide any footer text */
.quote-widget .wpforms-container-full .wpforms-form .wpforms-footer-text {
  display: none !important;
}

/* ── Responsive adjustments ── */
@media (max-width: 480px) {
  .quote-widget .wpforms-field-container {
    grid-template-columns: 1fr !important;
  }

  .quote-widget .wpforms-field-container > .wpforms-field-select:has(.wpforms-field-medium) {
    grid-column: 1 / -1 !important;
  }

  .quote-widget .wpforms-form .wpforms-one-half {
    width: 100% !important;
    float: none !important;
  }

  .quote-widget .wpforms-form .wpforms-one-half:nth-of-type(even) {
    margin-left: 0 !important;
  }

  .quote-widget .wpforms-form .wpforms-field-row {
    flex-direction: column !important;
    gap: 0 !important;
  }

  .quote-widget .wpforms-form .wpforms-recaptcha-container > div {
    transform: scale(0.78) !important;
    transform-origin: center !important;
  }
}

/* ── Print ── */
@media print {
  .site-nav, .floating-actions, .scroll-progress { display: none !important; }
  body { font-size: 12pt; }
}

.doc-card i { display: none; }

/* ── Rush / Expedited upsell card (field 14) ─────────────────────────
   Overrides the generic .wpforms-field-checkbox rules above, which
   assume the input sits inside the label. WPForms renders them as
   siblings, so the row is rebuilt here on the <li>. */

.quote-widget .wpforms-form .oct-rush-field {
  border: 1px solid hsl(var(--border)) !important;
  border-radius: 0.625rem !important;
  padding: 0.6875rem 0.8125rem !important;
  background: hsl(var(--secondary) / 0.4) !important;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s !important;
}

.quote-widget .wpforms-form .oct-rush-field:hover {
  border-color: hsl(var(--accent) / 0.55) !important;
}

.quote-widget .wpforms-form .oct-rush-field:has(input:checked) {
  border-color: hsl(var(--accent)) !important;
  background: hsl(var(--accent) / 0.07) !important;
  box-shadow: 0 0 0 3px hsl(var(--accent) / 0.12) !important;
}

.quote-widget .wpforms-form .oct-rush-field fieldset {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* the selectable row: checkbox + label side by side */
.quote-widget .wpforms-form .oct-rush-field li {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

.quote-widget .wpforms-form .oct-rush-field li label,
.quote-widget .wpforms-form .oct-rush-field li:has(input:checked) label {
  display: block !important;
  flex: 1 !important;
  width: auto !important;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: hsl(var(--foreground)) !important;
  cursor: pointer !important;
}

/* lightning bolt, drawn in --accent (187 88% 42%) */
.quote-widget .wpforms-form .oct-rush-field li label::before {
  content: "" !important;
  display: inline-block !important;
  width: 0.875rem !important;
  height: 0.875rem !important;
  margin-right: 0.375rem !important;
  vertical-align: -0.125rem !important;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230DB3C9'%3E%3Cpath d='M13 2 3 14h7l-1 8 10-12h-7z'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

/* price-delta pill — redundant with the description text below,
   so nothing is lost if generated content is not announced */
.quote-widget .wpforms-form .oct-rush-field li label::after {
  content: "+30%" !important;
  display: inline-block !important;
  margin-left: 0.4375rem !important;
  padding: 0.0625rem 0.375rem !important;
  border-radius: 999px !important;
  background: hsl(var(--accent) / 0.14) !important;
  color: hsl(var(--accent-dark)) !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em !important;
  white-space: nowrap !important;
  vertical-align: 0.0625rem !important;
}

.quote-widget .wpforms-form .oct-rush-field input[type="checkbox"] {
  width: 1rem !important;
  height: 1rem !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  accent-color: hsl(var(--accent)) !important;
  cursor: pointer !important;
}

.quote-widget .wpforms-form .oct-rush-field .wpforms-field-description {
  margin: 0.375rem 0 0 1.5rem !important;
  padding: 0 !important;
  font-size: 0.75rem !important;
  line-height: 1.45 !important;
  color: hsl(var(--muted-foreground)) !important;
}

@media (max-width: 480px) {
  .quote-widget .wpforms-form .oct-rush-field .wpforms-field-description {
    margin-left: 0 !important;
  }
}
