/* Quote request page. Homepage chrome, with a scrollable app-style form. */
:root {
  --font-geist-sans: "Geist", Arial, sans-serif;
  --font-display: "Space Grotesk", Arial, sans-serif;
  --font-cairo: "Lalezar", Tahoma, sans-serif;
  --font-markazi: "Markazi Text", Tahoma, serif;
  --navy: #10284c;
  --blue: #234cd6;
  --lime: #d5f66b;
  --muted: #65728c;
  --display: var(--font-display), Arial, sans-serif;
}

* { box-sizing: border-box; }
body.polyver-quote-page .mobile-sidebar,
body.polyver-quote-page .widget_shopping_cart_live_region,
body.polyver-quote-page .ux-body-overlay {
  display: none !important;
}
body.polyver-quote-page {
  min-height: 100dvh;
  overflow-x: clip;
  font-family: var(--font-geist-sans), Arial, sans-serif;
  color: var(--navy);
  background:
    radial-gradient(ellipse at 88% 8%, #d5e4ff 0%, transparent 42%),
    #fbfcff;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; background: transparent; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
svg { flex-shrink: 0; }
:focus-visible { outline: 3px solid #5378e9; outline-offset: 3px; }
img { max-width: 100%; height: auto; }

html.admin-bar { margin-top: 0 !important; }
.admin-bar .translation-page .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .translation-page .site-header { top: 46px; }
}

.animated-logo { display: block; width: 174px; height: 58px; color: #032850; overflow: visible; }
.logo-dark-ink { display: none; }
.logo-wave { transform-box: fill-box; transform-origin: center; animation: logo-voice 1.4s ease-in-out infinite; }
.wave-1 { animation-delay: -.22s; animation-duration: 1.15s; }
.wave-2 { animation-delay: -.5s; animation-duration: 1.6s; }
.wave-3 { animation-delay: -.8s; animation-duration: 1.3s; }
.wave-4 { animation-delay: -.35s; animation-duration: 1.7s; }
@keyframes logo-voice {
  0%, 100% { transform: scaleY(.55); }
  45% { transform: scaleY(1); }
  72% { transform: scaleY(.72); }
}
[data-theme="dark"] .animated-logo { color: #dce9ff; }
[data-theme="dark"] .logo-dark-ink { display: block; }

.appearance-toggle {
  width: 36px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  color: #536681;
  border: 1px solid transparent;
  border-radius: 12px;
}
.appearance-toggle:hover { background: #eaf0fa; color: #234cd6; }
.locale-toggle { width: 52px; font-size: 12px; direction: ltr; text-decoration: none; }
.locale-toggle span[lang="fa"] { font-family: var(--font-markazi), Tahoma, serif; }

.translation-page { min-height: 100dvh; }
.quote-stage {
  position: relative;
  isolation: isolate;
  padding: 18px 16px calc(28px + env(safe-area-inset-bottom));
}
.quote-orbits {
  position: absolute;
  width: 100%;
  max-width: 920px;
  aspect-ratio: 1;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
  border: 1px solid #214bc50d;
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}
.quote-orbits i { position: absolute; inset: 10%; border: 1px solid #214bc50d; border-radius: 50%; }
.quote-orbits i:nth-child(2) { inset: 23%; }
.quote-orbits i:nth-child(3) { inset: 35%; }
.quote-layout { width: min(1120px, 100%); margin: 0 auto; }
.quote-intro { margin-bottom: 16px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.2px;
  color: #6d7e98;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: #aacd32;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #d6f57855;
}
.quote-intro h1 {
  font-family: var(--display);
  font-size: clamp(34px, 9vw, 46px);
  font-weight: 550;
  line-height: 1.02;
  letter-spacing: -1.6px;
}
.quote-intro h1 span { color: var(--blue); }
.quote-intro .intro {
  display: none;
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}
.quote-assurance { display: none; }
.quote-form { min-width: 0; }
.quote-form .wpcf7,
.quote-form form { margin: 0; }
.quote-form > p:empty { display: none; }

.translation-page[dir="rtl"] {
  font-family: var(--font-markazi), Tahoma, serif;
}
.translation-page[dir="rtl"] .quote-intro h1,
.translation-page[dir="rtl"] .eyebrow {
  font-family: var(--font-cairo), Tahoma, sans-serif;
  letter-spacing: 0;
  font-weight: 500;
}
.translation-page[dir="rtl"] .eyebrow { font-size: 15px; }
.translation-page[dir="rtl"] .quote-intro h1 { font-size: clamp(36px, 10vw, 52px); line-height: 1.4; }
.translation-page[dir="rtl"] .header-cta,
.translation-page[dir="rtl"] .desktop-nav {
  font-family: var(--font-markazi), Tahoma, serif;
}

@media (min-width: 900px) {
  .animated-logo { width: 195px; height: 65px; }
  .quote-stage { padding: 36px 5vw 72px; }
  .quote-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 6vw;
    align-items: start;
  }
  .quote-intro { position: sticky; top: 118px; padding-top: 18px; }
  .quote-intro h1 {
    font-size: clamp(48px, 4.6vw, 72px);
    letter-spacing: -2.6px;
    line-height: 1.02;
  }
  .quote-intro .intro { display: block; margin-top: 22px; font-size: 18px; line-height: 1.7; }
  .quote-assurance {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    font-size: 14px;
  }
  .quote-assurance span { display: flex; align-items: center; gap: 8px; }
  .quote-assurance svg { color: var(--blue); }
  .translation-page[dir="rtl"] .quote-intro h1 { letter-spacing: 0; line-height: 1.4; }
  .translation-page[dir="rtl"] .quote-intro .intro,
  .translation-page[dir="rtl"] .quote-assurance { font-size: 20px; }
}

@media (max-width: 599px) {
  .animated-logo { width: 140px; height: 47px; }
  .appearance-toggle { width: 34px; height: 40px; }
  .locale-toggle { width: 49px; }
  .quote-stage { padding: 8px 12px calc(18px + env(safe-area-inset-bottom)); }
  .quote-intro { margin-bottom: 12px; }
  .quote-intro h1 { font-size: 30px; letter-spacing: -1.1px; }
}

@media (max-width: 360px) {
  .animated-logo { width: 130px; height: 44px; }
  .quote-intro h1 { font-size: 27px; }
}

html[data-theme="dark"] { color-scheme: dark; }
[data-theme="dark"] body.polyver-quote-page {
  background:
    radial-gradient(ellipse at 85% 12%, #223a4840, transparent 46%),
    #0b1526;
  color: #e7eefc;
}
[data-theme="dark"] .appearance-toggle { color: #acbdd8; }
[data-theme="dark"] .appearance-toggle:hover { background: #1c2b45; color: #d5f66b; }
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .quote-intro .intro { color: #a7b5cd; }
[data-theme="dark"] .quote-intro h1,
[data-theme="dark"] .quote-assurance { color: #e7eefc; }
[data-theme="dark"] .quote-intro h1 span { color: #97b4ff; }
[data-theme="dark"] .quote-orbits,
[data-theme="dark"] .quote-orbits i { border-color: #a5c4ff17; }
[data-theme="dark"] .quote-assurance svg { color: #d5f66b; }

@media (prefers-reduced-motion: reduce) {
  .logo-wave { animation: none; transform: none; }
}
