/* Modal Background */
.modal {
    display: none;  /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 999; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(0, 0, 0, 0.5); /* Black background with opacity */
    /* padding-top: 60px; */
    overflow: auto;
    transition: opacity 0.3s ease;
}

/* Disable background scrolling when the modal is active */
body.modal-open {
    overflow: hidden; /* Prevent scrolling on body */
}

/* Modal Content */
.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%; /* Width of the modal */
    max-width: 600px; /* Max width for larger screens */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-in-out;
}

/* Close Button (X) */
.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Form Title */
h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* Form Input Styles */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0 20px 0; /* Space below each field */
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #1eb2a6;
    outline: none;
}

/* Label Styles */
label {
    font-size: 1rem;
    color: #555;
    display: block;
    margin-bottom: 8px;
}

/* Button Styles */
.submit-btn {
    width: 100%;
    padding: 15px;
    background-color: #1eb2a6;
    color: white;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #169e8f;
}

/* Modal Form Inputs & Button Alignment */
form {
    display: flex;
    flex-direction: column;
}

/* Optional Styling for Comments Textarea */
textarea {
    height: 150px;
    resize: vertical;
}

/* Mobile Responsiveness */
@media screen and (max-width: 600px) {
    .modal-content {
        width: 90%;
        margin-top: 10%;
    }
    .submit-btn {
        font-size: 1rem;
    }
    h2 {
        font-size: 1.6rem;
    }
}

/* Animation for modal */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

