html, body {
    height: 100%;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden; 
    display: flex;
    flex-direction: column;
    background-image: url(../img/contactbg2.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #2C2C2C;
    color: #FFFFFF;
}

#maindiv {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    width: 100%;
    box-sizing: border-box;
    min-height: calc(100vh - 60px); 
    overflow: hidden; 
}

body.modal-open {
    overflow: hidden;
}

.navbar {
    background-color: #2C2C2C;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo img {
    width: 150px;
    height: auto;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

nav ul li a:hover {
    background-color: #ffcc00;
    color: #2C2C2C;
}


#contact-form {
    width: 600px;
    max-height: 80vh;
    padding: 30px;
    background-color: #2C2C2C;
    border-radius: 8px;
    overflow-y: auto; 
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    text-align: center;
}

#contact-form h1 {
    color: #FFCC00;
    margin-bottom: 20px;
}

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

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    text-align: left;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #333;
    color: #fff;
    box-sizing: border-box;
}

.error-message {
    color: red;
    font-size: 12px;
    display: none;
}

button {
    background-color: #FFCC00;
    border: none;
    padding: 15px 30px;
    margin-top: 50px;
    color: #2C2C2C;
    font-size: 18px;
    cursor: pointer;
    border-radius: 30px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #1C1C1C;
    color: #FFCC00;
}

#form-message {
    margin-top: 20px;
    font-size: 16px;
    color: #FFCC00;
}

h1 {
    color: #FFCC00;
}

#thank-you-message {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #2C2C2C;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 500px;
    max-width: 90%;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 9999;
}

#thank-you-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

footer {
    width: 100%;
    text-align: center;
    padding: 0px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    background: transparent;
    color: #959595;
}

.footer-copyright {
    font-size: 14px;
    color: #4b4b4b;
    padding: 0;
    margin: 0;
}

@media screen and (max-width: 1024px) {
    #contact-form {
        width: 80%;
        padding: 25px;
        max-height: 75vh;
    }
}

@media screen and (max-width: 768px) {
    #maindiv {
        flex-direction: column;
        padding: 20px;
        min-height: calc(100vh - 60px);
    }

    #contact-form {
        width: 90%;
        padding: 20px;
        max-height: 70vh;
    }

    footer {
        padding: 0 0;
    }
}
