/* appointment-style.css */

/* Main Layout */
.appointment-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: center;
    background-color: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Info Section (Left Side) */
.info-section {
    padding: 40px;
    background: var(--grad-blue);
    color: var(--white);
    height: 100%;
    display: flex;
    align-items: center;
}

.info-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.info-section h2 {
    font-size: 2rem;
    line-height: 1.3;
    margin-bottom: 15px;
}

.info-section .subtitle {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
}

.benefits {
    margin-top: 30px;
}

.benefit-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.benefit-icon {
    font-size: 1.2rem;
    margin-top: 5px;
}

.benefit-text h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.benefit-text p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Appointment Form Section (Right Side) */
.appointment-form-section {
    padding: 40px;
}

.booking-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    position: relative;
}

.booking-steps::before {
    content: '';
    position: absolute;
    top: 17px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #eee;
    z-index: 1;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    flex: 1;
    background-color: var(--white);
    padding: 0 10px;
}

.step-number {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #eee;
    color: var(--gray);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 2px solid #eee;
}

.step.active .step-number {
    background-color: var(--white);
    border-color: #0f62e8;
    color: #0f62e8;
}

.step.completed .step-number {
    background: var(--grad-green);
    border-color: #43b249;
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: var(--gray);
    text-align: center;
    font-weight: 500;
}

.step.active .step-label {
    color: #0f62e8;
    font-weight: 600;
}

.booking-section { display: none; }
.booking-section.active { display: block; }

/* Calendar Styles */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.calendar-title { font-size: 1.1rem; font-weight: 600; }
.calendar-nav button {
    background: none;
    border: 1px solid #ddd;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
}
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
.calendar-day-header, .calendar-day { text-align: center; padding: 10px 5px; }
.calendar-day-header { font-size: 0.8rem; color: var(--gray); font-weight: 600; }
.calendar-day {
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}
.calendar-day:hover:not(.disabled) { background: #eef5ff; }
.calendar-day.selected { background: var(--grad-blue); color: white; font-weight: 600; }
.calendar-day.disabled { color: #ccc; cursor: not-allowed; }
.calendar-day.today { font-weight: 700; border: 1px solid #0f62e8; }

/* Time Slot Styles */
.selected-date, .appointment-time { margin-bottom: 1rem; color: var(--gray); }
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 1.5rem;
}
.time-slot {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.time-slot:hover:not(.disabled) { border-color: #0f62e8; color: #0f62e8; }
.time-slot.selected { background: var(--grad-blue); color: white; border-color: #0f62e8; }
.time-slot.disabled { background: #f8f9fa; color: #ccc; cursor: not-allowed; }

/* Form & Confirmation Styles */
.form-group { margin-bottom: 1rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 8px;
    font-family: inherit;
}
.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 1rem;
}
.confirmation-message { text-align: center; }
.confirmation-icon { font-size: 3rem; color: #43b249; margin-bottom: 1rem; }
.confirmation-message h2 { margin-bottom: 0.8rem; font-size: 1.5rem; }
.confirmation-details {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
    text-align: left;
}
.confirmation-details p { margin-bottom: 0.5rem; }

/* Responsive Adjustments */
@media (max-width: 992px) {
    .appointment-wrapper {
        grid-template-columns: 1fr;
    }
    .info-section {
        border-radius: 15px 15px 0 0;
        text-align: center;
    }
    .info-content {
        margin: 0 auto;
    }
    .benefit-item {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .appointment-form-section, .info-section {
        padding: 25px;
    }
    .action-buttons {
        flex-direction: column-reverse;
    }
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}