.modal-control {
    border: 1px solid var(--bg-gray) !important;
    border-radius: 0 !important;
    color: #212529 !important; /* Typed text dark */
    font-weight: 400 !important;
    height: 35px !important;
    padding: 10px 14px !important;
    background-color: var(--white) !important;
    margin: 3px 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.modal-body {
    background-color: #F5F5F5 !important;
}

.modal-form-detail select {
    height: 34px !important;
    line-height: 12px;
    border-radius: 0 !important;
    border: 1px solid var(--bg-gray) !important;
    padding-right: 34px !important; /* Space for arrow */
    appearance: none;
    -webkit-appearance: none;
    position: relative;
}

.modal-control:focus {
    background-color: var(--bg-gray) !important;
    border-color: var(--text-gray) !important;
    box-shadow: none !important;
    color: #212529 !important; /* Dark on focus */
}

.modal-message {
    color: red !important;
    font-size: 0.7rem !important;
    margin-left: 5px;
    display: none;
    max-width: 200px;
}

.modal-message.show {
    display: block !important;
}

input.modal-control.error,
select.error,
textarea.error {
    border: 1px solid red !important;
    background-color: var(--white) !important;
}

.modal-form-detail textarea {
    margin: 0 !important;
}

.checkbox-modal-wrapper {
    display: flex;
    flex-direction: column;
}

.checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    font-weight: 300 !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
    margin-right: 8px;
    flex-shrink: 0;
}

.checkbox-label a {
    color: #007bff;
    text-decoration: underline;
    word-break: break-word;
    display: contents !important;
}

.modal-form-msg {
    margin: 10px 0 !important;
}

.modal-btn {
    background: #bf0019 !important;
    padding: 15px 25px;
    margin: 15px 0;
    color: var(--white);
    font-weight: bold;
    display: inline-block;
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    border: none;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    text-transform: capitalize;
    font-size: 17px;
    line-height: inherit !important;
}

.modal-btn:hover {
    color: var(--white) !important;
    background: #bf0019 !important;
    text-decoration: none !important;
}

.modal-form-content {
    text-align: left;
    width: 100%;
}

.modal-form-title {
    margin-bottom: 15px;
    font-size: 18px;
    color: #bf0019;
    text-transform: uppercase;
    font-weight: 500;
}

.modal-control-msg::placeholder {
    color: #737373; /* --text-gray */
    opacity: 1;
}

.modal-control-msg {
    border: 1px solid var(--bg-gray) !important;
    border-radius: 0 !important;
    color: #212529 !important; /* Typed text dark */
    font-weight: 400 !important;
    background-color: var(--white) !important;
}

.modal-control-msg:focus {
    background-color: var(--bg-gray) !important;
    border-color: var(--text-gray) !important;
    box-shadow: none !important;
    color: #212529 !important; /* Dark on focus */
}

.modal-control-msg::placeholder {
    color: #737373;
    opacity: 1;
}

.modal-form-control-dropdown {
    border: 1px solid var(--bg-gray) !important;
    border-radius: 0 !important;
    color: #212529 !important; /* Typed/selected text dark */
    font-weight: 400 !important;
    height: 39px !important;
    background-color: var(--white) !important;
    width: 100% !important;
    font-size: 14px !important;
    padding-right: 35px !important; /* Space for down arrow */
    appearance: none;
    -webkit-appearance: none;
}

.modal-custom-select {
    background-color: var(--white);
    border: 0;
    border-radius: 0;
    color: #212529;
    font-weight: 400;
    height: 2.1875rem;
    line-height: 1.2;
    padding-left: .9rem;
}

.modal-placeholder-style::placeholder {
    font-size: 14px !important;
    color: #737373 !important; /* --text-gray */
}

/* Down Arrow for State Dropdown */
.modal-select-arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 17px;
    color: #737373;
    /* z-index: 2; */
}

/* Success/Error Message in Modal */
#modal-form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#modal-form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@media (max-width: 576px) {
    .checkbox-label {
        font-size: 11px;
        flex-direction: row;
        align-items: flex-start;
    }

    .checkbox-label span {
        font-size: 12px;
        flex-direction: row;
        align-items: flex-start;
    }

    .modal-message {
        font-size: 11px;
        margin-left: 0;
        margin-top: 2px;
    }
}

.modal-close-icon {
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 24px;
    color: #000;
    cursor: pointer;
    z-index: 1051;
    transition: color 0.2s ease;
}

.modal-close-icon:hover {
    color: #bf0019;
}

.request-quote-modal-dialog {
    width: auto !important;
}

@media (min-width: 576px) {
    .request-quote-modal-dialog {
        max-width: 500px !important;
    }
}

.product-detail-form {
    padding: 35px;
}

.product-detail-form h2 {
    font-size: 19px;
}

.product-detail-form input[type="text"],
.product-detail-form input[type="tel"],
.product-detail-form input[type="email"] {
    width: 100%;
    margin: 5px 0;
    padding: 0 10px;
    float: left;
    height: 42px;
    border: 1px solid #ccc !important;
}

.product-detail-form select {
 width: 100%;
    margin: 5px 0;
    padding: 0 10px;
    float: left;
    height: 42px;
    border: 1px solid #ccc !important;
}


.product-detail-form textarea {
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    float: left;
    height: 100px;
    border: 1px solid #ccc;
}

.product-detail-form .btn-type-1 {
    border: none;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    text-transform: capitalize;
    font-size: 17px;
}

.product-detail-form input[type="text"],
.product-detail-form input[type="tel"],
.product-detail-form input[type="email"],
/* .product-detail-form select, */
.product-detail-form textarea {
    width: 100%;
    margin: 5px 0;
    padding: 7px 10px;
    float: left;
    height: 42px;
    border: 1px solid #ccc !important;
    border-radius: 0;
    font-size: 14px;
    color: #212529;
    background: #fff;
    box-sizing: border-box;
}


.product-detail-form select {
    width: 100%;
    margin: 5px 0;
    padding: 7px 10px;
    float: none;
    height: 42px;
    border: 1px solid #ccc !important;
    border-radius: 0;
    font-size: 14px;
    color: #212529;
    background: #fff;
    box-sizing: border-box;
}

.product-detail-form input[type="text"]:focus,
.product-detail-form input[type="tel"]:focus,
.product-detail-form input[type="email"]:focus,
.product-detail-form select:focus,
.product-detail-form textarea:focus {
    background: #f2f2f2  !important;
    border-color: #999 !important;
    outline: none;
    box-shadow: none;
}


.product-detail-form input::placeholder,
.product-detail-form textarea::placeholder,
.modal-placeholder-style::placeholder {
    color: #737373 !important; /* --text-gray */
    opacity: 1 !important;
}


/* Wrapper ONLY for select */
.select-wrapper {
    position: relative;
    width: 100%;
}

/* Custom arrow */


/* Fix text vertical alignment */
.modal-form-control-dropdown {
    height: 39px !important;
    line-height: 39px !important; /* KEY FIX */
    padding-right: 42px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


/* Ensure padding for arrow */
.modal-form-control-dropdown {
    padding-right: 40px !important;
}


/* Placeholder state */
#product_state {
    color: #737373 !important;
}

/* When a real option is selected */
#product_state:not(:invalid) {
    color: #212529 !important;
}

#product_state:focus {
    color: #212529 !important;
    background-color: #f2f2f2 !important;
}
