/* =============================================================================
   FactuTap — hoja de estilos del portal publico
   -----------------------------------------------------------------------------
   Extraida del prototipo estatico. El diseno no cambio: los mismos colores,
   la misma retícula y el mismo comportamiento responsive.
   ============================================================================= */

:root {
  --navy: #102a43;
  --navy2: #173f5f;
  --blue: #2563eb;
  --cyan: #27c2c9;
  --ink: #172b4d;
  --muted: #66788a;
  --line: #e4eaf1;
  --surface: #fff;
  --bg: #f5f8fc;
  --green: #16845b;
  --shadow: 0 18px 55px rgba(16, 42, 67, .10);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

/* Pie pegado al borde de abajo.
   El documento se estira hasta la ventana y el contenido se queda con lo que
   sobra. Si la página es más corta que la pantalla, el hueco va entre el
   contenido y el pie, y el pie deja de subir por el medio.
   En el panel la cabecera y el lateral van en position:fixed y no ocupan sitio,
   así que este mismo reparto le funciona igual. */
body > main { flex: 1 0 auto; }
body > footer { flex-shrink: 0; }

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.container { width: min(1160px, calc(100% - 40px)); margin: auto; }

/* ---------------------------------------------------------------- cabecera */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228, 234, 241, .8);
}

.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 850;
  font-size: 1.2rem;
  letter-spacing: -.04em;
  color: var(--navy);
}

.brandmark {
  width: 39px;
  height: 39px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: white;
  box-shadow: 0 7px 18px #2563eb35;
}

.brandmark svg { width: 22px; }

.navlinks { display: flex; gap: 28px; align-items: center; color: #52677d; font-size: .94rem; }
.navlinks a:hover { color: var(--blue); }

/* Zona pulsable de 32px como mínimo. El relleno es invisible y hace que los
   enlaces de la barra se puedan tocar con comodidad en tablet y móvil. */
.navlinks a { display: inline-flex; align-items: center; min-height: 32px; }

.nav-help {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy);
  background: #f0f6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 10px 15px;
}

/* -------------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, #102a43 0%, #17476a 65%, #176b80 100%);
  color: white;
  padding: 72px 0 85px;
}

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

.hero::before {
  width: 430px; height: 430px;
  border: 1px solid #ffffff15;
  right: -70px; top: -220px;
  box-shadow: 0 0 0 50px #ffffff08, 0 0 0 100px #ffffff05;
}

.hero::after {
  width: 260px; height: 260px;
  background: #2dc7c91a;
  right: 18%; bottom: -210px;
  filter: blur(5px);
}

.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 55px; align-items: center; }

.eyebrow {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #ffffff12;
  border: 1px solid #ffffff25;
  color: #b9f4f1;
  font-size: .8rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.dot { width: 7px; height: 7px; background: #53e0b4; border-radius: 50%; box-shadow: 0 0 0 4px #53e0b425; }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.055em;
  margin: 22px 0 18px;
  max-width: 660px;
}

.hero h1 span { color: #65e0dc; }

.hero p { color: #d4e3ee; font-size: 1.08rem; max-width: 560px; margin: 0 0 28px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 19px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-weight: 750;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
  background: none;
  color: inherit;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary { background: linear-gradient(135deg, #35d0c8, #65e0dc); color: #083344; box-shadow: 0 10px 28px #27c2c93b; }
.btn-ghost { background: #ffffff12; color: white; border-color: #ffffff35; }

.hero-note { display: flex; align-items: center; gap: 9px; margin-top: 23px; color: #c4d8e7; font-size: .87rem; }
.hero-note svg { width: 17px; color: #70e2c0; flex-shrink: 0; }

/* -------------------------------------------------------- tarjeta de vista */

.preview-card {
  background: #fff;
  color: var(--ink);
  padding: 25px;
  border-radius: 24px;
  box-shadow: 0 28px 80px #071d3038;
  transform: rotate(1deg);
  animation: float 6s ease-in-out infinite;
}

.preview-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 23px; }
.preview-title { font-weight: 850; font-size: 1.08rem; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e9fbf5;
  color: #16845b;
  font-size: .75rem;
  font-weight: 800;
}

.preview-label { font-size: .77rem; color: var(--muted); font-weight: 700; margin-bottom: 9px; }

.search-mini {
  display: flex;
  gap: 10px;
  background: #f5f8fc;
  border: 1px solid var(--line);
  padding: 9px;
  border-radius: 13px;
  align-items: center;
}

.search-mini input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 5px; color: var(--ink); }

.search-mini button {
  border: 0;
  background: var(--navy);
  color: white;
  border-radius: 9px;
  padding: 10px 13px;
  font-weight: 750;
  cursor: pointer;
}

.preview-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 22px; }

.step { border: 1px solid var(--line); border-radius: 13px; padding: 13px 10px; text-align: center; }
.step-icon { width: 35px; height: 35px; border-radius: 11px; background: #eaf3ff; color: var(--blue); display: grid; place-items: center; margin: 0 auto 8px; }
.step strong { display: block; font-size: .78rem; }
.step small { font-size: .69rem; color: var(--muted); }

/* ----------------------------------------------------------------- secciones */

.section { padding: 68px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 27px; }
.section-kicker { color: var(--blue); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); letter-spacing: -.045em; line-height: 1.15; margin: 8px 0 8px; color: var(--navy); }
.section-head p { margin: 0; color: var(--muted); max-width: 550px; }

.catalog-tools { display: flex; gap: 12px; align-items: center; margin-bottom: 23px; }

.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 15px;
  flex: 1;
  min-width: 0;
  box-shadow: 0 4px 14px #102a4306;
}

.searchbox svg { width: 20px; color: #8192a5; flex-shrink: 0; }
.searchbox input { border: 0; outline: 0; width: 100%; padding: 15px 0; background: transparent; }

.select {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  background: white;
  color: var(--ink);
  outline-color: var(--blue);
}

/* ------------------------------------------------------------------ tarjetas */

.commerce-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }

.commerce-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 19px;
  padding: 20px;
  box-shadow: 0 5px 18px #102a4305;
  transition: transform .22s, box-shadow .22s, border-color .22s;
  display: flex;
  flex-direction: column;
  min-width: 0;
  animation: rise .55s both;
}

.commerce-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #bfd7ff; }
.commerce-head { display: flex; gap: 13px; align-items: center; margin-bottom: 16px; }

.commerce-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.05rem;
  color: white;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  overflow: hidden;
}

.commerce-logo img { width: 100%; height: 100%; object-fit: cover; }
.commerce-card h3 { margin: 0 0 3px; font-size: 1.04rem; letter-spacing: -.02em; }
.commerce-type { font-size: .8rem; color: var(--muted); }
.commerce-desc { font-size: .89rem; color: #63768a; margin: 0 0 19px; min-height: 42px; }

.commerce-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf1f6;
  padding-top: 15px;
  margin-top: auto;
}

.status { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: #16845b; font-weight: 750; }
.status::before { content: ""; width: 6px; height: 6px; background: #2bb886; border-radius: 50%; }
.status.muted { color: var(--muted); }
.status.muted::before { background: #b0bcc9; }

.commerce-btn {
  border: 0;
  background: #edf4ff;
  color: #2458b9;
  font-weight: 800;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: .2s;
}

.commerce-btn:hover { background: var(--blue); color: white; }
.commerce-btn[disabled] { background: #eef1f5; color: #93a1b0; cursor: not-allowed; }
.commerce-btn[disabled]:hover { background: #eef1f5; color: #93a1b0; }

.empty {
  grid-column: 1 / -1;
  background: white;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  text-align: center;
  padding: 42px;
  color: var(--muted);
}

.empty strong { display: block; color: var(--ink); margin-bottom: 5px; }

/* --------------------------------------------------------------- como/ayuda */

.how { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.how-item { padding: 25px; border: 1px solid var(--line); border-radius: 18px; }

.number {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: #eaf3ff;
  color: var(--blue);
  font-weight: 900;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.how-item h3 { margin: 0 0 7px; font-size: 1.05rem; }
.how-item p { margin: 0; color: var(--muted); font-size: .91rem; }

.faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 60px; align-items: start; }
.faq-list details { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 17px 19px; margin-bottom: 10px; }
.faq-list summary { cursor: pointer; font-weight: 750; list-style: none; display: flex; justify-content: space-between; gap: 15px; }
.faq-list summary::after { content: "+"; color: var(--blue); font-size: 1.2rem; }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list p { color: var(--muted); margin: 12px 0 0; font-size: .92rem; }

/* -------------------------------------------------------------------- footer */

footer { background: #0b2033; color: #c2d1de; padding: 35px 0; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-brand { color: white; }
.footer-small { font-size: .82rem; color: #94a9bb; }
.footer-small a:hover { color: white; }

/* Los enlaces del pie medían 17px de alto: con el dedo es imposible acertar.
   El relleno no cambia el aspecto y los deja en 32px, el mínimo cómodo. */
.footer-small a { display: inline-block; padding: 7px 0; }

/* ----------------------------------------------------- estados de la pagina */

.notice-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 20px;
  background: #e9fbf5;
  border: 1px solid #a7e8cf;
  color: #0f6b4c;
}

.notice-bar.error { background: #fef2f2; border: 1px solid #fecaca; color: #b42318; }

.skeleton {
  border-radius: 19px;
  background: linear-gradient(100deg, #eef2f7 30%, #f8fafc 50%, #eef2f7 70%);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite linear;
  height: 196px;
}

@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -20% 0; } }

[hidden] { display: none !important; }

/* ------------------------------------------------------------------- modal */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #07192bd1;
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}

.modal-backdrop.open { display: flex; animation: fade .2s; }

.modal {
  background: white;
  border-radius: 24px;
  width: min(650px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  box-shadow: 0 30px 100px #0004;
  animation: rise .25s;
}

.modal-header { padding: 24px 26px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.modal-header h2 { margin: 0 0 5px; font-size: 1.45rem; letter-spacing: -.04em; }
.modal-header p { margin: 0; color: var(--muted); font-size: .9rem; }

.close { border: 0; background: #f0f4f8; width: 38px; height: 38px; border-radius: 11px; cursor: pointer; font-size: 1.35rem; color: var(--ink); flex-shrink: 0; }

.progress { display: flex; gap: 6px; padding: 0 26px; margin-top: 18px; }
.progress span { height: 4px; flex: 1; background: #e7edf4; border-radius: 99px; }
.progress span.active { background: var(--blue); }
.progress span.done { background: #a9c9f6; }

/* Paso marcado en el modal. La barra de arriba es decorativa (aria-hidden);
   este texto es el que lee quien usa lector de pantalla. */
.step-label { margin: 11px 0 0; padding: 0 26px; color: var(--muted); font-size: .78rem; font-weight: 800; }
.form-step[hidden] { display: none !important; }

.modal-body { padding: 22px 26px 26px; }
.merchant-selected { display: flex; gap: 12px; align-items: center; padding: 13px; background: #f5f8fc; border-radius: 14px; margin-bottom: 21px; }
.merchant-selected .commerce-logo { width: 43px; height: 43px; border-radius: 13px; }
.merchant-selected strong { display: block; }
.merchant-selected small { color: var(--muted); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }

/* ------------------------------------------------- Diálogo de confirmación
   Sustituye al confirm() del navegador, que sale con los botones del sistema y
   rompe el diseño. Reutiliza el sistema de modales que ya hay más arriba
   (`.modal-backdrop`, `.modal`, `.modal-header`, `.modal-actions`), así que no
   es un estilo nuevo: es el mismo con otro contenido y más estrecho.

   El tono lo pone la acción que lo abrió: rojo si se va a borrar, ámbar si se
   va a quitar, verde si se va a devolver. El icono es siempre el mismo triángulo
   y lo que cambia es el color, para que el significado venga del color y no de
   tener que aprender tres iconos. */
.confirm-dialog { width: min(480px, 100%); }

.confirm-head { display: flex; align-items: start; gap: 15px; }

.confirm-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}
.confirm-icon svg { width: 22px; height: 22px; }
.confirm-icon.is-danger  { background: #fef2f2; color: #b42318; }
.confirm-icon.is-caution { background: #fff7e6; color: #7a4c00; }
.confirm-icon.is-info    { background: #e9fbf5; color: #0f6b4c; }

/* El h2 del modal de formulario es de 1.45 rem porque es el titulo de dos pasos.
   Aquí es una pregunta, y a ese tamaño aplasta el mensaje. */
.confirm-dialog .modal-header h2 { font-size: 1.12rem; letter-spacing: -.02em; }
.confirm-dialog .modal-header p  { font-size: .92rem; line-height: 1.55; }

.confirm-actions { margin-top: 22px; }
.confirm-actions .btn { flex: 1; }

/* Sin movimiento no hay entrada ni salida animada, pero el fondo sigue
   apareciendo: quitar la animación no puede ser quitar el aviso. */
@media (prefers-reduced-motion: reduce) {
  .modal-backdrop.open,
  .modal { animation: none; }
}
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }

/* La etiqueta nombra un campo, no es un titulo. Antes iba en 800 y a 13.3 px,
   mas gruesa que el propio titulo de la tarjeta (700 a 17.6 px): los dos pesos
   casi iguales hacian que una etiqueta y un encabezado se leyeran al mismo
   nivel. Aqui la etiqueta baja a 650 y aclara de color, y el titulo de tarjeta
   sube. El salto de tamano es de 12.8 a 18.4 px, no de 13.3 a 17.6.

   El color sigue pasado el contraste AA (5.4:1 sobre blanco): se ve de otra
   cosa sin dejar de leerse. */
.field label {
  display: block;
  font-size: .8rem;
  font-weight: 650;
  margin-bottom: 7px;
  color: #5b6b7e;
}
.field label .req { color: #e05252; }

.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e1eb;
  background: white;
  border-radius: 11px;
  padding: 12px 13px;
  outline: none;
  color: var(--ink);
  transition: border .18s, box-shadow .18s;
}

/* El textarea cae dentro del grupo de arriba, pero sin esto hereda la fuente
   del navegador (monoespaciada) y se ve de otra familia que el resto del
   formulario. */
.field textarea { font: inherit; resize: vertical; }

.field input:focus, .field select:focus, .field textarea:focus { border-color: #4f83f5; box-shadow: 0 0 0 3px #2563eb19; }
.field input::placeholder, .field textarea::placeholder { color: #a0adba; }
.field small { display: block; color: var(--muted); font-size: .76rem; margin-top: 5px; }
.field input[readonly] { background: #f3f6fa; color: var(--muted); }

/* Casillas. Van dentro de un .field, así que hay que ganar a las reglas de
   arriba: sin esto el checkbox heredaria width:100% y el padding del campo de
   texto, y se veria como un cuadro enorme deformado. */
.field label.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 0;
  font-size: .82rem;
  font-weight: 600;
  color: #344b62;
  cursor: pointer;
}

.field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  accent-color: var(--blue);
}

.check-row a { color: var(--blue); font-weight: 750; text-decoration: underline; }
.check-row .req { color: #e05252; }

.captcha-line { display: flex; gap: 9px; align-items: center; }
.captcha { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; letter-spacing: .18em; background: #eef3f9; padding: 10px 14px; border-radius: 10px; font-size: 1.02rem; user-select: none; }
.captcha-refresh { border: 1px solid var(--line); background: white; width: 42px; height: 42px; border-radius: 10px; cursor: pointer; font-size: 1.05rem; color: var(--muted); flex-shrink: 0; }

.form-note { display: flex; gap: 9px; align-items: flex-start; background: #f0f6ff; border: 1px solid #dbeafe; border-radius: 12px; padding: 12px 14px; margin-top: 18px; font-size: .84rem; color: #2a4a73; }

.notice { display: none; }
.notice.show { display: block; margin-bottom: 16px; padding: 12px 14px; border-radius: 12px; font-size: .88rem; font-weight: 600; background: #f5f8fc; border: 1px solid var(--line); color: #344b62; }
.notice.show.error { background: #fef2f2; border: 1px solid #fecaca; color: #b42318; }
.notice.show.success { background: #e9fbf5; border: 1px solid #a7e8cf; color: #0f6b4c; }

/* Trampa para bots: fuera de la vista y del recorrido del teclado, pero no
   `display:none`, porque un bot que busca campos visibles lo evita. Que la
   tenga delante es justo lo que lo delata. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Error de un campo concreto, escrito por el servidor y pintado junto al campo. */
.field-error { display: none; }
.field-error.show { display: block; margin-top: 5px; color: #b42318; font-weight: 700; font-size: .8rem; }

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] { border-color: #f0a9a2; box-shadow: 0 0 0 3px #dc262614; }

/* Boton mientras envia: deshabilitado y con el texto cambiado, para que no se
   puedan encadenar dos envios con doble clic. */
.btn-submit.is-sending,
.btn-submit:disabled { opacity: .65; cursor: progress; }

.modal-actions { display: flex; gap: 12px; margin-top: 22px; }
.btn-submit { flex: 1; background: var(--navy); color: white; }
.btn-submit:hover { background: var(--navy2); }
.btn-secondary { background: #f0f4f8; color: #344b62; }
.btn-secondary:hover { background: #e2e9f1; }

/* ------------------------------------------------------------------ animaciones */

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(1deg); } 50% { transform: translateY(-8px) rotate(0deg); } }

/* --------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-copy { max-width: 760px; }
  .preview-card { max-width: 520px; transform: none; }
  .commerce-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-wrap { grid-template-columns: 1fr; gap: 22px; }
  .section { padding: 55px 0; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, 1160px); }
  .nav { height: 66px; }
  .navlinks { display: none; }
  .nav-help { padding: 9px 11px; font-size: .82rem; }
  .hero { padding: 52px 0 59px; }
  .hero h1 { font-size: 2.6rem; }
  .hero p { font-size: 1rem; }
  .hero-actions .btn { width: 100%; }
  .preview-card { padding: 18px; }
  .preview-steps { gap: 6px; }
  .step { padding: 11px 5px; }
  .section-head { display: block; }
  .section-head .section-note { margin-top: 8px; }
  .catalog-tools { flex-direction: column; align-items: stretch; }
  .searchbox { flex: auto; }
  .select { width: 100%; }
  .commerce-grid, .how-grid { grid-template-columns: 1fr; }
  .commerce-desc { min-height: 0; }
  .section { padding: 44px 0; }
  .footer-row { align-items: flex-start; flex-direction: column; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal { border-radius: 22px 22px 0 0; max-height: 94vh; }
  .modal-header { padding: 21px 19px 16px; }
  .progress { padding: 0 19px; }
  .step-label { padding: 0 19px; }
  .modal-body { padding: 20px 19px 24px; }
  .form-grid { grid-template-columns: 1fr; gap: 14px; }
  .field.full { grid-column: auto; }
  .modal-actions .btn { flex: 1; padding: 12px 10px; }
  .captcha-line { flex-wrap: wrap; }
  .captcha-line input { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}