﻿


.contact-container {
    margin-top: var(--header-height);
    width: 90%;
   
}
form {
    padding: 0 !important;
}
#crmPic {
    width: 90%;
    height: 90%;
    object-fit: cover;
}
.forms-wrapper {
    position: relative;
    height: 100%;
 
}
@media (max-width: 1350px) {
    .contact-container {
        position: relative;
        background: url('/images/crm/1.png') center/cover no-repeat;
        padding: 20px 1px !important
    }
    .contact-container div:first-child{
       flex-direction:column !important

    }
        .contact-container #crmForm {
            margin: 5% auto
        }

        .contact-container #crmPic {
            display: none
        }
        .contact-container::before {
            content: "";
            position: absolute;
            inset: 0;
            background-color: rgba(255, 255, 255, 0.7);
            z-index: 0;
        }

        .contact-container > * {
            position: relative;
            z-index: 1;
        }
}
.contactform {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: opacity 0.3s ease;
}

    .contactform.active {
        position: relative;
    }
.contact-container > .d-lg-flex {
    height: 800px;
}

.contact-container .col-xl-6,
.contact-container .col-lg-6 {
    height: 100%;
}

.forms-wrapper {
    height: 100%; /* عنوان + توضیحات + دسته‌بندی */
    overflow-y: auto;
    padding-left: 8px;
}


.category-scroll {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
}

@media (max-width: 767.98px) {

    .category-scroll {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        direction: rtl;
   
        gap: 8px !important;
        box-sizing: border-box;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

        .category-scroll::-webkit-scrollbar {
            display: none;
        }

        .category-scroll > .category-btn {
            flex: 0 0 auto !important;
            white-space: nowrap !important;
        }
}