/* =============================================== */
/*                     HEADER                     */
/* =============================================== */
.hero-container {
    position: relative;
    width: 100%;
    height: 40vh;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    z-index: 10;
}

.hero-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    transition: filter 0.5s ease;
    filter: brightness(0.6);
    /* Imagine mai întunecată inițial */
}

.hero-container:hover .hero-img {
    filter: brightness(1);
    /* Revine la luminozitate normală la hover */
}

.hero-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    /* Overlay mai subtil */
    transition: opacity 0.5s ease;
    opacity: 1;
}

.hero-container:hover .hero-img-overlay {
    opacity: 0;
    /* Overlay dispare la hover */
}

.hero-container h1 {
    font-family: 'Montserrat', sans-serif;
    background-color: #fbbf24;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: black;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-container {
        height: 30vh;
    }

    .hero-img {
        filter: brightness(0.5);
        /* Mai întunecat pe mobile */
    }
}

/* ======================================================*/
/*                     SUBMIT BUTTON                     */
/* ======================================================*/

#submitButton:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #d1d5db !important;
}

.flatpickr-day.disabled {
    color: #ccc;
    background: #f7f7f7;
    cursor: not-allowed;
}

/* Mobile Flatpickr styling */
.flatpickr-calendar {
    max-width: 100% !important;
    width: 300px !important;
}

.flatpickr-day {
    min-width: 35px !important;
    height: 35px !important;
    line-height: 35px !important;
}

/* =============================================== */
/*                     RESERVATION CODE              */
/* =============================================== */
#reservationCode {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f59e0b;
    background-color: #fffbeb;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    display: inline-block;
}

/* =============================================== */
/*                     STATUS MESSAGE                */
/* =============================================== */
#statusMessage {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    background-color: #f0f4f8;
    color: #334155;
    box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
    transition: background-color 0.3s ease, color 0.3s ease;
}

#statusMessage.text-green-500 {
    background-color: #dcfce7;
    /* verde deschis */
    color: #166534;
    /* verde închis */
}

#statusMessage.text-red-500 {
    background-color: #fee2e2;
    /* roșu deschis */
    color: #991b1b;
    /* roșu închis */
}

#statusMessage.hidden {
    display: none;
}

.back-button {
    background-color: #e6ac1a;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.back-button:hover {
    background-color: #e6900b;
    transform: translateY(-2px);
    font-family: 'Montserrat', sans-serif;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #d1d5db, transparent);
    margin: 30px 0;
}

/* Add this to your existing CSS */
#privacyConsent {
    accent-color: #f59e0b;
    /* Makes the checkbox yellow when checked */
}

#privacyConsent.border-red-500 {
    outline: 2px solid #ef4444;
    /* Red outline when invalid */
}

/* Add this to style the checkbox validation */
#privacyConsentLabel.text-red-500 {
    color: #ef4444;
}

#privacyConsent {
    accent-color: #f59e0b;
    /* Yellow when checked */
    margin-right: 8px;
}

/* Validation Error Styles */
.invalid-field {
    border: 2px solid #ef4444 !important;
    outline: none;
    background-color: #fef2f2 !important;
    animation: shake 0.5s ease-in-out;
}

.invalid-label {
    color: #ef4444 !important;
    font-weight: bold !important;
}


.invalid-checkbox {
    outline: 2px solid #ef4444 !important;
    outline-offset: 2px;
}

/* Shake animation for invalid fields */
@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

/* Error message styling */
.error-message {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
    display: none;
}

/* Focus state for valid fields */
input:not(.invalid-field):focus,
select:not(.invalid-field):focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2) !important;
}

/* =============================================== */
/*                     BNR WIDGET                  */
/* =============================================== */
.bnr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 75%;
    margin: 0 auto;
    padding: 0 10px;
}

.bnr-container iframe {
    min-width: 180px;
    min-height: 70px;
    border: none;
    overflow: hidden;
}