/* ==========================================================================
   Circuits — Formulario de consulta / cotización (include parcial)
   Mobile-first. Desktop: @media (min-width: 992px)
   Paleta de marca: azul #3276d8 / #3e71b7 · acento magenta #c0336d / #b71155
   ========================================================================== */

/* --- Encabezados de paso (Step indicator) ----------------------------------- */
.form-step-header {
    background: linear-gradient(135deg, #6e9ad7 0%, #3276d8 100%);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-step-header i {
    background: rgba(255, 255, 255, 0.22);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex: 0 0 auto;
}

.form-step-header span {
    font-size: 14px;
    letter-spacing: .2px;
}

/* --- Labels ----------------------------------------------------------------- */
.form-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-label-icon {
    color: #3276d8;
}

.form-label-optional {
    color: #6c757d;
    font-weight: 400;
    font-size: 12px;
}

/* --- Campos (inputs / selects) --------------------------------------------- */
.form-input {
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.4;
    transition: border-color .25s ease, box-shadow .25s ease;
    background-color: #fff;
    width: 100%;
    color: #333;
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus {
    border-color: #3276d8;
    box-shadow: 0 0 0 3px rgba(50, 118, 216, 0.1);
    outline: none;
}

/* selects: cheurón propio ya que appearance:none lo oculta */
select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23718096' stroke-width='2' viewBox='0 0 24 24'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-input.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + .75rem) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.form-input.is-valid {
    border-color: #28a745;
}

/* input fecha (solo lectura, abre datepicker modal) */
.form-input.key-block {
    cursor: pointer;
    background-image: none;
}

/* --- Textarea --------------------------------------------------------------- */
.form-textarea {
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    transition: border-color .25s ease, box-shadow .25s ease;
    background-color: #fff;
    resize: none;
    width: 100%;
    color: #333;
}

.form-textarea:focus {
    border-color: #3276d8;
    box-shadow: 0 0 0 3px rgba(50, 118, 216, 0.1);
    outline: none;
}

/* --- Contenedor de pasajeros (room-config / nautilus) ----------------------- */
.form-pax-container {
    background-color: #fff;
    border: 2px solid #e0e6ed;
    border-radius: 10px;
    padding: 12px;
}

/* Estado inicial oculto (lo alterna jQuery .toggle()/.show()/.hide()).
   Sin !important para que jQuery pueda sobrescribir el display. */
.is-hidden {
    display: none;
}

/* --- Switch "Aún no tengo fecha definida" ----------------------------------- */
.form-switch-row {
    margin-top: .5rem;
}

.form-switch-row .form-check-input {
    cursor: pointer;
    width: 2.4em;
    height: 1.25em;
    margin-top: .1em;
}

.form-switch-row .form-check-input:checked {
    background-color: #3276d8;
    border-color: #3276d8;
}

.form-switch-row .form-check-input:focus {
    border-color: #3276d8;
    box-shadow: 0 0 0 3px rgba(50, 118, 216, 0.12);
}

.form-switch-label {
    color: #6c757d;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.form-switch-label i {
    color: #f5a623;
}

/* --- CTA enviar ------------------------------------------------------------- */
.form-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #c0336d 0%, #b71155 100%);
    color: #fff;
    border: none;
    font-weight: 800;
    font-size: 17px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(183, 17, 85, 0.35);
    transition: transform .25s ease, box-shadow .25s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.form-btn-submit:hover,
.form-btn-submit:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(183, 17, 85, 0.45);
    color: #fff;
}

.form-btn-submit:active {
    transform: translateY(0);
}

/* --- Indicadores de confianza ---------------------------------------------- */
.form-trust-indicators {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 12px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.form-trust-item {
    text-align: center;
    flex: 1 1 0;
    min-width: 80px;
}

.form-trust-icon {
    color: #28a745;
    font-size: 18px;
}

.form-trust-text {
    color: #6c757d;
    font-size: 11px;
    margin: 4px 0 0 0;
    font-weight: 600;
}

/* --- Microcopy de urgencia / confianza ------------------------------------- */
.form-microcopy {
    font-size: 12px;
    color: #718096;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 0;
}

.form-microcopy i {
    color: #f5a623;
    margin-right: 4px;
}

/* ==========================================================================
   Desktop (≥ 992px) — replica de la diagramación de la versión desktop
   ========================================================================== */
@media (min-width: 992px) {
    .form-step-header {
        font-size: 14px;
        padding: 13px 18px;
    }

    .form-input,
    .form-textarea {
        font-size: 15px;
    }

    /* CTA un poco más contenido en desktop */
    .form-btn-submit {
        font-size: 18px;
        padding: 16px 28px;
    }

    .form-trust-text {
        font-size: 12px;
    }
}
