/* IDP Checker Styles */
.idp-country-checker {
    padding: 30px;
    background: #f6f8ff;
    border-radius: 8px;
    margin: auto;
    padding-bottom: 10px;
}

.idp-header h4 {
    font-size: 17px;
    font-weight: 600;
}

.idp-country-checker label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

.idp-column {
    margin-bottom: 20px;
}

#idp-status-container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 10px;
}

.idp-country-checker .form-select {
    height: 58px;
}

.idp-country-checker .form-select {
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    font-size: 16px;
    height: 58px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.idp-country-checker .form-select:focus {
    border-color: #2451e5;
    box-shadow: 0 0 0 3px rgba(36, 81, 229, 0.1);
    outline: none;
}

.idp-country-checker .form-select.required:invalid {
    border-color: #dc2626;
}

.idp-country-checker .form-select.required:valid {
    border-color: #059669;
}

/* Validation state styles */
.idp-country-checker .form-select.is-valid {
    border-color: #059669;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23059669' d='m2.3 6.73.94-.94 2.89 2.89 2.89-2.89.94.94L6.12 9.62z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.idp-country-checker .form-select.is-invalid {
    border-color: #dc2626;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc2626'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 4.6 1.4 1.4M7.2 4.6l-1.4 1.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.select2-container .select2-selection--single .select2-selection__rendered {
    width: 100%;
    padding-right: 40px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] {
    background-color: #1E4CE8;
    color: #fff !important;
}

.select2-container .select2-dropdown, .select2-container .select2-selection {
    border-radius: 6px;
    border: 1px solid #D1D5DB;
    top: auto;
}


.select2-container .select2-dropdown .select2-results__option {
    font-size: 16px;
    color: #111827;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow: 0 0 0 .25rem rgba(13,110,253,.25);
}

.select2-container .select2-selection--single .select2-selection__arrow b {
    border: none;
    display: block;
    background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hldnJvbi1kb3duIj48cG9seWxpbmUgcG9pbnRzPSI2IDkgMTIgMTUgMTggOSI+PC9wb2x5bGluZT48L3N2Zz4=) no-repeat;
    background-size: 18px;
    width: 25px;
    height: 18px;
    position: absolute;
    top: 19px;
    left: auto;
    right: 6px;
    margin: 0;
}

.select2-container .select2-selection--single .select2-selection__rendered > span {
    padding: 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.select2-container--default .select2-selection--single {
    height: 58px; /* Match .form-select height (Bootstrap 5) */
    padding: 0.375rem 0.75rem;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.idp-status .alert {
    font-size: 13px;
    padding: 10px;
}

#idp-status-container {
    margin-bottom: 0;
}