/* =========================================================
   رادیک وب - استایل صفحه تماس
   فایل: assets/css/contact.css
   پیشوند: cn-
   نسخه: 1.0
   ========================================================= */

/* ═══════════════════════════════════════════════════════════
   ۱. هدر صفحه (Hero)
   ═══════════════════════════════════════════════════════════ */
.cn-hero {
    position: relative;
    padding: 70px 20px 60px;
    background: linear-gradient(135deg, 
        var(--rw-primary, #2563EB) 0%, 
        var(--rw-secondary, #1E3A8A) 100%);
    overflow: hidden;
    direction: rtl;
}

.cn-hero::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
}

.cn-hero::after {
    content: "";
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
    pointer-events: none;
}

.cn-hero-container {
    position: relative;
    z-index: 2;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.cn-hero-content {
    text-align: center;
    color: #fff;
}

.cn-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cn-hero-badge i {
    font-size: 14px;
    color: #fff;
}

.cn-hero-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 46px;
    font-weight: 800;
    color: #fff !important;
    margin: 0 0 15px;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cn-hero-desc {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 25px;
    line-height: 1.9;
    max-width: 600px;
}

.cn-hero-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cn-hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cn-hero-breadcrumb a:hover {
    color: #fff;
}

.cn-hero-breadcrumb i {
    font-size: 11px;
    opacity: 0.7;
}

.cn-hero-breadcrumb span {
    color: #fff;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════
   ۲. بخش اطلاعات تماس
   ═══════════════════════════════════════════════════════════ */
.cn-info-section {
    padding: 60px 0 40px;
    background: var(--rw-body-bg, #F8FAFC);
    direction: rtl;
}

.cn-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.cn-alert {
    padding: 16px 22px;
    border-radius: var(--rw-radius, 12px);
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 30px;
    box-shadow: var(--rw-shadow-sm);
    animation: cnAlertIn 0.4s ease;
}

@keyframes cnAlertIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cn-alert-success {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #065F46;
    border-right: 4px solid #10B981;
}

.cn-alert-error {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: #991B1B;
    border-right: 4px solid #EF4444;
}

.cn-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cn-info-card {
    position: relative;
    padding: 32px 22px 26px;
    background: var(--rw-card-bg, #FFFFFF);
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: cnCardIn 0.6s ease both;
}

.cn-info-card[data-index="0"] { animation-delay: 0.1s; }
.cn-info-card[data-index="1"] { animation-delay: 0.2s; }
.cn-info-card[data-index="2"] { animation-delay: 0.3s; }
.cn-info-card[data-index="3"] { animation-delay: 0.4s; }

@keyframes cnCardIn {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.cn-info-card:hover {
    transform: translateY(-8px);
    border-color: var(--rw-primary, #2563EB);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.06);
}

.cn-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.1), 
        rgba(30, 58, 138, 0.06));
    border-radius: 20px;
    margin-bottom: 18px;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.cn-info-icon i {
    font-size: 32px;
    color: var(--rw-primary, #2563EB);
    transition: all 0.4s ease;
}

.cn-info-card:hover .cn-info-icon {
    background: linear-gradient(135deg, 
        var(--rw-primary, #2563EB), 
        var(--rw-secondary, #1E3A8A));
    transform: rotate(-8deg) scale(1.08);
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.3);
}

.cn-info-card:hover .cn-info-icon i {
    color: #fff;
    transform: scale(1.1);
}

.cn-info-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--rw-heading, #1E3A8A);
    margin: 0 0 10px;
    line-height: 1.4;
    position: relative;
    z-index: 2;
}

.cn-info-value {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 14px;
    color: var(--rw-primary, #2563EB);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.6;
    word-break: break-word;
    display: block;
    text-decoration: none;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.cn-info-link:hover {
    color: var(--rw-primary-hover, #1D4ED8);
    text-decoration: underline;
}

.cn-info-desc {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 11px;
    color: var(--rw-muted, #6B7280);
    margin: 0;
    line-height: 1.7;
    position: relative;
    z-index: 2;
}

.cn-info-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, 
        rgba(37, 99, 235, 0.15) 0%, 
        transparent 70%);
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
    transition: all 0.5s ease;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
}

.cn-info-card:hover .cn-info-glow {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ═══════════════════════════════════════════════════════════
   ۳. بخش فرم و نقشه
   ═══════════════════════════════════════════════════════════ */
.cn-main-section {
    padding: 40px 0 80px;
    background: var(--rw-body-bg, #F8FAFC);
    direction: rtl;
}

.cn-main-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* ═══ فرم تماس ═══ */
.cn-form-wrapper {
    background: var(--rw-card-bg, #FFFFFF);
    padding: 35px 30px;
    border-radius: 24px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cn-form-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.1);
}

.cn-form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        var(--rw-primary, #2563EB), 
        var(--rw-secondary, #1E3A8A));
    border-radius: 18px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.cn-form-icon i {
    font-size: 26px;
    color: #fff;
}

.cn-form-title {
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--rw-heading, #1E3A8A);
    margin: 0 0 4px;
    line-height: 1.3;
}

.cn-form-subtitle {
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 12px;
    color: var(--rw-muted, #6B7280);
    margin: 0;
    line-height: 1.6;
}

.cn-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.cn-form-group {
    margin-bottom: 18px;
}

.cn-form-label {
    display: block;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--rw-text, #1F2937);
    margin-bottom: 8px;
}

.cn-form-label span {
    color: #EF4444;
}

.cn-form-input-wrap {
    position: relative;
}

.cn-form-input-wrap i {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: var(--rw-muted, #6B7280);
    font-size: 16px;
    pointer-events: none;
    transition: color 0.3s ease;
    z-index: 2;
}

.cn-form-textarea-wrap i {
    top: 18px;
    transform: none;
}

.cn-form-input-wrap input,
.cn-form-input-wrap textarea {
    width: 100%;
    padding: 13px 46px 13px 16px;
    background: var(--rw-body-bg, #F8FAFC);
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--rw-radius-sm, 10px);
    color: var(--rw-text, #1F2937);
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.cn-form-input-wrap textarea {
    resize: vertical;
    min-height: 130px;
    padding-top: 14px;
    line-height: 1.9;
}

.cn-form-input-wrap input::placeholder,
.cn-form-input-wrap textarea::placeholder {
    color: var(--rw-muted, #9CA3AF);
}

.cn-form-input-wrap input:focus,
.cn-form-input-wrap textarea:focus {
    border-color: var(--rw-primary, #2563EB);
    background: var(--rw-card-bg, #FFFFFF);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.cn-form-input-wrap:focus-within i {
    color: var(--rw-primary, #2563EB);
}

.cn-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 32px;
    background: linear-gradient(135deg, 
        var(--rw-primary, #2563EB), 
        var(--rw-secondary, #1E3A8A));
    color: #fff;
    border: none;
    border-radius: var(--rw-radius-sm, 10px);
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.cn-form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: right 0.5s ease;
}

.cn-form-submit:hover::before {
    right: 0;
}

.cn-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
}

.cn-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.cn-form-submit i,
.cn-form-submit span {
    position: relative;
    z-index: 2;
}

.cn-form-submit i {
    font-size: 16px;
    color: inherit;
}

/* ═══ ستون کناری ═══ */
.cn-side-wrapper {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cn-map-wrapper {
    background: var(--rw-card-bg, #FFFFFF);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 340px;
    display: flex;
    flex-direction: column;
}

.cn-map-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, 
        var(--rw-primary, #2563EB), 
        var(--rw-secondary, #1E3A8A));
    color: #fff;
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.cn-map-header i {
    font-size: 16px;
    color: #fff;
}

.cn-map {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: var(--rw-body-bg, #F8FAFC);
}

.cn-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.cn-map:hover iframe {
    filter: grayscale(0%);
}

.cn-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    color: var(--rw-muted, #6B7280);
    font-family: 'Shabnam-Bold-P', Tahoma, sans-serif;
    font-size: 13px;
}

.cn-map-placeholder i {
    font-size: 60px;
    opacity: 0.3;
}

/* ═══ باکس شبکه‌های اجتماعی ═══ */
.cn-social-box {
    background: var(--rw-card-bg, #FFFFFF);
    padding: 26px 24px;
    border-radius: 24px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.06),
        0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cn-social-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Lalezar-ExtraBold', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--rw-heading, #1E3A8A);
    margin: 0 0 18px;
    line-height: 1.4;
}

.cn-social-title i {
    color: var(--rw-primary, #2563EB);
    font-size: 18px;
}

.cn-social-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cn-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, 
        rgba(37, 99, 235, 0.1), 
        rgba(30, 58, 138, 0.06));
    border-radius: 14px;
    color: var(--rw-primary, #2563EB);
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cn-social-btn:hover {
    background: linear-gradient(135deg, 
        var(--rw-primary, #2563EB), 
        var(--rw-secondary, #1E3A8A));
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.3);
}

.cn-social-btn i {
    color: inherit;
    font-size: 18px;
    line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   ۴. ریسپانسیو
   ═══════════════════════════════════════════════════════════ */

/* تبلت بزرگ */
@media (max-width: 1100px) {
    .cn-hero { padding: 60px 20px 50px; }
    .cn-hero-title { font-size: 38px; }
    .cn-hero-desc { font-size: 15px; }
    
    .cn-info-grid { gap: 16px; }
    .cn-info-card { padding: 26px 18px 22px; }
    .cn-info-icon { width: 62px; height: 62px; margin-bottom: 14px; }
    .cn-info-icon i { font-size: 28px; }
    .cn-info-title { font-size: 16px; }
    .cn-info-value { font-size: 13px; }
    
    .cn-main-grid { grid-template-columns: 1fr; gap: 24px; }
    .cn-form-wrapper { padding: 30px 24px; }
    .cn-map-wrapper { height: 300px; }
}

/* تبلت */
@media (max-width: 900px) {
    .cn-info-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

/* موبایل */
@media (max-width: 600px) {
    .cn-hero { padding: 45px 16px 40px; }
    .cn-hero-title { font-size: 28px; }
    .cn-hero-desc { font-size: 13px; }
    .cn-hero-badge { font-size: 11px; padding: 6px 14px; }
    .cn-hero-breadcrumb { font-size: 11px; padding: 8px 16px; }
    
    .cn-info-section { padding: 40px 0 30px; }
    .cn-info-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .cn-info-card { padding: 20px 12px 18px; border-radius: 16px; }
    .cn-info-icon { width: 52px; height: 52px; margin-bottom: 12px; border-radius: 14px; }
    .cn-info-icon i { font-size: 22px; }
    .cn-info-title { font-size: 14px; margin-bottom: 6px; }
    .cn-info-value { font-size: 11px; }
    .cn-info-desc { font-size: 10px; }
    
    .cn-main-section { padding: 30px 0 60px; }
    .cn-form-wrapper { padding: 24px 18px; border-radius: 18px; }
    .cn-form-header { gap: 12px; margin-bottom: 22px; padding-bottom: 16px; }
    .cn-form-icon { width: 52px; height: 52px; border-radius: 14px; }
    .cn-form-icon i { font-size: 22px; }
    .cn-form-title { font-size: 20px; }
    .cn-form-subtitle { font-size: 11px; }
    
    .cn-form-row { grid-template-columns: 1fr; gap: 0; }
    .cn-form-label { font-size: 12px; }
    .cn-form-input-wrap input,
    .cn-form-input-wrap textarea { font-size: 13px; padding: 11px 42px 11px 14px; }
    .cn-form-submit { padding: 13px 24px; font-size: 14px; }
    
    .cn-map-wrapper { height: 260px; border-radius: 18px; }
    .cn-map-header { font-size: 12px; padding: 12px 16px; }
    .cn-social-box { padding: 20px 18px; border-radius: 18px; }
    .cn-social-title { font-size: 14px; margin-bottom: 14px; }
    .cn-social-btn { width: 42px; height: 42px; font-size: 16px; border-radius: 12px; }
    .cn-social-btn i { font-size: 16px; }
}

/* موبایل کوچک */
@media (max-width: 380px) {
    .cn-hero { padding: 35px 12px 30px; }
    .cn-hero-title { font-size: 22px; }
    .cn-hero-desc { font-size: 12px; }
    
    .cn-info-grid { grid-template-columns: 1fr; gap: 10px; }
    .cn-info-card { padding: 18px 14px; }
    
    .cn-form-wrapper { padding: 20px 14px; }
    .cn-form-title { font-size: 18px; }
    .cn-form-submit { padding: 12px 20px; font-size: 13px; }
    
    .cn-map-wrapper { height: 220px; }
    .cn-social-btn { width: 38px; height: 38px; font-size: 15px; }
    .cn-social-btn i { font-size: 15px; }
}