/* Survey */

.survey-header {
    display: flex;
    gap: 16px;
    flex-direction: column;
    margin-top: 40px;
}

.lg-hidden {
    display: none;
}

@media (min-width: 980px) {
    .lg-hidden {
        display: block;
    
    }

    .mobile-only {
        display: none;
    }
}

@media (min-width: 1280px) {
    .survey-header {
        flex-direction: row;
        margin-top: 60px;
    }
  

    
}

.survey-description {
    display: flex;
    align-items: center;
    flex-grow: 1;
    padding: 20px;
    gap: 16px;
    border-radius: 10px;
    font-family: "articulat-heavy-cf";
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
}

.survey-description img {
    width: min(150px, 30%);
}

@media (min-width: 1280px) {
    .survey-description {
        width: 100%;
    }
}

.survey-stages {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 768px) {
    .survey-stages {
        flex-direction: row;
    }
}

.survey-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid #212529;
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
}

@media (min-width: 768px) {
    .survey-stage {
        border-color: #E5E4EB;
        flex-direction: row;
        width: 180px;
        aspect-ratio: 1;
        overflow: visible;
    }

    .survey-stage:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 50%;
        left: calc(100% - 4px);
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-top: 16px solid transparent;
        border-bottom: 16px solid transparent;
        border-left: 26px solid #4489CC;
        z-index: 1;
    }
}

.survey-stage-inner {
    display: flex;
    gap: 16px;
    padding-top: 24px;
    padding-bottom: 24px;
    padding-left: 16px;
    padding-right: 16px;
    background-color: #EF373E;
    color: #fff;
}

@media (min-width: 768px) {
    .survey-stage-inner {
        flex-direction: column;
        justify-content: center;
        gap: 0;
        padding-top: 0;
        padding-bottom: 0;
        width: 75%;
        aspect-ratio: 1;
    }
}

.survey-stage-title {
    font-family: "articulat-heavy-cf";
    font-size: 24px;
    font-weight: 900;
}

@media (min-width: 768px) {
    .survey-stage-title {
        font-size: clamp(1rem, 0.818rem + 0.91vw, 1.5rem);
    }
}

.survey-stage-description,
.survey-stage-description-mobile-active {
    display: none;
}

.survey-stage-description-mobile {
    font-size: 24px;
}

@media (min-width: 768px) {
    .survey-stage-description {
        display: block;
        font-size: 16px;
    }

    .survey-stage-description-mobile {
        display: none;
    }
}

.survey-stage--1 .survey-stage-inner {
    opacity: 30%;
}

.survey-stage--2 .survey-stage-inner {
    opacity: 60%;
}

.survey-stage--3 .survey-stage-inner {
    opacity: 80%;
}

.survey-stage--4 .survey-stage-inner {
    opacity: 100%;
}

.survey-stage--inactive .survey-stage-inner {
    background-color: #E5E4EB;
}

.survey-stage--active {
    border-color: #EF373E;
    flex-direction: row;
    gap: 16px;
}

.survey-stage--active .survey-stage-inner {
    width: 190px;
    height: 250px;
    align-items: center;
}

.survey-stage--active .survey-stage-description-mobile {
    display: none;
}

.survey-stage--active .survey-stage-description-mobile-active {
    display: block;
    font-size: 28px;
    font-weight: bold;
    color: #EF373E;
}

.survey-stages--result {
    width: 100%;
}

.survey-stages--result .survey-stage-inner {
    gap: 16px;
}

@media (max-width: 767px) {
    .survey-stages--result .survey-stage-title {
        font-size: 28px;
        font-weight: 900;
    }

    .survey-stage--active .survey-stage-title {
        font-size: 36px;
        word-spacing: 100vw;
        line-height: 1;
        text-align: center;
    }
    
    .survey-stages--result .survey-stage-description-mobile {
        font-size: 28px;
    }
}

@media (min-width: 768px) {
    .survey-stages--result .survey-stage {
        width: 25%;
        gap: 0;
    }

    .survey-stages--result .survey-stage-title {
        font-size: clamp(1.5rem, 0.167rem + 2.78vw, 2.25rem);
    }

    .survey-stages--result .survey-stage-description {
        font-size: clamp(1rem, 0.111rem + 1.85vw, 1.5rem);
    }

    .survey-stage--active {
        flex-direction: column;
    }

    .survey-stage--active .survey-stage-inner {
        aspect-ratio: unset;
        width: 75%;
        height: 100%;
        align-items: flex-start;
    }

    .survey-stage--active .survey-stage-description-mobile-active {
        display: none;
    }
}