/* ============================================
   BOOKING CALENDAR SYSTEM
   Pour les Soins de Gong en Présentiel
   ============================================ */

.booking-section {
    background: #F8F6F3;
    padding: 4rem 0;
}

.booking-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.booking-header {
    text-align: center;
    margin-bottom: 3rem;
}

.booking-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #2C3E2F;
    margin-bottom: 1rem;
}

.booking-header p {
    color: #62665B;
    font-size: 1.1rem;
}

/* Session Type Selector */
.session-type-selector {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.session-type-option {
    flex: 1;
    max-width: 300px;
    padding: 2rem;
    background: white;
    border: 2px solid #E5E3DF;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.session-type-option:hover {
    border-color: #7C9885;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.session-type-option.active {
    border-color: #7C9885;
    background: #F0F4F1;
    box-shadow: 0 4px 12px rgba(124, 152, 133, 0.15);
}

.session-type-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: rgba(124, 152, 133, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.session-type-icon svg {
    width: 30px;
    height: 30px;
    fill: #7C9885;
}

.session-type-option h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #2C3E2F;
    margin-bottom: 0.5rem;
}

.session-type-price {
    font-size: 1.8rem;
    font-weight: 600;
    color: #7C9885;
    margin: 1rem 0;
}

.session-type-duration {
    color: #62665B;
    font-size: 0.95rem;
}

/* Calendar Grid */
.calendar-wrapper {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #E5E3DF;
}

.calendar-month {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: #2C3E2F;
    font-weight: 600;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav button {
    width: 40px;
    height: 40px;
    border: none;
    background: #F0F4F1;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.calendar-nav button:hover {
    background: #7C9885;
    color: white;
}

.calendar-nav button svg {
    width: 20px;
    height: 20px;
}

/* Days Grid */
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-weekday {
    text-align: center;
    padding: 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #62665B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #FAFAF9;
    border: 1px solid #E5E3DF;
}

.calendar-day:hover:not(.disabled):not(.other-month) {
    background: #F0F4F1;
    border-color: #7C9885;
    transform: scale(1.05);
}

.calendar-day.disabled {
    color: #C4C4C4;
    cursor: not-allowed;
    background: transparent;
    border-color: transparent;
}

.calendar-day.other-month {
    color: #D0D0D0;
    background: transparent;
}

.calendar-day.available {
    background: white;
    border-color: #7C9885;
    font-weight: 600;
    position: relative;
}

.calendar-day.available::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #7C9885;
    border-radius: 50%;
}

.calendar-day.selected {
    background: #7C9885;
    color: white;
    border-color: #7C9885;
    font-weight: 600;
}

.calendar-day-number {
    font-size: 1rem;
}

/* Time Slots */
.time-slots-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #E5E3DF;
}

.time-slots-header {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: #2C3E2F;
    margin-bottom: 1.5rem;
    text-align: center;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

.time-slot {
    padding: 1rem;
    background: #FAFAF9;
    border: 2px solid #E5E3DF;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.time-slot:hover:not(.unavailable) {
    border-color: #7C9885;
    background: #F0F4F1;
}

.time-slot.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

.time-slot.selected {
    background: #7C9885;
    color: white;
    border-color: #7C9885;
}

/* Booking Form */
.booking-form-section {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #E5E3DF;
}

.booking-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2C3E2F;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #E5E3DF;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #7C9885;
}

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

.booking-summary {
    background: #F0F4F1;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.booking-summary h4 {
    font-family: 'Cormorant Garamond', serif;
    color: #2C3E2F;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.booking-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    color: #62665B;
}

.booking-summary-item strong {
    color: #2C3E2F;
}

.booking-total {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #D8E3DC;
    font-size: 1.2rem;
    font-weight: 600;
}

.submit-booking-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: #7C9885;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.submit-booking-btn:hover {
    background: #6A8574;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(124, 152, 133, 0.3);
}

.submit-booking-btn:disabled {
    background: #C4C4C4;
    cursor: not-allowed;
    transform: none;
}

/* Confirmation Message */
.booking-confirmation {
    text-align: center;
    padding: 3rem 2rem;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: #7C9885;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.confirmation-icon svg {
    width: 40px;
    height: 40px;
    fill: white;
}

.booking-confirmation h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #2C3E2F;
    margin-bottom: 1rem;
}

.booking-confirmation p {
    color: #62665B;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .session-type-selector {
        flex-direction: column;
    }

    .session-type-option {
        max-width: 100%;
    }

    .calendar-wrapper {
        padding: 1.5rem;
    }

    .calendar-month {
        font-size: 1.4rem;
    }

    .calendar-day {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .calendar-days {
        gap: 0.3rem;
    }

    .calendar-day {
        font-size: 0.85rem;
        padding: 0.4rem;
    }

    .time-slots-grid {
        grid-template-columns: 1fr;
    }
}
