/* Header Section */
.contact-header {
    /* background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.8)),
        url('../IMG/arlington-research-kN_kViDchA0-unsplash513.jpg');
    background-size: cover;
    background-position: center; */
    padding: 140px 0 90px;
    color: white;
    text-align: center;
    position: relative;
}

.contact-header h1 {
    font-family: 'Changa', sans-serif;
    font-weight: 500;
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.contact-header .lead {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
     padding: 0.5rem 1rem;
     font-family: 'Changa', sans-serif;
}

.breadcrumb-item {
    font-size: 1.1rem;
}

.breadcrumb-item a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: #f8f8f8;
    transform: translateX(-3px);
}

.breadcrumb-item.active {
    color: white;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: '\f104';
    font-family: 'Font Awesome 5 Pro';
    color: white;
    padding: 0 0.8rem;
    font-weight: 900;
}

@media (max-width: 768px) {
    .contact-header {
        padding: 100px 0 30px;
    }

    .contact-header h1 {
        font-size: 2.2rem;
    }

    .contact-header .lead {
        font-size: 1.1rem;
    }

    .breadcrumb {
        padding: 0.5rem 1rem;
    }

    .breadcrumb-item {
        font-size: 0.9rem;
    }
}

.contact-page{
    background-color: var(--light-color);
    overflow: visible;
}

.branches-sidebar {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 20px;
    height: fit-content; 
    top: 100px;
}

.branches-sidebar h3 {
    color: var(--primary-color);
    font-family: 'Changa', sans-serif;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.branch-search {
    position: relative;
}

.search-input {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s;
    text-align: right;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px rgba(24, 175, 72, 0.2);
}

.btn-search {
    color: var(--primary-color);
    border: none;
    padding: 0 15px;
}


.branches-sidebar .btns{
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
}

.branch-btn {
    display: block;
    width: 98%;
    padding: 12px 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    text-align: right;
    font-weight: 600;
    color: var(--dark-color);
    transition: all 0.3s;
    position: relative;
}

.branch-btn .collapse-icon {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.branch-btn[aria-expanded="true"] .collapse-icon {
    transform: rotate(180deg);
}

.sub-branch {
    padding: 10px 15px 10px 25px;
    margin-bottom: 5px;
    background: rgba(248, 249, 250, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

.sub-branch:hover {
    background: rgba(24, 175, 72, 0.1);
}

.sub-branch i {
    color: var(--primary-color);
}

.branch-btn:hover,
.branch-btn.active {
    background: var(--primary-color);
    color: white;
    /* transform: translateX(-5px); */
}

.branch-btn.active:after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 10px solid var(--primary-color);
}


.info-title {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    font-size: 1.2rem;
}

.info-item {
    padding: 10px 15px;
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.info-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 3px;
}

.info-value {
    color: #333;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.1rem;
}

.info-value:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .info-item {
        padding: 8px 10px;
    }
    
    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-left: 10px;
    }
    
    .info-value {
        font-size: 1rem;
    }
}

.branch-details {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    min-height: 500px;
}

.branch-header {
    margin-bottom: 30px;
    /* padding-bottom: 15px; */
    border-bottom: 2px solid #eee;
}

.branch-header h2 {
    color: var(--primary-color);
    font-family: 'Changa', sans-serif;
}

.contact-info-card {
    background: var(--light-color);
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 10px;
}

.contact-info-card i {
    font-size: 24px;
    color: var(--primary-color);
    padding: 10px;
}

.contact-info-card h5 {
    font-weight: 700;
    padding: 10px 0 0;
    margin-bottom: 10px;
}

.contact-info-card p {
    padding: 0px 45px 0 0;
}

.contact-info-card a {
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
    padding: 0 45px 0 0 ;
    display: block;
}

.contact-info-card a:hover {
    color: var(--primary-color);
}

.branch-map {
    height: 300px;
    background: #eee;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
}

.branch-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 991.98px) {
    

    .branch-btn.active:after {
        display: none;
    }
}


@media (max-width: 991.98px) {
    .mobile-branches-tabs {
        position: sticky;
        top: 0;
        z-index: 1000;
        border-radius: 10px;
        background: white;
        padding: 10px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        display: flex;
        justify-content: center;
    }
    
    .branch-selector {
        width: 98%;
        padding: 12px 15px;
        border: 1px solid var(--primary-color);
        border-radius: 8px;
        font-family: 'Tajawal', sans-serif;
        font-weight: 600;
    }
    
    .branch-selector:focus{
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(24, 175, 72, 0.2);
    }

    optgroup{
        color: #444;
    }

    option{
        color: #333;
    }
    /* إخفاء القائمة الجانبية الأصلية على الهواتف */
    .branches-sidebar {
        display: none;
    }
    
    /* توسيع مساحة تفاصيل الفرع على الهواتف */
    .branch-details {
        min-height: auto;
        padding: 20px;
    }
    
    .branch-header {
        margin-bottom: 20px;
    }

    .contact-info-card {
        padding: 10px;
    }
}


.contact-form {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    margin-top: 40px;
}

.contact-form .section-header {
    margin-bottom: 30px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

.contact-form .section-header h2 {
    color: var(--primary-color);
    font-family: 'Changa', sans-serif;
}

.contact-form .form-label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.contact-form .form-control,
.contact-form .form-select {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 15px;
    transition: all 0.3s;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(24, 175, 72, 0.25);
}

.contact-form textarea.form-control {
    min-height: 150px;
}

.contact-form .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.contact-form .btn-primary:hover {
    background-color: #138a3a;
    border-color: #138a3a;
}

.text-danger {
    color: #dc3545 !important;
}