.btn-disabled {
    background: var(--accent50);
    border: 1px solid var(--stroke50);
    cursor: not-allowed;
    pointer-events: none;
}
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.invalid {
    border: 1px solid var(--red) !important;
}
.error {
    color: var(--red);
}



.custom-selector {
    position: relative;
    width: 100%;

    font: bold 18px / 1.3 var(--font-title);
    font-variant-numeric: lining-nums;
    height: 43px;

    text-align: inherit;
    -webkit-appearance: none;
    border: none;
    background: var(--white);
    color: var(--input-text);
    box-shadow: none;
    border-radius: var(--radius);
    display: block;
    margin: 0;
    outline: none;
}

.custom-selector:after {
    content: '';
    pointer-events: none;
    position: absolute;
    top: 50%;
    right: 20px;
    background: url(../img/select.svg) no-repeat 50% 50%;
    width: 26px;
    height: 13px;
    background-size: contain;
    transform: translate3d(0, -50%, 0);

    background-image: url("data:image/svg+xml,%3Csvg width='20' height='11' viewBox='0 0 20 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 1.5L10 9.5L18 1.5' stroke='%235B0C0F' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
    width: 20px;
    height: 11px;
}

.selector-display {
    padding: 10px;
    border: none;
    width: 100%;
    height: 100%;
    border-radius: 4px;
    cursor: pointer;
    background-color: var(--white);
}

.selector-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    border: 1px solid var(--accent);
    border-radius: 4px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: -2px;
    background: #fff;
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
}

.type-group {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.group-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--input-text);
    padding: 0 10px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--form-text);
    font: normal 18px/1.2 var(--font);
}

.radio-group input[type="radio"]{
    display: none;
}

.radio-group label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 15px;
}

.radio-group label:hover {
    color: var(--accent);
}

.radio-group input[type="radio"] {
    margin-right: 8px;
}

.radio-group input[type="radio"]:checked + label {
    background-color: var(--input-bg);
}
