/* Общие стили для форм займов */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Обертка для размещения калькулятора слева и формы справа */
.loanFormWrapper {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 41px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Левая сторона - калькулятор */
.loanFormLeftSide {
    flex: 0 0 auto;
    width: 236px;
}

/* Правая сторона - форма */
.loanFormRightSide {
    flex: 1 1 auto;
    min-width: 300px;
    max-width: 800px;
}

/* Основные стили */
.loan-form {
    display: block;
    width: 100%;
}

.loan-form-h2 {
    margin: 0;
    font-size: 36px;
    line-height: 42px;
    font-weight: 300;
    font-family: Roboto, sans-serif;
    color: #404040;
    margin-bottom: 26px;
}

/* Калькулятор в виде карточки */
.loanCalculatorCard {
    background-color: #E6F1FA;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Заголовок калькулятора */
.calculator-header {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 141, 210, 0.2);
    padding-bottom: 10px;
}

/* Сетка информации */
.calculator-info-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

/* Строка с информацией */
.calculator-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

.calculator-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

/* Строка с итоговой суммой */
.calculator-row-total {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    padding: 12px 15px;
    margin-top: 10px;
    border: 1px solid rgba(0, 141, 210, 0.3);
}

/* Метки */
.calculator-label {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #404040;
    line-height: 1.4;
    font-weight: 400;
}

.calculator-label-total {
    font-weight: 500;
    color: #008DD2;
}

/* Значения */
.calculator-value {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #008DD2;
    font-weight: 500;
    text-align: right;
    line-height: 1.4;
}

.calculator-value-total {
    font-size: 18px;
    font-weight: 600;
    color: #FF4533;
}

/* Футер калькулятора */
.calculator-footer {

}

/* Ссылка "Изменить" */
.calculator-edit-link {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #008DD2;
    text-decoration: none;
    font-weight: bold;
}

.calculator-edit-link:hover {
    color: #008DD2;
    text-decoration: none;
}

/* Правая колонка формы */
.loanColumnRight {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
    padding: 13px 35px 44px 39px;
    border-radius: 8px;
    margin-bottom: 41px;
    background: white;
    width: 100%;
}

/* Стили для скрытия неактивных шагов */
.hr-steps__tab {
    display: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hr-steps__tab.active {
    display: block;
    opacity: 1;
    pointer-events: all;
}

/* Элементы формы */
.loan-form-labelName {
    margin: 0 0 25px;
    display: block;
}

.loan-form-labelTitle {
    margin: 0 0 10px;
    font-weight: 500;
    font-size: 14px;
    line-height: 109%;
    font-family: Roboto, sans-serif;
    color: #404040;
}

.loan-form-input {
    width: 100%;
    background-color: #E6F1FA;
    border: 1px solid #C3E4FF;
    border-radius: 8px;
    height: 49px;
    padding: 0 17px;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #404040;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.loan-form-input:focus {
    outline: none;
    border-color: #008DD2;
    box-shadow: 0 0 0 2px rgba(0, 141, 210, 0.1);
}

.loan-form-select {
    width: 100%;
    background-color: #E6F1FA;
    border: 1px solid #C3E4FF;
    border-radius: 8px;
    height: 49px;
    padding: 0 17px;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #404040;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Кнопки */
.button-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 35px;
}

.loanFormButton {
    background-color: #FF4533;
    border-radius: 30px;
    color: #fff;
    padding: 17px 50px;
    border: none;
    cursor: pointer;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
}

.loanFormButton:hover {
    background-color: #ff3622;
}

.loanFormButton.second {
    background: #fff;
    border: 1px solid #FF4533;
    color: #FF4533;
}

.loanFormButton:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Ползунки калькулятора */
.formAbove {
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
    padding: 20px 35px 20px 39px;
    border-radius: 8px;
    margin-bottom: 41px;
    background: white;
}

input#loanAmountSlider,
input#loanTermSlider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #E6F1FA;
    border-radius: 3px;
    outline: none;
}

input#loanAmountSlider::-webkit-slider-thumb,
input#loanTermSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #008DD2;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.formAboveLabel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

span#loanAmountDisplay,
span#loanTermDisplay {
    font-size: 24px;
    color: #404040;
    font-family: Roboto, sans-serif;
    font-weight: bold;
}

.formGroupLeftLine {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    margin-top: 5px;
}

.loanFormGroupText {
    margin: 0;
    font-size: 12px;
    font-family: Roboto, sans-serif;
    color: #9C9C9C;
}

/* Радио кнопки и чекбоксы */
.radio-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.custom-radio {
    display: none;
}

.custom-radio+label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 18px;
    line-height: 109%;
    color: #404040;
    font-family: Roboto, sans-serif;
    font-weight: 300;
    margin-bottom: 25px;
    margin-right: 10px;
}

.custom-radio+label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background-color: #E6F1FA;
    border: 1px solid #C3E4FF;
    border-radius: 50%;
}

.custom-radio:checked+label:before {
    background-color: #008DD2;
    border-color: #008DD2;
}

.custom-radio:checked+label:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: white;
    border-radius: 50%;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.custom-checkbox {
    display: none;
}

.custom-checkbox+label {
    position: relative;
    padding-left: 30px;
    cursor: pointer;
    font-size: 14px;
    line-height: 109%;
    color: #404040;
    font-family: Roboto, sans-serif;
    margin-top: 10px;
}

.custom-checkbox+label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px;
    height: 20px;
    background-color: #E6F1FA;
    border: 1px solid #C3E4FF;
    border-radius: 4px;
}

.custom-checkbox:checked+label:before {
    background-color: #008DD2;
    border-color: #008DD2;
}

.custom-checkbox:checked+label:after {
    content: '';
    position: absolute;
    left: 4px;
    top: 6px;
    transform: rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
}

/* Модальные окна */
.phone-verification-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.phone-verification-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

/* Кнопка закрытия модального окна */
.phone-verification-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.phone-verification-close:hover {
    color: #FF4533;
    background-color: #f0f0f0;
}

.phone-verification-title {
    font-size: 24px;
    font-family: Roboto, sans-serif;
    color: #404040;
    margin-bottom: 20px;
    font-weight: bold;
}

.phone-verification-code-input {
    width: 100%;
    background-color: #E6F1FA;
    border: 1px solid #C3E4FF;
    border-radius: 8px;
    height: 60px;
    padding: 0 20px;
    font-family: Roboto, sans-serif;
    font-size: 24px;
    color: #404040;
    text-align: center;
    letter-spacing: 10px;
    margin-bottom: 20px;
    box-sizing: border-box;
}

/* Стили для кнопок в модальном окне SMS */
.phone-verification-buttons {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.phone-verification-button {
    flex: 1;
    padding: 15px 20px;
    border-radius: 8px;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.phone-verification-button.primary {
    background-color: #FF4533;
    color: white;
}

.phone-verification-button.primary:hover {
    background-color: #ff3622;
}

.phone-verification-button.secondary {
    background-color: #E6F1FA;
    color: #008DD2;
    border: 1px solid #C3E4FF;
}

.phone-verification-button.secondary:hover {
    background-color: #d0e4f5;
}

.phone-verification-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Блок с информацией о SMS */
.phone-verification-info {
    background-color: #E6F1FA;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #C3E4FF;
}

.phone-verification-info p {
    margin: 0;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #404040;
    line-height: 1.4;
}

#phone-number-display {
    font-weight: bold;
    color: #008DD2;
}

/* Таймер для повторной отправки */
.resend-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.resend-timer span {
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #666;
}

#timer-seconds {
    font-weight: bold;
    color: #FF4533;
}

/* Загрузчик в модальном окне */
#phone-verification-loader {
    display: none;
    justify-content: center;
    align-items: center;
    margin: 15px 0;
}

.loader-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #E6F1FA;
    border-top: 3px solid #008DD2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Сообщение об ошибке */
#sms-error-message {
    display: none;
    background-color: #ffecec;
    border: 1px solid #FF4533;
    border-radius: 6px;
    padding: 10px 15px;
    margin-bottom: 15px;
    color: #FF4533;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    text-align: center;
}

.preloader-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.preloader-content {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
    width: 500px;
    max-width: 90vw;
    box-sizing: border-box;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #E6F1FA;
    border-top: 5px solid #008DD2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 30px;
}

/* Модальное окно успеха для офлайн-формы (наличными в офисе) */
.offline-success-message {
    padding: 20px 0;
}
.offline-success-text {
    font-size: 18px;
    color: #404040;
    font-family: Roboto, sans-serif;
    margin: 0 0 24px;
    line-height: 1.5;
}
.offline-success-button {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-family: Roboto, sans-serif;
    font-weight: 500;
    color: #fff;
    background: #008DD2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.offline-success-button:hover {
    background: #007ab8;
}

/* Уведомления */
.notification-item {
    display: none;
    font-size: 18px;
    color: #404040;
    font-family: Roboto, sans-serif;
    padding: 15px;
    background: #E6F1FA;
    border-radius: 10px;
    margin: 10px 0;
}

.notification-item.active {
    display: block;
}

/* Валидация ошибок */
input.error,
select.error {
    border: 2px solid #FF4533 !important;
    background-color: #ffecec !important;
}

.loanFormChildren.error {
    border: 2px solid #FF4533;
    border-radius: 8px;
    padding: 8px 12px;
    background-color: #ffecec;
}

.checkbox-group.checkbox-error {
    border: 2px solid #FF4533;
    border-radius: 8px;
    padding: 8px 12px;
    background-color: #ffecec;
}

.error-block {
    display: none;
}

/* Стилизация Select2 */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    background-color: #E6F1FA;
    border: 1px solid #C3E4FF;
    border-radius: 8px;
    height: 49px;
    font-family: Roboto, sans-serif;
    font-size: 14px;
    color: #404040;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 49px;
    padding-left: 17px;
}

/* Анимации */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Подсказки для полей ввода */
.frontend p.input-hint {
    margin: 5px 0 0;
    font-size: 13px;
    font-family: Roboto, sans-serif;
    line-height: 1.4;
    font-weight: 500;
}

.frontend p.input-hint-highlight {
    margin-top: 8px;
    color: #008DD2;
}

.frontend p.input-hint:last-of-type {
    margin-bottom: 10px;
}

/* Тексты в левой колонке */
.frontend p.loanColumnLeftText {
    margin: 0;
    font-size: 14px;
    font-family: Roboto, sans-serif;
    color: #404040;
    line-height: 18px;
}

.frontend p.loanColumnLeftBetter {
    margin: 0;
    font-size: 14px;
    font-family: Roboto, sans-serif;
    color: #008DD2;
    line-height: 18px;
    font-weight: bold;
}

.frontend p.loanAmount {
    border: none;
    margin: 0;
    font-size: 36px;
    font-family: Roboto, sans-serif;
    color: #008DD2;
    line-height: 38px;
    font-weight: bold;
    width: 169px;
    display: flex;
}

.frontend p.loanLabel {
    margin: 0;
    font-size: 14px;
    font-family: Roboto, sans-serif;
    line-height: 28px;
    color: #008DD2;
    font-weight: bold;
    border: none;
    width: 80px;
    text-align: right;
    display: flex;
    justify-content: right;
}

/* Модальное окно калькулятора */
.calculator-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.calculator-modal-content {
    max-width: 1024px;
    width: 100%;
    position: relative;
}

.calculator-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.calculator-modal-close:hover {
    color: #FF4533;
    background-color: #f0f0f0;
}

.calculator-modal-title {
    font-size: 24px;
    font-family: Roboto, sans-serif;
    color: #404040;
    margin-bottom: 30px;
    font-weight: bold;
    text-align: center;
}

.calculator-modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding: 10px;
}

.calculator-modal-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.calculator-modal-button {
    padding: 12px 40px;
    border-radius: 30px;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    min-width: 150px;
}

.calculator-modal-button.apply {
    background-color: #FF4533;
    color: white;
}

.calculator-modal-button.apply:hover {
    background-color: #ff3622;
}

.calculator-modal-button.cancel {
    background: #fff;
    border: 1px solid #FF4533;
    color: #FF4533;
}

.calculator-modal-button.cancel:hover {
    background-color: #FFF0EE;
}

/* Закрытие модального окна по клику на фон */
.calculator-modal:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Адаптивность */
@media (max-width: 976px) {
    .loanFormWrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 10px;
    }
    
    .loanFormLeftSide,
    .loanFormRightSide {
        width: 100%;
        max-width: 479px;
    }
    
    .loanCalculatorCard {
        width: 100%;
        max-width: 100%;
    }
    
    .loanColumnRight {
        padding: 13px 20px 44px;
    }
    
    .loan-form-h2 {
        font-size: 28px;
        text-align: center;
    }
    
    .formAbove {
        width: 100%;
        max-width: 479px;
        padding: 20px;
    }
    
    .button-wrapper {
        flex-direction: column;
    }
    
    .loanFormButton {
        width: 100%;
    }
    
    .phone-verification-buttons {
        flex-direction: column;
    }
    
    .phone-verification-button {
        width: 100%;
    }
    
    .calculator-modal-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .calculator-modal-button {
        width: 100%;
    }
}

/* Три колонки в карточке калькулятора на мобильном: заголовки | значения | кнопка */
@media (max-width: 768px) {
    .loanCalculatorCard {
        display: grid;
        grid-template-columns: 1fr 1fr auto;
        grid-template-rows: repeat(4, auto);
        gap: 10px 15px;
        align-items: start;
    }

    .calculator-info-grid {
        grid-column: 1 / 3;
        grid-row: 1 / -1;
        display: grid;
        grid-template-columns: subgrid;
        grid-template-rows: subgrid;
        margin-bottom: 0;
    }

    .calculator-row {
        display: contents;
    }

    .calculator-row .calculator-label {
        padding-bottom: 0;
        white-space: nowrap;
    }

    .calculator-row .calculator-value {
        text-align: right;
    }

    .calculator-footer {
        grid-column: 3;
        grid-row: 1 / -1;
        align-self: start;
        margin-bottom: 0;
        display: flex;
    }

    .calculator-edit-link {
        white-space: nowrap;
        padding: 0;
        line-height: 1.4;
        align-self: start;
    }
}

@media (max-width: 576px) {
    .loan-form-h2 {
        font-size: 24px;
    }
    
    .loanColumnRight {
        padding: 13px 15px 44px;
    }
    
    .phone-verification-content,
    .preloader-content,
    .calculator-modal-content {
        padding: 20px;
        width: 95%;
    }
    
    .phone-verification-close,
    .calculator-modal-close {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
        font-size: 20px;
    }
    
    /* Адаптивность для калькулятора на мобильных */
    .calculator-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .calculator-value {
        text-align: left;
        width: 100%;
    }
    
    /* Сохраняем 3 колонки в .loanCalculatorCard (заголовки | значения | кнопка) */
    .loanCalculatorCard .calculator-row {
        display: contents;
    }
    .loanCalculatorCard .calculator-value {
        text-align: right;
        width: auto;
    }
    /* .loanCalculatorCard .calculator-edit-link {
        width: auto;
        text-align: left;
    } */
    
    /* .calculator-edit-link {
        width: 100%;
        text-align: center;
        padding: 10px;
    } */
}

.dots-animation {
    display: inline-block;
    min-width: 20px;
    text-align: left;
}

/* Посказка адресов */
.dadata-suggestion-window {
    position: fixed;
    border: 1px solid rgb(236, 236, 236);
    border-radius: 10px;
    margin-top: 5px;
    padding: 3px 0 4px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 999;
    background: #fff;
}
.dadata-suggestion-window.showed {
    display: block;
}
.dadata-suggestion__item {
    padding: 11px 12px;
}
.dadata-suggestion__item:hover {
    cursor: pointer;
    background: rgb(236, 236, 236);
}
.dadata-suggestion__name {
    font-size: 16px;
    line-height: 20px;
}
.dadata-suggestion__data {
    font-size: 12px;
    line-height: 14px;
    color: #999;
}



.calculator-modal-slider {
    padding: 20px 0;
}

.calculator-modal-firstLevelForm {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.1);
    min-height: 280px;
}

.calculator-modal-form-group-left {
    flex: 1;
    min-width: 300px;
}

.calculator-modal-form-group-right-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 250px;
}

.calculator-modal-form-group-right {
    background: linear-gradient(90deg, rgb(43, 98, 212), rgb(43, 156, 212) 100%);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    color: #fff;
}

.calculator-modal-amount,
.calculator-modal-duration {
    font-size: 14px;
    color: #404040;
    font-family: Roboto, sans-serif;
}

.calculator-modal-output {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    font-family: Roboto, sans-serif;
}

.calculator-modal-outputText {
    font-size: 18px;
}

.calculator-modal-range {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #E6F1FA;
    border-radius: 3px;
    outline: none;
    margin: 10px 0 5px;
}

.calculator-modal-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #008DD2;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.calculator-modal-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #008DD2;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.calculator-modal-loanFormGroupText {
    margin: 0;
    font-size: 12px;
    font-family: Roboto, sans-serif;
    color: #9C9C9C;
}

.calculator-modal-loanColumnLeftLabelSumm {
    margin-top: 25px;
}

.calculator-modal-form-group-text {
    font-size: 12px;
    color: #9C9C9C;
    font-family: Roboto, sans-serif;
    margin-top: 20px;
    line-height: 1.4;
}

.calculator-modal-form-group-small {
    color: #fff;
    font-family: Roboto, sans-serif;
    text-align: center;
    font-size: 16px;
    font-weight: lighter;
    line-height: 21px;
}

.calculator-modal-form-group-big {
    font-size: 36px;
    font-family: Roboto, sans-serif;
    text-align: center;
    margin-bottom: 11px;
    font-weight: lighter;
}

.calculator-modal-apply-container {
    margin-top: 20px;
    text-align: center;
}

.calculator-modal-button.apply {
    background-color: #FF4533;
    border-radius: 30px;
    color: #fff;
    padding: 17px 50px;
    border: none;
    cursor: pointer;
    font-family: Roboto, sans-serif;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 140px;
}

.calculator-modal-button.apply:hover {
    background-color: #ff3622;
}

/* Стилизация фона ползунка */
.calculator-modal-range {
    background: linear-gradient(to right, #008DD2 0%, #008DD2 50%, #E6F1FA 50%, #E6F1FA 100%);
}

/* Адаптивность */
@media (max-width: 768px) {
    .calculator-modal-firstLevelForm {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    
    .calculator-modal-form-group-left,
    .calculator-modal-form-group-right-wrapper {
        min-width: 100%;
    }
    
    .calculator-modal-form-group-right {
        margin-top: 10px;
    }
    
    .calculator-modal-apply-container {
        text-align: center;
        margin-top: 30px;
    }
}

/* Добавляем в конец файла style.css */
.calculator-modal-value-wrapper {
    display: flex;
    justify-content: flex-end;
    min-width: 140px;
    margin-left: 20px;
}

.calculator-modal-value-display {
    font-size: 24px;
    color: #404040;
    font-weight: bold;
    font-family: Roboto, sans-serif;
    text-align: right;
    white-space: nowrap;
}

/* Обновляем стили для строк с ползунками */
.calculator-modal-formGroupLeftLine {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Для адаптивности */
@media (max-width: 768px) {
    .calculator-modal-value-wrapper {
        min-width: 120px;
        margin-left: 15px;
    }
    
    .calculator-modal-value-display {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .calculator-modal-value-wrapper {
        min-width: 100px;
        margin-left: 10px;
    }
    
    .calculator-modal-value-display {
        font-size: 14px;
    }
    
    .calculator-modal-amount,
    .calculator-modal-duration {
        font-size: 14px;
    }
}
