/* ===================================
   ONLINE RANDEVU - DERLİ TOPLU (SPLIT VIEW)
   =================================== */

:root {
    --appt-bg: #f8fafc;
    --appt-sidebar-w: 280px;
    --appt-summary-w: 320px;
    --appt-border: rgba(0, 0, 0, 0.06);
}

.appointment-page {
    background: var(--appt-bg);
    min-height: 100vh;
    padding-top: 40px;
    padding-bottom: 100px;
}

/* --- Layout Grid --- */
.appointment-container {
    display: grid;
    grid-template-columns: var(--appt-sidebar-w) 1fr var(--appt-summary-w);
    gap: 40px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

/* --- Left Sidebar: Vertical Steps --- */
.appointment-nav-sidebar {
    position: sticky;
    top: 152px;
}

.vertical-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.v-step-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    position: relative;
    opacity: 0.5;
    transition: all 0.4s ease;
}

.v-step-item::after {
    content: '';
    position: absolute;
    left: 17px;
    top: 50px;
    bottom: -10px;
    width: 2px;
    background: #e2e8f0;
}

.v-step-item:last-child::after { display: none; }

.v-step-item.active { opacity: 1; transform: translateX(5px); }
.v-step-item.completed { opacity: 0.7; }

.v-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #94a3b8;
    z-index: 2;
    transition: all 0.3s ease;
}

.active .v-step-circle {
    background: var(--doruk-navy);
    border-color: var(--doruk-navy);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(11, 44, 84, 0.1);
}

.completed .v-step-circle {
    background: var(--doruk-blue-light);
    border-color: var(--doruk-blue-light);
    color: #fff;
}

.v-step-info {
    display: flex;
    flex-direction: column;
}

.v-step-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: #94a3b8;
}

.v-step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--doruk-navy);
}

/* --- Center Content: Main Action --- */
.appointment-main-content {
    background: #fff;
    border-radius: 32px;
    padding: 60px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
    min-height: 500px;
    border: 1px solid var(--appt-border);
}

.appointment-step-section {
    display: none;
    animation: fadeInUp 0.5s ease forwards;
}

.appointment-step-section.active {
    display: block;
}

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

.step-header {
    margin-bottom: 40px;
}

.step-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--doruk-navy);
    margin-bottom: 10px;
}

.step-header p {
    color: #64748b;
    font-size: 16px;
}

/* --- Right Sidebar: Summary Card --- */
.appointment-summary-sidebar {
    position: sticky;
    top: 152px;
}

.summary-card {
    background: #fff;
    border-radius: 28px;
    padding: 30px;
    border: 1px solid var(--appt-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.summary-card h5 {
    font-size: 16px;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.summary-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.summary-list-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}

.summary-list-item:last-child { border-bottom: none; }

.summary-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 12px;
}

.summary-list-item.filled .summary-icon {
    background: rgba(0, 163, 225, 0.1);
    color: var(--doruk-blue-light);
}

.summary-content span {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

.summary-content strong {
    font-size: 14px;
    color: var(--doruk-navy);
}

/* --- Selection Grid & Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.choice-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.choice-card:hover {
    border-color: var(--doruk-blue-light);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.choice-card.selected {
    border-color: var(--doruk-navy);
    background: rgba(11, 44, 84, 0.02);
}

.choice-card i {
    font-size: 24px;
    color: var(--doruk-navy);
    margin-bottom: 15px;
}

.choice-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--doruk-navy);
}

.choice-card p {
    font-size: 13px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

/* --- Hospital Image Cards --- */
.hospital-img-card {
    padding: 0;
    overflow: hidden;
}

.card-img-wrapper {
    height: 160px;
    width: 100%;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hospital-img-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-body-content {
    padding: 20px;
}

/* --- Doctor Mini Cards --- */
.doctor-mini-card {
    flex-direction: row !important;
    align-items: center;
    gap: 15px;
}

/* --- Step 5: Final Review --- */
.final-review-card {
    border: 1px solid var(--appt-border) !important;
    box-shadow: none !important;
}

.review-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--doruk-navy);
    flex-shrink: 0;
}

.bg-orange-soft {
    background: rgba(255, 107, 53, 0.08);
}

.text-orange {
    color: var(--doruk-orange) !important;
}

.shadow-orange {
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.2) !important;
}

.btn-navy-pill {
    background: var(--doruk-navy) !important;
    color: #fff !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-navy-pill:hover {
    background: #061a33 !important;
    transform: translateY(-2px);
}

.time-slot-btn.selected {
    background: var(--doruk-navy) !important;
    color: #fff !important;
    border-color: var(--doruk-navy) !important;
}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .appointment-container {
        grid-template-columns: 1fr;
    }
    .appointment-nav-sidebar, .appointment-summary-sidebar {
        position: relative;
        top: 0;
    }
    .vertical-steps {
        display: flex;
        overflow-x: auto;
        padding-bottom: 20px;
        gap: 30px;
    }
    .v-step-item::after { display: none; }
}
