/* Arkay Form Override Styles - Maximum Priority */

/* Force label styling with maximum specificity */
html body .arkay-efb-form-container .arkay-efb-form .arkay-efb-form-row label,
html body div .arkay-efb-form-container .arkay-efb-form .arkay-efb-form-row label {
    color: #333 !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    display: block !important;
}

/* Force select styling with maximum specificity */
html body .arkay-efb-form-container .arkay-efb-form .arkay-efb-form-row select,
html body div .arkay-efb-form-container .arkay-efb-form .arkay-efb-form-row select {
    width: 100% !important;
    padding: 0.5rem 1rem !important;
    padding-right: 2.5rem !important;
    border: 1px solid #aaaaaa !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    color: #333 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.5rem center !important;
    background-size: 1rem !important;
    min-height: auto !important;
    max-width: none !important;
}

/* Responsive layout override */
@media screen and (min-width: 768px) {
    html body .arkay-efb-form-container .arkay-efb-form .arkay-efb-form-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    html body .arkay-efb-form-container .arkay-efb-form .arkay-efb-form-row label {
        flex: 0 0 30% !important;
        max-width: 30% !important;
        margin-bottom: 0 !important;
        padding-top: calc(0.5rem + 1px) !important;
        padding-right: 1rem !important;
    }

    html body .arkay-efb-form-container .arkay-efb-form .arkay-efb-form-row select,
    html body .arkay-efb-form-container .arkay-efb-form .arkay-efb-form-row input,
    html body .arkay-efb-form-container .arkay-efb-form .arkay-efb-form-row textarea {
        flex: 0 0 70% !important;
        max-width: 70% !important;
    }
}

/* Additional overrides for common theme conflicts */
.arkay-efb-form-container select:not([multiple]) {
    height: auto !important;
}

.arkay-efb-form-container .arkay-efb-form-row select option {
    color: #333 !important;
    background-color: #fff !important;
}

/* Submit button - ensure always visible on all screen sizes */
html body .arkay-efb-form-container .arkay-efb-form .arkay-efb-submit-row .arkay-efb-submit-button,
html body div .arkay-efb-form-container .arkay-efb-form .arkay-efb-submit-row .arkay-efb-submit-button {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #f9d849 !important;
    color: #000000 !important;
    padding: 0.5rem 1.5rem !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    line-height: 1.5 !important;
    text-transform: capitalize !important;
    letter-spacing: 0 !important;
    position: static !important;
    overflow: visible !important;
    font-family: 'Work Sans', sans-serif !important;
}

html body .arkay-efb-form-container .arkay-efb-form .arkay-efb-submit-row .arkay-efb-submit-button:hover {
    background-color: #f9d849 !important;
    color: #000000 !important;
    opacity: 0.87 !important;
}

/* Mobile: submit row should stack naturally */
@media screen and (max-width: 960px) {
    html body .arkay-efb-form-container .arkay-efb-form .arkay-efb-submit-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        margin-left: 0 !important;
    }

    html body .arkay-efb-form-container .arkay-efb-form .arkay-efb-submit-row .arkay-efb-submit-button {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}