body, html {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url('images/plaia_background.webp') no-repeat center center fixed;
    background-size: cover;
}

/* Hero Section */
.hero {
    color: white;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Black overlay with 50% opacity */
    z-index: 2; /* Ensures overlay is behind the text but above the background */
}

h1, p {
    position: relative; /* Ensures text is above the overlay */
    z-index: 3;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 20px;
    background-color: #0061a8;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    position: relative;
    z-index: 5; /* Ensures button is above the overlay and visible */
}

#contactBtnWrapper {
    position: relative;
    display: inline-block; /* Keeps the wrapper inline with text alignment */
}

#contactForm {
    display: none;
    position: absolute;  /* Absolute positioning relative to its positioned parent */
    top: 100%;  /* Directly below the button */
    left: 50%;  /* Horizontally centered */
    transform: translateX(-50%); /* Adjust horizontal positioning */
    width: 100%;  /* Full width */
    max-width: 500px;  /* Limit width to a reasonable maximum */
    background: rgba(255, 255, 255, 0.9);  /* Increase transparency */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Adds shadow for better visibility */
    z-index: 10; /* Ensure it's on top of other elements */
    color: #000; /* Set font color to black */
}

#contactForm label, #contactForm input, #contactForm textarea {
    color: #000; /* Set font color to black */
}

input[type="text"], input[type="email"], input[type="tel"], textarea {
    display: block;
    width: calc(100% - 20px);  /* Full width minus padding */
    margin: 10px 0;  /* Margin around the elements */
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #000; /* Set font color to black */
}

/* New CSS for content blocks */
.content-blocks {
    display: flex;
    flex-wrap: wrap; /* Allow blocks to wrap */
    justify-content: space-around;
    margin: 20px 0;
    padding: 20px;
    background-color: #f0f0f0; /* Light grey background for better contrast */
}

.block {
    text-align: center;
    flex: 1 1 calc(50% - 40px); /* Flexbox for two-column layout with margins */
    max-width: 45%; /* Ensure it doesn't grow too large */
    background: #ffffff; /* White background for each block */
    padding: 20px;
    margin: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Adds shadow for better visibility */
    border: 1px solid #ccc; /* Light border for a cleaner look */
}

.block img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    background-color: #f9f9f9; /* Light background color for the icons */
}

.block h2 {
    font-size: 1.5em;
    margin: 10px 0;
}

.block p {
    font-size: 1em;
    line-height: 1.5;
}

/* Additional Contact Section */
.additional-contact-section {
    padding: 40px 20px;
    background-color: #ffffff; /* White background for contrast */
    text-align: center;
}

.additional-contact-section .container {
    max-width: 600px;
    margin: 0 auto;
}

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

.additional-contact-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.additional-contact-section label {
    width: 100%;
    text-align: left;
    margin-top: 10px;
}

.additional-contact-section input[type="text"],
.additional-contact-section input[type="email"],
.additional-contact-section input[type="tel"],
.additional-contact-section textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #000; /* Set font color to black */
}

.additional-contact-section button[type="submit"] {
    padding: 10px 20px;
    margin-top: 20px;
    background-color: #0061a8;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Footer */
footer {
    padding: 10px 20px;
    background-color: #0061a8; /* Dark blue background for footer */
    color: white;
    text-align: center;
    margin-top: 20px;
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    .content-blocks {
        flex-direction: column;
        align-items: center;
    }

    .block {
        width: 90%; /* Full width for smaller screens */
        margin: 10px auto; /* Center blocks on smaller screens */
    }

    #contactForm {
        width: 90%;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .block {
        width: 100%; /* Full width for the smallest screens */
    }

    #contactForm {
        width: 90%;
        max-width: none;
    }

    .thank-you-container {
        padding: 20px;
    }

    .thank-you-container h1 {
        font-size: 2em;
    }

    .thank-you-container p {
        font-size: 1em;
    }
}

/* Add to styles.css */

/* Login button container */
.login-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* CSS for login modal */
.modal {
    display: none;
    position: fixed;
    z-index: 101;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    animation: fadeIn 0.3s; /* Fade in animation */
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content label {
    margin: 10px 0 5px;
}

.modal-content input {
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.modal-content button {
    padding: 10px 20px;
    background-color: #0061a8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: #004f8a;
}


/* CSS for new password modal */
#newPasswordModal {
    display: none;
    position: fixed;
    z-index: 101;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

#newPasswordModal .modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#newPasswordModal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

#newPasswordModal .close:hover,
#newPasswordModal .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
