/* Styles pour la popup */
.reservation-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
}

.reservation-popup-content {
    background: #E2D5C3;
    padding: 30px;
    border-radius: 0;
    width: 90%;
    max-width: 720px;
    position: relative;
}

.close-reservation {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.reservation-form-container {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.form-group label {
    min-width: 120px;
    text-align: right;
    margin-right: 20px;
    color: #333;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1em;
}

.input-container {
    flex: 1;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #000;
    border-radius: 0;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-container {
    margin-top: 30px;
    padding-left: 140px;
}

.submit-button {
    padding: 15px 40px;
    font-size: 1.2em;
    background-color: #990000;
    color: white;
    border: none;
    border-radius: 0;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #800000;
}

.required::after {
    content: " *";
    color: #990000;
}

.invalid-feedback {
    color: #ff9999;
    font-size: 0.8em;
    margin-top: 5px;
    display: none;
}

/* Styles pour le consentement RGPD */
.consent-group {
    margin-bottom: 20px;
    margin-top: 15px;
}

.consent-wrapper {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
}

.consent-wrapper input[type="checkbox"] {
    width: auto;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
}

.consent-text {
    font-size: 0.70em !important;
    line-height: 1.3 !important;
    text-align: justify !important;
    color: #333;
    min-width: unset;
    margin-right: 0;
    flex: 1;
    cursor: pointer;
}

.submit-button:disabled {
    background-color: #df8282 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

/* Media query pour mobile */
@media (max-width: 768px) {
    .reservation-popup-overlay {
        align-items: flex-start;
        padding: 10px 0;
        overflow-y: auto;
    }
    
    .reservation-popup-content {
        width: 95%;
        padding: 12px;
        margin: auto;
        max-height: none;
    }

    .form-group {
        display: block;
        margin-bottom: 12px;
    }

    .form-group label {
        display: block;
        min-width: unset;
        text-align: left;
        margin-bottom: 5px;
    }

    .input-container {
        display: block;
        width: 100%;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .consent-group {
        margin-bottom: 10px;
        margin-top: 8px;
    }

    .submit-container {
        padding-left: 0;
        text-align: center;
        margin-top: 12px;
    }
}

/* Correction pour le z-index de la liste déroulante sur mobile */
.iti--container {
    z-index: 1101 !important;
}
