/* ===== CONTACT PAGE STYLES ===== */

/* Contact Header Styles */
.contact-header {
    min-height: 60vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3a0ca3; /* Added to match leadership-hero */
}

.hero-bg-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.2;
}

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26, 37, 54, 0.95) 0%, rgba(58, 12, 163, 0.8) 100%);
    z-index: 2;
}

.contact-title {
    padding: 120px 0 80px 0;
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: visible;
}

.contact-title h1 {
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
    display: block;
    font-size: 3rem;
    font-weight: 700;
    width: 100%;
    padding: 0 30px;
    overflow-wrap: break-word;
    text-align: center;
}

.contact-title .lead {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Contact Form Styles */
.contact-form-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.form-floating > .form-control {
    border-radius: var(--border-radius-sm);
    border: 1px solid #e5e7eb;
    padding: 1rem 1rem;
    height: 60px;
}

.form-floating > .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.15);
}

.form-floating > textarea.form-control {
    height: 180px;
}

.form-floating > label {
    padding: 1rem;
    color: var(--text-muted);
}

.send-btn {
    width: 100%;
    padding: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.send-btn:hover::before {
    left: 100%;
}

.send-btn i {
    transition: transform 0.3s ease;
}

.send-btn:hover i {
    transform: translateX(5px);
}

/* Contact Info Styles */
.contact-info-card {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: #fff;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: -1;
}

.contact-info-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: -1;
}

.contact-info-card .divider {
    background: #fff;
    opacity: 0.3;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.icon-box {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover .icon-box {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.contact-info-item h5 {
    margin-bottom: 0.3rem;
    font-size: 1.1rem;
}

.contact-info-item p {
    margin-bottom: 0;
    opacity: 0.8;
}

.contact-info-item a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-item a:hover {
opacity: 0.8;
text-decoration: underline;
}

/* Footer Styles */
.footer {
    background-color: var(--dark);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom-links li {
    display: inline-block;
    margin-left: 1.5rem;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB2aWV3Qm94PSIwIDAgMTI4MCAxNDAiIHByZXNlcnZlQXNwZWN0UmF0aW89Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0iI2Y4ZjlmYSI+PHBhdGggZD0iTTAgNTEuNzZjMzYuMjEtMi4yNSA3Ny41Ny0zLjU4IDEyNi40Mi0zLjU4IDMyMCAwIDMyMCA1NyA2NDAgNTcgMjcxLjE1IDAgMzEyLjU4LTQwLjkxIDUxMy41OC01Ny40VjBIMHoiIGZpbGwtb3BhY2l0eT0iLjMiLz48cGF0aCBkPSJNMCA5MC43MmMxNzEtMTcuNTQgMzM3Ljc2LTMxLjc0IDUwMC0zMS43NCAyNzAuNDIgMCAzMjEuNTggNTYuOTQgNzgwIDU2Ljk0IDIyLjg2IDAgNDMuMTktLjg4IDYwLS4zOVYwSDB6IiBmaWxsLW9wYWNpdHk9Ii41Ii8+PHBhdGggZD0iTTAgNTcuNzRjMTk3LjE4LTIzLjU2IDM0OS4yLTQ3LjEgNTAwLTU3Ljc0IDMzOC4yOC0yMy4zIDQ2OS43IDU3Ljc0IDc4MCA1Ny43NCA2Ni4wMiAwIDEyNi40Mi0xNS4xMSAyMDAtMzIuMTZWMEgweiIvPjwvZz48L3N2Zz4=');
    background-size: 100% 100px;
    background-position: top;
    background-repeat: no-repeat;
    opacity: 0.1;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-contact li i {
    color: var(--accent);
    margin-top: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    padding: 0.5rem 0;
}

.footer-bottom-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
}

.footer-bottom-links li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-links li a:hover {
    color: var(--accent);
    text-decoration: none;
}

/* Map Section Styles */
.map-section {
    position: relative;
    margin-top: 5rem;
}

.map-container {
    position: relative;
    height: 450px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.office-card {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.9) 0%, rgba(58, 12, 163, 0.9) 100%);
    color: #fff;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.office-card h3 {
    margin-bottom: 1rem;
}

.office-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.office-card .btn {
    border: 2px solid #fff;
}

.office-card .btn:hover {
    background: #fff;
    color: var(--primary);
}

/* Newsletter Section Styles */
.newsletter-section {
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05) 0%, rgba(58, 12, 163, 0.05) 100%);
    z-index: 1;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(76, 201, 240, 0.05) 0%, rgba(67, 97, 238, 0.05) 100%);
    z-index: 1;
}

.newsletter-content {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--shadow);
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 2rem auto 0;
}

.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
    padding: 0.75rem 1.5rem;
    height: 54px;
    box-shadow: var(--shadow-sm);
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

/* Form Success Animation */
.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid #4361ee;
}

.check-icon::before {
    top: 3px;
    left: -2px;
    width: 30px;
    transform-origin: 100% 50%;
    border-radius: 100px 0 0 100px;
}

.check-icon::after {
    top: 0;
    left: 30px;
    width: 60px;
    transform-origin: 0 50%;
    border-radius: 0 100px 100px 0;
    animation: rotate-circle 4.25s ease-in;
}

.check-icon::before, .check-icon::after {
    content: '';
    height: 100px;
    position: absolute;
    background: #fff;
    transform: rotate(-45deg);
}

.check-icon .icon-line {
    height: 5px;
    background-color: #4361ee;
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.check-icon .icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
    animation: icon-line-tip 0.75s;
}

.check-icon .icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
    animation: icon-line-long 0.75s;
}

.check-icon .icon-circle {
    top: -4px;
    left: -4px;
    z-index: 10;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: absolute;
    box-sizing: content-box;
    border: 4px solid rgba(67, 97, 238, 0.5);
}

.check-icon .icon-fix {
    top: 8px;
    width: 5px;
    left: 26px;
    z-index: 1;
    height: 85px;
    position: absolute;
    transform: rotate(-45deg);
    background-color: #fff;
}

@keyframes rotate-circle {
    0% { transform: rotate(-45deg); }
    5% { transform: rotate(-45deg); }
    12% { transform: rotate(-405deg); }
    100% { transform: rotate(-405deg); }
}

@keyframes icon-line-tip {
    0% { width: 0; left: 1px; top: 19px; }
    54% { width: 0; left: 1px; top: 19px; }
    70% { width: 50px; left: -8px; top: 37px; }
    84% { width: 17px; left: 21px; top: 48px; }
    100% { width: 25px; left: 14px; top: 46px; }
}

@keyframes icon-line-long {
    0% { width: 0; right: 46px; top: 54px; }
    65% { width: 0; right: 46px; top: 54px; }
    84% { width: 55px; right: 0px; top: 35px; }
    100% { width: 47px; right: 8px; top: 38px; }
}

/* reCAPTCHA Placeholder */
.recaptcha-placeholder {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #f8f9fa;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.recaptcha-placeholder i {
    font-size: 1.2rem;
    color: var(--primary);
    margin-right: 10px;
}

.recaptcha-placeholder a {
    color: var(--primary);
    text-decoration: none;
}

.recaptcha-placeholder a:hover {
    text-decoration: underline;
}

/* Floating Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Responsive Styles */
@media (max-width: 1199px) {
    .contact-title {
        padding: 140px 0 90px 0;
    }
    
    .contact-title h1 {
        font-size: 3rem;
        font-weight: 700;
        width: 100%;
        padding: 0 15px;
    }
    
    .contact-form-card, .contact-info-card {
        padding: 2rem;
    }
    
    .form-floating > .form-control {
        height: 55px;
    }
    
    .form-floating > textarea.form-control {
        height: 160px;
    }
    
    .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .newsletter-content {
        padding: 2.5rem;
    }
    
    .success-checkmark {
        transform: scale(0.95);
    }
    
    .contact-info-item h5 {
        font-size: 1.1rem;
    }
}

@media (max-width: 991px) {
    .contact-header {
        min-height: 55vh;
    }
    
    .contact-title {
        padding: 100px 0 60px 0;
    }
    
    .contact-title h1 {
        font-size: 2.6rem;
    }
    
    .contact-info-card {
        margin-top: 2rem;
        height: auto;
    }
    
    .office-card {
        margin-bottom: 2rem;
    }
    
    .newsletter-content {
        padding: 2rem;
    }
    
    .form-floating > label {
        padding: 0.9rem;
    }
    
    .contact-section {
        padding: 4rem 0;
    }
    
    .send-btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .contact-info-item {
        align-items: flex-start;
    }
    
    .icon-box {
        margin-top: 0.25rem;
    }
    
    /* Ensure ample spacing above footer on tablets and small laptops */
    .contact-section.py-5 {
        padding-bottom: 3rem !important;
    }
    /* Add breathing room below the Get In Touch card to avoid footer overlap */
    .contact-info-card {
        margin-bottom: 2rem !important;
    }
}

@media (max-width: 767px) {
    .contact-header {
        min-height: 45vh;
    }
    
    .contact-title {
        padding: 90px 0 50px 0;
    }
    
    .contact-title h1 {
        font-size: 2.2rem;
    }
    
    .contact-title .lead {
        font-size: 1.1rem;
    }
    
    .contact-section {
        padding: 3rem 0;
    }
    
    .contact-section h2 {
        font-size: 2rem;
    }
    
    .contact-section .lead {
        font-size: 1rem;
    }
    
    .contact-form-card, .contact-info-card {
        padding: 1.5rem;
    }
    
    .form-floating > .form-control {
        height: 50px;
        font-size: 0.95rem;
    }
    
    .form-floating > textarea.form-control {
        height: 140px;
    }
    
    .form-floating > label {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
    
    .send-btn {
        padding: 0.7rem;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .send-btn i {
        margin-left: 0.5rem;
    }
    
    .contact-info-item {
        margin-bottom: 1.5rem;
    }
    
    .contact-info-item h5 {
        font-size: 1rem;
    }
    
    .contact-info-item p {
        font-size: 0.95rem;
    }
    
    .icon-box {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        margin-right: 0.8rem;
    }
    
    .map-overlay {
        position: relative;
        background: none;
    }
    
    .row.g-4 {
        row-gap: 1rem !important;
    }
    
    .success-checkmark {
        transform: scale(0.9);
    }
    
    .check-icon {
        margin: 0 auto;
    }
    
    .contact-form-card .row {
        row-gap: 0.75rem !important;
    }
    
    .office-card {
        margin: 1rem 0;
    }
    
    .newsletter-content {
        padding: 1.5rem;
    }
    
    .newsletter-form .btn {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .footer-title {
        font-size: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .footer-links li, .footer-contact li {
        margin-bottom: 0.6rem;
        font-size: 0.95rem;
    }
    
    .footer-contact li i {
        font-size: 1rem;
    }
    
    .footer-bottom-links {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    
    .footer-bottom-links li {
        margin-left: 0;
        font-size: 0.9rem;
        display: inline-block;
    }
    
    /* Extra spacing at the bottom of the section on phones */
    .contact-section.py-5 {
        padding-bottom: 3.25rem !important;
    }
    .contact-info-card {
        margin-bottom: 2rem !important;
    }
    /* Soften footer decorative wave on small screens to prevent visual overlap */
    .footer::before {
        height: 60px;
        background-size: 100% 60px;
    }
}

@media (max-width: 575px) {
    .contact-header {
        min-height: 40vh;
    }
    
    .contact-title {
        padding: 80px 0 40px 0;
    }
    
    .contact-title h1 {
        font-size: 1.8rem;
    }
    
    .contact-title .lead {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Mobile-specific styles for screens below 480px */
@media (max-width: 480px) {
    /* Hero section responsive adjustments */
    .contact-header {
        min-height: 35vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    /* Adjust navbar for mobile */
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand .subtitle {
        font-size: 0.7rem;
    }
    
    /* Hero content adjustments */
    .contact-title {
        padding: 60px 0 30px 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-title .container {
        padding-left: 15px;
        padding-right: 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-title h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
        width: 100%;
        word-wrap: break-word;
        text-align: center;
    }
    
    .contact-title .divider {
        margin: 0.5rem auto;
        width: 50px;
    }
    
    .contact-title .lead {
        font-size: 0.9rem;
        margin-top: 0.5rem;
        width: 100%;
        word-wrap: break-word;
        text-align: center;
        padding: 0 10px;
    }
    
    /* Background image adjustments */
    .hero-bg-img {
        object-fit: cover;
        object-position: center;
    }
    
    .contact-title .divider {
        width: 60px;
        margin-bottom: 1rem;
    }
    
    .contact-section {
        padding: 2.5rem 0;
    }
    
    .contact-section h2 {
        font-size: 1.8rem;
    }
    
    .contact-section .lead {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .contact-form-card, .contact-info-card {
        padding: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .form-floating > .form-control {
        height: 48px;
        font-size: 0.9rem;
        padding: 0.8rem;
    }
    
    .form-floating > textarea.form-control {
        height: 120px;
    }
    
    .form-floating > label {
        padding: 0.7rem;
        font-size: 0.9rem;
    }
    
    .send-btn {
        padding: 0.6rem;
        font-size: 0.95rem;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .send-btn i {
        margin-left: 0.5rem;
    }
    
    .contact-info-item {
        margin-bottom: 1.25rem;
    }
    
    .contact-info-item h5 {
        font-size: 0.95rem;
    }
    
    .contact-info-item p {
        font-size: 0.9rem;
    }
    
    .success-checkmark {
        transform: scale(0.8);
    }
    
    .contact-form-card .row {
        row-gap: 0.5rem !important;
    }
    
    .icon-box {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        margin-right: 0.7rem;
        margin-top: 0.2rem;
    }
    
    .newsletter-form .form-control, .newsletter-form .btn {
        border-radius: 50px;
        font-size: 0.9rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
    }
    
    .newsletter-form .form-control {
        margin-bottom: 1rem;
    }
    
    .newsletter-section h2 {
        font-size: 1.8rem;
    }
    
    .newsletter-section p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }
    
    .recaptcha-placeholder {
        font-size: 0.8rem;
        padding: 8px 12px;
        margin-top: 0.5rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links li, .footer-contact li {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    .footer-contact li i {
        font-size: 0.9rem;
        margin-top: 3px;
    }
    
    .footer-contact li {
        align-items: flex-start;
    }
    
    .footer-bottom {
        padding-top: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
    
    .footer-bottom-links {
        margin-top: 0.5rem;
        justify-content: center;
    }
    
    .footer-bottom-links li {
        margin-left: 0;
        font-size: 0.85rem;
    }
    
    .success-checkmark {
        width: 70px;
        height: 70px;
    }
    
    .check-icon {
        width: 70px;
        height: 70px;
    }
    
    /* Maintain clear separation from footer on very small phones */
    .contact-section.py-5 {
        padding-bottom: 3.5rem !important;
    }
}
