/* Formulario de traslado en 3 pasos (solo se activa si JS agrega la clase .wiz) */
.form .paso + .paso { margin-top: 18px; padding-top: 16px; border-top: 1px dashed #d3ded8; }
.paso-cab {
    display: flex; align-items: center; gap: 8px; margin: 0 0 12px;
    font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #07603f;
}
.paso-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: #00a86b; color: #fff; font-size: .78rem; letter-spacing: 0;
}

/* Pasos: el 1 siempre abierto; el 2 y el 3 aparecen solos al completar el anterior */
.form.wiz .paso { display: none; }
.form.wiz .paso.abierto { display: block; animation: pasoIn .35s ease both; }
@keyframes pasoIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .form.wiz .paso.abierto { animation: none; } }

/* Mapa siempre abierto: sin flecha ni clic para cerrarlo */
.home .book-card .paso summary.airport-map-title { cursor: default; pointer-events: none; }
.home .book-card .paso summary.airport-map-title::after { display: none; }

/* Botón "¿Deseas agregar un comentario?" (solo con JS; sin JS se ve el cuadro directo) */
.coment-btn { display: none; }
.form.wiz .coment-btn {
    display: block; width: 100%; margin: 2px 0 16px; padding: 11px 14px;
    text-align: left; font-size: .9rem; font-weight: 700; color: #07603f;
    background: #f1f7f4; border: 1px dashed #00a86b; border-radius: 12px;
    box-shadow: none; cursor: pointer;
}
.form.wiz .coment-btn:hover { transform: none; background: #e8f8f0; }

/* Mapa solo para mirar: así no se puede salir del formulario por los botones internos de Google */
.home .book-card .mapa-marco iframe { pointer-events: none; }

/* Hora: hora + minutos + AM/PM */
.hora-fila { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 6px; align-items: stretch; }
.hora-fila .form-control { min-width: 0; }
.ampm { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.ampm input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ampm label {
    display: flex; align-items: center; justify-content: center; margin: 0; padding: 0 4px;
    font-size: .85rem; font-weight: 800; color: #34423c; background: #fff;
    border: 1px solid #ccc; border-radius: 8px; cursor: pointer; text-align: center;
}
.ampm input:checked + label { color: #07603f; background: #e8f8f0; border-color: #00a86b; box-shadow: 0 3px 10px rgba(0, 168, 107, .2); }
.ampm input:focus-visible + label { outline: 3px solid #ffbf47; }

/* Sugerencias rápidas del comentario (solo con JS) */
.coment-sug { display: none; }
.form.wiz .coment-sug { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.form.wiz .sug {
    width: auto; padding: 7px 12px; font-size: .8rem; font-weight: 700; color: #0b3d2e;
    background: #f1f7f4; border: 1px solid #d3ded8; border-radius: 999px; box-shadow: none; cursor: pointer;
}
.form.wiz .sug:hover { transform: none; background: #e8f8f0; }
.form.wiz .sug.activo { color: #fff; background: #00a86b; border-color: #00a86b; }

/* Botones: sin selección de texto, sin retraso de doble toque y sin "saltito" al pasar el cursor.
   (El saltito de 2 px hacía que, si el cursor estaba en el borde inferior, el clic cayera fuera del botón y solo se seleccionara el texto) */
.home .book-card .form-box button {
    -webkit-user-select: none; user-select: none;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.home .book-card .form-box button[type="submit"]:hover { transform: none; }
.home .book-card .form-box button[type="submit"]:active { transform: scale(.985); }
.home .book-card .form-box button[type="submit"]:disabled { opacity: .7; cursor: wait; }

/* Campos que faltan */
.form .falta .form-control,
.form .falta input:not([type="radio"]),
.form .falta select { border-color: #d93025 !important; box-shadow: 0 0 0 3px rgba(217, 48, 37, .15) !important; }
.form .falta .ampm label { border-color: #d93025; }
.form .falta > label { color: #a1261b; }
.aviso-falta {
    margin: 0 0 10px; padding: 9px 12px; border-radius: 10px;
    background: #fdecea; color: #a1261b; font-size: .85rem; font-weight: 700;
}
.aviso-falta[hidden] { display: none; }

/* Después de enviar: pantalla que lleva al cliente a WhatsApp */
.wa-salto {
    position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(7, 40, 28, .72);
}
.wa-salto[hidden] { display: none; }
.wa-salto-caja {
    width: 100%; max-width: 380px; padding: 28px 22px 22px; text-align: center;
    background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    animation: pasoIn .35s ease both;
}
.wa-salto-check {
    display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 10px;
    font-size: 1.7rem; font-weight: 800; color: #fff; background: #00a86b; border-radius: 50%;
}
.wa-salto-caja h2 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 800; color: #0b3d2e; }
.wa-salto-caja p { margin: 0 0 18px; font-size: .98rem; color: #34423c; }
.wa-salto-btn {
    display: block; padding: 14px 16px; font-size: 1.02rem; font-weight: 800; color: #fff !important; text-decoration: none !important;
    background: #25d366; border-radius: 14px; box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
}
.wa-salto-no {
    margin-top: 12px; padding: 8px; font-size: .85rem; color: #5b6b63; background: none; border: 0; text-decoration: underline; cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { .wa-salto-caja { animation: none; } }