
.form-field select option {
    background-color: grey;
    /* Background color */
    color: white;
    /* Default text color */
}

/* Ensure selected text remains white */
.form-field select {
    color: white;
    /* Default selected text color */
}

/* Change text color on selection */
.form-field select:focus,
.form-field select:valid {
    color: white;
}
input::placeholder {
    color: white; 
}
textarea{
    font-size: 1em !important;
}
textarea:focus{
    background-color: transparent;
    color: white; 
}

/* Form Container */
.custom-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(146.48deg, rgb(3 2 2) 1.3%, rgba(0, 0, 0, 0.1) 117.69%);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    /* backdrop-filter: blur(10px); */
    color: white;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-subtitle {
    font-size: 1.1em;
    color: white;
    display: block;
    margin-bottom: 5px;
}

.form-title {
    font-size: 2em;
    color: white;
    margin: 0;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;

}

/* Form Fields */
.form-field {
    display: flex;
    flex-direction: column;
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 12px;
    border: 1px solid white;
    border-radius: 5px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: transparent;
    color: white;
}

/* Placeholder Styling */
.form-field input::placeholder,
.form-field textarea::placeholder,
.form-field select {
    color: rgba(255, 255, 255, 0.7);
}

/* Focus State */
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #007bff;
}

/* Full-Width Fields */
.form-field.full-width {
    grid-column: span 2;
}

/* Dropdown Styling */
.form-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white" width="18px" height="18px"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
}

/* Submit Button */
.form-submit {
    text-align: center;
    margin-top: 20px;
}

.confirm-button {
    background-color: #007bff;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.confirm-button:hover {
    background-color: #0056b3;
}

.confirm-button img {
    width: 20px;
    height: 20px;
}

.form-field select option {
    background-color: grey;
    /* Background color */
    color: white;
    /* Text color */
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        /* Single column on smaller screens */
    }

    .form-field.full-width {
        grid-column: span 1;
        /* Ensures full-width fields remain full-width */
    }

    .custom-form {
        padding: 15px;
    }

    .confirm-button {
        width: 100%;
        /* Full-width button on mobile */
        justify-content: center;
    }
}

/* Adjustments for very small screens */
@media (max-width: 480px) {
    .form-title {
        font-size: 1.5em;
    }

    .form-subtitle {
        font-size: 1em;
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        padding: 10px;
        font-size: 0.9em;
    }

    .confirm-button {
        padding: 10px 20px;
        font-size: 0.9em;
    }


    #travel_date {
        width: 100%;
        padding: 8px;
        font-size: 14px;
        border: 1px solid #ccc;
        border-radius: 4px;
        background-color: #fff;
    }

}

/* Ensure the date input looks correct */
#travel_date {
    width: 100%;
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: transparent;
    appearance: none;
}

/* Reset jQuery UI datepicker styles to prevent overriding */
.ui-datepicker {
    font-size: 14px;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: none;
}

/* Fix dropdown styles */
.ui-datepicker select {
    all: unset;
    /* Reset any inherited styles */
    font-size: 14px;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
}

.error {

    color: red;
}
