:root {
    --font-family: "Cera Pro", sans-serif;
    --main-bg: #E9EFEE;
    --base-transition: all ease .3s;
    --default-border: 1px solid #B2C1C1;
    --red: #FC4F4F;
    --section-color: #1C252D;
    --placeholder-color: #627D7D;
    --default-icon-fill-color: #627D7D;
    --orange: #F48F19;
}

/* #region reset */

*,
::after,
::before {
  box-sizing: border-box;
  font-family: inherit;
}

ul {
  margin: 0;
  padding-left: 0;
}

li {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
body {
    margin: 0;
    background: var(--main-bg);
}

* {
    font-family: "Cera pro", sans-serif;
}

a {
    text-decoration: none;
}
button, input {
    border: none;
    background: none;
    outline: none;
}
    input[type="date"]::-webkit-inner-spin-button,
    input[type="date"]::-webkit-calendar-picker-indicator {
       opacity: 0;
    }
    input:-webkit-autofill,
    input:-webkit-autofill:hover,
    input:-webkit-autofill:focus,
    input:-webkit-autofill:active {
        -webkit-background-clip: text;
        -webkit-text-fill-color: #1C252D;
        transition: background-color 5000s ease-in-out 5000s;
        box-shadow: inset 0 0 20px 20px var(--black);
        caret-color: inherit;
    }
/* #endregion reset */

/* #region global */

body {
  font-family: var(--font-family);
}

/* #endregion global */


/* #region icons */
.icon {
    flex-shrink: 0;
    transition: var(--base-transition);
    pointer-events: none;
    touch-action: none;
    fill: var(--default-icon-fill-color);
}
.icon-i {
    width: 15px;
    height: 15px;
}
.car-icon, .manual-insert, .document-scanner {
    width: 32px;
    height: 32px;
}

.road-icon {
    width: 30px;
    height: 26px;
}
.arrow, .time-circle-icon {
    width: 32px;
    height: 32px;
}
.calendar {
    width: 24px;
    height: 24px;
}

.active .car-icon {
    fill: #002F2F;
}
.arrow-down-short {
    width: 24px;
    height: 24px;
    fill: transparent;
}
.upload-icon {
    width: 48px;
    height: 48px;
    fill: linear-gradient(0deg, rgba(109,196,158,1) 0%, rgba(178,231,180,1) 50%);
}

/* #endregion icons */
/* #region section */
.section {
    --padding: 12px;
    padding-top: var(--padding);
    padding-bottom: var(--padding);
}

.section__title {
  margin-bottom: 16px;
  color: var(--section-color);
  font-size: 28px;
  font-weight: 700;
}

/* #endregion section */
/* #region container */
.container {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* #endregion container */

/* #region components */
.d-none, .hidden {
    display: none !important;
}
.mt-8 {
margin-top: 8px;
}

.mt-16 {
    margin-top: 16px;
}

.required-mark{
    color: var(--red);
}

.setOpacity {
    opacity: .7;
    pointer-events: none;
}

button[disabled] {
    opacity: .3;
}
input[disabled] {
    background: #DDE4E3;
    opacity: .3;
}
.input-label {
    /* Subheadline1 */
    color: #1C252D;
    font-size: 14px;
    font-weight: 500;
    line-height: 120%; /* 16.8px */
    letter-spacing: 0.112px;
}
.form-group-label {
    display: block;
    margin-bottom: 4px;
}
.sub-title {
    font-weight: 400;
    font-size: 10px;
    color: red;
    display: none;
}
    .sub-title.success {
        color: forestgreen;
        display: inline-block;
    }
    .sub-title.error {
        display: inline-block;
    }
    .show-sub-title + .sub-title {
        display: inline-block;
    }
.error-field {
    border: 1px solid red !important;
}

/* #region custom input with label */
.customTextInput__wrapper {
    width: 100%;
    position: relative;
    border-radius: 8px;
    background: #FFF;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.25);
    height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}
    .customTextInput__wrapper .icon {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translate(0, -50%);
        z-index: 2;
        transition: var(--base-transition);
    }
    .customTextInput__wrapper.open .arrow-down-short {
        transform: translate(0, -50%) rotate(180deg);
    }

    .customTextInput__input {
        font-size: 16px;
        font-style: normal;
        font-weight: 500;
        line-height: 140%; /* 22.4px */
        width: 100%;
        height: 100%;
        padding: 22px 12px 4px 12px;
        height: 48px;
    }

.date-input {
    text-align: left;
}

input::-webkit-date-and-time-value {
    text-align: left;
}

.customTextInput__placeholder {
    color: var(--placeholder-color);
    position: absolute;
    top: 0px;
    left: 0px;
    transition: var(--base-transition);
    transform-origin: left top;
    transform: translate(12px, 15px) scale(1);
    pointer-events: none;
    touch-action: none;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
    display: block;
    z-index: 2;
}

.customTextInput__placeholder.hide{
    transform: translate(12px, 4px) scale(0.766);
    font-weight: 500;
}
/* #endregion custom input with label */
/* #endregion components */
/* #region banners-list */
.banners-list {
    display: flex;
    flex-flow: column;
    border-bottom: var(--default-border);
}
.banners-list__item {
    width: 100%;
    border-top: var(--default-border);
}
.banners-list__button {
    color: #013131;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    letter-spacing: 0.048px;
    display: flex;
    flex-flow: row nowrap;
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    width: 100%;
}

    .banners-list__button .arrow {
        transition: .2s all ease;
    }

    .banners-list__button:active .arrow {
        transform: translateX(-10px);
        
    }

    .banners-list__item .btn-text {
        margin-right: auto;
        text-align: left;
    }
/* #endregion banners-list */


/* #region tom-select */
.ts-control {
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 500;
}
/* #region tom-select */

/* #region car-type */
.car-type-list {
    display: flex;
    flex-wrap: wrap;
    border: var(--default-border);
    border-radius: 8px;
    overflow: hidden;
    border-bottom: none;
}

.car-type-item {
    min-width: 25%;
    flex-grow: 1;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
    padding: 12px 0;
    font-size: 14px;
    font-weight: 500;
    color: #1C252D;
    border-right: var(--default-border);
    border-bottom: var(--default-border);
}

    /* remove right border for last column */
    .car-type-item:nth-child(4n) {
        border-right: 1px solid transparent;
    }

    /* remove right border for last column */
    .car-type-item:last-child {
        border-right: 1px solid transparent;
    }

    /* remove bottom border for last row */
    .car-type-item:nth-last-child(-n + 4) {
/*        border-bottom: none;*/
    }

.time-type-item {
    flex-direction: row;
    padding: 15px 0;
}
.car-type-item.active {
    background: linear-gradient(180deg, #B2E7B4 0%, #6DC39E 100%);
    color: #002F2F;
}
.legalPersonType .car-type-item {
    padding: 15px 0;
}

/* #endregion car-type */


/* #region infobox */
.infobox {
    border-radius: 8px;
    background: #DDE4E3;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%; /* 18.2px */
    letter-spacing: 0.042px;
}
    .infobox.small {
        font-size: 10px;
    }
    .infobox-icon {
        padding: 5px;
        background: linear-gradient(180deg, #F48F19 0%, #F47719 100%);
        border-radius: 50%;
        align-self: start;
        display: flex;
        align-items: center;
        justify-content: center;
    }
.infobox-cartype {
}
/* #endregion infobox */


/* #region promocode */
.promocode-label {
    color: var(--orange);
    font-size: 16px;
    font-weight: 700;
    line-height: 140%; /* 22.4px */
    letter-spacing: 0.16px;
    display: flex;
    gap: 8px;
    align-items: center;
}
.orange-plus {
    font-weight: 400;
    font-size: 26px;
}
/* #endregion promocode */


/* #region price */
.price-wrapper {
    border-radius: 8px;
    background: #DDE4E3;
}
.payment-amount-wrap {
    padding: 15px 12px;
    border-bottom: var(--default-border);
    display: flex;
    flex-direction: column;
    align-items: end;
}
.greenCard .payment-amount-wrap {
    border-bottom: none;
}
.old-price-wrapper {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: end;
}
.price-label {
    color: #627D7D;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 140%; /* 19.6px */
    letter-spacing: 0.112px;
}
.total-wrap {
    color: #1C252D;
    font-size: 22px;
    font-weight: 700;
    line-height: 120%; /* 26.4px */
    letter-spacing: 0.066px;
    position: relative;
    margin-left: auto;
    width: fit-content;
}

.infobox-price {
    padding: 10px 12px;
}
.discount-wrap {
    position: relative;
    top: -10px;
    font-size: 12px;
    font-weight: 700;
}
.discount-style {
    color: red;
}
.cross-out-discount::after {
    content: '';
    position: absolute;
    top: 8px;
    right: 0;
    width: 100%;
    height: 2px;
    background-color: red;
}
.new-total-wrap {
    font-size: 22px;
    font-weight: 700;
}
.cross-out-discount {
    font-size: 14px;
    font-weight: 400;
}
.popup .popuptext {
    visibility: hidden;
    width: 160px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -80px;
}
    /* #region price */
    /* #region checkbox*/
    .custom-checkbox > input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}
.custom-checkbox > span {
    display: flex;
    align-items: start;
    color: #1C252D;
    font-size: 14px;
    line-height: 130%; /* 18.2px */
    letter-spacing: 0.042px;
}
    .custom-checkbox > span::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    flex-grow: 0;
    border: 2px solid #627D7D;
    border-radius: 0.25em;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70% 70%;
    margin-bottom: 3px;
}
.custom-checkbox > input:checked + span::before {
    /*    border-color: #7FAA41;*/
    /*    background-color: #7FAA41;*/
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23627D7D' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}
/* #endregion checkbox*/


/* #region btn*/
.buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
}
.buttons-figuration {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.btn[disabled] {
    pointer-events: none;
    touch-action: none;
}

.btn {
    border-radius: 8px;
    border: var(--default-border);
    width: 100%;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    line-height: 120%; /* 19.2px */
    letter-spacing: 0.048px;
}

    .btn:active {
        transform: scale(0.97); /* слегка сжимается */
        box-shadow: inset 0 2px 6px rgba(0,0,0,0.15); /* будто вдавили */
    }

    .btn-green {
        color: #002D2E;
        background: linear-gradient(180deg, #B2E7B4 0%, #6DC39E 100%);
    }

    .btn-link {
        color: #FC4F4F;
    }
    /* #endregion btn*/
    /* #region modal */
    .modal-window {
        position: fixed;
        background-color: rgba(0, 0, 0, 0);
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        -webkit-transition: all 0.3s;
        -o-transition: all 0.3s;
        transition: background-color 0.3s ease;
    }

    .bg-overlay {
        background-color: rgba(0, 0, 0, 0.45) !important;
    }

    .modal-window-header p {
        color: #1C252D;
        font-size: 18px;
        font-style: normal;
        font-weight: 700;
        line-height: 140%; /* 39.2px */
        letter-spacing: 0.084px;
        background: transparent;
    }

    .modal-window.small {
        transform: scale(0.8) translateY(1000px);
        opacity: 0 !important;
    }

        .modal-window.small.open {
            opacity: 1 !important;
            animation: scaleUp 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
            overflow: auto !important;
        }

    @keyframes scaleUp {
        0% {
            transform: scale(0.8) translateY(1000px);
        }

        100% {
            transform: scale(1) translateY(0px);
        }
    }

    @keyframes scaleDown {
        0% {
            transform: scale(1) translateY(0px);
        }

        100% {
            transform: scale(0.8) translateY(1000px);
        }
    }

    .green-modal .box-shadow-custom {
        box-sizing: content-box;
        border: 2px solid #B2C1C1;
        border-radius: 8px !important;
    }

    .modal-window > div {
        width: 269px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        padding: 15px;
        background: white;
    }

    .registr-info-wrap .registr-info-item {
        display: flex;
        align-items: flex-start;
    }

    .shift-detail .registr-info-item {
        padding-bottom: 5px;
        padding-top: 5px;
        margin-bottom: 3px !important;
    }

        .shift-detail .registr-info-item:not(:last-child) {
            border-bottom: 1px dashed #E0E0E0;
        }

        .shift-detail .registr-info-item .title {
            margin-bottom: 3px !important;
        }

    .registr-info-wrap .registr-info-item .title {
        font-weight: 400;
        font-size: 12px;
        color: #5B5956;
        width: 40%;
    }

    .registr-info-wrap .registr-info-item .detail {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        width: 60%;
    }

        .registr-info-wrap .registr-info-item .detail .detail-title {
            font-weight: 400;
            font-size: 14px;
            color: #1E1A16;
            text-transform: uppercase;
        }

        .registr-info-wrap .registr-info-item .detail .text {
            font-weight: 400;
            font-size: 10px;
            color: #1E1A16;
        }
    /* #endregion modal */
    /* #region pure-main-loader */

    .pure-main-loader {
        position: absolute;
        top: 0;
        height: 100%;
        width: 100%;
        display: none;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, .4);
    }

    .show-loader .pure-main-loader {
        display: flex;
        z-index: 99999;
    }

    .loader-wrap {
        width: 100%;
        height: 100vh;
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .loader-wrap.main-loader {
            background: var(--main-bg)
        }

    .lds-ripple {
        display: inline-block;
        position: relative;
        width: 80px;
        height: 80px;
    }

        .lds-ripple div {
            position: absolute;
            border: 4px solid var(--default-icon-fill-color);
            opacity: 1;
            border-radius: 50%;
            animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
        }

            .lds-ripple div:nth-child(2) {
                animation-delay: -0.5s;
            }

    @keyframes lds-ripple {
        0% {
            top: 36px;
            left: 36px;
            width: 0;
            height: 0;
            opacity: 0;
        }

        4.9% {
            top: 36px;
            left: 36px;
            width: 0;
            height: 0;
            opacity: 0;
        }

        5% {
            top: 36px;
            left: 36px;
            width: 0;
            height: 0;
            opacity: 1;
        }

        100% {
            top: 0px;
            left: 0px;
            width: 72px;
            height: 72px;
            opacity: 0;
        }
    }
    /* #endregion pure-main-loader */
    /* #region image-preview */
    .file-upload__title {
        color: #1C252D;
        font-size: 16px;
        font-style: normal;
        font-weight: 700;
        line-height: 120%; /* 19.2px */
        letter-spacing: 0.128px;
    }

    .scan-files {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .image-preview-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .file-image {
        width: 100%;
        height: 100%;
        max-width: 160px;
        max-height: 160px;
        object-fit: contain;
    }

    .messages-info {
        text-align: center;
    }

    .start {
        padding: 24px 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        border: 2px dashed #6DC39E;
    }

    .start__desc {
        color: #627D7D;
        font-size: 16px;
        font-weight: 400;
        line-height: 140%; /* 22.4px */
    }

    .start__title {
        color: #F48F19;
        font-size: 16px;
        font-weight: 700;
        line-height: 120%; /* 19.2px */
        letter-spacing: 0.128px;
    }
    /* #region image-preview */


    .alert-wrap {
        padding: 15px 10px;
        border-radius: 4px;
    }

    .alert-danger {
        color: #b9555e;
        background-color: #f8d7da;
        border-color: #f5c2c7;
    }

    .banners-list__item-big {
        padding: 12px;
        background: #fff;
        margin-bottom: 16px;
        border-radius: 16px;
        border: 1px solid #bdcbca;
        position: relative;
    }

    .banners-list__button-big {
        display: grid;
        grid-template: 72px 1fr / 72px 1fr;
        align-items: center;
        width: 100%;
    }

        .banners-list__button-big.disabled {
            opacity: 0.1;
        }

        .banners-list__button-big svg {
            width: 60px;
            height: 60px;
        }



        .banners-list__button-big span:nth-child(2) {
            font-size: 24px;
            font-style: normal;
            font-weight: 700;
            line-height: 120%;
            color: #013131;
            text-align: center;
        }

        .banners-list__button-big span:nth-child(3) {
            align-items: center;
            border-radius: 50px;
            color: #fff;
            cursor: pointer;
            display: inline-flex;
            font-size: 16px;
            font-weight: 600;
            gap: 8px;
            justify-content: center;
            padding: 10px 20px;
            text-transform: uppercase;
            background-color: #f48a19;
            grid-column: 1 / 3;
            border-radius: 12px;
            display: flex;
            font-weight: 700;
            margin-top: 10px;
            padding: 15px;
            width: 100%;
        }

    .soonSpan {
        position: absolute;
        font-weight: bold;
        color: grey;
        font-size: 24px;
        /*    left: 50%;*/
        /*    top: 50%;*/
        bottom: 25px;
        right: -65px;
        transform: translate(-50%, -50%) rotate(-40deg);
    }

    .buttons-container {


        .service-card {
            background: white;
            border-radius: 12px;
            padding: 0px;
            margin-bottom: 16px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            position: relative;
            padding-bottom: 0;
            overflow: hidden;
        }

        .service-header {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .icon-container {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            flex-shrink: 0;
            padding-left: 15px;
        }

            .icon-container.europe {
                background: linear-gradient(135deg, #e8f5e8 0%, #d4edd4 100%);
            }

            .icon-container.green-card {
                background: linear-gradient(135deg, #e8f5e8 0%, #d4edd4 100%);
            }

            .icon-container.auto-civil {
                background: linear-gradient(135deg, #e8f5e8 0%, #d4edd4 100%);
            }

            .icon-container.travel {
                background: linear-gradient(135deg, #e8f5e8 0%, #d4edd4 100%);
            }

        .service-title {
            font-size: 18px;
            font-weight: 600;
            color: #333;
            line-height: 1.3;
            padding-left: 0px;
            padding-right: 10px;
        }

        .badge {
            background: #74c2ab;
            color: #343432;
            padding: 4px 12px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            position: absolute;
            top: 15px;
            left: 135px;
        }

        .action-button {
            width: 100%;
            padding: 15px;
            border: none;
            border-radius: 0px;
            font-size: 16px;
            font-weight: 500;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

            .action-button.primary {
                background: #ff7f39;
                color: white;
            }

                .action-button.primary:hover {
                    background: #e66b2d;
                    transform: translateY(-1px);
                }

            .action-button.secondary {
                background: #bdc7c7;
                color: #fff;
            }

                .action-button.secondary:hover {
                    background: #bdc7c7;
                }

        .history-section {
            background: white;
            border-radius: 12px;
            padding: 12px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            font-weight: bold;
        }

        .history-content {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .history-icon {
            width: 40px;
            height: 40px;
            border-radius: 8px;
            background: #f0f9ff;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .history-text {
            font-size: 16px;
            color: #333;
            font-weight: 500;
        }

        .history-count {
            color: #666;
            font-weight: normal;
        }

        .chevron {
            font-size: 22px;
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
        }
        /* Icons using CSS */
        .road-icon::before {
            content: "🛣️";
            font-size: 24px;
        }

        .car-shield-icon::before {
            content: "🚗";
            font-size: 24px;
        }

        .clipboard-icon::before {
            content: "📋";
            font-size: 24px;
        }

        .globe-icon::before {
            content: "🌍";
            font-size: 24px;
        }

        .history-icon::before {
            content: "📄";
            font-size: 20px;
        }
    }


#otpInputWrap {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pincode-input {
    --size: 40px;
    width: var(--size);
    height: var(--size);
    line-height: var(--size);
    /*    border-radius: 3px;*/
    border-bottom: 2px solid gray;
    text-align: center;
    font-size: 1.5rem
}

    .pincode-input:not(:last-child) {
        margin-right: 1rem
    }

    .pincode-input.pincode-input--focused {
        border-color: #000
    }

    .pincode-input.pincode-input--filled {
        border-color: dodgerblue
    }

/* For Chrome, Safari, Edge, and Opera */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* For Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}
