/* Change the font size of the selected text in Select2 */
.select2-selection__rendered {
    font-size: 13px !important;
}
/* General container for the form */
.main-form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Responsive grid layout */
    gap: 5px; /* Adjusted spacing between form elements */
    padding: 5px;
    padding-top: 12px;
    box-sizing: border-box;
}

/* Style for each form row */
.form-row {
    display: flex;
    align-items: center;
}

/* Labels for form inputs */
label {
    text-align: left;
    font-size: 14px;
    max-width: 200px;
    width: 40%; /* Ensures label doesn't overflow */
}

.search-btn {
    padding: 2px;
}
.search-button {
    background-color: #f59c3b;
    border: none;
}

/* Suggestion box styling (dropdown-like) */
.suggestion-box {
    position: absolute; /* Position it relative to the input */
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-height: 200px; /* Limit height, scroll if needed */
    overflow-y: auto;
    z-index: 1000; /* Ensure it appears above other content */
    display: none; /* Hidden by default */
    max-width: 250px;
}

.suggestion-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    white-space: nowrap; /* Prevent text wrapping */
}

.suggestion-item:last-child {
    border-bottom: none; /* Remove border from last item */
}

.suggestion-item:hover {
    background-color: #f0f0f0; /* Highlight on hover */
}

/* Optional: Add a subtle animation */
.suggestion-box {
    animation: slideDown 0.2s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Mobile responsiveness */
@media (max-width: 600px) {
    input[type='text'] {
        width: 100%; /* Full width on mobile */
    }
    .suggestion-box {
        max-width: 100%; /* Full width on mobile */
        width: auto; /* Let JS override this */
    }
}
/* July 2025: CSS added to improve the page appearance */
.line1 {
    height: 10px;
}

.form-row label {
    font-family: 'Times New Roman', Times, serif;
    font-weight: 800;
    font-size: medium;
}

.form-row input[type='text'],
.form-row select {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease-in-out;
}
.select2-container {
    flex: 1; /* make input take the rest of the space */
}
.select2-container--default .select2-selection--single,
.select2-container--default .select2-selection--multiple {
    display: flex;
    align-items: center;
}
