﻿/* ========================================
   Contact Page - MyHRPlus
   ======================================== */

.contact-page {
    direction: rtl;
    background: #f5f7fa;
    padding: 20px 0 12px;
    color: #0b2e4a;
    font-family: inherit;
    box-sizing: border-box;
}

    .contact-page *,
    .contact-hero * {
        box-sizing: border-box;
    }

    .contact-page .contact-main-row {
        align-items: start;
    }

/* ========================================
   Hero Banner
   ======================================== */


    .contact-hero::before {
        content: "";
        position: absolute;
        z-index: -1;
        left: -45px;
        top: -90px;
        width: 260px;
        height: 300px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 50%;
        pointer-events: none;
    }

    .contact-hero::after {
        content: "";
        position: absolute;
        z-index: -1;
        left: 43%;
        top: -30%;
        width: 4px;
        height: 160%;
        background: rgba(199, 162, 58, .75);
        transform: rotate(28deg);
        pointer-events: none;
    }


/* محتوای هدر */


/* متن سمت راست */

.contact-hero-text {
    flex: 1 1 0;
    min-width: 0;
    text-align: right;

}

.contact-hero .contact-hero-text h1 {
    font-size: 52px !important;
    font-weight: 800;
    line-height: 1.6;

}


/* ========================================
   Hero Image
   تصویر بزرگ‌تر در سمت چپ
   ======================================== */


    .contact-hero-image img {
        display: block;
        width: 300px !important;
        max-width: none !important;
        height: 145px;
        object-fit: contain;
        object-position: center;
    }

/* ========================================
   Main Layout
   فرم راست، اطلاعات تماس چپ
   ======================================== */

.contact-page .contact-layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    direction: rtl;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

    .contact-page .contact-layout > .contact-panel {
        width: 100%;
        min-width: 0;
        height: 100%;
        box-sizing: border-box;
    }

/* ========================================
   Main Panels
   ======================================== */

.contact-panel {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 22px;
    background: #fff;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(11, 46, 74, .045);
}

.contact-section-title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 12px;
}

    .contact-section-title h2 {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
        color: #0b2e4a;
        font-size: 20px;
        font-weight: 800;
    }

        .contact-section-title h2 i {
            font-size: 22px;
            color: #078d9c;
        }

    .contact-section-title > span {
        width: 55px;
        height: 3px;
        border-radius: 3px;
        background: #c7a23a;
    }

.contact-description {
    margin: 8px 0 22px;
    color: #7186a3;
    font-size: 13px;
    line-height: 1.9;
}

/* ========================================
   Contact Form
   ======================================== */

.contact-page .contact-form,
.contact-page .contact-form .row {
    width: 100%;
    min-width: 0;
}

.contact-form .form-label {
    display: block;
    margin-bottom: 8px;
    color: #173653;
    font-size: 13px;
    font-weight: 700;
}

    .contact-form .form-label span {
        color: #e74747;
    }

.contact-form .form-control,
.contact-form .form-select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d5dfeb;
    border-radius: 6px;
    background-color: #fff;
    color: #183754;
    font-family: inherit;
    font-size: 12px;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s;
}

    .contact-form .form-control::placeholder {
        color: #91a3bb;
    }

    .contact-form .form-control:focus,
    .contact-form .form-select:focus {
        border-color: #078d9c;
        outline: none;
        box-shadow: 0 0 0 3px rgba(7, 141, 156, .11);
    }

.contact-form .contact-textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form .text-danger {
    display: block;
    margin-top: 5px;
    font-size: 11px;
}

.contact-form .row {
    --bs-gutter-x: 16px;
}

/* دکمه ارسال پیام */

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 145px;
    padding: 11px 22px;
    border: 0;
    border-radius: 6px;
    background: #078d9c;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .2s;
}

    .contact-submit:hover {
        background: #0b2e4a;
        color: #fff;
        transform: translateY(-1px);
    }

/* ========================================
   Contact Information Cards
   ======================================== */

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 4px;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 190px;
    height: 100%;
    padding: 15px 10px;
    border: 1px solid #dce6ed;
    border-radius: 8px;
    background: linear-gradient(145deg, #fff, #f6fafb);
    text-align: center;
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

    .contact-info-card:hover {
        border-color: #83cbd0;
        box-shadow: 0 5px 15px rgba(11, 46, 74, .06);
        transform: translateY(-2px);
    }

.contact-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border-radius: 50%;
    background: #e2f5f5;
    color: #078d9c;
    font-size: 22px;
}

.contact-info-card h3 {
    margin: 0 0 8px;
    color: #0b2e4a;
    font-size: 15px;
    font-weight: 800;
}

.contact-info-card p,
.contact-info-card a {
    margin: 2px 0;
    color: #274663;
    font-size: 12px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.contact-info-card a {
    text-decoration: none;
}

    .contact-info-card a:hover {
        color: #078d9c;
    }

/* ========================================
   Map Section
   ======================================== */

.contact-map-section {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    min-height: 155px;
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #dfe6ef;
    border-radius: 8px;
    background: #fff;
}
.contact-map-info {
    padding: 20px;
    background: #f0f5f7;
}

    .contact-map-info h2 {
        margin: 0 0 12px;
        color: #0b2e4a;
        font-size: 18px;
        font-weight: 800;
    }

        .contact-map-info h2 i {
            color: #078d9c;
        }

    .contact-map-info p {
        color: #7186a3;
        font-size: 12px;
        line-height: 1.9;
    }

.map-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 6px;
    background: #0b2e4a;
    color: #fff;
    font-size: 12px;
    text-decoration: none;
    transition: background .2s;
}

    .map-button:hover {
        background: #078d9c;
        color: #fff;
    }

.contact-map-placeholder {
    min-height: 155px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #eaf1f5;
    color: #7186a3;
    text-align: center;
}

    .contact-map-placeholder > i {
        color: #078d9c;
        font-size: 36px;
    }

    .contact-map-placeholder p {
        margin: 5px 0;
        color: #0b2e4a;
        font-weight: 700;
    }

    .contact-map-placeholder small {
        font-size: 11px;
    }

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 991px) {
    .contact-hero {
        min-height: 145px;
    }

        .contact-hero .contact-hero-content {
            gap: 16px;
            padding: 14px 18px;
        }

    .contact-hero-image {
        flex: 0 0 220px;
        width: 220px;
        height: 120px;
    }

        .contact-hero-image img {
            width: 220px !important;
            height: 120px;
        }

    .contact-hero::after {
        left: 18%;
    }

    .contact-panel {
        padding: 18px;
    }

    .contact-page .contact-layout {
        gap: 18px;
    }

    .contact-info-card {
        min-height: 175px;
    }
}

@media (max-width: 767px) {
    .contact-page .contact-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .contact-map-section {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-hero .contact-hero-content {
        max-width: 100%;
    }
}


@media (max-width: 400px) {
    .contact-info-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .contact-hero-image {
        flex: 0 0 85px;
        width: 85px;
        height: 65px;
    }

        .contact-hero-image img {
            width: 85px !important;
            height: 65px;
        }

    .contact-hero h1 {
        font-size: 18px;
    }

    .contact-hero .contact-hero-content {
        gap: 8px;
        padding-right: 12px;
        padding-left: 12px;
    }
}
.contact-hero {
    position: relative;
    width: 100%;
    min-height: 120px !important; /* ارتفاع کمتر */
    overflow: hidden;
    background-image: url('/assets/images/crm/45.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-sizing:border-box;
    
        
}
.contact-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(230, 247, 252, 0.10), rgba(230, 247, 252, 0.25) );
}

.contact-hero .contact-hero-content {
    position: relative;
    z-index: 1;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 25px 20px;
}

.contact-hero-text {
    width: 50%;
    text-align: right;
}

.contact-hero h1 {
    margin: 0 0 8px;
    color: #0b4267;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
}

    .contact-hero h1 span {
        color: #078d9c;
    }

.contact-hero p {
    color: #274663;
    font-size: 13px;
    line-height: 2;
}

.hero-line {
    width: 55px;
    height: 3px;
    margin-top: 10px;
    background: #c7a23a;
}

@media (max-width: 575px) {
    .contact-hero,
    .contact-hero .contact-hero-content {
        min-height: 150px;
    }

    .contact-hero-text {
        width: 65%;
    }

    .contact-hero h1 {
        font-size: 21px;
    }

    .contact-hero p {
        font-size: 11px;
    }

}