/* --- CONTACT PAGE STYLES --- */

/* 🔥 MOBILE SCROLL FIX: All main sections must hide overflow 🔥 */
.contact-hero,
.info-section,
.form-section-main,
.map-section,
.faq-section {
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Shared Styles (Ensuring Consistency) */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

/* 1. HERO SECTION */
.contact-hero {
    padding: 160px 0 80px;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1), transparent 70%), var(--bg-dark);
    text-align: center;
}

.contact-hero-content { max-width: 700px; margin: 0 auto; }

.sub-tag {
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.contact-hero h1 {
    font-size: 3rem;
    color: white;
    line-height: 1.2;
    margin-bottom: 20px;
}

.contact-hero p {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* 2. INFO CARDS */
.info-section { 
    padding-bottom: 60px;
    background: var(--bg-dark);  
}


.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.info-card {
    background: #1e293b; /* Theme Standard Card Color */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: 0.4s;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Soft shadow */
}

.info-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: #253045; /* Slightly lighter on hover */
}

.info-card .icon-box {
    width: 60px; height: 60px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}

.info-card h3 { color: white; margin-bottom: 10px; font-size: 1.25rem; }
.info-card p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 15px; }
.info-card .link-text {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
}
.info-card .link-text:hover { color: white; }

/* 3. MAIN FORM SECTION */
.form-section-main { padding: 80px 0; }

.contact-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-text { flex: 1; }
.contact-text h2 { font-size: 2.5rem; color: white; margin-bottom: 20px; }
.contact-text p { color: var(--text-gray); margin-bottom: 40px; font-size: 1.05rem; }

.social-connect h4 { color: white; margin-bottom: 20px; font-size: 1.1rem; }
.social-icons { display: flex; gap: 15px; }
.social-icons a {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-white);
    transition: 0.3s;
}
.social-icons a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

/* Form Box */
.contact-form-box {
    flex: 1.5;
    background: #1e293b; /* Theme Standard Card Color */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-group-row { display: flex; gap: 20px; margin-bottom: 20px; }
.input-field { width: 100%; }

.input-field label {
    display: block;
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.input-field input, 
.input-field select, 
.input-field textarea {
    width: 100%;
    background: #0f172a; /* Darker Navy (Main BG color) */
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: 0.3s;
}

.input-field input:focus, 
.input-field select:focus, 
.input-field textarea:focus {
    border-color: var(--primary);
    background: rgba(15, 23, 42, 0.9);
}

/* Custom Select Dropdown Styling */
.input-field select option { background: var(--bg-card); color: white; }

/* 4. MAP SECTION */
.map-section {
    width: 100%;
    height: 400px;
    overflow: hidden; /* Added Safety */
    filter: grayscale(100%) invert(90%) contrast(90%); /* Dark Mode Map Hack */
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.map-section iframe {
    width: 100%;
    max-width: 100%;
    display: block; /* Removes bottom space */
}

/* --- FAQ SECTION COLOR FIX --- */

.faq-section { 
    background: var(--bg-dark); /* Main Theme Color */
    padding: 100px 0; 
}

.sec-header.centered { text-align: center; margin-bottom: 50px; }
.sec-header.centered h2 { color: white; }

.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }

.faq-item {
    background: #1e293b; /* Solid Theme Card Color (Navy Blue) */
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Hover Effect */
.faq-item:hover {
    background: #253045; /* Slightly lighter navy on hover */
    border-color: rgba(59, 130, 246, 0.3);
}

.faq-question {
    padding: 20px 25px;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-question h4 { color: white; font-size: 1.1rem; font-weight: 500; }
.faq-question i { color: var(--text-gray); transition: 0.3s; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 25px;
}
.faq-answer p {
    color: var(--text-gray);
    padding-bottom: 25px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Active State (When opened) */
.faq-item.active { 
    border-color: var(--primary); 
    background: #1e293b; /* Keep solid color */
}
.faq-item.active .faq-question i { transform: rotate(180deg); color: var(--primary); }
.faq-item.active .faq-answer { max-height: 200px; }

/* RESPONSIVE */
@media (max-width: 991px) {
    .contact-wrapper { flex-direction: column; gap: 40px; }
    .contact-text, .contact-form-box { width: 100%; }
    .form-group-row { flex-direction: column; gap: 15px; margin-bottom: 15px; }
    .contact-hero h1 { font-size: 2.2rem; }
}