﻿/* ==================== صفحه تماس با ما ==================== */

.contact-page-wrap {
    position: relative;
    overflow: hidden;
}

.contact-hero-section {
    position: relative;
    padding: 3.5rem 0 2rem;
    overflow: hidden;
}

    .contact-hero-section::before {
        content: '';
        position: absolute;
        top: 25px;
        right: -120px;
        width: 330px;
        height: 330px;
        background: rgba(34, 65, 115, 0.08);
        border-radius: 50%;
        pointer-events: none;
    }

    .contact-hero-section::after {
        content: '';
        position: absolute;
        left: -130px;
        bottom: -95px;
        width: 360px;
        height: 360px;
        background: rgba(34, 65, 115, 0.06);
        border-radius: 50%;
        pointer-events: none;
    }

.contact-hero-card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.92));
    border: 1px solid rgba(34, 65, 115, 0.1);
    border-radius: 2.2rem;
    padding: 2.5rem;
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

    .contact-hero-card::before {
        content: '';
        position: absolute;
        inset: auto -120px -140px auto;
        width: 330px;
        height: 330px;
        background: radial-gradient(circle, rgba(34, 65, 115, 0.12), transparent 70%);
        pointer-events: none;
    }

.contact-hero-content,
.contact-hero-info {
    position: relative;
    z-index: 2;
}

.contact-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #224173;
    background: rgba(34, 65, 115, 0.08);
    border: 1px solid rgba(34, 65, 115, 0.12);
    border-radius: 999px;
    padding: 0.55rem 1rem;
    font-weight: 800;
    margin-bottom: 1.1rem;
}

.contact-hero-content h1 {
    margin: 0 0 1rem;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.55;
}

.contact-hero-content p {
    max-width: 680px;
    color: #475569;
    line-height: 2.1;
    margin-bottom: 1.6rem;
}

.contact-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.contact-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 48px;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .contact-hero-btn:hover {
        text-decoration: none;
        transform: translateY(-3px);
    }

.contact-hero-btn-primary {
    background: linear-gradient(214deg, #224173, #1b3560);
    color: #ffffff;
    box-shadow: 0 14px 26px rgba(34, 65, 115, 0.24);
}

    .contact-hero-btn-primary:hover {
        color: #ffffff;
        box-shadow: 0 18px 34px rgba(34, 65, 115, 0.32);
    }

.contact-hero-btn-light {
    background: #ffffff;
    color: #224173;
    border: 1px solid rgba(34, 65, 115, 0.16);
}

    .contact-hero-btn-light:hover {
        color: #224173;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    }

.contact-hero-info {
    display: grid;
    gap: 1rem;
}

.contact-info-mini-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(34, 65, 115, 0.1);
    border-radius: 1.35rem;
    padding: 1rem;
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
    text-decoration: none;
    transition: all 0.25s ease;
}

    .contact-info-mini-card:hover {
        text-decoration: none;
        transform: translateY(-3px);
        box-shadow: 0 16px 38px rgba(15, 23, 42, 0.09);
    }

    .contact-info-mini-card span {
        width: 44px;
        height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(214deg, #224173, #1b3560);
        color: #ffffff;
        border-radius: 1rem;
        box-shadow: 0 10px 20px rgba(34, 65, 115, 0.22);
    }

    .contact-info-mini-card small {
        display: block;
        color: #64748b;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

    .contact-info-mini-card strong {
        display: block;
        color: #0f172a;
        font-weight: 900;
        direction: ltr;
        text-align: right;
        letter-spacing: 0.5px;
    }

/* ==================== Main Contact ==================== */

.contact-main-section {
    padding: 2rem 0 4rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.contact-side {
    min-height: 100%;
    display: flex;
}

.contact-side-card,
.contact-form-card,
.contact-content-card,
.contact-detail-card {
    background: #ffffff;
    border: 1px solid rgba(34, 65, 115, 0.09);
    border-radius: 1.7rem;
    box-shadow: 0 20px 52px rgba(15, 23, 42, 0.06);
}

.contact-side-card {
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .contact-side-card::before {
        content: '';
        position: absolute;
        left: -55px;
        bottom: -65px;
        width: 170px;
        height: 170px;
        background: rgba(34, 65, 115, 0.08);
        border-radius: 50%;
    }

.contact-side-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(214deg, #224173, #1b3560);
    color: #ffffff;
    border-radius: 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 14px 25px rgba(34, 65, 115, 0.24);
}

.contact-side-card h3 {
    color: #0f172a;
    font-weight: 900;
    line-height: 1.7;
    margin-bottom: 0.65rem;
}

.contact-side-card p {
    color: #64748b;
    line-height: 1.9;
    margin-bottom: 1rem;
}

.contact-side-list {
    display: grid;
    gap: 0.75rem;
    position: relative;
    z-index: 2;
}

.contact-side-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: #f8fafc;
    border: 1px solid rgba(34, 65, 115, 0.07);
    border-radius: 1rem;
    padding: 0.78rem 0.9rem;
    color: #334155;
    font-weight: 800;
}

    .contact-side-item i {
        color: #224173;
    }

.contact-form-card {
    height: 100%;
    padding: 1.5rem;
}

    .contact-form-card label {
        display: block;
        color: #0f172a;
        font-weight: 850;
        margin-bottom: 0.45rem;
    }

.contact-input {
    min-height: 48px;
    border-radius: 1rem;
    border: 1px solid rgba(34, 65, 115, 0.14);
    background: #f8fafc;
    color: #0f172a;
    padding: 0.75rem 1rem;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

    .contact-input:focus {
        background: #ffffff;
        border-color: #224173;
        box-shadow: 0 0 0 4px rgba(34, 65, 115, 0.08) !important;
    }

.contact-textarea {
    resize: vertical;
    min-height: 145px;
}

.contact-submit-btn {
    width: 100%;
    min-height: 52px;
    border: none;
    outline: none;
    border-radius: 999px;
    background: linear-gradient(214deg, #224173, #1b3560);
    color: #ffffff;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(34, 65, 115, 0.24);
    transition: all 0.25s ease;
}

    .contact-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 34px rgba(34, 65, 115, 0.32);
    }

/* ==================== فرم دریافت مشاوره رایگان ==================== */

.consultation-form-card {
    position: relative;
    overflow: hidden;
}

    .consultation-form-card::before {
        content: '';
        position: absolute;
        left: -80px;
        bottom: -90px;
        width: 230px;
        height: 230px;
        background: rgba(34, 65, 115, 0.07);
        border-radius: 50%;
        pointer-events: none;
    }

.consultation-form-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(214deg, rgba(34, 65, 115, 0.08), rgba(34, 65, 115, 0.03));
    border: 1px solid rgba(34, 65, 115, 0.08);
    border-radius: 1.35rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
}

.consultation-form-icon {
    width: 54px;
    height: 54px;
    min-width: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(214deg, #224173, #1b3560);
    color: #ffffff;
    border-radius: 1.15rem;
    box-shadow: 0 12px 24px rgba(34, 65, 115, 0.24);
}

.consultation-form-header h3 {
    margin: 0 0 0.35rem;
    color: #0f172a;
    font-weight: 900;
    line-height: 1.7;
}

.consultation-form-header p {
    margin: 0;
    color: #64748b;
    line-height: 1.9;
}

.consultation-form-card form {
    position: relative;
    z-index: 2;
}

.consultation-submit-btn {
    margin-top: 0.25rem;
}

.consultation-form-message {
    position: relative;
    z-index: 2;
    margin-top: 1rem;
    font-weight: 800;
    line-height: 1.9;
    text-align: center;
}

    .consultation-form-message i {
        margin-left: 0.35rem;
    }

/* ==================== Contact Details Strip ==================== */

.contact-details-strip {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.contact-detail-card {
    min-height: 88px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .contact-detail-card:hover {
        text-decoration: none;
        transform: translateY(-3px);
        box-shadow: 0 24px 58px rgba(15, 23, 42, 0.08);
    }

.contact-detail-icon {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(214deg, #224173, #1b3560);
    color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(34, 65, 115, 0.22);
}

.contact-detail-card small {
    display: block;
    color: #64748b;
    font-weight: 800;
    margin-bottom: 0.3rem;
}

.contact-detail-card strong {
    display: block;
    color: #0f172a;
    font-weight: 900;
    direction: ltr;
    text-align: right;
    letter-spacing: 0.5px;
}

.contact-address-wide {
    grid-column: 1 / -1;
}

    .contact-address-wide p {
        margin: 0;
        color: #334155;
        line-height: 2;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

/* ==================== چرا دریافت مشاوره رایگان ==================== */

.contact-content-section {
    padding: 0 0 5rem;
}

.contact-content-card {
    padding: 1.7rem;
}

    .contact-content-card > h2 {
        color: #0f172a;
        font-weight: 900;
        line-height: 1.7;
        margin-bottom: 0.7rem;
    }

    .contact-content-card > p {
        color: #64748b;
        line-height: 2;
        margin-bottom: 1.3rem;
    }

.contact-content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.contact-content-item {
    background: #f8fafc;
    border: 1px solid rgba(34, 65, 115, 0.07);
    border-radius: 1.35rem;
    padding: 1.1rem;
}

.contact-content-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

    .contact-content-title-row i {
        width: 42px;
        height: 42px;
        min-width: 42px;
        margin-bottom: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(34, 65, 115, 0.08);
        color: #224173;
        border-radius: 1rem;
    }

    .contact-content-title-row h3 {
        margin: 0 !important;
        color: #0f172a;
        font-weight: 900;
        line-height: 1.7;
    }

.contact-content-item p {
    color: #64748b;
    line-height: 1.9;
    margin: 0;
}

/* ==================== موبایل ==================== */

.contact-mobile-bottom-bar {
    display: none !important;
}

@media (max-width: 991px) {
    .contact-hero-card {
        grid-template-columns: 1fr;
        padding: 2rem;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .contact-side {
        display: block;
    }

    .contact-side-card,
    .contact-form-card {
        height: auto;
    }

    .contact-details-strip {
        grid-template-columns: 1fr;
    }

    .contact-content-grid {
        grid-template-columns: 1fr;
    }

    .contact-mobile-bottom-bar {
        display: grid !important;
    }
}

@media (max-width: 767px) {
    body.contact-page {
        padding-bottom: 98px;
    }

    .contact-hero-section {
        padding: 2rem 0 1rem;
    }

    .contact-hero-card {
        border-radius: 1.6rem;
        padding: 1.25rem;
    }

    .contact-hero-content h1 {
        line-height: 1.7;
    }

    .contact-hero-content p {
        line-height: 2;
    }

    .contact-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .contact-hero-btn {
        width: 100%;
    }

    .contact-info-mini-card {
        padding: 0.9rem;
        border-radius: 1.15rem;
    }

    .contact-main-section {
        padding: 1.5rem 0 3rem;
    }

    .contact-mobile-row-header {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
        flex-wrap: nowrap !important;
        margin-bottom: 1.1rem;
    }

        .contact-mobile-row-header .modern-title-wrapper {
            flex: 1;
            min-width: 0;
            display: flex;
            align-items: center;
            gap: 0.55rem;
        }

        .contact-mobile-row-header .modern-title-icon {
            width: 36px;
            height: 36px;
            min-width: 36px;
            border-radius: 0.9rem;
        }

        .contact-mobile-row-header .modern-title {
            line-height: 1.6;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

    .contact-mobile-home-btn {
        width: auto !important;
        min-width: auto !important;
        flex-shrink: 0;
        padding: 0.55rem 0.75rem !important;
        border-radius: 999px !important;
        gap: 0.35rem !important;
        line-height: 1.4;
        white-space: nowrap;
    }

    .contact-side-card,
    .contact-form-card,
    .contact-content-card,
    .contact-detail-card {
        border-radius: 1.35rem;
    }

    .contact-side-card {
        padding: 1rem;
    }

    .contact-form-card {
        padding: 1rem;
    }

    .consultation-form-header {
        align-items: flex-start;
        padding: 0.95rem;
        border-radius: 1.15rem;
    }

    .consultation-form-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 1rem;
    }

    .contact-address-wide p {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 2;
    }

    .contact-content-section {
        padding-bottom: 3rem;
    }

    .contact-content-title-row {
        gap: 0.6rem;
        margin-bottom: 0.65rem;
    }

        .contact-content-title-row i {
            width: 38px;
            height: 38px;
            min-width: 38px;
            border-radius: 0.9rem;
        }

    .contact-mobile-bottom-bar {
        position: fixed;
        right: 12px;
        left: 12px;
        bottom: 12px;
        height: 66px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(0, 0, 0, 0.06);
        border-radius: 24px;
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.16);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: 1040;
        padding: 8px;
        display: grid !important;
        grid-template-columns: 1fr 1.25fr;
        gap: 8px;
        direction: rtl;
    }

    .contact-bottom-item {
        border: none;
        background: transparent;
        color: #555;
        border-radius: 18px;
        font-weight: 800;
        text-decoration: none;
        cursor: pointer;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-width: 0;
        transition: all 0.2s ease;
    }

        .contact-bottom-item:hover,
        .contact-bottom-item:focus {
            text-decoration: none;
            color: #224173;
        }

    .contact-bottom-icon {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(34, 65, 115, 0.09);
        color: #224173;
    }

    .contact-call-bottom-btn {
        background: linear-gradient(135deg, #16a34a, #22c55e);
        color: #fff !important;
        box-shadow: 0 8px 20px rgba(34, 197, 94, 0.35);
    }

        .contact-call-bottom-btn:hover,
        .contact-call-bottom-btn:focus {
            color: #fff !important;
            transform: translateY(-1px);
        }

    .contact-call-icon {
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.22);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.contact-page #darkModeToggle,
    body.contact-page .dark-toggle,
    body.contact-page .dark-mode-toggle,
    body.contact-page .theme-toggle,
    body.contact-page .theme-switch,
    body.contact-page #themeToggle {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        bottom: 92px !important;
        left: 14px !important;
        right: auto !important;
        z-index: 1038 !important;
    }

    body.contact-page #floatBtn,
    body.contact-page .float-button,
    body.contact-page .floating-button,
    body.contact-page .floating-btn,
    body.contact-page .float-contact,
    body.contact-page .whatsapp-float,
    body.contact-page .call-float,
    body.contact-page .back-to-top,
    body.contact-page #floatingButton,
    body.contact-page #backToTop {
        width: 42px !important;
        height: 42px !important;
        min-width: 42px !important;
        min-height: 42px !important;
        max-width: 42px !important;
        max-height: 42px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        bottom: 92px !important;
        right: 14px !important;
        z-index: 1038 !important;
    }
}

/* ==================== دارک مود ==================== */

body.dark-mode .contact-hero-card,
body.dark-mode .contact-side-card,
body.dark-mode .contact-form-card,
body.dark-mode .contact-content-card,
body.dark-mode .contact-detail-card {
    background: rgba(18, 25, 45, 0.72);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
}

    body.dark-mode .contact-hero-content h1,
    body.dark-mode .contact-info-mini-card strong,
    body.dark-mode .contact-side-card h3,
    body.dark-mode .contact-form-card label,
    body.dark-mode .contact-content-card > h2,
    body.dark-mode .contact-content-title-row h3,
    body.dark-mode .consultation-form-header h3,
    body.dark-mode .contact-detail-card strong {
        color: #f8fafc;
    }

    body.dark-mode .contact-hero-content p,
    body.dark-mode .contact-info-mini-card small,
    body.dark-mode .contact-side-card p,
    body.dark-mode .contact-content-card > p,
    body.dark-mode .contact-content-item p,
    body.dark-mode .consultation-form-header p,
    body.dark-mode .contact-detail-card small,
    body.dark-mode .contact-address-wide p {
        color: #cbd5e1;
    }

body.dark-mode .contact-hero-badge,
body.dark-mode .contact-info-mini-card,
body.dark-mode .contact-side-item,
body.dark-mode .contact-content-item,
body.dark-mode .contact-input,
body.dark-mode .consultation-form-header {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.08);
}

    body.dark-mode .contact-input:focus {
        background: rgba(255, 255, 255, 0.07);
        border-color: #9aa8c9;
    }

body.dark-mode .contact-content-title-row i {
    background: rgba(255, 255, 255, 0.08);
    color: #dbeafe;
}

body.dark-mode .contact-mobile-bottom-bar {
    background: rgba(18, 25, 45, 0.92);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
}

body.dark-mode .contact-bottom-item {
    color: #cbd5e1;
}

    body.dark-mode .contact-bottom-item:hover,
    body.dark-mode .contact-bottom-item:focus {
        color: #ffffff;
    }

body.dark-mode .contact-bottom-icon {
    background: rgba(255, 255, 255, 0.08);
    color: #dbeafe;
}
