@import "./common-var.css";

/**************
Contact Us Main Content
**************/
.contact-main-content {
    position: relative;
}

/**************
Contact Person Section
**************/
.contact-person-section {
    background: var(--white);
}

.contact-person-image {
    width: 100%;
    max-width: 621px;
    height: 454px;
    object-fit: cover;
    border-radius: 263px 252px 252px 86px;
    margin-bottom: 30px;

    @media (max-width: 1200px) {
        height: 400px;
        border-radius: 210px 210px 210px 70px;
    }

    @media (max-width: 991px) {
        height: 350px;
        border-radius: 175px 167px 167px 56px;
        margin-bottom: 20px;
    }

    @media (max-width: 768px) {
        height: 300px;
        border-radius: 150px 144px 144px 48px;
    }

    @media (max-width: 576px) {
        height: 250px;
        border-radius: 125px 120px 120px 40px;
    }
}

.person-details {
    margin-top: 20px;
    
    @media (max-width: 991px) {
        margin-bottom: 40px;
    }

    .name {
        color: var(--primary-color);
        font-family: var(--font-type2);
        font-size: 26px;
        font-weight: 400;
        line-height: 34px;
        margin: 0 0 5px 0;

        @media (max-width: 768px) {
            font-size: 22px;
            line-height: 28px;
        }

        @media (max-width: 576px) {
            font-size: 20px;
            line-height: 26px;
        }
    }

    .position {
        color: var(--text-default-color);
        font-family: var(--font-type1);
        font-size: 18px;
        font-weight: 400;
        line-height: 28px;
        margin: 0;

        @media (max-width: 768px) {
            font-size: 16px;
            line-height: 24px;
        }

        @media (max-width: 576px) {
            font-size: 14px;
            line-height: 22px;
        }
    }
}

.contact-info-content {
    padding-top: 50px;

    @media (max-width: 991px) {
        padding-top: 0;
    }
}

.person-details{
    margin-left: 90px;
    @media(max-width:1280px){
        margin-left: 60px;
    }
    @media(max-width:991px){
        margin-left: 0px;
    }
}
[dir="rtl"] .person-details{
    margin-left: 0px;
    margin-right: 90px;
    @media(max-width:1280px){
        margin-right: 60px;
    }
    @media(max-width:991px){
        margin-right: 0px;
    }
}

/**************
Contact Cards
**************/
.contact-card {
    background: rgba(45, 19, 234, 0.07);
    border-radius: 5px;
    padding: 30px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    @media (max-width: 576px) {
        padding: 20px;
        margin-bottom: 15px;
    }

    &:last-child {
        margin-bottom: 0;
    }
}

.contact-card-header {
    flex-grow: 1;
}

.contact-card-title {
    color: var(--text-default-color);
    font-family: var(--font-type2);
    font-size: 30px;
    font-weight: 400;
    line-height: 34px;
    margin-bottom: 20px;
    flex: 1;

    @media (max-width: 768px) {
        font-size: 26px;
        line-height: 30px;
    }

    @media (max-width: 576px) {
        font-size: 22px;
        line-height: 26px;
    }
}

.contact-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    margin-left: 20px;

    @media (max-width: 576px) {
        width: 36px;
        height: 36px;
        margin-left: 15px;
    }
}
[dir="rtl"] .contact-icon {
    margin-left: 0;
    margin-right: 20px;
    @media (max-width: 576px) {
        margin-left: 0;
        margin-right: 15px;
    }
}

.contact-email {
    color: var(--text-default-color);
    font-family: var(--font-type1);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    text-decoration: underline;
    transition: color 0.3s ease;

    @media (max-width: 768px) {
        font-size: 16px;
        line-height: 24px;
    }

    @media (max-width: 576px) {
        font-size: 14px;
        line-height: 22px;
    }

    &:hover {
        color: var(--primary-color);
        text-decoration: underline;
    }
}

.contact-address {
    color: var(--text-default-color);
    font-family: var(--font-type1);
    font-size: 18px;
    font-weight: 400;
    line-height: 28px;
    margin: 0;

    @media (max-width: 768px) {
        font-size: 16px;
        line-height: 24px;
    }

    @media (max-width: 576px) {
        font-size: 14px;
        line-height: 22px;
    }
}

/**************
Office Information Section
**************/
.office-info-section {
    background: var(--light-gray);
}

.office-contact-cards {
    padding-right: 40px;

    @media (max-width: 991px) {
        padding-right: 0;
        margin-bottom: 40px;
    }
}

.office-image {
    width: 100%;
    display: flex;
    justify-content: center;

    @media (max-width: 991px) {
        justify-content: center;
    }
}

.office-building-image {
    width: 100%;
    max-width: 623px;
    height: 455px;
    object-fit: cover;
    border-radius: 263px 252px 252px 86px;

    @media (max-width: 1200px) {
        height: 400px;
        border-radius: 210px 210px 210px 70px;
    }

    @media (max-width: 991px) {
        height: 350px;
        border-radius: 175px 167px 167px 56px;
    }

    @media (max-width: 768px) {
        height: 300px;
        border-radius: 150px 144px 144px 48px;
    }

    @media (max-width: 576px) {
        height: 250px;
        border-radius: 125px 120px 120px 40px;
    }
}

/**************
RTL Support
**************/
[dir="rtl"] .contact-card-header {
    .contact-icon {
        margin-left: 0;
        margin-right: 20px;

        @media (max-width: 576px) {
            margin-right: 15px;
        }
    }
}

[dir="rtl"] .office-contact-cards {
    padding-right: 0;
    padding-left: 40px;

    @media (max-width: 991px) {
        padding-left: 0;
    }
}


/**************
Mobile Optimizations
**************/
@media (max-width: 991px) {

    .contact-person-section .investment-content {
        padding-left: 0;
        padding-top: 0;
    }

    .office-info-section .row {
        flex-direction: column-reverse;
    }

    .office-info-section .col-lg-6:first-child {
        order: 2;
    }

    .office-info-section .col-lg-6:last-child {
        order: 1;
        margin-bottom: 40px;
    }
}

@media (max-width: 576px) {
    .contact-person-section .investment-content {
        text-align: left;
    }

    .office-contact-cards .contact-card {
        margin-bottom: 20px;
    }
}

/**************
Accessibility & Hover States
**************/
.contact-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(45, 19, 234, 0.1);
    }
}

.contact-email:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (max-width: 576px) {
    [dir="rtl"] .contact-person-section .investment-content {
        text-align: right;
    }
}