/* ================================
   Contact Section Styles
================================ */
.contact-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

/* Background Elements */
.contact-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.contact-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.08) 50%, transparent 100%);
    filter: blur(60px);
}

.contact-circle-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -150px;
}

.contact-circle-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    left: -200px;
}

.contact-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
            linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.4;
}

/* Section Content */
.contact-section .container {
    position: relative;
    z-index: 2;
}

/* Section Header */
.contact-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-section .section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 15px;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.contact-section .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    line-height: 1.3;
}

.contact-section .section-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Contact Content */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
}

/* Contact Info Wrapper */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Contact Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(102, 126, 234, 0.3);
    transform: translateY(-5px);
}

.contact-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.25) 0%, rgba(118, 75, 162, 0.25) 100%);
    transform: scale(1.05);
}

.contact-card-content {
    flex: 1;
}

.contact-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 8px 0;
}

.contact-card-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 12px 0;
}

.contact-card-link {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    margin: 6px 0;
    transition: all 0.3s ease;
}

.contact-card-link:hover {
    color: #667eea;
}

.contact-card-link.secondary-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Map */
.contact-map {
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.map-placeholder {
    width: 100%;
    height: 100%;
}

/* Social Media */
.contact-social {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
}

.social-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0 0 20px 0;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
}

/* Form Header */
.form-header {
    margin-bottom: 30px;
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.form-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.form-label svg {
    color: #667eea;
}

/* Form Inputs */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-select {
    cursor: pointer;
}

.form-select option {
    background: #1a1a2e;
    color: #ffffff;
}

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

/* Submit Button */
.form-submit-btn {
    font-family: 'Vazirmatn';
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.form-submit-btn:active {
    transform: translateY(0);
}

/* Success Message */
.form-success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #10b981;
    font-size: 0.95rem;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Tablet */
@media (max-width: 1024px) {
    .contact-section {
        padding: 80px 0;
    }

    .contact-section .section-title {
        font-size: 2.2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .contact-form-wrapper {
        padding: 35px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-section .section-header {
        margin-bottom: 40px;
    }

    .contact-section .section-title {
        font-size: 1.8rem;
    }

    .contact-section .section-description {
        font-size: 1rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .contact-card {
        padding: 20px;
    }

    .contact-map {
        height: 250px;
    }

    .contact-form-wrapper {
        padding: 25px;
    }

    .form-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-submit-btn {
        width: 100%;
        padding: 14px 30px;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .contact-circle-1 {
        width: 350px;
        height: 350px;
        top: -100px;
        right: -100px;
    }

    .contact-circle-2 {
        width: 400px;
        height: 400px;
        bottom: -150px;
        left: -150px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .contact-section .section-title {
        font-size: 1.6rem;
    }

    .contact-card-icon {
        width: 48px;
        height: 48px;
    }

    .contact-card-icon svg {
        width: 24px;
        height: 24px;
    }

    .form-submit-btn {
        font-size: 0.95rem;
        padding: 13px 25px;
    }

    .social-link {
        width: 45px;
        height: 45px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }
}
