.appointment-section {
    padding: 60px 0;
    background-color: #f4f6f9;
}

.appointment-wrapper {
    display: flex;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    overflow: hidden;
    min-height: 700px;
    font-family: 'DM Sans', sans-serif;
}

.sidebar {
    width: 300px;
    background: #17295A;
    color: #fff;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar-footer {
    margin-top: auto;
    font-size: 13px;
    opacity: 0.8;
}

.sidebar-icon {
    font-size: 14px;
    vertical-align: middle;
    margin-right: 5px;
}

.step-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
    color: rgba(255,255,255,0.5);
    transition: 0.3s;
    border-left: 3px solid transparent;
}

.step-item.active {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border-left-color: #c7a17a;
}

.step-item.completed .step-icon {
    background: #2ecc71;
    border-color: #2ecc71;
    color: #fff;
}

.step-icon {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
    flex-shrink: 0;
}

.step-text div { font-weight: 600; font-size: 15px; }
.step-text small { font-size: 12px; opacity: 0.7; display: block; margin-top: 3px; }

.content-area {
    flex: 1;
    padding: 40px;
    position: relative;
    background: #fff;
    overflow-y: auto;
}

.step-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}
.step-content.active { display: block; }

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

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.section-header h3 {
    margin: 0;
    color: #17295A;
    font-family: 'Marcellus', serif;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-employee-container {
    margin-top: 0;
}

.specialist-header {
    margin: 0;
    color: #17295A;
    font-family: 'Marcellus', serif;
    font-size: 1.8rem;
}

.emp-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.btn-back-text {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    transition: 0.2s;
    font-family: 'DM Sans', sans-serif;
}
.btn-back-text:hover { color: #c7a17a; }

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2px;
}

.category-card {
    border: 1px solid #eee;
    padding: 25px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.category-card:hover { border-color: #c7a17a; transform: translateY(-3px); box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.category-card .material-icons { font-size: 40px; color: #c7a17a; margin-bottom: 15px; }
.category-card h4 { margin: 0; color: #333; font-weight: 600; }

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: 0.2s;
}
.service-item:hover { border-color: #c7a17a; background: #fafafa; }
.service-item.selected { border-color: #c7a17a; background: #fffbf0; }

.custom-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.custom-select-wrapper { position: relative; display: inline-block; margin-right: 10px; }
.custom-select-wrapper select {
    appearance: none;
    background: #fff;
    border: 1px solid #ddd;
    padding: 10px 35px 10px 15px;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    outline: none;
}
.custom-select-wrapper::after {
    content: '▼';
    font-size: 10px;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
}

.cal-nav-btn {
    width: 36px; height: 36px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.cal-nav-btn:hover { border-color: #c7a17a; color: #c7a17a; }

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    text-align: center;
}
.cal-head { font-weight: 600; color: #999; font-size: 13px; padding-bottom: 10px; }

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: 0.2s;
    border: 1px solid transparent;
}

.cal-day.available { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
.cal-day.past { background: #ffebee; color: #c62828; opacity: 0.6; cursor: not-allowed; }
.cal-day.selected { background: #17295A; color: #fff !important; border-color: #17295A; font-weight: 700; }
.cal-day:hover:not(.past):not(.selected) { transform: scale(1.05); }

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}
.time-slot {
    padding: 12px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid transparent;
}
.time-slot.available { background: #fff; border-color: #c7a17a; color: #c7a17a; }
.time-slot.available:hover { background: #c7a17a; color: #fff; }
.time-slot.booked { background: #ffebee; color: #c62828; cursor: not-allowed; text-decoration: line-through; border-color: #ffcdd2; }
.time-slot.past-time { background: #f5f5f5; color: #aaa; cursor: not-allowed; border-color: #eee; }
.time-slot.selected { background: #17295A; color: #fff; border-color: #17295A; }

.form-row-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-floating { position: relative; margin-bottom: 20px; }
.form-floating input {
    width: 100%;
    padding: 16px 15px 16px 50px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    transition: 0.3s;
    box-sizing: border-box;
}
.form-floating .material-icons {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}
.form-floating input:focus { border-color: #c7a17a; outline: none; box-shadow: 0 0 0 3px rgba(199, 161, 122, 0.1); }
.form-floating label {
    position: absolute;
    left: 50px;
    top: 16px;
    color: #777;
    pointer-events: none;
    transition: 0.2s;
    font-size: 15px;
}
.form-floating input:focus ~ label,
.form-floating input:not(:placeholder-shown) ~ label {
    top: 5px;
    font-size: 11px;
    color: #c7a17a;
}
.form-floating input { padding-top: 22px; padding-bottom: 10px; }

.payment-summary {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
}
.summary-title { margin-top: 0; }
.pay-row { display: flex; justify-content: space-between; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #eee; }
.pay-row.total { font-size: 18px; font-weight: 700; color: #17295A; border-bottom: none; }
.pay-note { font-size: 13px; color: #666; font-style: italic; margin-top: 10px; }

.step-success-wrapper { padding: 0; height: 100%; }
.success-container { display: flex; min-height: 100%; }
.success-actions { width: 250px; background: #17295A; color: #fff; padding: 30px; display: flex; flex-direction: column; justify-content: center; gap: 15px; }
.success-action-title { margin: 0 0 20px 0; }

.contact-box {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px;
}

.cal-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: rgba(255,255,255,0.1); color: #fff; padding: 12px;
    border-radius: 6px; text-decoration: none; font-size: 14px; transition: 0.2s;
}
.cal-btn:hover { background: rgba(255,255,255,0.2); }
.success-details { flex: 1; padding: 40px; text-align: right; }
.success-header-center { text-align: center; }
.success-icon-large { font-size: 60px; color: #c7a17a; margin-bottom: 10px; }

.congrats-title {
    color: #17295A;
    font-family: 'Marcellus', serif;
}

.congrats-subtitle { color: #888; }

.success-info-block { margin-top: 40px; }

.detail-row {
    display: flex; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px;
}
.detail-row span:first-child { color: #888; text-align: left; }
.detail-row span:last-child { color: #333; font-weight: 600; text-align: right; }

.btn-next {
    background: #c7a17a;
    color: #fff;
    border: none;
    padding: 15px 40px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    float: right;
    margin-top: 20px;
}
.btn-next:hover { background: #b08d68; }

.btn-finish {
    background: #4361ee;
    margin-top: 30px;
    float: right;
}

@media (max-width: 900px) {
    .appointment-wrapper { flex-direction: column; overflow: hidden; }
    .sidebar { width: 100%; padding: 20px; box-sizing: border-box; flex-direction: inherit; overflow-x: auto; flex-shrink: 0; }
    .step-item { flex: 0 0 auto; margin-right: 10px; margin-bottom: 0; padding: 10px; }
    .success-container { flex-direction: column; }
    .success-actions { width: 100%; padding: 20px; box-sizing: border-box; }
    .sidebar-footer { display: none; }
    
    .category-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .category-card {
        padding: 15px;
        min-height: 120px;
    }
    
    .category-card .material-icons {
        font-size: 32px;
    }
    
    .category-card h4 {
        font-size: 14px;
    }
    
    .content-area {
        padding: 20px;
    }
    
    .section-header h3 {
        font-size: 1.4rem;
    }
    .form-row-group {
    display: grid;
    grid-template-columns: auto;
    gap: 20px;
    }
}