/* ══ mrserver-select2.css — Shared Select2 + ITI styling ══ */

/* ── ITI phone field: match form-control exactly ── */
.mrserver-crm-form-wrapper .iti {
    width: 100% !important;
    display: block !important;
}
.mrserver-crm-form-wrapper .iti__tel-input,
.mrserver-crm-form-wrapper .phone-input.form-control {
    background: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    padding: 9px 50px !important;
    font-size: 15px !important;
    width: 100% !important;
    height: auto !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
.mrserver-crm-form-wrapper .iti__tel-input:focus,
.mrserver-crm-form-wrapper .phone-input.form-control:focus {
    border-color: #d0a15a !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(208, 161, 90, 0.15) !important;
    outline: none !important;
}

/* ── Select2 container width ── */
.mrserver-crm-form-wrapper .select2-container {
    width: 100% !important;
}

/* Outer selection box — match form-control (padding:10px 15px, font-size:15px, line-height:1.5) */
.mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    height: 44px !important;
    font-size: 15px !important;
    padding: 0 !important;
}

/* Inner rendered text */
.mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    padding: 0 30px 0 15px !important;
    line-height: 44px !important;
    color: #495057 !important;
    font-size: 15px !important;
}

/* Arrow icon */
.mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    top: 0 !important;
    right: 8px !important;
}

/* Placeholder color */
.mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
    color: #adb5bd !important;
}

/* Focus border */
.mrserver-crm-form-wrapper .select2-container--bootstrap4.select2-container--focus .select2-selection--single,
.mrserver-crm-form-wrapper .select2-container--bootstrap4.select2-container--open .select2-selection--single {
    border-color: #d0a15a !important;
    box-shadow: 0 0 0 4px rgba(208, 161, 90, 0.15) !important;
    outline: none !important;
}

/* Dropdown above everything */
.select2-container--open .select2-dropdown {
    z-index: 99999 !important;
}

/* ITI inline dropdown z-index fix */
.iti__dropdown-content {
    z-index: 99999 !important;
}
.iti--inline-dropdown .iti__dropdown-content {
    z-index: 99999 !important;
}

/* Highlighted option */
.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted {
    background-color: #d0a15a !important;
}

/* Mobile: match smaller form-control */
@media (max-width: 575px) {
    .mrserver-crm-form-wrapper .iti__tel-input,
    .mrserver-crm-form-wrapper .phone-input.form-control {
        font-size: 14px !important;
        padding: 9px 50px !important;
    }
    .mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single {
        height: 40px !important;
        font-size: 14px !important;
    }
    .mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
        line-height: 40px !important;
        font-size: 14px !important;
        padding: 0 28px 0 12px !important;
    }
    .mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
        height: 40px !important;
    }
}

/* Outer selection box — match form-control (padding:10px 15px, font-size:15px, line-height:1.5) */
.mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single {
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    height: 44px !important;
    font-size: 15px !important;
    padding: 0 !important;
}

/* Inner rendered text */
.mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
    padding: 0 30px 0 15px !important;
    line-height: 44px !important;
    color: #495057 !important;
    font-size: 15px !important;
}

/* Arrow icon */
.mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
    height: 44px !important;
    top: 0 !important;
    right: 8px !important;
}

/* Placeholder color */
.mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single .select2-selection__placeholder {
    color: #adb5bd !important;
}

/* Focus border */
.mrserver-crm-form-wrapper .select2-container--bootstrap4.select2-container--focus .select2-selection--single,
.mrserver-crm-form-wrapper .select2-container--bootstrap4.select2-container--open .select2-selection--single {
    border-color: #d0a15a !important;
    box-shadow: 0 0 0 4px rgba(208, 161, 90, 0.15) !important;
    outline: none !important;
}

/* Dropdown above everything */
.select2-container--open .select2-dropdown {
    z-index: 99999 !important;
}

/* ITI inline dropdown z-index fix */
.iti__dropdown-content {
    z-index: 99999 !important;
}
.iti--inline-dropdown .iti__dropdown-content {
    z-index: 99999 !important;
}

/* Highlighted option */
.select2-container--bootstrap4 .select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted {
    background-color: #d0a15a !important;
}

/* Mobile: match smaller form-control */
@media (max-width: 575px) {
    .mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single {
        height: 40px !important;
        font-size: 14px !important;
    }
    .mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single .select2-selection__rendered {
        line-height: 40px !important;
        font-size: 14px !important;
        padding: 0 28px 0 12px !important;
    }
    .mrserver-crm-form-wrapper .select2-container--bootstrap4 .select2-selection--single .select2-selection__arrow {
        height: 40px !important;
    }
}
