#contact {
    background-color: var(--color7);
    padding: 40px;
    text-align: center;
    color: var(--color6);
}

#contact .contact-title {
    font-size: 24px;
    margin-bottom: 20px;
}

#contact .contact-info-container,
#contact .contact-forms-container {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    background-color: var(--color7);
    flex-wrap: wrap;
}

/* New two-column layout */
#contact .contact-two-columns {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    align-items: flex-start;
}

#contact .contact-form-column {
    flex: 1;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    background-color: var(--color8);
    padding: 30px;
    border-radius: 10px;
}

#contact .email-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#contact .email-form label {
    text-align: left;
}



#contact .contact-info-column {
    flex: 1;
    min-width: 300px;
}

#contact .contact-section {
    margin-bottom: 25px;
    text-align: left;
}

#contact .contact-section h4 {
    margin-bottom: 8px;
    color: var(--color6);
    font-size: 16px;
    font-weight: 600;
}

#contact .contact-section p {
    margin: 5px 0;
    color: var(--color6);
    line-height: 1.4;
}

#contact .contact-section a {
    color: var(--color9);
    text-decoration: none;
}

#contact .contact-section a:hover {
    text-decoration: underline;
}

#contact .contact-section form {
    margin-top: 10px;
}

#contact .contact-section form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--color6);
    font-size: 14px;
}

#contact .contact-section form input {
    width: 100%;
    padding: 8px 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

#contact .contact-section form button {
    width: 100%;
    padding: 8px 16px;
    background-color: var(--color9);
    border: none;
    border-radius: 5px;
    color: var(--color7);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

#contact .contact-section form button:hover {
    background-color: var(--color4);
}

/* Social media links styles */
#contact .social-media-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#contact .social-media-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color6);
    transition: all 0.3s ease;
    text-decoration: none;
}

#contact .social-media-links a:hover {
    background-color: var(--color9);
    color: var(--color1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 186, 120, 0.3);
}

#contact .social-media-links svg {
    width: 20px;
    height: 20px;
}

#contact .contact-info,
#contact .contact-details,
#contact .contact-footer,
#contact .email-form {
    flex: 1;
    padding: 20px;
    border-radius: 5px;
    background-color: var(--color7);
    min-width: 300px;
}

#contact .contact-info a,
#contact .contact-details a {
    color: var(--color9);
    text-decoration: none;
}

#contact .contact-follow {
    margin-top: 20px;
}

#contact .contact-follow a svg {
    fill: var(--color9);
    width: 24px;
    height: 24px;
    margin: 0 10px;
}

#contact .email-form {
    margin-bottom: 20px;
}

#contact .email-form h3 {
    margin-bottom: 10px;
}

#contact .email-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

#contact .email-form input,
#contact .email-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#contact .email-form button {
    padding: 10px 20px;
    background-color: var(--color9);
    border: none;
    border-radius: 5px;
    color: var(--color7);
    cursor: pointer;
}

#contact .email-form button:hover {
    background-color: var(--color4);
}

/* Popup Modal Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    box-sizing: border-box;
}

.popup-content {
    background-color: var(--color1);
    border-radius: 12px;
    padding: 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.25s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    line-height: 1;
}

.popup-icon.success {
    background-color: rgba(122, 186, 120, 0.15);
    color: var(--color9);
}

.popup-icon.error {
    background-color: rgba(243, 202, 82, 0.15);
    color: var(--color8);
}

.popup-content h3 {
    margin: 0 0 12px;
    color: var(--color6);
    font-size: 20px;
    font-weight: 600;
}

.popup-content p {
    margin: 0 0 24px;
    color: var(--color4);
    font-size: 15px;
    line-height: 1.6;
}

.popup-button {
    padding: 12px 32px;
    background-color: var(--color9);
    border: none;
    border-radius: 8px;
    color: var(--color1);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.popup-button:hover {
    background-color: var(--color4);
    transform: translateY(-1px);
}

.popup-button:active {
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    #contact {
        padding: 40px 20px;
    }

    #contact .contact-info-container,
    #contact .contact-forms-container {
        flex-direction: column;
        gap: 20px;
    }

    /* Responsive two-column layout */
    #contact .contact-two-columns {
        flex-direction: column;
        gap: 30px;
    }

    #contact .contact-form-column,
    #contact .contact-info-column {
        min-width: 100%;
        flex: 1;
    }

    #contact .contact-form-column {
        padding: 25px 20px;
        margin: 0;
        box-sizing: border-box;
    }

    #contact .contact-section {
        text-align: center;
        margin-bottom: 20px;
    }

    #contact .email-form input,
    #contact .email-form textarea {
        width: 100%;
    }

    .popup-overlay {
        padding: 16px;
    }

    .popup-content {
        padding: 24px;
        max-width: 100%;
    }

    .popup-content h3 {
        font-size: 18px;
    }

    .popup-content p {
        font-size: 14px;
    }
}
