/* ZTop marketing — palette aligned with app (purple / yellow) + dashboard neutrals */

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700&display=swap');

:root {
  --z-ink: #0c0a12;
  --z-ink-soft: #1e1b2e;
  --z-muted: #64748b;
  --z-muted-light: #94a3b8;
  --z-surface: #f8fafc;
  --z-card: #ffffff;
  --z-purple-900: #4c1d95;
  --z-purple-800: #5b21b6;
  --z-purple-700: #6d28d9;
  --z-purple-500: #8b5cf6;
  --z-indigo-950: #1e1b4b;
  --z-accent: #eab308;
  --z-accent-bright: #facc15;
  --z-accent-hover: #fde047;
  --z-ring: rgba(139, 92, 246, 0.35);
  --z-header-mid: #7c3aed;
  --z-header-scrolled: #6d28d9;
  --z-footer-bg: #5b21b6;
  --font: 'Lexend', system-ui, sans-serif;
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --shadow: 0 25px 50px -12px rgba(76, 29, 149, 0.35);
  --header-h: 4.25rem;
  --site-max: 72rem;
  --site-inline: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--z-ink);
  background: var(--z-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--z-purple-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a.btn,
a.btn:hover,
a.btn:focus,
a.btn:focus-visible {
  text-decoration: none;
}

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

/* ——— Header ——— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  padding: 0;
  background: var(--z-header-mid);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 24px rgba(91, 33, 182, 0.2);
}

.site-header.is-scrolled {
  background: var(--z-header-scrolled);
  box-shadow: 0 6px 28px rgba(76, 29, 149, 0.28);
}

.site-header-inner {
  max-width: var(--site-max);
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--site-inline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #fff;
  text-decoration: none;
  line-height: 0;
}

.logo img {
  display: block;
  height: clamp(1.65rem, 4vw, 2rem);
  width: auto;
  max-width: min(11rem, 42vw);
  object-fit: contain;
  object-position: left center;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

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

.nav-desktop a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: #fff;
}

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

.header-actions .btn {
  font-size: 0.9rem;
  padding: 0.5rem 1.05rem;
  border-radius: 0.45rem;
}

.lang-switch {
  display: flex;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}

.lang-switch button {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button[aria-pressed='true'] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.75rem 1.45rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, var(--z-accent-bright), var(--z-accent));
  color: var(--z-ink-soft);
  box-shadow: 0 4px 20px rgba(234, 179, 8, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(180deg, var(--z-accent-hover), var(--z-accent-bright));
  box-shadow: 0 6px 28px rgba(234, 179, 8, 0.45);
}

.btn-ghost {
  background: #fff;
  color: var(--z-purple-800);
  border: 1px solid rgba(109, 40, 217, 0.35);
}

.btn-ghost:hover {
  background: rgba(139, 92, 246, 0.08);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

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

.nav-toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  padding: 0;
  background: var(--z-header-mid);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 99;
}

.nav-mobile.is-open {
  display: block;
}

.nav-mobile-inner {
  max-width: var(--site-max);
  width: 100%;
  margin: 0 auto;
  padding: 1rem var(--site-inline) 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-mobile a {
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 0;
}

/* ——— Hero ——— */
.hero {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 2rem) clamp(1rem, 4vw, 2rem) 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #faf5ff 0%, #f8fafc 42%, #ffffff 100%);
  color: var(--z-ink);
}

@media (min-width: 900px) {
  .hero {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 899px) {
  .hero {
    padding-bottom: 2rem;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 90% 50% at 80% -10%, rgba(139, 92, 246, 0.12), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: 1fr;
    gap: 2rem min(3rem, 4vw);
  }

  .hero-copy {
    align-self: center;
    padding-left: calc(
      var(--site-inline) +
        (100vw - 2 * var(--site-inline) - min(var(--site-max), 100vw - 2 * var(--site-inline))) / 2
    );
    padding-right: clamp(1rem, 3vw, 2rem);
  }

  .hero-media {
    align-self: end;
  }
}

.hero-copy {
  min-width: 0;
}

.hero-media {
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeUp 0.85s ease 0.32s forwards;
  opacity: 0;
}

@media (min-width: 900px) {
  .hero-media {
    justify-content: flex-end;
    padding-right: clamp(0.75rem, 2.5vw, 1.5rem);
  }
}

@media (max-width: 899px) {
  .hero-media {
    align-self: end;
  }
}

.hero-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom center;
}

@media (min-width: 900px) {
  .hero-media img {
    width: auto;
    max-width: min(100%, 92vw);
    max-height: min(78vh, 800px);
    height: auto;
  }
}

@media (max-width: 899px) {
  .hero-media img {
    max-height: min(46vh, 400px);
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  max-width: 18ch;
  animation: fadeUp 0.85s ease 0.08s forwards;
  opacity: 0;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--z-muted);
  max-width: 38rem;
  margin: 0 0 2rem;
  font-weight: 400;
  animation: fadeUp 0.85s ease 0.16s forwards;
  opacity: 0;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  animation: fadeUp 0.85s ease 0.24s forwards;
  opacity: 0;
}

.hero-cta .btn {
  font-size: 1.125rem;
  padding: 0.9rem 1.75rem;
  border-radius: 0.5625rem;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 0.35rem;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.store-badge:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.store-badge:focus-visible {
  outline: 2px solid var(--z-accent);
  outline-offset: 3px;
}

.store-badge img {
  width: auto;
  max-width: min(185px, 100%);
  height: auto;
  display: block;
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem var(--site-inline);
}

.section-inner {
  max-width: var(--site-max);
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--z-purple-700);
  margin: 0 0 0.5rem;
}

.section h2 {
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 2rem;
  color: var(--z-ink);
}

.bg-surface {
  background: var(--z-surface);
}

/* ——— How it works: zigzag + phone frames ——— */
.section--how {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #f8fafc 0%, #eef2ff 38%, #f1f5f9 100%);
}

.section--how::before {
  content: '';
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(ellipse 55% 45% at 12% 18%, rgba(139, 92, 246, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 72%, rgba(250, 204, 21, 0.1), transparent 55%);
  pointer-events: none;
}

.section--how .section-inner {
  position: relative;
  z-index: 1;
}

.how-intro {
  margin-bottom: clamp(2.5rem, 6vw, 3.75rem);
}

.how-intro h2 {
  margin-bottom: 0;
}

/* CTA al final de “Cómo funciona”, después de los cuatro pasos */
.how-store {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}

.how-store__cta {
  margin: 0;
  max-width: 28rem;
  padding: 0 0.75rem;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--z-purple-800);
}

.how-store .store-badge--how img {
  max-width: min(200px, 88vw);
  max-height: 56px;
}

@media (min-width: 900px) {
  .how-intro h2 {
    white-space: nowrap;
    font-size: clamp(1.5rem, 2.1vw, 2.25rem);
  }
}

.steps-flow {
  display: flex;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 5rem);
}

.step-block {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .step-block {
    gap: 1.35rem;
    align-items: center;
    max-width: 52rem;
    margin-inline: auto;
  }

  .step-block--visual-left {
    grid-template-columns: minmax(11rem, 15rem) minmax(0, 1fr);
  }

  .step-block--visual-right {
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 15rem);
  }

  .step-block--visual-left .step-block__visual {
    justify-content: flex-start;
  }

  .step-block--visual-right .step-block__visual {
    justify-content: flex-end;
  }
}

.step-block--visual-right .step-block__text {
  text-align: right;
}

.step-block--visual-right .step-block__head {
  justify-content: flex-end;
}

.step-block__text {
  padding: 0.25rem 0;
}

.step-block__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.step-num {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: var(--z-purple-700);
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
  line-height: 1;
  letter-spacing: -0.04em;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 8px rgba(91, 33, 182, 0.22);
}

.step-block__head h3 {
  margin: 0;
  padding-top: 0.35rem;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--z-ink);
}

.step-block__text p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--z-muted);
  line-height: 1.65;
  max-width: none;
}

.step-block__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
}

.step-block__blob {
  position: absolute;
  width: min(120%, 26rem);
  height: min(75%, 18rem);
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  background: rgba(139, 92, 246, 0.28);
  filter: blur(32px);
  pointer-events: none;
  z-index: 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.55s ease;
  will-change: transform;
}

.step-block__blob--alt {
  background: rgba(196, 181, 253, 0.32);
}

.step-block:hover .step-block__blob {
  transform: translate(-50%, -50%) scale(1.2);
  filter: blur(34px);
}

.step-block__visual figure {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  max-width: 15rem;
  border-radius: 1.85rem;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65) inset,
    0 28px 56px rgba(76, 29, 149, 0.2),
    0 12px 28px rgba(15, 23, 42, 0.1);
}

.step-block__visual figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

/* Collaborators */
.collab-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  /* Sin franja blanca extra: el borde inferior del grid (y la foto) coincide con la división blanco → CTA. */
  #collaborators.section {
    padding-bottom: 0;
  }

  .collab-grid {
    grid-template-columns: 1fr 1.1fr;
  }

  .collab-photo {
    align-self: end;
  }
}

.collab-photo {
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  border: none;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.collab-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: bottom center;
}

.benefits {
  display: grid;
  gap: 1rem;
}

@media (min-width: 520px) {
  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

.benefit {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: border-color 0.25s;
}

.benefit:hover {
  border-color: rgba(109, 40, 217, 0.35);
}

.benefit h4 {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--z-ink);
}

.benefit p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--z-muted);
  line-height: 1.5;
}

/* CTA band */
.cta-band {
  padding: 4rem 1.25rem;
  background: linear-gradient(180deg, #ede9fe 0%, #f5f3ff 100%);
  color: var(--z-ink);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(109, 40, 217, 0.12);
}

.cta-band::after {
  content: '';
  position: absolute;
  width: 40rem;
  height: 40rem;
  right: -10rem;
  top: -15rem;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.2), transparent 65%);
  pointer-events: none;
}

.cta-band .section-inner {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: var(--z-ink);
  margin-bottom: 0.75rem;
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: var(--z-muted);
  font-size: 1rem;
}

/* Footer */
.site-footer {
  padding: 3.25rem 1.25rem 2.75rem;
  position: relative;
  background: var(--z-footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.55;
  text-align: center;
}

.site-footer__store {
  margin-bottom: 0.5rem;
}

.site-footer__store .store-badge {
  display: flex;
  justify-content: center;
}

.site-footer p {
  margin: 0.45rem 0;
}

.site-footer > p:last-of-type {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__legal {
  margin: 0.65rem 0 0.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.75rem;
  font-size: 1.0625rem;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  text-decoration: none;
}

.site-footer__legal a:hover {
  text-decoration: underline;
}

.site-footer__sep {
  opacity: 0.55;
  user-select: none;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 {
  transition-delay: 0.08s;
}
.stagger-2 {
  transition-delay: 0.16s;
}
.stagger-3 {
  transition-delay: 0.24s;
}
.stagger-4 {
  transition-delay: 0.32s;
}

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

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

.hero h1,
.hero-sub,
.hero-cta,
.hero-media {
  animation-fill-mode: forwards;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero h1,
  .hero-sub,
  .hero-cta,
  .hero-media {
    animation: none !important;
    opacity: 1 !important;
  }

  .step-block:hover .step-block__blob {
    transform: translate(-50%, -50%);
    filter: blur(28px);
  }
}

/* Chatwoot: botón flotante — morado de marca (sustituye #1f93ff del SDK; el panel del iframe sigue del inbox) */
.woot-widget-bubble,
button.woot-widget-bubble {
  background: var(--z-purple-700) !important;
}

.woot-widget-bubble:hover {
  background: var(--z-purple-800) !important;
}

/* Si el inbox es color “claro”, Chatwoot pone icono oscuro; con fondo morado forzamos blanco */
.woot-widget-bubble.woot-widget-bubble-color--lighter path {
  fill: #ffffff !important;
}

.woot-widget-bubble.woot-widget-bubble-color--lighter.woot--close::before,
.woot-widget-bubble.woot-widget-bubble-color--lighter.woot--close::after {
  background-color: #ffffff !important;
}

/* Modal contacto (Hablemos) — reset fuerte de <dialog> UA (marco blanco, borde) */
body[data-modal-open],
body[data-legal-modal-open] {
  overflow: hidden;
}

dialog.contact-modal {
  margin: 0;
  padding: 0;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  width: 100%;
  max-width: none;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  box-sizing: border-box;
}

dialog.contact-modal::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.contact-modal__shell {
  position: relative;
  min-height: 100vh;
  width: 100%;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  box-sizing: border-box;
}

.contact-modal__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 0;
}

.contact-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 26rem;
  max-height: min(94vh, 650px);
  min-height: 0;
  overflow: hidden;
  padding: 1.45rem 1.25rem 1.45rem;
  border-radius: 1rem;
  background: linear-gradient(165deg, var(--z-purple-800) 0%, var(--z-purple-700) 100%);
  color: #fff;
  font-family: var(--font);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.1),
    0 25px 50px -12px rgba(0, 0, 0, 0.35);
}

.contact-modal__panel--success {
  max-height: min(88vh, 420px);
  justify-content: center;
  padding: 1.75rem 1.35rem 1.5rem;
}

.contact-modal__form-block {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.contact-modal__form-block[hidden] {
  display: none !important;
}

.contact-modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.contact-modal__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.contact-modal__close:focus-visible {
  outline: 2px solid var(--z-accent);
  outline-offset: 2px;
}

.contact-modal__title {
  margin: 0 2.5rem 0.85rem 0;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff !important;
}

.contact-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

.contact-modal__field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.32rem;
  margin: 0;
  width: 100%;
}

.contact-modal__field label {
  display: block;
  font-weight: 700;
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #fff;
}

.contact-modal__field input[type='text'],
.contact-modal__field input[type='email'],
.contact-modal__field input[type='tel'],
.contact-modal__field select {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: none;
  border-radius: 999px;
  padding: 0.56rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  line-height: 1.35;
  color: var(--z-ink);
  background-color: #fff;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  transition: box-shadow 0.15s ease;
}

.contact-modal__field input[type='text']:focus,
.contact-modal__field input[type='text']:focus-visible,
.contact-modal__field input[type='email']:focus,
.contact-modal__field input[type='email']:focus-visible,
.contact-modal__field select:focus,
.contact-modal__field select:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--z-purple-700);
}

.contact-modal__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230c0a12' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2rem;
  cursor: pointer;
}

.contact-modal__phone {
  display: flex;
  width: 100%;
  align-items: stretch;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  border: none;
  transition: box-shadow 0.15s ease;
}

.contact-modal__phone:focus-within {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--z-purple-700);
}

.contact-modal__phone input[type='tel']:focus,
.contact-modal__phone input[type='tel']:focus-visible {
  outline: none;
  box-shadow: none;
}

.contact-modal__phone-prefix {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 0.5rem 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--z-ink);
  background: #fff;
  border-right: 1px solid #e2e8f0;
  white-space: nowrap;
}

.contact-modal__phone input[type='tel'] {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  border-radius: 0 !important;
  border: none !important;
  padding-left: 0.55rem;
  padding-right: 0.85rem;
}

.contact-modal__field--check {
  margin: 0.2rem 0 0;
}

.contact-modal__field--check + .contact-modal__field--check {
  margin-top: 0.15rem;
}

.contact-modal__check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
  font-size: 0.78rem;
  line-height: 1.42;
  color: rgba(255, 255, 255, 0.95);
}

.contact-modal__check input[type='checkbox'] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.08rem;
  flex-shrink: 0;
  accent-color: #facc15;
}

.contact-modal__check a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-modal__check a:hover {
  text-decoration: none;
}

.contact-modal__actions {
  margin-top: 0.45rem;
  padding-bottom: 0.35rem;
  display: flex;
  justify-content: stretch;
}

.contact-modal__actions .contact-modal__submit {
  width: 100%;
}

button.contact-modal__submit {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--z-accent);
  color: var(--z-ink);
  font-weight: 700;
  border: none;
  border-radius: 0.45rem;
  padding: 0.62rem 1.15rem;
  font-size: 0.98rem;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  transition:
    background 0.2s ease,
    transform 0.15s ease;
}

button.contact-modal__submit:hover {
  background: var(--z-accent-hover);
}

button.contact-modal__submit:active {
  transform: scale(0.99);
}

.contact-modal__success {
  text-align: center;
  color: #fff;
}

.contact-modal__success[hidden] {
  display: none !important;
}

.contact-modal__panel--success .contact-modal__success {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  padding: 1rem 0.5rem;
  min-height: 0;
}

.contact-modal__success p {
  margin: 0;
  max-width: 18rem;
  line-height: 1.45;
  font-size: 0.98rem;
}

.contact-modal__success .contact-modal__submit {
  width: auto;
  min-width: 7.5rem;
  padding: 0.62rem 1.25rem;
}
