

/* Start:/local/components/itb/form.tax/templates/.default/style.css?177510980013159*/
/* Блок секции */
.tax-deduction {
    padding: 0 0 120px 0;
    font-family: "Geologica", sans-serif;
}

.tax-deduction__title {
    font-family: NeverMind;
    font-weight: 700;
    font-size: 36px;
    color: #054C96;
    margin: 60px 0 44px;
}

.tax-deduction__description {
    font-weight: 300;
    font-size: 22px;
    margin-bottom: 120px;
}

.tax-deduction__form-title{
    text-align: center;
    margin-bottom: 44px;
    font-family: "Geologica", sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    text-transform: uppercase;
    color: #FF4B04;
}

/* Форма */
.tax-form {
    width: 100%;
    max-width: 998px;
    margin: 0 auto;
}

.tax-form__inner {
    width: 100%;
    max-width: 715px;
    margin: 0 auto;
}

.tax-form__grid {
    display: flex;
    gap: 20px;
}

.tax-form__grid--2col {
    gap: 60px;
}

.tax-form__radio-group {
    display: flex;
    gap: 40px;
    justify-content: center;
    align-items: center;
}

.tax-form__delivery-options.tax-form__radio-group{
    flex-direction: column;
    justify-content: initial;
    align-items: initial;
    gap: 24px;
}

/* Поля ввода (form-field) */
.form-field {
    width: 100%;
    margin-bottom: 44px;
    display: flex;
    flex-direction: column;
}

.form-field__label {
    font-weight: 500;
    font-size: 22px;
    margin-bottom: 22px;
    display: block;
    font-family: "Geologica", sans-serif;
    text-align: center;
}

.form-field__label--center {
    text-align: center;
}

.form-field__input,
.form-field__select {
    display: block;
    width: 100%;
    height: 51px;
    border-radius: 10px;
    border: 1px solid rgba(1, 58, 115, 0.5);
    padding: 0 18px;
    font-size: 22px;
    font-weight: 300;
    transition: .5s;
}

.form-field.hasError .form-field__input {
    border-color: #FF070B80;
    box-shadow: 0 0 0 1px #FF070B80;
}

/* Кастомные радио и чекбоксы */
.custom-radio, .custom-checkbox {
    cursor: pointer;
    font-size: 22px;
    font-weight: 300;
}

.custom-checkbox__label.custom-checkbox__label--top {
    align-items: flex-start;
    font-size: 20px;
    font-weight: 300;
    color: #858484;
}

.custom-checkbox__label.custom-checkbox__label--top i{
    margin-top: 5px;
}

.custom-radio__input, .custom-checkbox__input {
    display: none;
}

.custom-radio__label, .custom-checkbox__label {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Кружочек радио */
.custom-radio__label i {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #013A7380;
    position: relative;
}

.custom-radio__label i:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: #054c96;
    border-radius: 50%;
    margin-top: -3px;
    margin-left: -3px;
    scale: 0.6;
    opacity: 0;
    transition: .3s;
}

.custom-radio__input:checked + .custom-radio__label i:after {
    opacity: 1;
}

/* Кнопки */
.tax-form__add-btn,
.tax-form__submit-btn {
    display: table;
    margin: 44px auto;
    padding: 17px 75px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 20px;
    cursor: pointer;
    border: none;
    transition: .5s;
}

.tax-form__add-btn {
    background: #2BACEF;
    color: #fff;
}

.tax-form__submit-btn {
    background: #FF4B04;
    color: #fff;
}

/* Карточка пациента */
.patient-card {
    margin-top: 44px;
}

.patient-card__content {
    padding: 28px 142px;
    border-radius: 42px;
    background: #EFEFEF;
    position: relative;
}

.custom-checkbox .custom-checkbox__label i {
    flex-shrink: 0;
    display: block;
    width: 21px;
    height: 21px;
    border-radius: 5px;
    border: 1px solid #013A7380;
    position: relative;
    transition: .5s;
}

.custom-checkbox .custom-checkbox__label i:after {
    content: '✓';
    display: block;
    border-radius: 100%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: .5s;
    opacity: 0;
}

.custom-checkbox input:checked + .custom-checkbox__label i:after {
    opacity: 1;
}

.field-error-message {
    text-align: center;
    font-size: 12px;
    line-height: 1;
    color: #FF070B80;
    margin-top: 5px;
}

.delete-patient {
    font-size: 18px;
    cursor: pointer;
    color: #02a3e9;
    border: none;
    text-decoration: underline;
    outline: none;
    background-color: transparent;
    position: absolute !important;
    right: 42px;
    top: 28px;
    z-index: 1;
}

.tax-form__sub-input {
    margin-top: 8px;
    margin-left: 30px;
}

.tax-form__grid.tax-form__grid--pass{
    gap: 10px;
}

.form-field.form-field--pass-date {
    flex: 0 0 36%;
}

.form-field.form-field--pass-number {
    flex: 0 0 36%;
}

.form-field.form-field--pass-series {
    flex-grow: 1;
}

/* Кастомный селект */
.custom-select {
    position: relative;
}

.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    height: 51px;
    border-radius: 10px;
    border: 1px solid rgba(1, 58, 115, 0.5);
    padding: 0 18px;
    font-size: 22px;
    font-weight: 300;
    font-family: "Geologica", sans-serif;
    cursor: pointer;
    background: #fff;
    transition: .3s;
    box-sizing: border-box;
}

.custom-select__trigger:hover {
    border-color: rgba(1, 58, 115, 0.8);
}

.custom-select__trigger.open {
    border-color: #054C96;
    border-radius: 10px 10px 0 0;
}

.custom-select__text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.custom-select__arrow {
    flex-shrink: 0;
    color: rgba(1, 58, 115, 0.6);
    transition: transform .3s;
}

.custom-select__trigger.open .custom-select__arrow {
    transform: rotate(180deg);
}

.custom-select__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid #054C96;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: #fff;
    z-index: 100;
}

.custom-select__dropdown.open {
    display: block;
}

.custom-select__option {
    padding: 12px 18px;
    font-size: 18px;
    font-weight: 300;
    font-family: "Geologica", sans-serif;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .2s;
}

.custom-select__option:hover {
    background: #f0f5fb;
}

.custom-select__option--selected {
    background: #e6f0fa;
    color: #054C96;
    font-weight: 500;
}

.form-field.hasError .custom-select__trigger {
    border-color: #FF070B80;
    box-shadow: 0 0 0 1px #FF070B80;
}

.tax-form__delivery-item .tooltip{
    display: flex;
    align-items: center;
    gap: 10px;
    width: 21px;
    height: 21px;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0nMjEnIGhlaWdodD0nMjInIHZpZXdCb3g9JzAgMCAyMSAyMicgZmlsbD0nbm9uZScgeG1sbnM9J2h0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnJz48Y2lyY2xlIGN4PScxMC41JyBjeT0nMTEnIHI9JzEwLjUnIGZpbGw9JyNEOUQ5RDknLz48cGF0aCBkPSdNOS4xMzg3NSAxNi41VjguNzc1SDExLjg2ODhWMTYuNUg5LjEzODc1Wk0xMC41MDM4IDcuNzAyNUMxMC4wNzM4IDcuNzAyNSA5LjY5ODc1IDcuNTcyNSA5LjM3ODc1IDcuMzEyNUM5LjA2Mzc1IDcuMDQ3NSA4LjkwNjI1IDYuNjg1IDguOTA2MjUgNi4yMjVDOC45MDYyNSA1Ljc3IDkuMDYzNzUgNS40MSA5LjM3ODc1IDUuMTQ1QzkuNjk4NzUgNC44OCAxMC4wNzM4IDQuNzQ3NSAxMC41MDM4IDQuNzQ3NUMxMC45MzM4IDQuNzQ3NSAxMS4zMDYzIDQuODggMTEuNjIxMyA1LjE0NUMxMS45NDEzIDUuNDEgMTIuMTAxMyA1Ljc3IDEyLjEwMTMgNi4yMjVDMTIuMTAxMyA2LjY4NSAxMS45NDEzIDcuMDQ3NSAxMS42MjEzIDcuMzEyNUMxMS4zMDYzIDcuNTcyNSAxMC45MzM4IDcuNzAyNSAxMC41MDM4IDcuNzAyNVonIGZpbGw9J3doaXRlJy8+PC9zdmc+Cg==);
    position: relative;
}

.tax-form__delivery-item .tooltip:after{
    content: attr(data-text);
    display: block;
    width: 220px;
    box-sizing: border-box;
    padding: 7px 17px;
    box-shadow: 0px 4px 4px 0px #00000040;
    color: #7D7D7D;
    font-size: 16px;
    background: #fff;
    border-radius: 10px;
    z-index: 10;
    position: absolute;
    left: 100%;
    bottom: 10px;
    margin-left: 4px;
    opacity: 0;
    visibility: hidden;
    transition: .5s;
}

.tax-form__delivery-item .tooltip:hover:after {
    opacity: 1;
    visibility: visible;
}

.tooltip-row{
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Адаптив */
@media (max-width: 1024px) {
    .tax-form__grid {
        flex-direction: column;
        gap: 0;
    }

    .patient-card__content {
        padding: 28px 20px;
        background: #eee;
    }

    .form-field__label, .form-field__input {
        font-size: 16px;
    }

    .form-field__label {
        margin-bottom: 14px;
    }

    .form-field{
        margin-bottom: 28px;
    }

    .tax-deduction__form-title{
        font-size: 18px;
        margin-bottom: 28px;
    }

    .tax-form__radio-group.selectForWho{
        justify-content: space-between;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 30px;
    }

    .custom-radio__label, .custom-checkbox__label {
        font-size: 14px;
    }

    .form-field__input, .form-field__select{
        font-size: 14px;
    }

    .tax-form__add-btn, .tax-form__submit-btn{
        font-size: 16px;
    }

    .custom-checkbox__label.custom-checkbox__label--top{
        font-size: 14px;
    }

    .custom-checkbox__label.custom-checkbox__label--top i {
        margin-top: 0;
    }

    .tax-form__inner p{
        font-size: 14px;
    }

    .tax-deduction__note p{
        font-size: 14px;
    }

    .tax-deduction__title{
        font-size: 26px;
        margin-bottom: 45px;
    }

    .tax-deduction__description {
        font-size: 16px;
        margin-bottom: 80px;
    }

    .form-field.form-field--pass-date {
        flex: 0 0 100%;
    }

    .tax-form__grid.tax-form__grid--pass{
        flex-direction: row;
        flex-wrap: wrap;
    }

    .form-field.form-field--pass-series{
        flex: 0 0 41%;
        margin-bottom: 0;
    }


    .form-field.form-field--pass-number {
        flex: 0 0 calc(100% - 41% - 10px);
        margin-bottom: 0;
    }

    .custom-select__text{
        font-size: 14px;
    }

    .custom-select__option{
        font-size: 14px;
    }

}

@media (max-width: 767px) {

    .patient_year{
        flex-wrap: wrap;
        flex-direction: row;
        padding: 0 30px;
        justify-content: space-between;
        gap: 10px;
        align-items: flex-start;
    }

    .patient_year .custom-checkbox{
        width: calc(50% - 5px);
        display: flex;
        justify-content: center;
    }

    .patient-card__content {
        margin-left: -18px;
        margin-right: -18px;
    }

}

/* ─── Модальное окно успешной отправки ───────────────────────────────────── */
.tax-success-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .3s ease;
}

.tax-success-modal--visible {
    opacity: 1;
}

.tax-success-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 76, 150, 0.45);
    backdrop-filter: blur(4px);
}

.tax-success-modal__wrap {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 28px;
    padding: 52px 48px 44px;
    max-width: 715px;
    width: calc(100% - 40px);
    text-align: center;
    box-shadow: 0 24px 80px rgba(5, 76, 150, 0.18);
    transform: translateY(24px);
    transition: transform .3s ease;
}

.tax-success-modal--visible .tax-success-modal__wrap {
    transform: translateY(0);
}

.tax-success-modal__close {
    position: absolute;
    top: 18px;
    right: 22px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #b0b8c9;
    cursor: pointer;
    transition: color .2s;
    padding: 0;
}

.tax-success-modal__close:hover {
    color: #054C96;
}

.tax-success-modal__icon {
    margin-bottom: 24px;
}

.tax-success-modal__title {
    font-family: "Geologica", sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #054C96;
    margin-bottom: 16px;
}

.tax-success-modal__text {
    font-family: "Geologica", sans-serif;
    font-weight: 300;
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 36px;
}

.tax-success-modal__btn {
    display: inline-block;
    padding: 14px 60px;
    background: #FF4B04;
    color: #fff;
    font-family: "Geologica", sans-serif;
    font-weight: 700;
    font-size: 18px;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: background .3s, transform .2s;
}

.tax-success-modal__btn:hover {
    background: #e04000;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .tax-success-modal__wrap {
        padding: 40px 24px 32px;
        border-radius: 20px;
    }

    .tax-success-modal__title {
        font-size: 22px;
    }

    .tax-success-modal__text {
        font-size: 15px;
    }
}
/* End */
/* /local/components/itb/form.tax/templates/.default/style.css?177510980013159 */
