/* -- select2 --*/
[data-theme="dark"] .styled-form .form-group textarea,
[data-theme="dark"] .styled-form .form-group input[type="text"],
[data-theme="dark"] .styled-form .form-group input[type="number"],
[data-theme="dark"] .styled-form .form-group select,
[data-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field,
[data-theme="dark"] .select2-container--default .select2-selection--single,
[data-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered,
[data-theme="dark"] .select2-dropdown {
    background-color: rgba(0,0,0,.6);
    border-color: var(--primerycolorlight);
    color: #ddd;
}

[data-theme="dark"] .select2-container--default .select2-results__option--selected,
[data-theme="dark"] .select2-container--default .select2-search--dropdown .select2-search__field {
    border-color: #555;
    color: #ddd;
    background: #000;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 40px;
    height:100%;
}

.styled-form .form-group .select2-container--default .select2-selection--single {
    border: 1px solid #aaa;
    border-radius: 3px;
}

.styled-form .form-group .select2-container .select2-selection--single {
    height: 45px;
}

.styled-form .form-group .select2-container--default[dir="rtl"] .select2-selection--single .select2-selection__arrow {
    top: 9px;
}

.styled-form .form-group .select2-container--focus ~ label.form-label.float {
    top: 3px;
    transform: translateY(-100%) scale(.85);
    right: .2rem;
}

.styled-form .form-group .form-label.float {
    position: absolute;
    display: flex;
    align-items: center;
    top: 12.5px;
    left: 1.5rem;
    transform-origin: 0 0;
    transition: all 0.1s ease-in-out;
    pointer-events: none;
    color: #666;
    margin: 0;
}

[data-theme="dark"] .styled-form .form-group .form-label.float {
    color: #aaa;
}

body.rtl-dir .styled-form .form-group .form-label.float {
    left: auto;
    right: 1.5rem;
}

.styled-form .dynamic-box .form-group{
    margin-bottom:7px;
}

.styled-form .form-group input.form-control:is(:focus, :not(:placeholder-shown)) ~ label.form-label.float,
.styled-form .form-group select.form-select.has-value ~ label.form-label.float {
    top: 3px;
    transform: translateY(-100%) scale(.85);
    right: .2rem;
}

/* -- uploader --*/
.file-upload-box {
    position: relative;
    width: 100%
}

.file-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none
}

.file-upload-label {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 100px;
    padding: 16px 18px;
    border: 1px dashed #cfd5da;
    border-radius: 12px;
    background: #fafbfc;
    cursor: pointer;
    transition: all .25s ease;
    gap: 14px
}

    .file-upload-label:hover {
        border-color: #0d6efd;
        background: #f7faff;
        box-shadow: 0 5px 20px rgba(13,110,253,.08)
    }

.file-upload-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
    background: #eef4ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    transition: all .25s ease
}

.file-upload-label:hover .file-upload-icon {
    background: #0d6efd;
    color: #fff
}

.file-upload-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    line-height: 1.6
}

.file-upload-title {
    font-size: 15px;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 2px
}

.file-upload-hint {
    font-size: 12px;
    color: #8a929a
}

.file-upload-name {
    font-size: 12px;
    color: #0d6efd;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.file-upload-action {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 1px solid #dee2e6;
    border-radius: 9px;
    background: #fff;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease
}

.file-upload-label:hover .file-upload-action {
    border-color: #0d6efd;
    color: #0d6efd
}

.file-upload-input:focus + .file-upload-label {
    border-color: #0d6efd;
    box-shadow: 0 0 0 .2rem rgba(13,110,253,.1)
}

.file-upload-box.has-file .file-upload-label {
    border-style: solid;
    border-color: #198754;
    background: #f8fffa
}

.file-upload-box.has-file .file-upload-icon {
    background: #e8f7ee;
    color: #198754
}

.file-upload-box.has-file .file-upload-name {
    color: #198754
}

/* -- STEP CONTENT --*/

.step-item {
    display: none;
}

    .step-item.active {
        display: block;
        animation: FadeIn .35s ease;
    }

@keyframes FadeIn {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -- STEP INDICATOR --*/

.step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 50px;
    gap: 10px;
    flex-wrap: wrap;
}

.step-indicator {
    position: relative;
    display: flex;
    justify-content: space-between;
}

    .step-indicator::before {
        content: '';
        position: absolute;
        top: 24px;
        right: 0;
        left: 0;
        height: 3px;
        background: var(--bgcolorlight);
        z-index: 0;
    }

    .step-indicator::after {
        content: '';
        position: absolute;
        top: 24px;
        right: 0;
        height: 3px;
        width: var(--progress, 0%);
        background: #8BC53F;
        z-index: 1;
        transition: width .3s ease;
    }

.step {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    z-index: 2;
    flex: 1 auto;
}

    .step.active::before {
        content: '';
        position: absolute;
        top: 24px;
        right: 0;
        left: 0;
        height: 3px;
        background: var(--seconderycolor);
        z-index: 2;
    }

    .step .number {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: var(--bgcolorlight);
        color: var(--textcolorlight);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.35em;
        font-weight: bold;
        transition: .3s;
        z-index: 4;
    }

    .step .title {
        margin-top: 10px;
        font-size: 13px;
        color: var(--textcolor);
        text-align: center;
        transition: .3s;
    }

    /* Active */

    .step.active .number {
        background: var(--seconderycolor);
        color: #fff;
    }

    .step.active .title {
        color: var(--seconderycolor);
        font-weight: 700;
    }

    /* Done */

    .step.done .number {
        background: #8BC34A;
        color: #fff;
    }

    .step.done .title {
        color: #8BC34A;
        font-weight: 600;
    }

/* -- CARD --*/

.card {
    border: none;
    background: var(--bgcolor);
    border-radius: var(--brediusbig);
}

/* -- FORM BOX --*/


.styled-form .form-box {
    background: #fff;
    border: solid 1px #ccc;
    border-radius: .75em;
}

[data-theme="dark"] .styled-form .form-box {
    background: #222;
    border: solid 1px #666;
}

.styled-form .form-box .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* -- FORM Btn --*/
.styled-form .btn.form-btn {
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s ease;
}

    .styled-form .btn.form-btn.btn-secondary {
        min-width: 90px;
        background: #f1f3f5;
        border: 1px solid #e1e4e7;
        color: #666;
    }

        .styled-form .btn.form-btn.btn-secondary:hover {
            background: #e7e9eb;
            color: #333;
        }

/* -- DYNAMIC LIST --*/

.dynamic-box {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

    .dynamic-box .dynamic-item {
        position: relative;
        background: #fff;
    }

/* -- MOBILE --*/

@media(max-width:768px) {

    .step {
        min-width: 70px;
    }

        .step .number {
            width: 40px;
            height: 40px;
            font-size: 14px;
        }

        .step .title {
            font-size: 11px;
        }

    .step-indicator::before {
        top: 20px;
    }
}
