/* ========================================
   CONTACT US SECTION - GOLDEN THEME
   Optimized Cards Version
======================================== */

:root {
    --gold-primary: #D4AF37;
    --gold-light: #F4E4C1;
    --gold-dark: #B8941E;
    --dark-bg: #0A0A0A;
    --dark-card: #1A1A1A;
    --text-light: #E0E0E0;
}

/* Section Container */
.contact-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    overflow: hidden;
}

/* Background Effects */
.contact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    animation: rotateGlow 30s linear infinite;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold-primary);
    text-transform: uppercase;
    margin-bottom: 15px;
    display: inline-block;
    padding: 8px 24px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.section-title {
    font-size: 48px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Contact Wrapper */
.contact-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 50px;
    position: relative;
    z-index: 2;
    align-items: start;
}

/* Contact Information */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* OPTIMIZED Info Card - Compact & Icon-Aligned */
.info-card {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    transform: translateX(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.2);
}

.info-card:hover::before {
    opacity: 1;
}

/* Icon - Smaller & Compact */
.card-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 20px;
    color: var(--gold-primary);
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.info-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

/* Content - Next to Icon */
.card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold-light);
    margin: 0;
    line-height: 1.2;
}

.card-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    opacity: 0.9;
    margin: 0;
}

.card-text a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.card-text a:hover {
    color: var(--gold-primary);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 10px;
    padding: 15px;
    background: rgba(26, 26, 26, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 16px;
}

.social-link {
    width: 45px;
    height: 45px;
    background: rgba(26, 26, 26, 0.6);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link i {
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
}

.social-link:hover {
    background: var(--gold-primary);
    color: var(--dark-bg);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Contact Form Wrapper */
.contact-form-wrapper {
    background: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 24px;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--gold-primary), var(--gold-light), var(--gold-primary));
    border-radius: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.contact-form-wrapper:hover::before {
    opacity: 0.2;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-subtitle {
    font-size: 16px;
    color: var(--text-light);
    opacity: 0.8;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    font-size: 16px;
    color: var(--gold-primary);
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

.form-control {
    width: 100%;
    padding: 15px 20px;
    background: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    color: var(--text-light);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    background: rgba(10, 10, 10, 0.7);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
    color: rgba(224, 224, 224, 0.4);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

/* Submit Button */
.submit-btn {
    background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-dark) 100%);
    border: none;
    border-radius: 12px;
    padding: 18px 40px;
    color: var(--dark-bg);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
    font-family: IRANSansDN;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.4);
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn i {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(5px);
}

/* Form Message */
.form-message {
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    display: none;
    animation: slideDown 0.3s ease;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.4);
    color: #4CAF50;
    display: block;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.4);
    color: #F44336;
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-wrapper {
        grid-template-columns: 340px 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .social-links {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 36px;
    }

    .contact-form-wrapper {
        padding: 35px 25px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 28px;
    }

    .form-title {
        font-size: 24px;
    }

    .submit-btn {
        padding: 15px 30px;
        font-size: 14px;
    }

    .info-card {
        padding: 16px;
        gap: 14px;
    }

    .card-icon {
        width: 45px;
        height: 45px;
    }

    .card-icon i {
        font-size: 18px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-text {
        font-size: 13px;
    }
}
