/**
 * Styling for Insurance Filter Form
 * Using !important to override theme styles
 * Dropdowns use default browser styling, inputs match dropdown appearance
 */

/* Disabled state styling */
.ova_wrap_input.disabled {
    opacity: 0.6 !important;
    pointer-events: none !important;
}

.ova_wrap_input.disabled select {
    cursor: not-allowed !important;
    background-color: #f5f5f5 !important;
}

/* Select dropdown styling - Keep default browser appearance */
.ova_wrap_input select {
    width: 100% !important;
    height: auto !important;
    padding: 20px !important;
    border: none !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    color: #000 !important;
    background-color: #fff !important;
    cursor: pointer !important;
    font-family: inherit !important;
}

.ova_wrap_input select:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.ova_wrap_input select:disabled {
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
    color: #999 !important;
}

/* Input field styling - Match dropdown appearance */
.ova_wrap_input input[type="text"],
.ova_wrap_input input[type="email"] {
    width: 100% !important;
    height: auto !important;
    padding: 20px !important;
    border: none !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    color: #000 !important;
    background-color: #fff !important;
    font-family: inherit !important;
}

.ova_wrap_input input[type="text"]:focus,
.ova_wrap_input input[type="email"]:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Hide browser default validation tooltips */
.ova_wrap_input input:invalid,
.ova_wrap_input select:invalid {
    box-shadow: none !important;
}

/* Button styling - Match dropdown height and appearance */
.ova_wrap_btn button[type="submit"] {
    height: auto !important;
    padding: 20px !important;
    background-color: #002377 !important;
    color: #fff !important;
    border: 1px solid #002377 !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    font-family: inherit !important;
    text-align: center !important;
    min-height: 40px !important;
}

.ova_wrap_btn button[type="submit"] i {
    display: none !important;
}

.ova_wrap_btn button[type="submit"] br {
    display: none !important;
}

.ova_wrap_btn button[type="submit"]:hover {
    color: #002377 !important;
    border-color: #002377 !important;
    background-color: transparent !important;
}

.ova_wrap_btn button[type="submit"]:active {
    background-color: #002377 !important;
    color: #fff !important;
}

/* Loading state */
.ova_wrap_btn button[type="submit"].wpcf7-submit.ajax-loader {
    opacity: 0.7 !important;
    cursor: wait !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .ova_wrap_input,
    .ova_wrap_btn {
        flex: 1 1 100% !important;
        min-width: 100% !important;
    }
}

/* Contact Form 7 validation - Only red border */
.wpcf7-not-valid {
    border-color: #dc3545 !important;
    box-shadow: none !important;
}

/* Hide Contact Form 7 validation text messages */
.wpcf7-not-valid-tip {
    display: none !important;
}

/* Success message */
.wpcf7-response-output {
    margin-top: 16px !important;
    padding: 12px 16px !important;
    border-radius: 4px !important;
}

.wpcf7-mail-sent-ok {
    background-color: #d4edda !important;
    border: 1px solid #c3e6cb !important;
    color: #155724 !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
    background-color: #f8d7da !important;
    border: 1px solid #f5c6cb !important;
    color: #721c24 !important;
}