.registration-dynamic.d-none,
.corporation-field.d-none,
.individual-field.d-none {
    display: none !important;
}

/*.form-label {
    display: inline-block;
    margin-bottom: .5rem;
    font-weight: 600;
    color: #212529;
}

.form-label.label-error {
    color: #b42318;
}
*/

.required-star {
    color: #dc3545;
    margin-left: .25rem;
    font-weight: 700;
}

.no-required.required::after {
    display: none !important;
}

.form-control,
.form-select {
    min-height: 52px;
    padding: .75rem 1rem;
    border: 1px solid #d9dee7;
    border-radius: 999px;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

textarea.form-control {
    min-height: 120px;
    border-radius: 1rem;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 .2rem rgba(99, 102, 241, .12);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background-image: none;
    box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .08);
}

.form-error {
    margin-top: .5rem;
    padding: .65rem .85rem;
    border: 1px solid #f1b0b7;
    border-radius: .85rem;
    background: #fff5f5;
    color: #b42318;
    font-size: .875rem;
    line-height: 1.35;
}

.form-help {
    margin-top: .45rem;
    font-size: .82rem;
    color: #6c757d;
}


.registration-file input[type="file"] {
    min-height: auto;
    padding: .75rem 1rem;
    border-radius: 1rem;
}

.checkbox-card-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
}

.checkbox-card-item {
    position: relative;
}

.checkbox-card-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.checkbox-card-item label {
    display: block;
    margin: 0;
    padding: .95rem 1rem;
    border: 1px solid #d9dee7;
    border-radius: 1rem;
    background: #fff;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all .15s ease;
    height: 100%;
}

.custom-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #d9dee7;
    transition: .4s;
    border-radius: 34px;
}

.custom-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.custom-switch input:checked + .custom-slider {
    background-color: #6366f1;
}

.custom-switch input:checked + .custom-slider:before {
    transform: translateX(24px);
}

.custom-switch input:focus + .custom-slider {
    box-shadow: 0 0 0 .2rem rgba(99, 102, 241, .12);
}

.checkbox-card-item input[type="checkbox"]:focus + label {
    border-color: #6366f1;
    box-shadow: 0 0 0 .2rem rgba(99, 102, 241, .12);
}

.checkbox-card-item input[type="checkbox"]:checked + label {
    border-color: #6366f1;
    background: rgba(99, 102, 241, .08);
    color: #4338ca;
    box-shadow: 0 0 0 .15rem rgba(99, 102, 241, .10);
}

.checkbox-card-group.is-invalid {
    padding: .75rem;
    border: 1px solid #f1b0b7;
    border-radius: 1rem;
    background: #fff8f8;
}

.registration-dynamic[data-required-visible="1"] > .form-label::after {
    content: " *";
    color: #dc3545;
    font-weight: 700;
    margin-left: .15rem;
}


@media (max-width: 991.98px) {
    .checkbox-card-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .checkbox-card-group {
        grid-template-columns: 1fr;
    }
}

label.required:not(.no-required)::after {
    content: " *";
    color: red;
}

.registration-consents label.required::after,
.registration-consents .required::after {
    content: none !important;
    display: none !important;
}