*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

:root {
    --base: #f7f7f7;
    --black: #11100e;
    --white: #ffffff;
    --red: #da2b26;
    --blue: #1a3685;
    --font-primary: 'Outfit', sans-serif;
}
body {
    
    font-family: 'Outfit', sans-serif;
    background-color: #f7f7f7;
    color: #333;
    margin: 0;
    padding: 0;
}

.contact-us {
    margin-top: 30px;
    padding-top: 30px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url('/assets/pexels-yentl-jacobs-43020-157811.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--blue); /* Improved readability */
}

.contact-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 2rem;
}

.contact-form {
    max-width: 400px;
    width: 100%;
}

.contact-form h2 {
    font-weight: bold;
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    color: var(--yellow);
    margin-bottom: 0.5rem;
}

.contact-form p {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--black);
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    font-weight: bold;
    font-size: 1rem;
    color: var(--black);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--black);
    border-radius: 4px;
    font-size: 1rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
    background: var(--base);
}

.contact-form textarea {
    resize: none;
}

.contact-form .button {
    background-color: var(--blue);
    color: #fff;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.contact-form .button:hover {
    background-color: var(--red);
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--base);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--black);
    text-align: center;
    width: 90%;
    max-width: 400px;
    position: relative;
}

.modal-content h2 {
    font-size: 1.5rem;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1rem;
    color: var(--black);
    margin-bottom: 1.5rem;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    color: var(--yellow);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-modal:hover {
    color: var(--blue);
    transform: scale(1.2);
}

@media screen and (max-width: 768px) {
    .modal-content {
        padding: 15px;
        font-size: 14px;
    }

    .close-modal {
        font-size: 20px;
        top: 8px;
        right: 10px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-form {
        order: 1;
        padding: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .modal-content {
        padding: 10px;
        font-size: 12px;
    }

    .close-modal {
        font-size: 18px;
    }
}
