:root {
    /* Colors */
    --color-primary: #40c057;
    --color-primary-hover: #37b24d;
    --color-border: #e9ecef;
    --color-text-light: #666;
    --color-text-dark: #000;
    --color-disabled: #adb5bd;
    --color-placeholder: #adb5bd;
    --color-success-bg: #f8fff9;


    --color-green-100: #1CAD6B;
    --color-green-200: #19995F;
    --color-green-300: #15804F;
    --color-grey-50: #FAFAFA;
    --color-grey-100: #F4F4F5;
    --color-grey-200: #E4E4E7;
    --color-grey-300: #D8D9DD;
    --color-grey-350: #BEBEC7;
    --color-grey-400: #A1A1AA;
    --color-grey-500: #71717A;
    --color-grey-600: #52525B;
    --color-grey-700: #3F3F46;
    --color-grey-800: #27272A;
    --color-grey-900: #18181B;
    --color-black: #121212;
    --color-white: #fff;
    --color-text: var(var(--color-black));
    --color-background: var(--color-white);

    /* Shadows */
    --shadow-hover: 0 4px 12px rgba(64, 192, 87, 0.1);

    --swiper-scrollbar-bottom: 0px;
    --swiper-scrollbar-size: 2px;
    --swiper-scrollbar-bg-color: var(--color-grey-200);
    --swiper-scrollbar-drag-bg-color: var(--color-grey-600);
    --swiper-navigation-sides-offset: -20px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.4;
    color: var(--color-text);
    background-color: var(--color-grey-200);
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;

    display: flex;
    justify-content: center;
    align-items: center;

    /* &:has(.step-content.results-page) {
        padding-inline: 72px;
        
        @media(width < 767px) {
            padding-inline: 30px;
        }
    } */
}

.container {
    /* min-height: 100vh; */
    /* height: 100%; */
    /* max-height: 960px; */
    height: 960px;
    display: flex;
    width: 100vw;
    justify-content: space-between;
    max-width: 1490px;
    margin-inline: auto;
    padding-inline-start: 72px;
    background-color: var(--color-background);

    &:has(.step-content.results-page) {
        justify-content: center;
        padding-inline: 3rem;

        .form-container {
            max-width: unset;
        }

        .buttons {
            justify-content: center;
        }

        .header {
            justify-content: start;

            .progress-indicator {
                margin-left: 243px;
            }
        }
    }

    .form-container {
        width: 100%;
        flex: 1;
        min-width: 375px;
        display: flex;
        flex-direction: column;
        max-width: 948px;
        width: 100%;

        .step-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            gap: 30px;

            &.no-justify {
                justify-content: flex-start;
            }

            &.results-page {
                .step-header {
                    text-align: center;
                }

                .buttons {
                    justify-content: center;
                }

                .form-section {
                    display: flex;
                    flex-direction: column;
                    align-items: center;
                }

                .results-text {
                    max-width: 910px;
                    text-align: center;

                    h2,
                    p {
                        font-size: 1.25rem;
                        font-weight: 500;
                        line-height: 1.4;
                    }

                    p {
                        font-weight: 300;
                    }
                }

                .results-summary {
                    margin-top: -8px;
                    margin-bottom: 32px;

                    .circle {
                        position: relative;
                        overflow: hidden;

                        >img {
                            position: absolute;
                            top: 50%;
                            transform: translateY(-50%);
                            left: 0;
                            width: 100%;
                            height: 100%;
                            object-fit: contain;
                        }
                    }

                    .score-bar {
                        max-width: 480px;
                        border: 1px solid var(--color-green-300);
                        width: 100%;
                        height: 24px;
                        background-color: var(--color-white);
                        position: relative;
                        margin-top: -43px;
                        border-radius: 2px;

                        .score-marker {
                            width: 40px;
                            height: 40px;
                            display: flex;
                            justify-content: center;
                            align-items: center;
                            color: var(--color-white);
                            background-color: var(--color-green-100);
                            font-size: 1rem;
                            font-weight: 600;
                            border-radius: 50%;
                            position: absolute;
                            left: 0;
                            bottom: 40px;
                            transform: translateX(-50%);
                            line-height: 1;

                            &::after {
                                content: '';
                                width: 1px;
                                height: 13px;
                                background-color: var(--color-green-300);
                                display: block;
                                position: absolute;

                                bottom: -17px;
                            }
                        }


                        .score-bar-fill {
                            position: absolute;
                            inset: 1px;
                            width: 0;
                            background-color: var(--color-green-100);
                            transition: all 0.3s ease-out;

                            @starting-style {
                                width: 0%;
                            }

                        }
                    }
                }

            }
        }
    }

    /* aside {
        max-width: 450px;
        position: absolute;
        top: 0;
        right: 0;

        @media(width < 1520px) {
            position: static;
        }
    } */
}

.main-title {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.25;
    /* font-weight: 300; */
    margin-bottom: 50px;
    color: #000;

    strong {
        font-weight: 500;
    }
}

/* Intro text */
.intro-text {
    color: var(--color-grey-900);

    h2 {
        font-size: 1.5rem;
        margin-bottom: 24px;
        font-weight: 300;
        line-height: 1.33;
    }

    p {
        font-size: 1.25rem;
        line-height: 1.4;
        font-weight: 300;
        margin-bottom: 30px;
        color: var(--color-grey-900);
    }

    +.cta-section {
        margin-top: 50px;
    }
}

/* CTA section */
.cta-section {
    text-align: left;
}

.form-section {
    .form-row {
        display: flex;
        gap: 24px;
        flex-wrap: wrap;
    }

    .options-container {
        display: grid;
        gap: 32px;
        grid-template-columns: 1fr 1fr;
    }
}

.form-input {
    font-family: Roboto, sans-serif;
    font-size: 1rem;
    color: var(--color-grey-900);
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid var(--color-grey-350);
    width: 100%;

    &::placeholder {
        color: var(--color-grey-500);
        font-weight: 400;
        letter-spacing: 0.5px;
        font-family: Roboto, sans-serif;
        font-size: 1rem;
    }
}

.cta-question {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 24px;
    color: var(--color-grey-900);
}

.continue-section {
    margin-block: 0 80px;

    h2 {
        font-size: 1.25rem;
        font-weight: 500;
        margin-bottom: 24px;
        color: var(--color-grey-900);
    }

    .buttons {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

.step-slider {
    position: relative;
    align-items: stretch;


    .swiper-button-prev,
    .swiper-button-next {
        width: 40px;
        height: 40px;
        background-color: var(--color-green-100);
        border-radius: 50%;
        box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
        display: flex;
        align-items: center;
        justify-content: center;

        svg {
            width: 15px;
            height: 12px;
            fill: var(--color-white);
        }

        &.swiper-button-disabled {
            opacity: 0;
        }
    }

    .swiper-slide {
        height: auto;
        margin-bottom: 24px;
        width: fit-content !important;
    }

    .info-card,
    .check-card {
        height: 100%;
    }

    .check-card {
        max-width: 300px;
        width: 100%;
    }
}

dialog {
    border-radius: 8px;
    border: 1px solid var(--color-grey-350);
    padding: 96px 120px;
    background-color: var(--color-white);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 24px;

    &[open] {
        display: flex;
    }

    img {
        margin-bottom: 48px;
    }

    h2 {
        font-size: 2rem;
        font-weight: 500;
        line-height: 1.25;
        color: var(--color-grey-900);
        margin-bottom: 12px;
        text-align: center;
    }

    p {
        font-size: 1.5rem;
        font-weight: 500;
        line-height: 1.25;
        margin-bottom: 32px;
        text-align: center;
        color: var(--color-green-100);
    }
}

/* Buttons */