/* ============================================================
   Booking Form — Lightbox de reserva
   ============================================================ */

/* ── Overlay ─────────────────────────────────────────────── */
.mgt-booking-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.mgt-booking-lightbox[hidden] {
    display: none;
}

.mgt-booking-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    cursor: pointer;
    animation: mgt-bf-fade-in 0.25s ease;
}

/* ── Modal ───────────────────────────────────────────────── */
.mgt-booking-lightbox__modal {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    animation: mgt-bf-slide-up 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    scrollbar-width: thin;
    scrollbar-color: #80A931 #f0f0f0;
}

.mgt-booking-lightbox__modal::-webkit-scrollbar { width: 6px; }
.mgt-booking-lightbox__modal::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 3px; }
.mgt-booking-lightbox__modal::-webkit-scrollbar-thumb { background: #80A931; border-radius: 3px; }

/* ── Botón cerrar ────────────────────────────────────────── */
.mgt-booking-lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    transition: background 0.2s, color 0.2s;
    z-index: 1;
}

.mgt-booking-lightbox__close:hover {
    background: #80A931;
    color: #fff;
}

/* ── Header del modal ────────────────────────────────────── */
.mgt-booking-lightbox__header {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d2d4e 100%);
    padding: 28px 28px 22px;
    border-radius: 16px 16px 0 0;
}

.mgt-booking-lightbox__title {
    /* margin: 0 0 6px; */
    color: #fff;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.2;
}

.mgt-booking-lightbox__tour-name {
    margin: 0;
    color: #80A931;
    font-size: 1.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Formulario ──────────────────────────────────────────── */
.mgt-booking-form {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.mgt-booking-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mgt-booking-form__label {
    font-size: 1.45rem;
    font-weight: 600;
    color: #333;
}

.mgt-booking-form__label span {
    color: #80A931;
}

.mgt-booking-form__input,
.mgt-booking-form__textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 1.4rem;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.mgt-booking-form__input:focus,
.mgt-booking-form__textarea:focus {
    outline: none;
    border-color: #80A931;
    box-shadow: 0 0 0 3px rgba(128, 169, 49, 0.15);
    background: #fff;
}

.mgt-booking-form__input.is-invalid,
.mgt-booking-form__textarea.is-invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.mgt-booking-form__textarea {
    resize: vertical;
    min-height: 96px;
}

/* ── Footer / botón enviar ───────────────────────────────── */
.mgt-booking-form__footer {
    margin-top: 4px;
}

.mgt-booking-form__submit {
    width: 100%;
    padding: 14px;
    background: #80A931;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.mgt-booking-form__submit:hover:not(:disabled) {
    background: #6d9228;
    transform: translateY(-1px);
}

.mgt-booking-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ── Mensaje de estado ───────────────────────────────────── */
.mgt-booking-form__status {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 8px;
    margin-top: -4px;
}

.mgt-booking-form__status[hidden] {
    display: none;
}

.mgt-booking-form__status.is-success {
    background: rgba(128, 169, 49, 0.12);
    color: #4a7a10;
    border: 1px solid rgba(128, 169, 49, 0.3);
}

.mgt-booking-form__status.is-error {
    background: rgba(231, 76, 60, 0.08);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

/* ── Animaciones ─────────────────────────────────────────── */
@keyframes mgt-bf-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes mgt-bf-slide-up {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Responsive mobile ───────────────────────────────────── */
@media (max-width: 480px) {
    .mgt-booking-lightbox {
        padding: 0;
        align-items: flex-end;
    }

    .mgt-booking-lightbox__modal {
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        animation: mgt-bf-slide-mobile 0.35s cubic-bezier(0.34, 1.2, 0.64, 1);
    }

    @keyframes mgt-bf-slide-mobile {
        from { transform: translateY(100%); opacity: 0.8; }
        to   { transform: translateY(0);    opacity: 1; }
    }

    .mgt-booking-lightbox__header {
        border-radius: 20px 20px 0 0;
        padding: 24px 20px 18px;
    }

    .mgt-booking-form {
        padding: 20px 20px 32px;
    }
}
