/* Button to Open Form */
.filled-button {
    background-color: #a4c639;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}
.filled-button:hover {
    transform: scale(1.05);
}

/* Form Overlay for All Screens */
.form-overlay {
    display: none;
    position: fixed;
    top: 50px; /* Default for mobile and smaller screens */
    left: 0;
    width: 100%;
    height: calc(100% - 70px); /* Adjust height to account for the top offset */
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: flex-start;
    padding-top: 30px;
    z-index: 999;
}

/* Form Overlay Adjustments for Larger Screens */
@media (min-width: 768px) {
    .form-overlay {
        top: 150px; /* Lower the overlay for desktop */
        height: calc(100% - 150px); /* Adjust height to reflect new top offset */
        padding-top: 50px; /* Additional padding for desktop */
    }
}



/* Style for dropdown select box */
.form-container select {
    color: #A4C639; /* Text color */
    background-color: #f3f3f3; /* Background color of dropdown when not selected */
    font-weight: bold;
}

/* Change background color when the dropdown is focused (clicked or selected) */
.form-container select:focus {
    background-color: #f3f3f3; /* Use a color close to #A4C639, or a slightly darker shade */
    border-color: #A4C639; /* Optional: matching border color */
    outline: none; /* Removes default blue outline */
}

/* Style the dropdown options */
.form-container select option {
    color: #A4C639; /* Option text color */
    background-color: #FFFFFF; /* Background color for dropdown options */
}



/* Form Container */
.form-container {
    background-color: #fff;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 75vh; /* Limits the height of the form container */
    overflow-y: auto; /* Adds vertical scroll if content overflows */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    position: relative;
}

/* Close Button */
.close-btn {
      position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    color: #333;

    cursor: pointer;
    
}

/* Input Fields */
.form-container h2 {
    margin-bottom: 15px;
    color: #333;
}

.form-container input, .form-container select, .form-container textarea {
    width: 100%;
    padding: 8px; /* Adjusted padding to reduce input field size */
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.form-container textarea {
    resize: vertical;
    height: 100px;
}

/* Submit Button */
.submit-btn {
    background-color: #a4c639;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    border-radius: 4px;
}
.submit-btn:hover {
    background-color: #45a049;
}
