.custom-form-success {
    display: none;
    text-align: center;
    padding: 3.5rem 1rem 4rem;
    min-height: 340px;
}

.custom-form-success .success-tip {
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 1.5rem;
}

.custom-form-success .success-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.custom-form-success .success-actions .btn-primary {
    background-color: #e7b000;
    border-color: #e7b000;
    color: #fff;
}

.custom-form-success .success-actions .btn-primary:hover,
.custom-form-success .success-actions .btn-primary:focus,
.custom-form-success .success-actions .btn-primary:active {
    background-color: #cf9b00;
    border-color: #cf9b00;
    color: #fff;
}

.custom-form-success .success-actions .btn-outline-primary {
    background-color: #001933;
    border-color: #001933;
    color: #fff;
}

.custom-form-success .success-actions .btn-outline-primary:hover,
.custom-form-success .success-actions .btn-outline-primary:focus,
.custom-form-success .success-actions .btn-outline-primary:active {
    background-color: #0b2a55;
    border-color: #0b2a55;
    color: #fff;
}

.mod-custom-form-json.is-success {
    min-height: 420px;
}

.mod-custom-form-json.is-success form {
    display: none;
}

.mod-custom-form-json.is-success .custom-form-success {
    display: block;
}

.mod-custom-form-json textarea[name="message"] {
    min-height: 100px;
    transform: translateY(-0.5rem);
}

/*form start*/
.mod-custom-form-json .was-validated .form-control:invalid {
    background-image: unset;
}

.mod-custom-form-json .was-validated .form-control:valid {
    border: 1px solid #ced4da;
    background: none;
}

.mod-custom-form-json .was-validated .form-select:invalid+.select2-container .select2-selection--single {
    border-color: #dc3545;
}

.mod-custom-form-json .was-validated .form-check-input:valid {
    border-color: var(--bs-border-color, #ced4da);
}

.mod-custom-form-json .was-validated .form-check-input:valid:checked {
    background-color: var(--bs-form-check-input-checked-bg, #0d6efd);
    border-color: var(--bs-form-check-input-checked-border-color, #0d6efd);
}

.mod-custom-form-json .was-validated .form-check-input:valid~.form-check-label {
    color: inherit;
}

form .error {
    color: red;
}

/*form end*/

/*select 2 custom start*/
.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 38px;
}

.select2-container .select2-selection--multiple {
    min-height: 38px;
}

.select2-container--default .select2-selection--single,
.select2-container .select2-selection--multiple {
    border: 1px solid #ced4da;

}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 38px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow,
.select2-container .select2-selection--multiple .select2-selection__arrow {
    height: 38px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    color: #000;
    padding: 5px 10px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    color: #000;
    padding: 5px 10px;
    border-bottom-color: #aaa;

}

/*select 2 custom end*/


.custom-form-choice-group .form-check-inline input[type="radio"] {
    display: block;
}

.custom-form-choice-group[data-choice-type="checkbox"],
.custom-form-choice-group[data-choice-type="radio"] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem 1rem;
}

.mod-custom-form-json .control-label-radio {
    display: block;
    font-weight: 500;
    padding-bottom: 0.5rem;
}

.custom-form-choice-group[data-choice-type="checkbox"] .form-check,
.custom-form-choice-group[data-choice-type="radio"] .form-check {
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .custom-form-choice-group[data-choice-type="checkbox"],
    .custom-form-choice-group[data-choice-type="radio"] {
        grid-template-columns: 1fr;
    }
}
