﻿label {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    color: var(--secondary-text-color);
}

    label sup {
        color: var(--rozovyy);
        font-size: inherit;
        line-height: inherit;
        top: auto;
    }

    label a {
        color: inherit;
        text-decoration: underline;
    }


@media (min-width: 768px) {
    label {
        margin-bottom: 20px;
    }
}


.form-text {
    font-size: 12px;
    line-height: 15px;
}

    .form-text ul {
        padding-left: 20px;
    }

.row > .form-text {
    margin-left: 10px;
    margin-right: 10px;
}

.form {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 14px;
}

    #content .form h1 {
        margin-bottom: 10px;
    }

.form p {
    font-size: 16px;
    line-height: 19px;
}

    .form p.smaller {
        font-size: 14px;
        line-height: 16px;
    }

.form-group {
    position: relative;
    margin-bottom: 10px;
}

.form-group .form-text,
.form-group .error-text {
    display: block;
    font-size: 12px;
    font-weight: normal;
    line-height: 11px;
    margin-top: 8px;
}

.form-group .error-text,
.form-group.has-error .form-text {
    display: none;
}

.has-error .error-text {
    color: #F76034;
    display: block;
}


.label-group {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 7px;
    font-size: 12px;
    line-height: 15px;
}

    .label-group label {
        margin-right: auto;
        margin-bottom: 0;
    }

    label .icon,
    .label-group .icon {
        color: #867979;
    }

    .label-group span,
    .label-group a {
        font-weight: 300;
    }


.form-control {
    display: block;
    width: 100%;
    height: 56px;
    padding: 27px 20px 10px;
    font-weight: 500;
    font-size: 16px;
    color: var(--main-text-color);
    background-color: var(--input-bg-color);
    border: 1px solid var(--input-bg-color);
    border-radius: var(--input-border-radius);
}

.form-select {
    --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%236E79A7' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    display: block;
    width: 100%;
    height: 56px;
    padding: 27px 20px 10px;
    font-weight: 500;
    font-size: 16px;
    color: var(--main-text-color);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: var(--input-bg-color);
    background-image: var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon,none);
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 16px 12px;
    border: 1px solid var(--input-bg-color);
    border-radius: var(--input-border-radius);
}

    .form-select > option {
        padding: 4px 20px;
    }


.floating-label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    max-width: 100%;
    height: 100%;
    padding: 17.3px 20px;
    overflow: hidden;
    text-align: start;
    text-overflow: ellipsis;
    white-space: normal;
    pointer-events: none;
    margin-bottom: 0;
    transition: opacity .1s ease-in-out,transform .1s ease-in-out;
    transform-origin: 0 0;
    max-height: 56px;
}

.form-select ~ .floating-label,
.form-control:focus ~ .floating-label,
.form-control:not(:placeholder-shown) ~ .floating-label {
    transform: scale(.75) translateY(-4px) translateX(8px);
    font-weight: normal;
    white-space: nowrap;
    max-width: 125%;
}

.form-control:-webkit-autofill ~ .form-floating {
    transform: scale(.75) translateY(-4px) translateX(8px);
    font-weight: normal;
    white-space: nowrap;
    max-width: 125%;
}


select.form-control {
    padding: 7px 6px;
}

.form-control::-webkit-input-placeholder { /* Chrome/Opera/Safari */
    color: transparent;
}

.form-control::-moz-placeholder { /* Firefox 19+ */
    color: transparent;
}

.form-control:-ms-input-placeholder { /* IE 10+ */
    color: transparent;
}

.form-control:-moz-placeholder { /* Firefox 18- */
    color: transparent;
}

.form-select:focus,
.form-control:focus {
    outline: 0;
    border-color: var(--siniy);
}

.form-select:hover ~ .floating-label,
.form-control:hover ~ .floating-label {
    color: var(--main-text-color);
}


input[type="number"] {
    -moz-appearance: textfield;
}

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.has-error .form-control,
.has-error .form-select {
    border-color: var(--krasnyy);
}

textarea.form-control {
    height: auto;
    resize: none;
}


.input-group {
    display: flex;
}

    .input-group .form-control {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
        border-right: none;
    }




.btn {
    display: block;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 130%;
    color: #fff;
    width: 100%;
    border-radius: 50px;
    padding: 24.5px 36px;
    background: var(--siniy);
    color: #fff;
    text-align: center;
}

    .btn:hover {
        background: var(--rozovyy);
    }

    .btn.disabled {
        background: #a1aad0;
        pointer-events: none;
    }

.custom-control {
    position: relative;
    display: block;
    min-height: 18px;
    padding-left: 32px;
}

.custom-control-inline {
    display: -ms-inline-flexbox;
    display: inline-flex;
    margin-right: 1em;
}

.custom-control-input {
    position: absolute;
    left: 0;
    z-index: -1;
    width: 20px;
    height: 20px;
    opacity: 0;
}

    .custom-control-input:focus ~ .custom-control-label::before {
        box-shadow: none;
        border-color: #979dc0;
    }

    .custom-control-input:not(:disabled):active ~ .custom-control-label::before {
        box-shadow: none;
        border-color: #979dc0;
    }

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    margin-bottom: 0;
    cursor: pointer;
    color: var(--secondary-text-color);
}

    .custom-control-label::before {
        position: absolute;
        top: -3px;
        left: -32px;
        display: block;
        width: 22px;
        height: 22px;
        pointer-events: none;
        content: "";
        background-color: #fff;
        border: 2px solid #e4e8ff;
    }

    .custom-control-label::after {
        position: absolute;
        top: -3px;
        left: -32px;
        display: block;
        width: 22px;
        height: 22px;
        content: "";
        background: no-repeat 50% / 50% 50%;
    }

    .custom-control-label:hover::before {
        border-color: #979dc0;
    }

.custom-checkbox .custom-control-label::before {
    border-radius: 6px;
}

.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
    background-image: url('data:image/svg+xml,<svg width="8" height="6" viewBox="0 0 8 6" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 2.6L3.25 5L7 1" stroke="%23FF428F" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /></svg>');
}

.has-error .custom-control-label,
.has-error .custom-control-label a {
    color: #F76034;
}

    .has-error .custom-control-label::before {
        border-color: #F76034;
    }



.alert {
    font-size: 14px;
    line-height: 16px;
    font-weight: 600;
    color: #F76034;
    margin-top: 14px;
}


.datepicker table tr td {
    color: var(--main-text-color);
}

    .datepicker table tr td.highlighted {
        font-weight: bold;
        background-color: var(--rozovyy);
    }

.datepicker table tr td.active.active {
    background-color: var(--siniy);
}

.datepicker table tr td.disabled, .datepicker table tr td.disabled:hover {
    color: #dadada;
}


.type-selector {
    display: flex;
    align-items: flex-start;
    justify-content: stretch;
    flex-direction: row;
    gap: 2px;
    border-radius: 50px;
    padding: 4px;
    background: #e4e8ff;
    flex-wrap: nowrap;
}

    .type-selector a {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: row;
        gap: 10px;
        border-radius: 30px;
        padding: 10px 20px;
        font-weight: 500;
        font-size: 16px;
        color: var(--secondary-text-color)!important;
        flex-grow: 1;
        flex-basis: 50%;
    }

        .type-selector a:hover {
            background: #f1f3ff;
        }

        .type-selector a.active {
            background: #fff;
            color: var(--main-text-color)!important;
        }


.form .participation-type1,
.form .participation-type2 {
    display: none;
}

.participation-type1 .participation-type1,
.participation-type2 .participation-type2 {
    display: block;
}

.participation-type1 .row.participation-type1,
.participation-type2 .row.participation-type2 {
    display: flex;
}


.add-member {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    -ms-flex-align: center;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    font-size: 16px;
    color: var(--siniy);
    margin-top: 10px;
}

    .add-member::after {
        content: '';
        display: block;
        width: 20px;
        height: 20px;
        background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="20" height="20" rx="10" fill="%234455A1" /><rect x="9" y="5" width="2" height="10" rx="1" fill="white" /><rect x="5" y="11" width="2" height="10" rx="1" transform="rotate(-90 5 11)" fill="white" /></svg>');
    }


.member-title {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    -ms-flex-align: center;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 11px;
    margin-top: 10px;
}

.member-title label {
    margin-bottom: 0;
}

    .member-title a.remove-member {
        color: var(--secondary-text-color);
        text-decoration: underline;
        font-weight: 500;
    }

.member-template a.remove-member {
    display: none!important;
}