@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

html, body {
    margin: 0;
    padding: 0;
}

body {
    padding: 0 16px;
}

* {
    font-family: Inter;
    color: #000000;
    box-sizing: border-box;
}

header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 30px 14px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: #FFFFFF;
}

.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    display: block;
    transform: translate(-50%, -50%);
}

.stepper {
    padding: 4px 12px;
    border-radius: 41px;
    background-color: #ECECEC;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 400;
    font-size: 16px;
    margin-left: auto;
    max-width: 30%;
}

.stepper .progress-bar-container {
    display: block;
    width: 64px;
    height: 4px;
    background-color: #D9D9D9;
    border-radius: 4px;
}

.stepper .progress-bar-fill {
    height: 100%;
    background-color: #7DBF24;
    border-radius: 4px;
    width: 10%;
    transition: width 0.3s ease;
}

.rainbow-border-wrapper {
    display: block;
    padding: 1px;
    border-radius: 12px;
    background: linear-gradient(107.53deg, #ADEE68 0%, #A75D93 47.01%, #3A36FF 94.97%);
}

.rainbow-border-wrapper .rainbow-border-content {
    display: flex;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-color: #fff;
    padding: 5px 19px;
    justify-content: flex-start;
    gap: 16px;
    align-items: center;
}

.first-lesson-booked-counter .divider {
    width: 1px;
    height: 40px;
    background-color: #0000004D;
}

.first-lesson-booked-counter .counter {
    font-size: 43px;
    font-weight: 600;
    /* Fallback для старих браузерів */
    color: #A75D93;
    /* Основний градієнт */
    background: linear-gradient(104.62deg, #ADEE68 -14.93%, #A75D93 45.86%, #3A36FF 107.87%);
    /* Префікси для максимальної підтримки */
    background: -webkit-linear-gradient(104.62deg, #ADEE68 -14.93%, #A75D93 45.86%, #3A36FF 107.87%);
    background: -moz-linear-gradient(104.62deg, #ADEE68 -14.93%, #A75D93 45.86%, #3A36FF 107.87%);
    background: -o-linear-gradient(104.62deg, #ADEE68 -14.93%, #A75D93 45.86%, #3A36FF 107.87%);

    /* Застосовуємо градієнт до тексту */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    /* Додаткові стилі для кращого відображення */
    display: inline-block;
}

/* Для Firefox (альтернативний підхід) */
@supports not (-webkit-background-clip: text) {
    .rainbow-text {
        background: none;
        color: #A75D93;
    }
}

.flex {
    display: flex;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: auto;
    max-width: 1275px;
    width: 100%;
    box-sizing: border-box;
    min-height: 100vh;
}

.hidden {
    display: none!important;
}

.m-b-0 {
    margin-bottom: 0!important;
}

.t-a-l {
    text-align: left!important;
}

.a-i-f-s {
    align-items: flex-start!important;
}

.reviews-rate-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.reviews-rate-block .users {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.question-wrapper {
    width: 100%;
    padding: 90px 0;
}

.question,
.sub-question {
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    max-width: 480px;
}

.question.main {
    max-width: 940px;
    padding: 0 5px;
}

.question-heading {
    font-weight: 500;
    font-size: 56px;
    line-height: 53.76px;
    text-align: center;
    margin-bottom: 8px;
}

.highlight {
    color: #1E38DE;
}

.question-title {
    font-weight: 400;
    font-size: 32px;
    line-height: 26.88px;
    text-align: center;
    letter-spacing: -1pt;
    max-width: 480px;
    margin-bottom: 16px;
}

.benefits {
    display: flex;
    align-items: flex-start;
    justify-content: space-around;
    gap: 16px;
    width: 100%;
    flex-direction: row;
    margin-bottom: 36px;
    margin-top: 32px;
}

.benefit {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    width: 28%;
}

.phone-prefix {
    display: block;
    padding-right: 4px;
    white-space: nowrap;
}

.contact-form .question-title {
    text-align: left;
}

.contact-form .question-description {
    text-align: left;
}

.question-description {
    font-weight: 400;
    font-size: 24px;
    line-height: 23.04px;
    text-align: center;
    margin-bottom: 16px;
}

.question-info {
    font-size: 16px;
    text-align: center;
    margin-bottom: -4px;
    margin-top: 8px;
}

.divider {
    width: 100%;
    height: 1px;
    background-color: #E0E0E0;
}

.clarification {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 15px;
    font-size: 16px;
    margin-bottom: 16px;
}

.time-tag {
    padding: 8px 12px 8px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background-color: #ECFFDB;
    border-radius: 16px;
    font-size: 16px;
    color: #578C0F;
}

.form-control {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.form-control .label {
    font-size: 16px;
    font-weight: 500;
}

.form-control input[type="text"],
.form-control input[type="tel"],
.form-control input[type="email"] {
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
    padding: 13px 18px;
    border: 2px solid #E0E0E0;
    border-radius: 16px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.form-control input[type="text"]:focus,
.form-control input[type="tel"]:focus,
.form-control input[type="email"]:focus {
    outline: none;
    border-color: #1E38DE;
}

.form-control input[type="text"]::-webkit-input-placeholder,
.form-control input[type="tel"]::-webkit-input-placeholder,
.form-control input[type="email"]::-webkit-input-placeholder { /* Chrome */
    color: #CFCFCF;
}

.form-control input[type="text"]:-ms-input-placeholder,
.form-control input[type="tel"]:-ms-input-placeholder,
.form-control input[type="email"]:-ms-input-placeholder { /* IE 10+ */
    color: #CFCFCF;
}

.form-control input[type="text"]::-moz-placeholder,
.form-control input[type="tel"]::-moz-placeholder,
.form-control input[type="email"]::-moz-placeholder { /* Firefox 19+ */
    color: #CFCFCF;
    opacity: 1;
}

.form-control input[type="text"]:-moz-placeholder,
.form-control input[type="tel"]:-moz-placeholder,
.form-control input[type="email"]:-moz-placeholder { /* Firefox 4 - 18 */
    color: #CFCFCF;
    opacity: 1;
}

.form-control input[type="radio"],
.form-control input[type="checkbox"] {
    display: none;
}

.form-control input[type="radio"] + label,
.form-control input[type="checkbox"] + label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 4px;
    background-color: #F7F7F7;
    font-size: 16px;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.form-control input[type="radio"] + label:hover,
.form-control input[type="checkbox"] + label:hover {
    background-color: #E9ECFF;
}

.form-control input[type="radio"] + label::before,
.form-control input[type="checkbox"] + label::before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid #1E38DE;
    flex-shrink: 0;
}

.form-control input[type="radio"]:checked + label::before,
.form-control input[type="checkbox"]:checked + label::before {
    background-color: #1E38DE;
    background-image: url('../icons/checked.svg');
    background-size: 26px;
    background-position: center;
    background-repeat: no-repeat;
}

.form-control input[type="radio"]:checked + label,
.form-control input[type="checkbox"]:checked + label {
    background-color: #E9ECFF;
}

.form-control input[type="radio"] + label::before {
    border-radius: 50%;
}

.form-control input[type="checkbox"] + label::before {
    border-radius: 4px;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 2px solid #E0E0E0;
    border-radius: 16px;
    overflow: hidden;
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
    padding: 13px 18px;
}

.phone-prefix {
    color: #000000;
}

.phone-input-wrapper input {
    padding: 0!important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    flex: 1;
}

.phone-input-wrapper:focus-within {
    border-color: #1E38DE;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.radio-tiles-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
}

.radio-tiles-group input[type="radio"] + label {
    width: auto;
    padding: 8px 17px;
    border-radius: 8px;
}

.radio-tiles-group input[type="radio"] + label::before {
    display: none;
}

.next-button {
    width: 100%;
    display: block;
    padding: 13px;
    border-radius: 16px;
    background-color: #1E38DE;
    color: #FFFFFF;
    font-weight: 500;
    font-size: 24px;
    line-height: 28px;
    text-align: center;
    cursor: pointer;
    outline: none;
    border: none;
    transition: background-color 0.3s ease;
    text-decoration: none;
    max-width: 480px;
}

.next-button:hover {
    background-color: #2134b1;
}

.next-button:disabled {
    background-color: #CFCFCF;
    cursor: not-allowed;
}

.back {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ECECEC;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back.forward {
    transform: rotate(180deg);
}

.back:hover {
    background-color: #DEDEDE;
}

.text-uppercase {
    text-transform: uppercase;
}

.socials {
    display: flex   ;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 26px;
    margin-top: 10px;
}

.rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rate-value {
    font-weight: 500;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.rating-stars {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
}

.rate-description {
    font-weight: 400;
    font-size: 14px;
    text-align: center;
}

.testimonials-wrapper {
    position: relative;
    width: 100%;
}

.testimonials-container {
    display: flex;
    align-items: normal;
    justify-content: space-between;
    gap: 32px;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid #E0E0E0;
    margin-bottom: 16px;
    overflow-x: hidden;
}

.testimonials-wrapper .back {
    display: none;
}

.testimonial {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding-right: 32px;
    border-right: 1px solid #E0E0E0;
    /* calculate block width. 100% minus static elements width divided to qty of blocks */
    width: calc((100% - (32px * 2)) / 3 + 32px);
}

.testimonial:last-child {
    border-right: none;
    padding-right: 0;
}

.testimonial-rate {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.testimonial-rate .rate-value {
    font-size: 16px;
}

.testimonial-rate .rating-stars img {
    width: 12px;
    height: 12px;
}

.testimonial-title {
    font-weight: 600;
    font-size: 18px;
}

.testimonial-content {
    font-weight: 400;
    font-size: 16px;
}

.testimonial-author {
    font-weight: 500;
    font-size: 16px;
}

.error-message {
    font-weight: 500;
    font-size: 16px;
    text-align: center;
    margin-top: 16px;
    color: #c02b0a;
}

.chat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
}

.chat .message {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.chat .message-author {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background-color: #D6F0BB;
}

.chat .message-text {
    padding: 12px 20px;
    background: linear-gradient(180deg, #D6F0BB 0%, #EFFFDF 100%);
    font-weight: 400;
    font-size: 16px;
    border-radius: 16px;
    border-top-left-radius: 0;
    max-width: 308px;
}

.chat .message.system {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat .message.system .message-author {
    background-color: #E9ECFF;
}

.chat .message.system .message-text {
    background: linear-gradient(180deg, #E9ECFF 0%, #F7F8FF 100%);
    border-radius: 16px;
    border-top-right-radius: 0;
    max-width: 329px;
}

.chart-image {
    position: relative;
    margin-top: 16px;
    padding-left: 20px;
}

.chart-image .axis-y {
    transform: rotate(-90deg);
    left: -25px;
    position: absolute;
    display: block;
    top: 50%;
    margin-top: -7px;
}

.chart-image .axis-x {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
}

.chart-legend {
    margin-top: 44px;
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    color: #152134;
    font-size: 14px;
    font-weight: 500;
    flex-wrap: wrap;
    gap: 12px
}

.chart-legend .with-mathema,
.chart-legend .without-mathema {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    padding: 0 4px;
}


.chart-legend .with-mathema:before,
.chart-legend .without-mathema:before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #E6FAD2;
}

.chart-legend .with-mathema:after,
.chart-legend .without-mathema:after {
    content: '';
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    width: 10px;
    height: 10px;
    background-color: #8BCD38;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 9px;
    transform: translateY(-50%);
}

.chart-legend .without-mathema:before {
    background-color: #FFD489;
}

.chart-legend .without-mathema:after {
    background-color: #E49000;
}

.level-bar {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.25px;
    width: 40px;
    height: 15px;
    margin-left: auto;
}

.level-bar span,
.level-bar::after,
.level-bar::before {
    content: '';
    display: block;
    width: 33%;
    border-radius: 2.5px 2.5px 0 0;
    background-color: #E6EBF2;
}

.level-bar::before {
    height: 33.3%;
}

.level-bar span {
    height: 66.6%;
}

.level-bar::after {
    height: 100%;
}

.level-bar[data-level="1"]::before {
    background-color: #FBB231;
}

.level-bar[data-level="2"]::before,
.level-bar[data-level="2"] span {
    background-color: #FBB231;
}

.level-bar[data-level="3"]::before,
.level-bar[data-level="3"] span,
.level-bar[data-level="3"]::after {
    background-color: #ADEE68;
}


.loader-wrapper {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,0.8);
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    margin: auto;
    display: block;
}

.loader.hidden {
    display: none;
}

.loader:before,
.loader:after {
    content: '';
    border-radius: 50%;
    position: absolute;
    inset: 0;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.3) inset;
}

.loader:after {
    box-shadow: 0 2px 0 #6536D6 inset;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

@media screen and (max-width: 968px) {
    .testimonials-wrapper .back {
        display: flex;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        left: -16px;
    }

    .testimonials-wrapper .back.forward {
        left: auto;
        right: -16px;
        transform: translateY(-50%) rotate(180deg);
    }

    .testimonial {
        padding-right: 0;
        border-right: none;
        width: 100%;
        flex-shrink: 0;
        display: none;
    }

    .testimonial:first-child {
        display: flex;
    }
}

@media screen and (max-width: 768px) {
    .benefits {
        flex-direction: column;
    }

    .benefit {
        width: 100%;
        gap: 10px;
    }
}

@media screen and (max-width: 480px) {
    .question.main {
        gap: 10px;
    }

    .question.main .radio-tiles-group {
        justify-content: flex-start;
    }

    .question-heading {
        text-align: left;
        font-size: 40px;
        line-height: 96%;
        width: 100%;
    }

    .reviews-rate-block {
        align-items: flex-start;
        flex-direction: column-reverse;
        gap: 20px;
        margin-bottom: 56px;
    }

    .question-title {
        font-size: 32px;
        font-weight: 400;
        line-height: 30.72px;
        width: 100%;
        text-align: left;
    }

    .question-description {
        text-align: left;
        font-size: 18px;
        margin-bottom: 0;
        width: 100%;
    }

    .question-info {
        font-size: 14px;
    }

    .form-control input[type="text"],
    .form-control input[type="tel"],
    .form-control input[type="email"],
    .phone-input-wrapper {
        font-size: 20px;
        line-height: 28px;
        padding: 10px 18px;
    }

    .next-button {
        padding: 10px;
    }

    a.next-button {
        font-size: 20px;
    }

    .stepper .progress-bar-container {
        width: 43px;
        max-width: 50%;
    }

    .question-title.success {
        text-align: center;
    }
}
