/* Calendar Styles */
.consultation-calendar {
    display: none;
    background: var(--color-light);
    border-radius: 12px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    max-height: 0;
    overflow: hidden;
}

.consultation-calendar.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin: 0;
}

.calendar-navigation {
    display: flex;
    gap: 10px;
}

.calendar-navigation button {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-navigation button:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.calendar-month {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0 15px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.calendar-weekday {
    text-align: center;
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 0.9rem;
    padding: 10px 0;
}

.calendar-day {
    text-align: center;
    padding: 15px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    position: relative;
}

.calendar-day:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.calendar-day.selected {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.calendar-day.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-primary);
}

.calendar-day.selected.today::after {
    background: var(--color-white);
}

.time-slots-container {
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.time-slots-container.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease forwards;
}

.time-slots-header {
    margin-bottom: 15px;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 768px) {
    .time-slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.time-slot {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--color-white);
    border: 1px solid var(--color-border);
}

.time-slot:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
}

.time-slot.selected {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    font-weight: 600;
}

.time-slot.unavailable {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f5f5f5;
}

.booking-summary {
    margin-top: 30px;
    padding: 20px;
    background: var(--color-white);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.booking-summary h4 {
    margin-top: 0;
    color: var(--color-primary);
}

.booking-details {
    display: flex;
    gap: 30px;
    margin: 15px 0;
}

.booking-detail {
    display: flex;
    align-items: center;
    gap: 10px;
}

.booking-detail i {
    color: var(--color-primary);
}

.booking-actions {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

#confirm-booking {
    opacity: 0.5;
    cursor: not-allowed;
    transition: all 0.3s ease;
}

#confirm-booking.active {
    opacity: 1;
    cursor: pointer;
}

#booking-confirmation {
    display: none;
    margin-top: 20px;
    padding: 15px;
    background: #e6f7e6;
    border-left: 4px solid #28a745;
    border-radius: 4px;
}

#booking-confirmation.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

/* Animation for calendar elements */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.calendar-day.selected {
    animation: pulse 0.5s ease;
}

.time-slot.selected {
    animation: pulse 0.5s ease;
}