/* General page spacing and background */

.section-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--heading_dark);
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #010180 0%, #1e293b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #010180, #3b82f6);
    border-radius: 10px;
}

/* Main content flexible container */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the columns */
    align-items: stretch; /* Stretch items to same height */
    margin-bottom: 60px; /* Space above the map */
    gap: 30px; /* Consistent gap between form, info, and social cards */
}

/* Card styling (for form, info, and social links) */
.contact-form-card,
.contact-info-card,
.social-links-card {
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    padding: 40px;
    flex-grow: 1;
    flex-shrink: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-form-card:hover,
.contact-info-card:hover,
.social-links-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border-color: #e2e8f0;
}

/* Constrain wide sections */
.contact-form-card {
    flex: 2;
    min-width: 320px;
    max-width: 680px; /* Constrained for readability */
}

.contact-info-group {
    flex: 1;
    min-width: 320px;
    max-width: 440px; /* Constrained for readability */
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Headings within cards */
.contact-form-card h3,
.contact-info-card h3,
.social-links-card h3 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 700;
    position: relative;
    padding-bottom: 12px;
    letter-spacing: -0.02em;
}

.contact-form-card h3::after,
.contact-info-card h3::after,
.social-links-card h3::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 30px;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.contact-form-card:hover h3::after {
    width: 60px;
    background-color: #010180;
}


/* Form elements */
.contact-form-card .form-group {
    margin-bottom: 25px; /* More space between form groups */
}

.contact-form-card label {
    display: block;
    margin-bottom: 8px;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form-card input,
.contact-form-card textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f1f5f9;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 1rem;
    color: #1e293b;
    background-color: #f8fafc;
    transition: all 0.3s ease;
}

.contact-form-card input:focus,
.contact-form-card textarea:focus {
    border-color: #010180;
    box-shadow: 0 0 0 4px rgba(1, 1, 128, 0.05);
    outline: none;
    background-color: #ffffff;
}

.contact-form-card textarea {
    min-height: 160px; /* Taller textarea */
    resize: vertical;
}

.contact-form-card button {
    background: linear-gradient(135deg, #010180 0%, #1e293b 100%);
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin-top: 15px;
    box-shadow: 0 10px 15px -3px rgba(1, 1, 128, 0.2);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.captcha-container {
    background-color: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 20px 0;
}

.captcha-label {
    font-size: 0.9rem;
    color: #475569;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0 !important;
}

.captcha-question {
    background: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 800;
    color: #010180;
    border: 1px solid #e2e8f0;
    margin: 0 10px;
    font-size: 1.1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.captcha-input {
    width: 80px !important;
    padding: 10px !important;
    text-align: center;
    font-weight: 800;
    color: #010180 !important;
    border: 2px solid #e2e8f0 !important;
    background: white !important;
}

.captcha-input:focus {
    border-color: #010180 !important;
}

.contact-form-card button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(1, 1, 128, 0.3);
    filter: brightness(1.1);
}

.contact-form-card button:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Contact information items */
.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px; /* Space between info items */
    color: #495057;
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-info-item:last-child {
    margin-bottom: 0; /* No bottom margin for the last item */
}

.contact-info-item i {
    font-size: 1.5rem; /* Larger icon size */
    color: #010180; /* Blue icon color */
    margin-right: 18px; /* More space between icon and text */
    width: 30px; /* Fixed width for consistent alignment */
    text-align: center;
    padding-top: 3px; /* Align icon better with text */
}

.contact-info-item p {
    margin: 0; /* Remove default paragraph margin */
    flex-grow: 1;
}

.contact-info-item strong {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.contact-info-item a {
    color: #010180;
    text-decoration: none;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.contact-info-item a:hover {
    color: #000066;
    text-decoration: underline;
}

/* Social Links Card specific styles */
.social-links-card {
    margin-top: 0; /* Gap handles spacing */
    /* Ensure it takes full width when stacked */
    width: 100%;
}

.social-icons {
    display: flex;
    justify-content: center; /* Center icons horizontally */
    gap: 25px; /* More space between icons */
    flex-wrap: wrap; /* Allow icons to wrap if space is tight */
    margin-top: 15px;
}

.social-icon-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    background-color: #f1f5f9;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-link:hover {
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(1, 1, 128, 0.2);
}

/* Specific colors for social icons on hover */
.social-icon-link.facebook:hover { background: linear-gradient(45deg, #3b5998, #2d4373); }
.social-icon-link.twitter:hover { background: linear-gradient(45deg, #1da1f2, #0e85d8); }
.social-icon-link.linkedin:hover { background: linear-gradient(45deg, #0077b5, #005f99); }
.social-icon-link.youtube:hover { background: linear-gradient(45deg, #ff0000, #cc0000); }
.social-icon-link.instagram:hover { background: linear-gradient(45deg, #C13584, #833AB4); }


/* Map Styles */
.map-section {
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.map-section iframe {
    width: 100%;
    height: 500px; /* Taller map */
    border: 0;
    display: block;
    filter: grayscale(20%) contrast(1.1); /* Slight visual enhancement for map */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .contact-content {
        flex-direction: column; /* Stack on smaller desktops/tablets */
        align-items: center; /* Center stacked cards */
    }
    .contact-form-card,
    .contact-info-card,
    .social-links-card {
        width: 100%; /* Take full width */
        max-width: 600px; /* Max width for stacked cards */
        margin-top: 0; /* Reset margins */
    }
    .contact-info-group {
        margin-top: 30px; /* Space between form and info/social when stacked */
        gap: 20px; /* Ensure gap between info and social cards */
        width: 100%;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .contact-page-wrapper {
        padding: 40px 15px;
    }
    .section-title {
        font-size: 2.8rem;
        margin-bottom: 40px;
    }
    .contact-form-card,
    .contact-info-card,
    .social-links-card {
        padding: 30px 25px;
    }
    .contact-form-card h3,
    .contact-info-card h3,
    .social-links-card h3 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    .contact-form-card input,
    .contact-form-card textarea {
        padding: 14px 18px;
        font-size: 1rem;
    }
    .contact-form-card button {
        font-size: 1.15rem;
        padding: 16px 30px;
        margin-top: 25px;
    }
    .contact-info-item {
        font-size: 0.95rem;
    }
    .contact-info-item i {
        font-size: 1.3rem;
        margin-right: 15px;
    }
    .social-icon-link {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    .map-section iframe {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .contact-page-wrapper {
        padding: 30px 10px;
    }
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 30px;
    }
    .contact-form-card,
    .contact-info-card,
    .social-links-card {
        padding: 25px 20px;
    }
    .contact-form-card h3,
    .contact-info-card h3,
    .social-links-card h3 {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
    .contact-form-card button {
        font-size: 1.05rem;
        padding: 14px 25px;
        margin-top: 20px;
    }
    .contact-info-item i {
        font-size: 1.2rem;
        margin-right: 12px;
    }
    .social-icon-link {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
        gap: 15px;
    }
    .map-section iframe {
        height: 300px;
    }
}
.contact-page-wrapper {
    background-color: #f8fafc;
    padding-bottom: 80px;
}

.page-hero {
    margin-bottom: 0 !important;
}
