/* ==========================================
   Contact Section Styles
   ========================================== */

.contact-section {
    background-color: var(--navy-primary); /* Use variable */
    padding: 100px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-section .section-title {
    color: var(--text-primary); /* Use variable */
    margin-bottom: 20px;
}

.contact-section .section-subtitle {
    color: var(--text-secondary); /* Use variable */
    margin-bottom: 20px;
}

.contact-section .section-line {
    width: 60px;
    height: 4px;
    background-color: var(--gold-primary);
    margin: 0 auto 30px;
    border-radius: 2px;
}

.contact-wrapper {
    margin-top: 60px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info smaller, Form wider */
    gap: 40px;
}

/* Contact Info Side */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    background-color: var(--navy-secondary); /* Use variable */
    padding: 25px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(-10px); /* Move left slightly on hover RTL */
    border-color: var(--gold-primary);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-item:hover .info-icon {
    background: var(--gold-primary);
    color: var(--navy-primary); /* Use variable */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.info-details h3 {
    color: var(--text-primary); /* Use variable */
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.info-details p {
    color: var(--text-secondary); /* Use variable */
    font-size: 0.95rem;
    margin: 0;
}

/* Social Links in Contact */
.contact-info .social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
    justify-content: flex-start; /* Align right in RTL effectively */
}

.contact-info .social-links a {
    width: 45px;
    height: 45px;
    background: var(--navy-secondary); /* Use variable */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary); /* Use variable */
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-info .social-links a:hover {
    background: var(--gold-primary);
    color: var(--navy-primary);
    border-color: var(--gold-primary);
    transform: translateY(-5px);
}

/* Contact Form Side */
.contact-form-box {
    background-color: var(--navy-secondary); /* Use variable */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-control {
    width: 100%;
    background-color: var(--navy-primary); /* Use variable */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px 20px;
    color: var(--text-primary); /* Use variable */
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.contact-form .form-control::placeholder {
    color: #5a6b85;
}

.contact-form textarea.form-control {
    resize: none;
    height: 150px;
}

.contact-form .btn-primary {
    width: 100%;
    background: var(--gold-gradient);
    color: #0a192f;
    font-weight: 700;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .info-item {
        flex: 1 1 300px;
    }
}

@media (max-width: 768px) {
    .contact-form-box {
        padding: 30px 20px;
    }
}

/* ==========================================
   Light Mode Overrides for Contact Section
   ========================================== */
body.light-mode section#contact.contact-section {
    background: var(--light-bg) !important;
    background-color: var(--light-bg) !important;
}

body.light-mode .info-item,
body.light-mode .info-card,
body.light-mode .contact-form-box {
    background: var(--white) !important;
    background-color: var(--white) !important;
    border-color: rgba(0,0,0,0.08) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04) !important;
}

body.light-mode .info-item:hover,
body.light-mode .info-card:hover {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 15px 40px rgba(212,175,55,0.15) !important;
    background: var(--white) !important;
}

body.light-mode .info-icon,
body.light-mode .info-card-icon {
    background: rgba(10, 25, 47, 0.05) !important;
    color: var(--navy-primary) !important;
}

body.light-mode .info-item:hover .info-icon,
body.light-mode .info-card:hover .info-card-icon {
    background: var(--gold-primary) !important;
    color: var(--white) !important;
}

body.light-mode .info-details h3,
body.light-mode .info-card-text h3,
body.light-mode .contact-title,
body.light-mode .contact-form-box .form-title {
    color: var(--text-primary) !important;
}

body.light-mode .info-details p,
body.light-mode .info-card-text p,
body.light-mode .contact-desc {
    color: var(--text-secondary) !important;
}

body.light-mode .contact-info .social-links a {
    background: #f8fafc !important;
    color: var(--navy-primary) !important;
    border-color: rgba(0,0,0,0.1) !important;
}

body.light-mode .contact-info .social-links a:hover {
    background: var(--gold-primary) !important;
    color: var(--white) !important;
    border-color: var(--gold-primary) !important;
}

body.light-mode .contact-form .form-control {
    background-color: #f8fafc !important;
    background: #f8fafc !important;
    border-color: rgba(0,0,0,0.1) !important;
    color: var(--text-dark) !important;
}

body.light-mode .contact-form .form-control:focus {
    background-color: var(--white) !important;
    background: var(--white) !important;
    border-color: var(--navy-primary) !important;
    box-shadow: 0 0 0 3px rgba(10, 25, 47, 0.1) !important;
}

body.light-mode .contact-form .form-control::placeholder {
    color: #64748b !important;
}

body.light-mode .contact-form label {
    color: var(--navy-primary) !important;
}
