* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

input.error, select.error {
    border-color: #d00000 !important;
}
.input-error-box {
    position: absolute;
    background: #ffe5e5;
    color: #d00000;
    font-size: 13px;
    padding: 4px 8px;
    max-width: 300px;
    border: 1px solid #d00000;
    border-radius: 4px;
    z-index: 9999;
  }

html {
    height: 100%
}

body {
    font-family: Montserrat, arial, verdana, sans-serif
}

a {
    text-decoration: none
}

.hidden {
    display: none
}

div.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px
}

div.progressbar {
    width: 100%;
    margin: 20px 0 30px 0;
    overflow: hidden;
    counter-reset: step;
    text-align: center;
    display: flex
}

div.progressbar span {
    color: #282828;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 16px;
    position: relative;
    flex: 1 1 0
}

div.progressbar span:before {
    content: counter(step);
    counter-increment: step;
    width: 44px;
    line-height: 44px;
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #333;
    background: #D9D9D9;
    border-radius: 3px;
    margin: 0 auto 5px auto
}

div.progressbar span:after {
    content: '';
    width: 100%;
    height: 2px;
    background: #D9D9D9;
    position: absolute;
    left: -50%;
    top: 22px;
    z-index: -1
}

div.progressbar span:first-child:after {
    content: none
}

div.progressbar span.active {
    /* color: #B1E5B9; */
}
div.progressbar span.active:before {
    background: #B1E5B9;
}
@media(max-width: 530px) {
    div.progressbar span {
        text-transform: lowercase;
        font-size: 14px;
    }
}
@media(max-width: 390px) {
    div.progressbar span {
        font-size: 0px;
    }
}

input[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}
select[readonly] {
    background-color: #e9ecef;
    opacity: 1;
}
.value_disabled {
    background-color: #e9ecef !important;
    opacity: 1;
    pointer-events: none;
}

.insurance-calculator__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.insurance-calculator__footer .addDrivers {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
@media(max-width: 670px) {
    .insurance-calculator__footer {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}
@media(max-width: 480px) {
    .insurance-calculator__footer .addDrivers {
        flex-direction: column;
    }
    .insurance-calculator__footer .addDrivers .addDrivers-button {
        order: 2;
    }
    .insurance-calculator__footer .addDrivers .form-check {
        order: 1;
    }
}
.card_osago {
    margin-top: 30px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 3px 1px rgba(124, 120, 120, 0.1);
    padding: 20px 30px;
    box-sizing: border-box
}


.card_osago_driver {
    margin-bottom: 30px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 3px 1px rgba(124, 120, 120, 0.1);
    padding: 20px 30px;
    box-sizing: border-box
}

.card_osago_addDriver {
    margin-bottom: 30px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 3px 1px rgba(124, 120, 120, 0.1);
    padding: 20px 30px;
    box-sizing: border-box
}

.card_osago_strah {
    margin-bottom: 30px;
}

.card_osago .fs-title {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    margin-bottom: 35px;
    text-align: left;
}
@media(max-width: 500px) {
    .card_osago {
        padding: 20px;
    }
    .card_osago .fs-title {
        font-size: 18px;
    }
}

.card_osago .fs-subtitle {
    font-weight: normal;
    font-size: 13px;
    color: #666;
    margin-bottom: 20px
}

.card_osago .hidden {
    display: none !important
}

.card_osago h2,
.card_osago h3 {
    text-align: center
}

.card_osago input[type="text"],
.card_osago input[type="date"],
.card_osago input[type="email"],
.card_osago select {
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Montserrat, sans-serif;
    color: #2C3E50;
    display: block;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
}

.card_osago select option,
.card_osago input {
    font-family: Montserrat
}

.card_osago .footer {
    display: flex;
    align-items: center;
    margin-top: 20px;
    justify-content: center;
    gap: 20px
}

.card_osago .footer.justify-between {
    justify-content: space-between
}

.card_osago .footer .action-button {
    font-family: Montserrat, sans-serif
}

.card_osago .form-error {
    color: #cc0000;
    font-size: 13px;
    margin: 3px 0 0 3px;
    text-align: left
}

.card_osago .action-button {
    background: #d3143b;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px;
    text-decoration: none;
    font-size: 14px
}

.card_osago .action-button:hover,
.card_osago .action-button:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #d3143b
}

div.autocomplete-suggestions {
    border: 1px solid #ddd;
    padding: 7px 0;
    background-color: white;
    margin-top: 5px;
    overflow-x: auto;
    overflow-y: hidden
}

div.autocomplete-suggestion {
    padding: 2px 10px
}

div.autocomplete-selected {
    background-color: #444;
    color: white
}

.insurance-calculator {
    padding-bottom: 100px;
}
.calculation {
    position: relative
}

.calculation .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.calculation .top img {
    width: 200px;
}
.insurance-calculator__item {
    border-bottom: 1px solid #ccc;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.insurance-calculator__item:last-child {
    border: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}
.insurance-calculator__price {
    text-align: right;
}
.insurance-calculator__item h5 {
    margin-top: 20px;
    margin-bottom: 10px;
}
.calculation .top .action-button {
    padding: 10px 30px;
    font-size: 16px
}
.insurance-calculator__item .params {
    display: flex;
}
.insurance-calculator__item .params span {
    width: 100%;
    text-align: center;
    border: 1px solid #ccc;
    padding-bottom: 15px;
    margin-left: -1px;
}
.insurance-calculator__item .params strong {
    display: block;
    padding: 15px 5px;
    margin-bottom: 10px;
    background: #f0f0f0;
}
.insurance-calculator__messang {
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
    display: none;
}
.insurance-calculator__messang p {
    display: block;
    padding: 10px 15px;
    background: #f0f0f0;
    margin: 0;
}
.insurance-calculator__messang span {
    display: block;
    padding: 10px 15px;
}

.calculation .cost {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 20px
}

.eosago {
    display: flex;
    width: 100%;
    gap: 10px;
    justify-content: space-between
}

.eosago .left,
.eosago .right {
    width: 50%;
    text-align: left
}

.eosago .left h4 {
    margin-bottom: 7px
}

.eosago .left p {
    font-size: 14px;
    line-height: 1.5
}

.eosago .top {
    margin-top: 20px;
    display: flex;
    justify-content: space-between
}

.eosago .top .action-button {
    padding: 10px 30px;
    font-size: 16px
}

.eosago .top .cost {
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 20px
}

.messages {
    margin-top: 20px
}

.messages .message {
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.1);
    padding: 20px 30px;
    line-height: 1.5;
    font-size: 15px;
    margin-top: 5px
}

.messages .message.alert-success {
    color: #2b912b
}

.messages .message.alert-danger {
    color: #cc0000
}

.check-payment-result {
    margin-top: 8px;
    font-size: 14px
}

.documents p {
    margin: 8px 0
}

.loader {
    border: 3px solid white;
    border-top: 3px solid #d3143b;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 2s linear infinite
}

@keyframes spin {
    0% {
        transform: rotate(0deg)
    }

    100% {
        transform: rotate(360deg)
    }
}

.insurance-calculator__error {
    border: 1px solid #d3143b;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
    text-align: left;
}

.flex-button {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center
}

@media (max-width:600px) {
    .row-flex {
        flex-direction: column
    }

    input[type="text"],
    input[type="date"],
    input[type="email"],
    select {
        max-width: 100%
    }
}



form.insurance-calculator .form-search {
    position: relative;
}
form.insurance-calculator .form-search__list {
    position: absolute;
    background: #fff;
    z-index: 9999;
    left: 0;
    width: 100%;
    top: calc(100% + 5px);
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 0;
    margin: 0;
    max-height: 300px;
    overflow: auto;
    display: none;
}
form.insurance-calculator .form-search__list::-webkit-scrollbar-thumb {
    background-color: #0a58ca;
}
form.insurance-calculator .form-search__list::-webkit-scrollbar {
    background-color: #fff;
    width: 5px;
}
form.insurance-calculator .form-search__list li {
    list-style: none;
    padding: 10px;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}
form.insurance-calculator .form-search__list li:last-child {
    border-bottom: 0;
}
form.insurance-calculator .form-search__list li:hover {
    background: #e2e2e2;
}

form.insurance-calculator .form-search .spinner-border {
    position: absolute;
    right: 10px;
    top: 0;
    bottom: 0;
    margin: auto;
    z-index: 9999;
    width: 1rem;
    height: 1rem;
    display: none;
}


.insurance-calculator__legal {
    display: flex;
    align-items: center;
    gap: 20px;
}
.insurance-calculator__legal p {
    text-align: right;
    margin-bottom: 0;
    font-size: 14px;
}
@media(max-width: 770px) {
    .insurance-calculator__legal {
        flex-direction: column;
    }
    .insurance-calculator__legal p {
        order: 3;
        text-align: left;
    }
    .insurance-calculator__legal p br {
        display: none;
    }
    .insurance-calculator__legal input {
        order: 1;
    }
}