/* cotizador-frontend.css - Estilos del Cotizador AssistCard (Sin Resultados) */

/* ============================================================== */
/* ESTILOS BASE Y ESTRUCTURA GENERAL DEL FORMULARIO */
/* ============================================================== */
.cotizador-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
    font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.cotizador-main-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #0f1720;
    padding: 12px;
    border-radius: 10px;
    color: #fff;
    flex-wrap: wrap;
    box-shadow: 0 0px 30px rgba(0, 0, 0, 0.4);
}

.cotizador-field {
    position: relative;
    background: #111827;
    padding: 10px 12px;
    border-radius: 8px;
    min-width: 160px;
    flex-grow: 1;
    flex-basis: 0;
}

.cotizador-label {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    letter-spacing: 0.6px;
    margin-bottom: 6px;
}

.cotizador-select {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 15px;
    outline: none;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

.cotizador-display {
    cursor: pointer;
    color: #fff;
    padding: 6px 0;
    min-width: 160px;
    font-size: 15px;
}

/* ============================================================== */
/* ESTILOS DE DESPLEGABLES (DROPDOWNS) */
/* ============================================================== */
.cotizador-desplegable-trigger {
    cursor: pointer;
}

.cotizador-dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    background: #0b1220;
    min-width: 320px;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.6);
    z-index: 9999;
    cursor: default;
}

.cotizador-dropdown-content.active {
    display: block;
}

/* ============================================================== */
/* ESTILOS ESPECÍFICOS DE FECHAS */
/* ============================================================== */
#dropdown-fechas {
    min-width: 500px;
    left: -20px;
}

.fecha-opciones {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 8px;
}

.fecha-opciones label {
    font-size: 13px;
    cursor: pointer;
    color: #e5e7eb;
}

.fecha-opciones input[type="radio"]:checked + label {
    font-weight: bold;
    color: #ef4444;
}

.calendario-simulado {
    padding: 10px 0;
}

.fechas-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.fechas-inputs label {
    font-size: 14px;
    color: #cbd5e1;
    font-weight: bold;
}

.fechas-inputs input[type="date"] {
    background: #0f1720;
    border: 1px solid #1f2937;
    color: #fff;
    padding: 10px 12px;
    border-radius: 8px;
    flex-grow: 1;
    min-width: 150px;
    cursor: pointer;
}

/* Resumen de Fechas y Botones */
.resumen-dias {
    font-size: 13px;
    color: #e5e7eb;
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 12px;
}

.calendario-acciones,
.pasajeros-acciones {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 10px;
}

/* ============================================================== */
/* ESTILOS DE BOTONES GENERALES */
/* ============================================================== */
.btn-principal {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-principal:disabled {
    background: #555;
    cursor: not-allowed;
}

.btn-secundario {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

/* ============================================================== */
/* ESTILOS DE PASAJEROS Y EDADES */
/* ============================================================== */
.pasajeros-control {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.control-btn {
    background: #111827;
    color: #fff;
    border: 1px solid #1f2937;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

#pasajeros-count-input {
    width: 50px;
    text-align: center;
    background: transparent;
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
}

.edades-container {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
    border-bottom: 1px solid #1f2937;
    padding-bottom: 10px;
}

.edades-container .edad-input {
    width: calc(50% - 5px);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #1f2937;
    background: #0f1720;
    color: #fff;
    box-sizing: border-box;
}

/* ============================================================== */
/* ESTILOS DE CAMPOS DE CONTACTO (EMAIL, WHATSAPP) */
/* ============================================================== */
.cotizador-field input[type="email"],
.cotizador-field input[type="tel"] {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #1f2937;
    background: #0f1720;
    color: #fff;
    box-sizing: border-box;
}

/* ============================================================== */
/* ESTILOS DE BOTÓN DE ENVÍO (COTIZAR) */
/* ============================================================== */
.cotizador-boton {
    background: #ef4444;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    height: 100%;
    transition: background 0.2s;
}

.cotizador-boton:hover:not(:disabled) {
    background: #d83d3d;
}

.cotizador-boton:disabled {
    background: #555;
    cursor: not-allowed;
}

.cotizador-submit-final {
    flex-grow: 0;
    flex-basis: 120px;
    padding: 0;
}

/* ============================================================== */
/* ESTILOS PARA LOS BOTONES FLOTANTES DE ENVÍO (EMAIL/WHATSAPP) */
/* ============================================================== */
.send-quote-floating-btns {
    position: fixed;
    bottom: 20px; 
    left: 20px;
    z-index: 999;
    display: flex; 
    gap: 10px;
}

.send-quote-btn {
    background-color: #28a745; 
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    display: none;
}
#send-quote-email-btn {
    background-color: #007bff; 
}

.send-quote-btn:hover {
    transform: translateY(-2px);
}
#send-quote-email-btn:hover {
    background-color: #0056b3;
}
#send-quote-whatsapp-btn:hover {
    background-color: #218838;
}

/* ============================================================== */
/* ESTILOS PARA LOS MODALES DE ENVÍO (EMAIL/WHATSAPP) */
/* ============================================================== */
.send-quote-modal {
    display: none;
    position: fixed;
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.send-quote-modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    position: relative;
}

.send-quote-modal-content .close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.send-quote-modal-content .close-modal:hover,
.send-quote-modal-content .close-modal:focus {
    color: #000;
    text-decoration: none;
}

.send-quote-modal-content h3 {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.send-quote-modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.send-quote-modal-content input[type="email"],
.send-quote-modal-content input[type="tel"] {
    width: calc(100% - 20px); 
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.send-quote-modal-content .btn-send {
    background-color: #007bff; 
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}
.send-quote-modal-content .btn-send.whatsapp {
    background-color: #28a745; 
}

.send-quote-modal-content .btn-send:hover {
    background-color: #0056b3;
}
.send-quote-modal-content .btn-send.whatsapp:hover {
    background-color: #218838;
}

/* ============================================================== */
/* MENSAJES DE FORMULARIO (ERROR, INFO, SUCCESS) */
/* ============================================================== */
#cotizador-form-messages {
    display: none; 
    margin-top: 15px;
}

.cotizador-messages {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    border: 1px solid transparent;
    transition: all 0.2s ease-in-out;
}

.cotizador-messages p {
    margin: 0;
    line-height: 1.4;
}

.cotizador-error {
    background-color: #fce4e4;
    color: #cc0033;
    border-color: #fcc2c2;
}

.cotizador-info {
    background-color: #e3f2fd;
    color: #2196f3;
    border-color: #90caf9;
}

.cotizador-success {
    background-color: #e8f5e9;
    color: #4caf50;
    border-color: #a5d6a7;
}

.cotizador-loading {
    text-align: center;
    padding: 30px;
    font-size: 1.2em;
    color: #007bff;
    font-weight: 600;
}

.cotizador-info-cero {
    text-align: center;
    padding: 20px;
    background-color: #e3f2fd;
    color: #2196f3;
    border-radius: 8px;
    margin-top: 20px;
}

/* ============================================================== */
/* AJUSTES RESPONSIVE */
/* ============================================================== */
@media (max-width: 768px) {
    .cotizador-main-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .cotizador-field {
        min-width: unset;
        width: 100%;
    }

    .cotizador-submit-final {
        width: 100%;
        flex-basis: auto; 
    }

    #dropdown-fechas {
        min-width: unset;
        width: 100%;
        left: 0;
        box-sizing: border-box;
        padding: 10px;
    }

    #dropdown-fechas .fecha-opciones {
        flex-direction: column;
    }

    #dropdown-fechas .fecha-opciones label {
        font-size: 13px;
        padding: 5px;
        margin-bottom: 5px;
    }

    #dropdown-fechas .fechas-inputs {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    #dropdown-fechas .fechas-inputs label {
        display: block;
        width: 100%;
        margin-top: 5px;
        margin-bottom: 3px;
        font-size: 13px;
    }

    #dropdown-fechas .fechas-inputs input[type="date"] {
        width: 100%;
        min-width: unset;
        padding: 6px;
        font-size: 14px;
    }

    #dropdown-fechas .resumen-dias {
        flex-direction: column;
        width: 100%;
        gap: 3px;
        margin-top: 10px;
    }

    #dropdown-fechas .resumen-dias span {
        display: block;
        margin-bottom: 0;
        font-size: 13px;
    }

    #dropdown-fechas .calendario-acciones {
        flex-direction: column;
        gap: 6px;
        width: 100%;
        margin-top: 10px;
    }

    #dropdown-fechas .calendario-acciones button {
        width: 100%;
        font-size: 15px;
        padding: 8px;
    }

    /* Responsive para botones flotantes y modales */
    .send-quote-floating-btns {
        left: 15px;
        flex-direction: column;
        align-items: flex-start;
        bottom: 100px; 
    }
    .send-quote-btn {
        width: auto; 
    }
}
