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

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../assets/fonts/space-grotesk-latin-variable.woff2') format('woff2');
}

:root {
  /* Paleta oficial derivada de https://www.conexaogov.com.br/ */
  --cg-navy-950: #071124;
  --cg-navy-900: #0d1936;
  --cg-navy-800: #0e1d40;
  --cg-blue-600: #0066cc;
  --cg-blue-500: #0b74de;
  --cg-blue-400: #38bdf8;
  --cg-emerald-600: #007d54;
  --cg-emerald-500: #009464;
  --cg-emerald-400: #34d399;
  --cg-text: #f8fafc;
  --cg-text-soft: rgba(235, 238, 245, 0.76);
  --cg-text-muted: rgba(235, 238, 245, 0.56);

  --ink-900: #0d1936;
  --ink-700: #2b3b57;
  --ink-500: #5a6a85;
  --error-600: #b42318;
  --error-100: #fef3f2;
  --success-700: #007d54;
  --success-100: #e7f6f0;

  --vvh: 100dvh;
  --vv-top: 0px;

  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--cg-text);
  background: var(--cg-navy-950);
  font-synthesis: none;
}

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

html {
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--cg-navy-950);
  overflow-wrap: anywhere;
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

img {
  max-inline-size: 100%;
  block-size: auto;
}

:focus-visible {
  outline: 3px solid var(--cg-blue-400);
  outline-offset: 2px;
}

.visually-hidden:where(:not(:focus-within, :active)) {
  position: absolute !important;
  clip-path: inset(50%) !important;
  overflow: hidden !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
  white-space: nowrap !important;
}

/* ==========================================================================
   Tela Principal — Campanha ConexãoGov (800x1280 sem rolagem)
   ========================================================================== */

.kiosk {
  width: 100%;
  max-width: 800px;
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    max(28px, env(safe-area-inset-top, 0px))
    clamp(24px, 6vw, 52px)
    max(22px, env(safe-area-inset-bottom, 0px));
  background: linear-gradient(175deg, var(--cg-navy-900) 0%, var(--cg-navy-800) 52%, var(--cg-navy-950) 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(14px, 2.2dvh, 24px);
  isolation: isolate;
}

.kiosk > *:not(.bg-grid, .bg-glow) {
  position: relative;
  z-index: 1;
}

/* Textura sutil e iluminação atmosférica compatível com conexaogov.com.br */
.bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 45%, rgba(0, 0, 0, 0.9) 15%, transparent 82%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-top {
  width: 560px;
  height: 360px;
  top: -170px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(11, 116, 222, 0.24) 0%, transparent 70%);
}

.bg-glow-center {
  width: 680px;
  height: 680px;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  background:
    radial-gradient(circle, rgba(11, 116, 222, 0.22) 0%, rgba(0, 125, 84, 0.08) 42%, transparent 70%);
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.animate-in {
  animation: fadeSlideUp 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--delay, 0ms);
}

/* --------------------------------------------------------------------------
   TOPO (~15%)
   -------------------------------------------------------------------------- */

.kiosk-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  width: clamp(180px, 31vw, 246px);
  height: auto;
  display: block;
}

.forum-tag {
  text-align: right;
  line-height: 1.35;
}

.forum-tag strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(12px, 1.9vw, 15px);
  font-weight: 700;
  color: rgba(235, 238, 245, 0.9);
  letter-spacing: 0.02em;
}

.forum-tag span {
  display: block;
  font-size: clamp(11px, 1.5vw, 12.5px);
  color: var(--cg-text-muted);
}

.brand-tagline {
  margin: 0;
  font-size: clamp(13px, 1.9vw, 15px);
  font-weight: 500;
  color: var(--cg-text-soft);
  letter-spacing: 0.01em;
}

/* --------------------------------------------------------------------------
   CENTRO (~60%) — CONCORRA / A UMA / Echo Dot / ALEXA ECHO DOT
   -------------------------------------------------------------------------- */

.kiosk-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(14px, 2.4dvh, 26px);
  padding: clamp(6px, 1.4dvh, 18px) 0;
  min-height: 0;
}

.hero-kicker {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3.6vw, 32px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.24em;
  color: #7dd3fc;
  text-transform: uppercase;
}

.hero-product {
  position: relative;
  display: grid;
  place-items: center;
  width: min(420px, 68vw);
  padding: clamp(14px, 1.8dvh, 22px) 0 clamp(14px, 1.8dvh, 20px);
}

.product-halo {
  position: absolute;
  width: 118%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 54%, rgba(56, 189, 248, 0.38) 0%, rgba(11, 116, 222, 0.26) 38%, rgba(14, 165, 233, 0.08) 60%, transparent 76%);
  filter: blur(18px);
  pointer-events: none;
  will-change: transform, opacity;
  animation: haloPulse 4s ease-in-out infinite;
}

.product-ring {
  position: absolute;
  width: 96%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.24);
  box-shadow: inset 0 0 42px rgba(56, 189, 248, 0.08);
  pointer-events: none;
}

.product-shadow {
  position: absolute;
  bottom: 2px;
  width: 58%;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(2, 8, 22, 0.78) 0%, rgba(11, 116, 222, 0.16) 52%, transparent 76%);
  filter: blur(5px);
  pointer-events: none;
  will-change: transform, opacity;
  animation: productShadow 4s ease-in-out infinite;
}

@keyframes haloPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: scale(0.94);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes productFloatTilt {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }
  25% {
    transform: translate3d(0, -6px, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -12px, 0) rotate(2deg);
  }
  75% {
    transform: translate3d(0, -6px, 0) rotate(0deg);
  }
}

@keyframes productShadow {
  0%,
  100% {
    opacity: 0.88;
    transform: scale3d(1.06, 1.05, 1);
  }
  50% {
    opacity: 0.44;
    transform: scale3d(0.84, 0.82, 1);
  }
}

.product-img {
  position: relative;
  width: auto;
  height: clamp(205px, 30.5dvh, 380px);
  max-width: 100%;
  object-fit: contain;
  transform-origin: center 60%;
  will-change: transform;
  filter: drop-shadow(0 20px 30px rgba(2, 8, 22, 0.65));
  animation: productFloatTilt 4s ease-in-out infinite;
}

/* Suspende animações contínuas enquanto o diálogo estiver aberto */
body:has(#registrationDialog[open]) .product-img,
body:has(#registrationDialog[open]) .product-halo,
body:has(#registrationDialog[open]) .product-shadow,
body:has(#registrationDialog[open]) .cta-primary::after {
  animation-play-state: paused;
}

.hero-title {
  margin: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(44px, 9.2vw, 78px);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.03em;
  background: linear-gradient(95deg, #f0f9ff 0%, #7dd3fc 48%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   AÇÃO (~15%)
   -------------------------------------------------------------------------- */

.kiosk-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta {
  width: 100%;
  min-height: 78px;
  display: inline-flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 16px 28px;
  background: linear-gradient(180deg, var(--cg-emerald-500) 0%, var(--cg-emerald-600) 100%);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 14px;
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(20px, 3.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow:
    0 16px 36px rgba(0, 125, 84, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: filter 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  position: relative;
  overflow: hidden;
}

.cta-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.24) 50%, transparent 72%);
  transform: translateX(-120%);
  animation: ctaSheen 5.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes ctaSheen {
  0%,
  72% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.cta:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow:
    0 18px 42px rgba(0, 148, 100, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.cta:active:not(:disabled) {
  transform: translateY(2px);
}

.cta:disabled {
  opacity: 0.7;
  cursor: wait;
}

.action-hint {
  margin: 0;
  font-size: clamp(13px, 1.9vw, 15px);
  font-weight: 500;
  color: var(--cg-text-soft);
  text-align: center;
}

/* --------------------------------------------------------------------------
   RODAPÉ (~10%)
   -------------------------------------------------------------------------- */

.kiosk-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.qr {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  text-align: center;
  background: #ffffff;
  color: var(--ink-900);
  border-radius: 10px;
  padding: 5px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.qr svg,
.qr img {
  width: 100%;
  height: 100%;
  display: block;
}

.social-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.social-copy strong {
  font-size: clamp(13px, 1.8vw, 14px);
  font-weight: 600;
  color: #ffffff;
}

.social-copy span {
  font-size: 13px;
  font-weight: 600;
  color: var(--cg-emerald-400);
}

/* ==========================================================================
   Modal de Inscrição (Top Layer + Scroll Containment + Keyboard Support)
   ========================================================================== */

dialog {
  border: 0;
  border-radius: 22px;
  padding: 0;
  background: #ffffff;
  color: var(--ink-900);
  width: min(560px, calc(100vw - 24px));
  max-height: min(88dvh, calc(var(--vvh, 100dvh) - 18px), 760px);
  overflow-y: auto;
  overflow-x: hidden;
  scroll-padding-bottom: 24px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);

  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.24s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  dialog {
    transform: translateY(14px) scale(0.97);
  }
}

dialog[open]:where(:not([data-closing])) {
  opacity: 1;
}

dialog[open]:where(:not([data-closing])) {
  @starting-style {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  dialog[open]:where(:not([data-closing])) {
    transform: translateY(0) scale(1);
  }

  dialog[open]:where(:not([data-closing])) {
    @starting-style {
      transform: translateY(14px) scale(0.97);
    }
  }
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  background-color: rgba(4, 10, 24, 0);
  backdrop-filter: blur(6px);
  overflow: hidden;
  overscroll-behavior: contain;
  transition-property: background-color, display, overlay;
  transition-duration: 0.24s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

dialog[open]:where(:not([data-closing]))::backdrop {
  background-color: rgba(4, 10, 24, 0.82);
}

dialog[open]:where(:not([data-closing]))::backdrop {
  @starting-style {
    background-color: rgba(4, 10, 24, 0);
  }
}

html.keyboard-open dialog:modal {
  margin-block-start: calc(var(--vv-top, 0px) + 8px);
  margin-block-end: auto;
  width: min(680px, calc(100vw - 18px));
  max-height: calc(var(--vvh, 560px) - 16px);
}

dialog:has(.city-options:not([hidden])) {
  min-height: min(490px, calc(var(--vvh, 100dvh) - 16px));
}

.form {
  padding: 24px 26px 26px;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-kicker {
  color: var(--cg-blue-500);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dialog-heading h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 27px;
  line-height: 1.1;
  margin: 5px 0 0;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.close {
  border: 0;
  background: #edf2f8;
  color: var(--ink-900);
  font-size: 28px;
  line-height: 1;
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color 0.15s ease;
}

.close:hover {
  background: #dfe7f2;
}

.dialog-sub {
  color: var(--ink-500);
  font-size: 14px;
  margin: 8px 0 16px;
}

.field {
  margin-bottom: 14px;
  position: relative;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 6px;
}

.req {
  color: var(--error-600);
}

.field input {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1.5px solid #b9c4d6;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: max(1rem, 1em);
  color: var(--ink-900);
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus {
  border-color: var(--cg-blue-500);
  box-shadow: 0 0 0 3px rgba(11, 116, 222, 0.2);
  outline: none;
}

.field input:is(:user-invalid, .is-invalid) {
  border-color: var(--error-600);
  background-color: #fffafa;
}

.field input.is-valid-city {
  border-color: var(--success-700);
}

.city-combobox {
  position: relative;
}

.city-options {
  position: absolute;
  z-index: 10;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  list-style: none;
  padding: 6px;
  max-height: min(190px, calc(var(--vvh, 800px) * 0.28));
  overflow-y: auto;
  border: 1.5px solid #b9c4d6;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(7, 29, 59, 0.22);
}

.city-options li + li {
  margin-top: 2px;
}

.city-options li button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--ink-900);
  text-align: left;
  font-size: 15px;
}

.city-options li button .city-uf {
  font-size: 12px;
  font-weight: 800;
  color: var(--cg-blue-600);
  background: #eaf3ff;
  padding: 3px 8px;
  border-radius: 999px;
}

.city-options li button:hover,
.city-options li button:focus-visible,
.city-options li button[aria-selected='true'] {
  background: #e9f2fe;
}

.city-status {
  display: block;
  color: var(--ink-500);
  font-size: 12px;
  margin-top: 5px;
}

.city-status.is-selected {
  color: var(--success-700);
  font-weight: 600;
}

.field-error {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  color: var(--error-600);
}

.field-error[hidden] {
  display: none;
}

.consents {
  margin: 10px 0 8px;
}

.privacy-notice {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-500);
}

.form-message {
  font-size: 13px;
  font-weight: 600;
  color: var(--error-600);
  background: var(--error-100);
  border: 1px solid rgba(180, 35, 24, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0 12px;
}

.form-message:empty {
  display: none;
}

.form-message.is-info {
  color: var(--cg-blue-600);
  background: #eef5ff;
  border-color: rgba(0, 102, 204, 0.22);
}

.form-cta {
  min-height: 54px;
  font-size: 16px;
  margin-top: 6px;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

.btn-spinner[hidden] {
  display: none;
}

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

.success {
  padding: 36px 26px 30px;
  text-align: center;
}

.success-icon {
  height: 68px;
  width: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  background: var(--success-100);
  color: var(--success-700);
  font-size: 34px;
  font-weight: 900;
}

.success-kicker {
  color: var(--success-700);
}

.success h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  margin: 6px 0 8px;
  color: var(--ink-900);
}

.success-details {
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 10px;
}

.success-countdown {
  color: var(--ink-500);
  font-size: 13px;
  margin: 0 0 22px;
}

.offline {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom, 0px));
  background: #9a342e;
  color: #ffffff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
}

/* ==========================================================================
   Páginas Legais (Regulamento e Privacidade)
   ========================================================================== */

.legal-shell {
  min-height: 100dvh;
  background: linear-gradient(175deg, var(--cg-navy-900) 0%, var(--cg-navy-950) 100%);
  color: var(--cg-text);
  padding: 28px clamp(18px, 4vw, 40px) 48px;
}

.legal-container {
  max-width: 760px;
  margin: 0 auto;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 18px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.legal-header .brand-logo {
  width: 190px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--cg-emerald-600);
  color: #ffffff;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.legal-card {
  background: #ffffff;
  color: var(--ink-900);
  border-radius: 20px;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 24px 60px rgba(4, 10, 24, 0.45);
}

.legal-card h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  margin: 6px 0 14px;
  color: var(--ink-900);
}

.legal-card h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  margin: 22px 0 8px;
  color: var(--ink-900);
}

.legal-card p,
.legal-card li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-700);
}

.legal-card ul {
  padding-left: 20px;
}

.pending-callout {
  background: #eef6ff;
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0 20px;
  color: #0f2f5f;
  font-size: 14px;
  line-height: 1.5;
}

.pending-tag {
  display: inline-block;
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #7dd3fc;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  vertical-align: middle;
}

/* ==========================================================================
   Responsividade — Telas menores e Teclado Virtual (800x560)
   ========================================================================== */

@media (max-width: 560px) {
  .kiosk {
    padding: 18px 18px 18px;
    gap: 12px;
  }

  .top-row {
    align-items: flex-start;
  }

  .brand-logo {
    width: 158px;
  }

  .product-img {
    height: clamp(165px, 26dvh, 250px);
  }

  .cta {
    min-height: 66px;
  }

  .kiosk-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .qr {
    width: 68px;
    height: 68px;
  }
}

@media (max-height: 650px) {
  dialog {
    max-height: calc(var(--vvh, 100dvh) - 12px);
    width: min(680px, calc(100vw - 18px));
    border-radius: 16px;
  }

  .form {
    padding: 14px 20px 16px;
  }

  .dialog-heading h2 {
    font-size: 21px;
  }

  .dialog-sub {
    margin: 4px 0 10px;
    font-size: 13px;
  }

  .field {
    margin-bottom: 9px;
  }

  .field label {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .field input {
    min-height: 42px;
    padding: 8px 12px;
  }

  .consents {
    margin: 6px 0;
  }

  .form-cta {
    min-height: 46px;
    font-size: 15px;
  }

  .city-options {
    max-height: 132px;
  }
}

html.keyboard-open dialog {
  border-radius: 16px;
}

html.keyboard-open .form {
  padding: 14px 20px 16px;
}

html.keyboard-open .dialog-heading h2 {
  font-size: 21px;
}

html.keyboard-open .dialog-sub {
  margin: 4px 0 10px;
  font-size: 13px;
}

html.keyboard-open .field {
  margin-bottom: 9px;
}

html.keyboard-open .field input {
  min-height: 42px;
  padding: 8px 12px;
}

html.keyboard-open .form-cta {
  min-height: 46px;
}

@media (prefers-reduced-motion: reduce) {
  .animate-in,
  .product-halo,
  .product-img,
  .product-shadow,
  .cta-primary::after,
  .btn-spinner {
    animation: none !important;
  }

  .product-shadow {
    opacity: 0.75;
    transform: none;
  }

  dialog,
  dialog::backdrop {
    transition-duration: 0.1s;
  }
}
