/* assets/css/contact-style.css */

/* تنظیم فونت‌های لوکال در فایل استایل تماس با ما */
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://hoseinbanaei.ir/wp-content/themes/amoozeshyar/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('https://hoseinbanaei.ir/wp-content/themes/amoozeshyar/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

:root {
    --brand-deep: #0A369D;
    --brand-light: #00B4D8;
    --brand-accent: #22D3EE;
    --dark-slate: #0F172A;
    --text-main: #334155;
    --text-muted: #64748B;
    --card-bg: #ffffff;
    --input-bg: #F8FAFC;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
    background-color: #F8FAFC;
    color: var(--text-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.section-padding {
    padding: 60px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

/* سیستم انیمیشن‌های لوکال */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }

/* پیام‌های وضعیت فرم */
.form-alert {
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
}
.form-alert.success {
    background-color: #DCFCE7;
    color: #15803D;
    border: 1px solid #BBF7D0;
}
.form-alert.error {
    background-color: #FEE2E2;
    color: #B91C1C;
    border: 1px solid #FECACA;
}

/* بخش اول: هدینگ با گرادینت قطبی پیشرفته */
.hero-polar {
    position: relative;
    padding: 100px 0 50px 0;
    background-color: #ffffff;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(15, 23, 42, 0.03);
}

.hero-polar::before {
    content: '';
    position: absolute;
    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.12) 0%, rgba(10, 54, 157, 0.03) 50%, rgba(255, 255, 255, 0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-polar h1 {
    font-size: 2.5rem;
    color: var(--dark-slate);
    margin: 0 0 16px 0;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hero-polar h1 span {
    background: linear-gradient(135deg, var(--brand-deep) 20%, var(--brand-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-polar .desc {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.85;
    color: #475569;
}

/* بخش دوم: راه‌های ارتباطی و شعب */
.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(15, 23, 42, 0.04);
    box-shadow: 0 10px 30px rgba(10, 54, 157, 0.015);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--dark-slate);
    font-weight: 700;
    font-size: 1.15rem;
}

.info-card-header .icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(10, 54, 157, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-deep);
}

.phone-wrapper {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #F8FAFC;
    border-radius: 14px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-slate);
    text-decoration: none;
    direction: ltr;
    transition: all 0.3s ease;
    border: 1px solid rgba(15, 23, 42, 0.02);
}

.phone-link:hover {
    background: rgba(0, 180, 216, 0.05);
    color: var(--brand-deep);
    transform: translateX(-3px);
}

.work-hours {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    background: rgba(15, 23, 42, 0.02);
    padding: 8px;
    border-radius: 10px;
}

.branch-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.branch-item {
    padding: 14px 18px;
    background: #F8FAFC;
    border-radius: 14px;
    font-size: 1rem;
    line-height: 1.6;
    color: #475569;
    border-right: 3px solid var(--brand-light);
}

.branch-item strong {
    color: var(--dark-slate);
    display: block;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

/* بخش سوم: فرم مینی‌مال درخواست تماس */
.form-container {
    background: var(--card-bg);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(10, 54, 157, 0.02);
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.form-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: var(--brand-deep);
    border-radius: 4px;
    display: inline-block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.95rem;
    background-color: var(--input-bg);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-sizing: border-box;
    color: var(--dark-slate);
    transition: all 0.25s ease;
}

.form-control:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--brand-light);
    box-shadow: 0 0 0 4px rgba(0, 180, 216, 0.08);
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 45px;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--brand-deep) 0%, #1E40AF 100%);
    color: #ffffff;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(10, 54, 157, 0.12);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(10, 54, 157, 0.18);
}

/* بخش چهارم: شبکه‌های اجتماعی */
.social-section {
    background-color: #ffffff;
    border-top: 1px solid rgba(15, 23, 42, 0.03);
    text-align: center;
}

.social-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-slate);
    margin-bottom: 32px;
}

.social-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.social-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: #F8FAFC;
    border-radius: 14px;
    color: #475569;
    text-decoration: none;
    border: 1px solid #E2E8F0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.social-item.instagram:hover { background: #E1306C; color: #fff; border-color: #E1306C; }
.social-item.telegram:hover { background: #229ED9; color: #fff; border-color: #229ED9; }
.social-item.whatsapp:hover { background: #25D366; color: #fff; border-color: #25D366; }
.social-item.youtube:hover { background: #FF0000; color: #fff; border-color: #FF0000; }
.social-item.eitaa:hover { background: #E67E22; color: #fff; border-color: #E67E22; }
.social-item.bale:hover { background: #3498DB; color: #fff; border-color: #3498DB; }
.social-item.rubika:hover { background: #8E44AD; color: #fff; border-color: #8E44AD; }
.social-item.splus:hover { background: #1ABC9C; color: #fff; border-color: #1ABC9C; }
.social-item.aparat:hover { background: #ED145B; color: #fff; border-color: #ED145B; }

.social-item:hover {
    transform: translateY(-4px);
}

/* اورهال ریسپانسیو اختصاصی موبایل */
@media (max-width: 992px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .section-padding {
        padding: 40px 0;
    }
}

@media (max-width: 576px) {
    .hero-polar {
        padding: 60px 0 35px 0;
    }
    .hero-polar::before {
        width: 100%;
        height: 400px;
        top: -150px;
    }
    .hero-polar h1 {
        font-size: 1.85rem;
        line-height: 1.4;
    }
    .hero-polar .desc {
        font-size: 1rem;
        line-height: 1.75;
        padding: 0 4px;
    }
    .info-card {
        padding: 22px 18px;
        border-radius: 20px;
    }
    .phone-link {
        font-size: 1.25rem;
        padding: 12px 16px;
        border-radius: 12px;
    }
    .branch-item {
        font-size: 0.95rem;
        padding: 12px;
    }
    .form-container {
        padding: 24px 20px;
        border-radius: 22px;
    }
    .form-title {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    .social-title {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }

    .social-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        justify-items: center;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .social-item:last-child {
        grid-column: auto; 
        width: 100%;
        max-width: 65px;
    }

    .social-item {
        width: 100%;
        max-width: 65px;
        height: 65px;
        border-radius: 16px;
        background: #F8FAFC;
    }
}