/* Form container for a centered layout and responsive design */
.form-container {
    width: 90%; /* Full width on smaller screens */
    max-width: 600px; /* Limit width on larger screens */
    margin: 0 auto; /* Center the form */
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-family: Arial, sans-serif;
}

/* General input and select styles for uniformity */
input[type="text"], 
input[type="number"], 
input[type="time"],
input[type="url"],
input[type="email"],
input[type="date"], 
select, 
textarea {
    width: 100%;
    padding: 10px;
    margin: 5px 0 15px 0;
    display: block;
    font-size: 16px;
    line-height: 1.5;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Ensure selects have the same size and font style as inputs */
select {
    appearance: none; /* Remove default select box styles */
    -moz-appearance: none;
    -webkit-appearance: none;
    background: #fff;
}

/* Styling for labels */
label {
    margin-bottom: 5px;
    font-weight: bold;
    display: block;
    font-size: 14px;
    color: #336699; /* Primary blue */
}

/* Style for textarea */
textarea {
    height: 100px;
    resize: vertical;
}

/* Flexbox for price and currency fields in one line */
.flex-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* Styling for buttons */
button[type="submit"], 
button.submit-button {
    width: 100%;
    padding: 12px;
    background-color: #fdb92e; /* Accent yellow */
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover, 
button.submit-button:hover {
    background-color: #e0a61d; /* Slightly darker yellow on hover */
}

/* Responsive design for larger screens */
@media (min-width: 768px) {
    .form-container {
        max-width: 768px;
    }
}

/* Styling for smaller screens (tablets and mobiles) */
@media (max-width: 767px) {
    .flex-row {
        flex-direction: column;
    }

    button[type="submit"], 
    button.submit-button {
        font-size: 18px;
    }
}

/* Styling for the suggestions list */
.suggestions-list {
    position: absolute;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-height: 250px; /* Adjust as needed */
    overflow-y: auto;  /* Add scroll if suggestions exceed max-height */
    z-index: 1000;     /* Ensure it appears above other elements */
    list-style: none;  /* Remove default list styling */
    padding: 0;        /* Remove default padding */
    margin: 0;         /* Remove default margin */
}

.suggestions-list li {
    padding: 10px;
    cursor: pointer;
}

.suggestions-list li:hover {
    background-color: #f0f0f0; /* Highlight on hover */
}

/* Adjust the container to position the list */
.form-container {
    position: relative; /* Ensure that the suggestion list is positioned relative to the form container */
}

/* Style for checkboxes to match form elements */
input[type="checkbox"] {
    /* Align checkbox with label text */
    vertical-align: middle;
    margin-right: 10px; /* Space between checkbox and label */
    cursor: pointer; /* Pointer cursor on hover */
}

/* Styling for checkbox labels */
label input[type="checkbox"] + span {
    /* Style for checkbox labels */
    font-size: 16px; /* Match font size of other inputs */
    line-height: 1.5; /* Match line height of other inputs */
}

/* Style for labels containing checkboxes */
label {
    display: flex;
    align-items: center; /* Vertically center checkbox with text */
    margin-bottom: 10px; /* Space below each checkbox label */
    font-size: 16px; /* Match font size of other inputs */
    color: #336699; /* Primary blue */
}
