/**
 * Page Réservation - Styles spécifiques
 * @package RoadHouse
 */

/* ===== PAGE LAYOUT ===== */
.page-reservation {
    min-height: 100vh;
    padding: 120px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== BACK BUTTON ===== */
.back-button {
    position: fixed;
    top: 30px;
    left: 40px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    color: var(--color-white);
    background: transparent;
    transition: var(--transition);
    z-index: 1001;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
}

.back-button svg {
    width: 24px;
    height: 24px;
}

/* ===== RESERVATION CONTAINER ===== */
.reservation-container {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

/* ===== FORM SECTION ===== */
.reservation-form-section {
    margin-bottom: 80px;
}

.reservation-title {
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-white);
}

/* ===== ERROR MESSAGES ===== */
.reservation-errors {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid var(--color-white);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 25px;
}

.reservation-errors .error-message {
    color: var(--color-white);
    font-size: 0.9rem;
    margin: 0;
    padding: 5px 0;
}

.reservation-errors .error-message:last-child {
    padding-bottom: 0;
}

/* ===== FORM STYLES ===== */
.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--color-white);
    font-weight: 700;
}

/* ===== INPUT WRAPPER ===== */
.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 0 20px;
    height: 55px;
    transition: var(--transition);
}

.input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.5);
}

.input-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    margin-right: 15px;
    flex-shrink: 0;
}

.input-icon svg {
    width: 20px;
    height: 20px;
}

.input-wrapper input[type="text"],
.input-wrapper input[type="email"],
.input-wrapper input[type="tel"],
.input-wrapper input[type="date"],
.input-wrapper select {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 0.95rem;
    font-family: var(--font-primary);
    outline: none;
    height: 100%;
}

.input-wrapper input::placeholder {
    color: var(--color-white);
}

.input-wrapper input[type="date"] {
    color: var(--color-white);
}

.input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
    display: none;
}

.input-wrapper select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.input-wrapper select option {
    background: var(--color-bg-card);
    color: var(--color-white);
}

/* ===== SELECT WRAPPER ===== */
.select-wrapper {
    position: relative;
}

.select-arrow {
    display: flex;
    align-items: center;
    color: var(--color-white);
    pointer-events: none;
}

/* ===== PERSONNES COUNTER ===== */
.personnes-wrapper {
    padding: 0;
    gap: 0;
}

.personnes-btn {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.personnes-btn.minus {
    border-radius: 10px 0 0 10px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.personnes-btn.plus {
    border-radius: 0 10px 10px 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.personnes-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.personnes-btn svg {
    width: 20px;
    height: 20px;
}

.personnes-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.personnes-count {
    color: var(--color-white);
    font-size: 0.95rem;
}

.personnes-input {
    width: 60px;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-size: 1rem;
    font-family: var(--font-primary);
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
    appearance: textfield;
}

.personnes-input::-webkit-outer-spin-button,
.personnes-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.personnes-label {
    color: var(--color-white);
    font-size: 0.95rem;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.btn-submit {
    background: var(--color-white);
    color: var(--color-bg-dark);
    padding: 15px 40px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    border: 1px solid var(--color-white);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-submit:hover {
    background: transparent;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.calendar-link {
    color: var(--color-white);
    font-size: 0.9rem;
    text-decoration: underline;
    transition: var(--transition);
}

.calendar-link:hover {
    color: var(--color-white);
}

/* ===== PRIVATISER SECTION ===== */
.privatiser-section {
    text-align: center;
    padding-top: 60px;
    border-top: 1px solid var(--color-white);
}

.privatiser-title {
    font-size: 1.5rem;
    font-weight: 500;
    font-style: italic;
    color: var(--color-white);
    margin-bottom: 30px;
}

.btn-privatiser {
    display: inline-block;
    background: transparent;
    color: var(--color-white);
    padding: 15px 35px;
    border: 1px solid var(--color-white);
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-privatiser:hover {
    background: var(--color-white);
    color: var(--color-bg-dark);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .page-reservation {
        padding: 100px 15px 60px;
    }
    
    .back-button {
        top: 20px;
        left: 20px;
        width: 45px;
        height: 45px;
    }
    
    .reservation-container {
        max-width: 100%;
    }
    
    .reservation-title {
        font-size: 1.3rem;
        text-align: left;
    }
    
    .privatiser-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .personnes-btn {
        width: 50px;
        height: 50px;
    }
    
    .input-wrapper {
        height: 50px;
    }
}
