/* Page header */
.page-header {
    background: var(--gradient-primary);
    padding: 4rem 0;
    border-radius: 0 0 40px 40px;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--color-border);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.step-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--color-bg-white);
    border: 3px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: 700;
    color: var(--color-text-secondary);
    transition: all 0.3s;
}

.step.active .step-circle {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}

.step.completed .step-circle {
    background: var(--color-success);
    border-color: var(--color-success);
    color: white;
}

.step.completed .step-circle i {
    display: block;
}

.step.completed .step-circle span {
    display: none;
}

.step .step-circle i {
    display: none;
    font-size: 1.2rem;
}

.step .step-circle span {
    display: block;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.step.active .step-label {
    color: var(--color-primary);
    font-weight: 600;
}

.step.completed .step-label {
    color: var(--color-success);
}

/* Form Container */
.appointment-card {
    background: var(--color-bg-white);
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px var(--color-shadow);
    border: 1px solid var(--color-border);
}

.form-control,
.form-select,
.input-group-text {
    border-radius: 12px;
    padding: 0.75rem 1.2rem;
    border: 1.5px solid var(--color-border);
    background-color: var(--color-bg-white);
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(47, 140, 143, 0.15);
}

.form-label {
    font-weight: 500;
    color: var(--color-text-primary);
    margin-bottom: 0.5rem;
}

/* Service Selection Cards */
.service-option {
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
    height: 100%;
    background: var(--color-bg-white);
}

.service-option:hover {
    border-color: var(--color-secondary);
    background: rgba(47, 140, 143, 0.03);
}

.service-option.selected {
    border-color: var(--color-secondary);
    background: rgba(47, 140, 143, 0.08);
    box-shadow: 0 8px 20px var(--color-shadow);
}

.service-radio {
    display: none;
}

.service-icon {
    width: 50px;
    height: 50px;
    background: rgba(47, 140, 143, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 1.8rem;
    color: var(--color-secondary);
}

/* Time Slot Buttons */
.time-slot {
    border: 1.5px solid var(--color-border);
    border-radius: 40px;
    padding: 0.7rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--color-bg-white);
}

.time-slot:hover {
    border-color: var(--color-secondary);
    background: rgba(47, 140, 143, 0.05);
}

.time-slot.selected {
    border-color: var(--color-secondary);
    background: var(--color-secondary);
    color: white;
}

.time-slot.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--color-bg-light);
}

/* Doctor Selection */
.doctor-option {
    border: 2px solid var(--color-border);
    border-radius: 16px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.doctor-option:hover {
    border-color: var(--color-secondary);
}

.doctor-option.selected {
    border-color: var(--color-secondary);
    background: rgba(47, 140, 143, 0.05);
}

.doctor-avatar-sm {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Insurance Badge */
.insurance-badge {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.insurance-badge:hover {
    border-color: var(--color-secondary);
}

.insurance-badge.selected {
    background: var(--color-secondary);
    color: white;
    border-color: var(--color-secondary);
}

/* Summary Sidebar */
.summary-card {
    background: var(--color-bg-light);
    border-radius: 24px;
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
}

.summary-item:last-child {
    border-bottom: none;
}

.badge-accent {
    background-color: var(--color-accent);
    color: #1E3557;
    font-weight: 500;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

@media (max-width: 768px) {
    .page-header {
        border-radius: 0 0 20px 20px;
    }

    .appointment-card {
        padding: 1.5rem;
    }

    .progress-steps::before {
        left: 5%;
        right: 5%;
    }

    .step-label {
        font-size: 0.75rem;
    }
}