.page-header {
    padding: 120px 0 60px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.page-header-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    line-height: 1.8;
}

.contact-info-section {
    padding: 60px 0;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.contact-info-card {
    background: rgba(30, 30, 30, 0.7);
    border-radius: var(--border-radius);
    padding: 30px 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.contact-info-card:hover::before {
    transform: translateX(0);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 152, 0, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    height: 80px;
    width: 80px;
    background: rgba(255, 152, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.contact-info-card h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 15px;
}

.contact-info-card p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    margin-top: 20px;
    font-weight: 500;
    transition: var(--transition);
}

.contact-link:hover {
    color: white;
    gap: 12px;
}

.contact-link i {
    font-size: 1.1rem;
}

.contact-form-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    background-color: var(--dark-light);
}

.contact-form-container,
.map-container {
    background: rgba(30, 30, 30, 0.7);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-header,
.map-header {
    padding: 25px 30px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.2), rgba(255, 152, 0, 0.2));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.form-header h2,
.map-header h2 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-header p,
.map-header p {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.contact-form {
    padding: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    color: white;
    margin-bottom: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group label i {
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

select.form-control {
    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='%23ff9800' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 18px center;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    color: #f44336;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
    display: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary-color);
}

.checkbox-label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.5;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.form-actions .btn {
    flex: 1;
    justify-content: center;
}

/* نقشه */
.map-wrapper {
    padding: 30px;
}

.map-placeholder {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    border-radius: var(--border-radius);
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23222"/><path d="M50,10 C70,10 90,30 90,50 C90,70 70,90 50,90 C30,90 10,70 10,50 C10,30 30,10 50,10 Z" fill="none" stroke="%23333" stroke-width="2"/><circle cx="50" cy="50" r="5" fill="%23ff9800"/><path d="M35,35 L65,65 M65,35 L35,65" stroke="%23333" stroke-width="2"/></svg>');
    opacity: 0.3;
}

.map-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.map-content i {
    font-size: 4rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.map-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.map-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.map-actions {
    display: flex;
    gap: 15px;
}

.map-action-btn {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.map-action-btn:hover {
    background: rgba(255, 152, 0, 0.1);
    border-color: var(--secondary-color);
}

.map-action-btn i {
    color: var(--secondary-color);
}

.social-section {
    padding: 80px 0;
}

.social-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.social-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 15px;
}

.social-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 50px;
    line-height: 1.8;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.social-link {
    background: rgba(30, 30, 30, 0.7);
    border-radius: var(--border-radius);
    padding: 25px 20px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--secondary-color);
}

.social-link:hover {
    transform: translateY(-10px);
    border-color: transparent;
}

.social-link i {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.social-link span {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.social-link p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* رنگ‌های خاص برای شبکه‌های اجتماعی */
.social-link.instagram {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.1), rgba(225, 48, 108, 0.05));
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, rgba(225, 48, 108, 0.2), rgba(225, 48, 108, 0.1));
    box-shadow: 0 10px 20px rgba(225, 48, 108, 0.2);
}

.social-link.telegram {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.1), rgba(0, 136, 204, 0.05));
}

.social-link.telegram:hover {
    background: linear-gradient(135deg, rgba(0, 136, 204, 0.2), rgba(0, 136, 204, 0.1));
    box-shadow: 0 10px 20px rgba(0, 136, 204, 0.2);
}

.social-link.whatsapp {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(37, 211, 102, 0.05));
}

.social-link.whatsapp:hover {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(37, 211, 102, 0.1));
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.2);
}

.social-link.youtube {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(255, 0, 0, 0.05));
}

.social-link.youtube:hover {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.1));
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}

.social-link.linkedin {
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.1), rgba(0, 119, 181, 0.05));
}

.social-link.linkedin:hover {
    background: linear-gradient(135deg, rgba(0, 119, 181, 0.2), rgba(0, 119, 181, 0.1));
    box-shadow: 0 10px 20px rgba(0, 119, 181, 0.2);
}

.social-link.aparat {
    background: linear-gradient(135deg, rgba(235, 47, 6, 0.1), rgba(235, 47, 6, 0.05));
}

.social-link.aparat:hover {
    background: linear-gradient(135deg, rgba(235, 47, 6, 0.2), rgba(235, 47, 6, 0.1));
    box-shadow: 0 10px 20px rgba(235, 47, 6, 0.2);
}

@media (max-width: 1100px) {
    .contact-form-map {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .social-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .departments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-title {
        font-size: 2.2rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding-top: 70px;
    }
    
    .page-header {
        padding: 60px 0 40px;
    }
    
    .page-title {
        font-size: 2.2rem;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .map-actions {
        flex-direction: column;
    }
    
    .departments-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .social-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.9rem;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form,
    .map-wrapper {
        padding: 20px;
    }
    
    .form-header,
    .map-header {
        padding: 20px;
    }
    
    .social-links-grid {
        grid-template-columns: 1fr;
    }
    
    .success-actions {
        flex-direction: column;
    }
    
    .cta-title {
        font-size: 1.9rem;
    }
}