@import url("https://fonts.googleapis.com/css2?family=Onest:wght@300&display=swap");

@font-face {
    font-family: "TT Travels";
    src: url("../fonts/TT-Travels-Next-Trial-Variable.woff2")
        format("woff2-variations");
    font-weight: 100 900;
    font-style: normal;
    font-variation-settings: "slnt" 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Onest", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    line-height: 1.5;
    color: #454441;
    background-color: #f1faf5;
    background-image: url(../img/flower.svg);
    background-position: 0 50%;
    background-repeat: no-repeat;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.8em;
    font-family: "TT Travels";
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 5;
    background: #ffffff;
    width: 100%;
    text-align: center;
    padding: 23px 0;
}

.quiz-container {
    margin: 0 auto;
    padding: 100px 16px 16px;
    max-width: 796px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.embla {
    overflow: hidden;
    margin-bottom: auto;
}

.embla__container {
    display: flex;
}

.embla__slide {
    flex: 0 0 100%;
    min-width: 0;
}

.quiz-slide {
    display: none;
    animation: fadeIn 0.5s ease;
    background-color: #ffffff;
    padding: 16px;
    padding-top: 48px;
    border-radius: 20px;
}

.quiz-slide.active {
    display: block;
}

.h1 {
    font-size: 36px;
    color: #009943;
    text-transform: uppercase;
}
.h1 span {
    display: inline-block;
    margin: 0 0 0 2px;
    transform: translateY(3px);
}

.h2 {
    font-size: 32px;
    color: #009943;
    text-transform: uppercase;
}

.index-slide {
    text-align: center;
}

.quiz-description {
}

.index-description {
    text-align: center;
}

.slide-img {
    position: relative;
    height: 252px;
    overflow: hidden;
    border-radius: 20px;
}
.slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.quiz-answers {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.answer-btn {
    padding: 16px 21px;
    border: 1px solid #009943;
    background: white;
    border-radius: 28px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    color: #009943;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Onest", sans-serif;
    font-size: 16px;
}

.answer-btn span {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 28px;
    transition: all 0.3s;
    border: 1px solid #009943;
}

.answer-btn:hover {
    background-color: #f1faf5;
}

.answer-btn.selected {
}

.answer-btn.selected span {
    background-color: #009943;
}

.quiz-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-input {
    padding: 16px 21px;
    border: 1px solid #009943;
    background: white;
    border-radius: 28px;
    transition: all 0.3s;
    color: #009943;
    justify-content: space-between;
    align-items: center;
    font-family: "Onest", sans-serif;
    font-size: 16px;
}

#phone {
    background-image: url(../img/flag.svg);
    background-position: 23px 13px;
    background-repeat: no-repeat;
    padding-left: 68px;
}

.form-checkbox {
    display: flex;
    gap: 15px;
    align-items: start;
}

.form-checkbox-input {
    margin-top: 4px;
}

.quiz-navigation {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 20px;
    background-color: #ffffff;
    position: relative;
}

.nav-btn {
    padding: 16px 25px 14px;
    border: none;
    border-radius: 23px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    text-align: center;
    font-family: "Onest", sans-serif;
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next {
    background-color: #009943;
    color: white;
    flex: 1;
}

.btn-submit {
    background-color: #009943;
    color: white;
    flex: 1;
}

.btn-prev {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #009943;
}

.star {
    position: absolute;
    right: -40px;
    top: -40px;
    transform: scale(0) rotate(180deg);
    transition: all 0.3s ease;
    display: none;
}
.star.--active {
    transform: scale(1) rotate(0deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (min-width: 767px) {
    .quiz-slide {
        padding: 32px;
        padding-top: 58px;
    }
    .quiz-navigation {
        padding: 32px;
    }
    .star {
        display: block;
    }
}

.thanks {
    text-align: center;
    background-color: #f1faf5;
    padding: 26px 10px;
    border-radius: 16px;
}

.thanks b {
    font-weight: 600;
    font-size: 22px;
}
