:root {
    --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Ubuntu", "Roboto", "Noto Sans", "Droid Sans", sans-serif;
    --navbar: rgb(59, 53, 53);
}

* {
  box-sizing: border-box;
}

html {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    height: 100%;
    margin: 0;
}

body {
    font-family: var(--font);
    color: black;
    cursor: default;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Section Styles */
section {
    padding: 115px 20px;
    background: linear-gradient(135deg, #3e99e9, #0b477c);;
    color: white;
    flex: 1;
}

section h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

section p, section ul {
    font-size: 1.1em;
    line-height: 1.6;
}

/* Form Styles */
.form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    margin: 0 auto;
}

.form input, .form textarea, .form select {
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ccc;
    border-radius: 5px;
    resize: none;
}

.form textarea {
    height: 100px;
}

.form button {
    padding: 10px;
    font-size: 1em;
    color: #fff;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.form button:hover {
    background-color: #0056b3;
}

.background-section {
    position: relative;
    height: 90vh;
    background-image: url('');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    overflow: hidden; /* Prevent overflow issues */
}

.locations {
    display: grid;
    grid-template-columns: auto auto auto;
    text-align: center;
    padding: 50px;
    grid-gap: 20px;
}

@media (max-width: 550px) {
    .background-section {
        height: 150vh;
    }

    .locations {
        grid-template-columns: auto auto;
    }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.57);
    z-index: 1;
    pointer-events: none; /* Ensure that the overlay does not interfere with user interactions */
}

.content {
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
}

.location {
    grid-column: auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: black;
}

@media (min-width: 500px) {
    .contactForm {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .contactFormCard {
        grid-column: auto;
    }
}

@media (max-width: 499px) {
    .contactForm {
        display: relative;
    }
    .contactForm div {
        margin-top: 20px;
    }
}
