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

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

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

/* Hide Captcha Badge */
.grecaptcha-badge {
    /* visibility: hidden; */
    z-index: 10000;
}

/* 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;
    /* Mobile form optimizations */
    -webkit-appearance: none; /* Remove default iOS styling */
    appearance: none;
    /* Improve touch targets on mobile */
    min-height: 44px; /* Minimum touch target size */
}

.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('./img/cb_locations.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    overflow: hidden; /* Prevent overflow issues */
    /* Performance optimizations */
    will-change: transform;
    contain: layout style paint;
}

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

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

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

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

    .locations {
        grid-template-columns: auto;
        padding: 20px;
    }
}

.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;
    }
}

/* Container for the checkbox and label */
.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
  }
  
  /* Hide the default checkbox and create a custom one */
  .checkbox-container input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    background-color: white;
    transition: background-color 0.2s, border-color 0.2s;
  }
  
  /* Styling when the checkbox is checked */
  .checkbox-container input[type="checkbox"]:checked {
    background-color: #007BFF;
    border-color: #007BFF;
  }
  
  /* Create the checkmark using a pseudo-element */
  .checkbox-container input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
  }
  
  /* Style the label text */
  .checkbox-container label {
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
  }
  
/* Modal overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 100000 !important; /* Ensures the modal sits on top */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
}

/* Modal content box */
.modal-content {
    background-color: #fff;
    margin: 10% 150%; /* Center the modal vertically and horizontally */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px; /* Maximum width for larger screens */
    border-radius: 5px;
    position: relative;
}

/* Close button (the "X") */
.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}
