.contact-hero {
    background: linear-gradient(135deg, var(--bg-shade) 0%, var(--snd-bg-color) 100%);
    padding: 100px 0 50px;
    text-align: center;
    border-bottom: 5px solid var(--primary-text-color);
}

.dark-mode .contact-hero {
    background: linear-gradient(135deg, var(--bg-shade) 0%, var(--nav-bgcolor) 100%);
}

.contact-hero h1 {
    font-size: 3.5rem;
    color: var(--primary-text-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-hero p {
    font-size: 1.2rem;
    color: var(--secondary-text-color);
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-section {
    padding: 80px 0;
    background: var(--bg-shade);
}

.dark-mode .contact-form-section {
    background: var(--bg-shade);
}

.contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white-4345);
    padding: 50px;
    border-radius: 20px;
    border: 5px solid var(--primary-text-color);
    box-shadow: 0 0 2rem var(--main-color);
}

.dark-mode .contact-form-container {
    background: var(--bg-shade);
    border-color: var(--primary-text-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-text-color);
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 3px solid var(--main-color);
    border-radius: 15px;
    background-color: var(--white-4345);
    color: var(--primary-text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 1rem rgba(73, 26, 2, 0.3);
}

.dark-mode .form-control {
    background-color: var(--input-bg-color);
    border-color: var(--main-color);
    color: var(--primary-text-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color-dark);
    box-shadow: 0 0 1.5rem var(--main-color);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: var(--placeholder-color);
    font-weight: 500;
}

.submit-btn {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-info-section {
    padding: 80px 0;
    background: var(--footer-bgColor);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info-card {
    background: var(--white-4345);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 5px solid var(--primary-text-color);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode .contact-info-card {
    background: var(--bg-shade);
    border-color: var(--primary-text-color);
}

.contact-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.contact-info-card i {
    font-size: 3rem;
    color: var(--main-color);
    margin-bottom: 20px;
}

.contact-info-card h3 {
    color: var(--primary-text-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.contact-info-card p {
    color: var(--secondary-text-color);
    font-size: 1rem;
    line-height: 1.6;
}

.team-section {
    padding: 80px 0;
    background: var(--bg-shade);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.team-card {
    background: var(--white-4345);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    border: 5px solid var(--primary-text-color);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dark-mode .team-card {
    background: var(--bg-shade);
    border-color: var(--primary-text-color);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 5px solid var(--main-color);
    overflow: hidden;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-avatar.placeholder {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.map-section {
    padding: 80px 0;
    background: var(--snd-bg-color);
}

.dark-mode .map-section {
    background: var(--nav-bgcolor);
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    border: 5px solid var(--primary-text-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.faq-section {
    padding: 80px 0;
    background: var(--bg-shade);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white-4345);
    margin-bottom: 20px;
    border-radius: 15px;
    border: 3px solid var(--primary-text-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.dark-mode .faq-item {
    background: var(--bg-shade);
    border-color: var(--primary-text-color);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-question:hover {
    background: var(--accent-color-dark);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--white-4345);
}

.dark-mode .faq-answer {
    background: var(--bg-shade);
}

.faq-answer.active {
    padding: 25px;
    max-height: 200px;
}

.faq-answer p {
    color: var(--primary-text-color);
    line-height: 1.6;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-text-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.dark-mode .section-title h2 {
    color: var(--primary-text-color);
}

.dark-mode .section-title p {
    color: var(--secondary-text-color);
}

/* Additional dark mode improvements */
.dark-mode .contact-hero h1 {
    color: var(--primary-text-color);
}

.dark-mode .contact-hero p {
    color: var(--secondary-text-color);
}

.dark-mode h2,
.dark-mode h3,
.dark-mode h4 {
    color: var(--primary-text-color);
}

.dark-mode p {
    color: var(--secondary-text-color);
}

/* Social media section specific styling */
.dark-mode .social-media {
    color: var(--primary-text-color);
}

.dark-mode .contact-section p {
    color: var(--primary-text-color) !important;
    opacity: 0.9;
    font-weight: 500;
}

/* Make social media description more visible */
.dark-mode .section-title p {
    color: var(--primary-text-color) !important;
    opacity: 0.9;
    font-weight: 500;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--main-color);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.form-validation {
    color: #dc3545;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.dark-mode .form-validation {
    color: #ff6b6b;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    border: 2px solid #c3e6cb;
}

.dark-mode .success-message {
    background: #1e4d2b;
    color: #a3d9a5;
    border-color: #2d5a3d;
}

/* Success Modal Popup */
.success-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.success-modal-content {
    background: linear-gradient(135deg, #28a745, #20c997);
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.5s ease-out;
    position: relative;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.success-modal-content .success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: white;
    animation: checkmarkPulse 0.6s ease-in-out;
}

@keyframes checkmarkPulse {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.success-modal-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.success-modal-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.6;
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.close-x {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-x:hover {
    opacity: 1;
}

.dark-mode .team-showcase-card {
    background: var(--bg-shade) !important;
    border-color: var(--primary-text-color) !important;
}

.team-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-form-container {
        padding: 30px 20px;
        margin: 0 20px;
    }

    .contact-info-grid,
    .team-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}