:root {
    --primary-blue: #16264d;
    /* درجة الأزرق الداكنة */
    --accent-cyan: #4bc9f2;
    /* درجة اللون السماوي */
    --error-red: #ff7675;
    /* درجة لون التنبيه */
    --sidebar-bg: #1e2d58;
    --border-color: #e0e0e0;
}

.main-container {
    width: 90%;
    background-color: var(--primary-blue);
    padding: 60px 40px 40px;
    border-radius: 15px;
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: end;
    position: relative;
    margin-top: 200px;
    margin-bottom: 100px;

}

/* صورة الطبيب وتمركزها */
.header-section {
    margin-bottom: 30px;
    width: 70%;
    align-self: flex-end;

}

.doctor-image-wrapper {
    position: absolute;
    right: -80px;
    top: -80px;
    /* خروج الصورة للأعلى */
    width: 350px;
}

.doctor-img {
    width: 100%;
    border-radius: 20px;
}

/* العناوين */
.main-title {
    color: white;
    font-size: 2.2rem;
    margin: 0 0 15px 0;
}

.highlight {
    color: var(--accent-cyan);
}

.subtitle {
    display: flex;
    align-items: center;
    color: var(--error-red);
    font-size: 0.9rem;
    max-width: 60%;
}

.error-icon {
    border: 2px solid var(--error-red);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 10px;
    font-weight: bold;
}

/* كرت الحجز */
.booking-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0px;
    border-radius: 12px;
    overflow: visible;
    width: 70%;
    align-self: flex-end;
}

/* القائمة الجانبية اليمنى */
.steps-sidebar {
    background-color: var(--sidebar-bg);
    padding: 20px 0;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: start;
    justify-content: start;

}

.step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    /* padding: 15px 20px; */
    color: #a5b1c2;
    cursor: pointer;
    position: relative;
    width: 75%;
    margin: 0 auto;
}

.step.active {
    color: white;
}

.step-dot {
    width: 12px;
    height: 12px;
    background-color: #3d4b71;
    border-radius: 50%;
    margin-left: 15px;
}

.step.active .step-dot {
    background-color: #2e86de;
    /* النقطة النشطة */
    box-shadow: 0 0 8px #2e86de;
}

.step-icon {
    margin-left: 12px;
}

.collapse-menu {
    margin-top: 50px;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.8rem;
}

/* محتوى الخطوة اليسرى */
.step-content {
    background: white;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 450px;

    /* الارتفاع الثابت الذي طلبته */
}


.content-header {
    display: flex;
    justify-content: start;
    align-items: center;
    gap: 5px;
    padding: 15px 25px;
    direction: rtl;
    box-shadow: 0 2px 3px rgba(26, 44, 55, 0.15);
}

.back-arrow-container {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    text-align: center;
    align-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.back-arrow-container:hover {
    background-color: #f8f9fa;
}

.back-arrow-container i {
    width: 16px;
    color: #333;
}

.content-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
}

.inputs-area {
    width: 95%;
    margin: 0% auto;
    margin-top: 20px;

    min-height: 300px;
    max-height: 500px;
    /* الارتفاع الذي حددته سابقاً */
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;

}

.input-group {
    margin: 0 auto 20px auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    /* min-width: 0; */
    width: 98%;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.custom-select {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px;
}

.custom-select select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    appearance: none;
    color: #888;
}

.content-footer {
    padding: 20px;
    background: #fff;
    border-bottom-left-radius: 12px;
}

.btn-continue {
    background-color: #3867d6;
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

/* الإعدادات الافتراضية (إخفاء خطوط الجوال في المتصفح العادي) */
.mobile-steps-indicator {
    display: none;
}


@media (max-width: 1024px) {
    .booking-card {
        grid-template-columns: 180px 1fr;
    }
}

/* التجاوب مع الجوال */
@media (max-width: 992px) {
    .booking-card {
        grid-template-columns: 100% 1fr;
        width: 90%;
        align-self: center;
    }

    .header-section {
        width: 100%;
    }

    .doctor-image-wrapper {
        position: relative;
        right: 0;
        top: 0;
        width: 100%;
        margin-bottom: 20px;
    }

    .subtitle {
        max-width: 100%;
    }


    /* ================ dashes ========== */

    /* 1. إخفاء القائمة الجانبية الزرقاء تماماً */
    .steps-sidebar {
        display: none;
    }

    /* 2. جعل الكرت يأخذ عرض كامل وتعديل الحواف */
    /* .booking-card {
        grid-template-columns: 1fr;
        border-radius: 12px;
    } */

    .step-content {
        border-radius: 12px;
        /* حواف كاملة في الجوال */
        /* width: 80%; */
    }

    /* 3. تنسيق مؤشر الخطوط (The Dashes) */
    .mobile-steps-indicator {
        display: flex;
        gap: 4px;
        /* مسافة صغيرة جداً بين الخطوط كما في الصورة */
        margin-top: 10px;
        /* مسافة تحت العنوان */
    }

    .dash {
        flex: 1;
        /* لتوزيع العرض بالتساوي */
        height: 3px;
        /* ارتفاع نحيف جداً (Acute height) */
        background-color: #e0e0e0;
        /* لون الرمادي للخطوط غير النشطة */
        border-radius: 2px;
    }

    .dash.active {
        background-color: #3867d6;
        /* لون الخط النشط (نفس لون الزر) */
        /* إذا أردت اللون الرمادي الغامق الموجود في الصورة الثانية: #707070 */
    }

    /* 4. تعديل الحواشي (Padding) لتناسب شاشة الجوال */
    .content-header {
        padding: 15px 20px;
        text-align: right;
    }
}

/* الحاوية الأساسية للقائمة */
.custom-dropdown {
    position: relative;
    width: 100%;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

/* الجزء العلوي (الافتراضي) */
.selected-option {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #888;
}

/* سهم القائمة المنسدلة */
.arrow::after {
    content: '⌵';
    /* أو أيقونة سهم */
    font-size: 1.2rem;
    color: #444;
}

/* قائمة الخيارات المنسدلة */
.dropdown-list {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    z-index: 100;
    display: none;
    /* تظهر فقط عند النقر */
}

/* عنصر الطبيب الواحد */
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    transition: background 0.2s ease;
    gap: 12px;
    /* المسافة الصغيرة (Acute distance) بين الصورة والاسم */
}

/* تأثير الـ Hover واختيار الصف */
.dropdown-item:hover,
.dropdown-item.selected {
    background-color: rgba(0, 0, 0, 0.05);
    /* درجة الرمادي الشفاف اللطيف */
}

/* صورة الطبيب (الأفاتار) */
.doctor-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #2ecc71;
    /* الإطار الأخضر المميز في صورتك */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* خط اسم الطبيب */
.doctor-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    font-family: 'Cairo', sans-serif;
}

/* ============================== */
/* تبديل الأيقونة */
.arrow.close-mark::after {
    content: '✕';
    /* علامة إغلاق */
    color: #ff7675;
    font-weight: bold;
}

/* الزر في حالة عدم اكتمال البيانات */
.btn-continue:disabled {
    background-color: #a5b1c2;
    cursor: not-allowed;
    opacity: 0.7;
}

@media (max-width:425px) {
    .main-container {
        width: 100%;

        padding: 60px 10px 40px;
    }
}