@keyframes slideUp {
    0% {
        opacity: 0%;
        transform: translateY(5rem);
    }

    10% {
        opacity: 5%;
    }


    100% {
        opacity: 100%;
        transform: translateY(0);
    }
}

@keyframes l5 {
    0% {
        box-shadow: 20px 0 #000, -20px 0 #0002;
        background: #000
    }

    33% {
        box-shadow: 20px 0 #000, -20px 0 #0002;
        background: #0002
    }

    66% {
        box-shadow: 20px 0 #0002, -20px 0 #000;
        background: #0002
    }

    100% {
        box-shadow: 20px 0 #0002, -20px 0 #000;
        background: #000
    }
}

.pt-1 {
    padding-top: 1rem;
}

.font-weight-500 {
    font-weight: 500;
}

.flex-cols {
    display: flex;
    flex-direction: column;
}

.center-all {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.survey-modal {
    top: 0;
    left: 0;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 20%);
    z-index: 999990;
}

.slide-up {
    opacity: 0%;
    transform: translateY(5rem);
    animation: slideUp 500ms ease-in-out 100ms;
    animation-fill-mode: forwards;
}

.slide-up-fast {
    opacity: 0%;
    transform: translateY(5rem);
    animation: slideUp 300ms ease-in-out 50ms;
    animation-fill-mode: forwards;
}

.survey-wrapper {
    justify-content: start;
    align-items: center;
    height: auto;
    max-height: calc(100vh - 2rem);
    width: calc(100vw - 2rem);
    padding: 1rem;
    max-width: 40rem;
    background-color: white;
    border-radius: 1rem;
    z-index: 999991;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
    position: relative;
    overflow: hidden;
}

.survey-form {
    overflow-y: auto;
    padding: 1rem;
    width: 100%;
}

.survey-form>* {
    width: 100%;
}

.survey-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.survey-heading {
    margin: 0;
    font-size: 1.5rem;
}

.survey-btn {
    transform-origin: center;
    transition: all 50ms linear;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: .2rem;
}

.survey-btn:not(.active):hover {
    cursor: pointer;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 4px;
}

.survey-btn:active {
    box-shadow: rgba(0, 0, 0, 0.05) 0px 1px 1px;
}

.btn-zoom:not(.active):hover {
    transform: scale(105%);
}

.btn-zoom:active {
    transform: scale(100%);

}

.survey-close-btn {
    flex: 0 0 auto;
    font-size: 2rem;
    height: 2rem;
    width: 2rem;
    margin: 0;
    padding: 0;
    background-color: white;
    color: black;
    z-index: 9999999;
}

.survey-close-btn:hover {
    color: white;
    background-color: var(--color-crocus);
}

.survey-score {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .1rem;
}

.survey-score-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3rem;
    width: 3rem;
    margin: 0;
    padding: 0;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    color: black;
}

.survey-score-btn[value="0"] {
    background-color: rgba(var(--color-crocus-rgb), 8%);
}

.survey-score-btn[value="1"] {
    background-color: rgba(var(--color-crocus-rgb), 10%);
}

.survey-score-btn[value="2"] {
    background-color: rgba(var(--color-crocus-rgb), 12%);
}

.survey-score-btn[value="3"] {
    background-color: rgba(var(--color-crocus-rgb), 14%);
}

.survey-score-btn[value="4"] {
    background-color: rgba(var(--color-crocus-rgb), 16%);
}

.survey-score-btn[value="5"] {
    background-color: rgba(var(--color-crocus-rgb), 18%);
}

.survey-score-btn[value="6"] {
    background-color: rgba(var(--color-crocus-rgb), 20%);
}

.survey-score-btn[value="7"] {
    background-color: rgba(var(--color-crocus-rgb), 22%);
}

.survey-score-btn[value="8"] {
    background-color: rgba(var(--color-crocus-rgb), 24%);
}

.survey-score-btn[value="9"] {
    background-color: rgba(var(--color-crocus-rgb), 26%);
}

.survey-score-btn[value="10"] {
    background-color: rgba(var(--color-crocus-rgb), 28%);
}

.survey-score-btn:hover {
    border-color: var(--color-crocus);
}

.survey-score-btn.active {
    color: white;
    background-color: var(--color-crocus);
}

.survey-score-desc {
    display: flex;
    justify-content: space-between;
}

.survey-influence {
    display: flex;
    flex-wrap: wrap;
    margin-left: -.5rem;
    margin-right: -.5rem;
    margin-top: 1rem;
}

.survey-influence-btn {
    flex: 0 0 auto;
    padding: .7rem 1.2rem;
    margin: .3rem;
    background-color: white;
    border-color: var(--color-crocus);
}

.survey-influence-btn:hover {
    background-color: rgba(var(--color-crocus-rgb), 10%);
}

.survey-influence-btn.active {
    color: white;
    background-color: var(--color-crocus);
}

.survey-feedback {
    padding: 1rem;
    border-radius: .2rem;
    resize: vertical;
    min-height: 4rem;
}

.survey-submit-btn {
    padding: .7rem 1rem;
    margin: 1rem 0;
    background-color: rgba(var(--color-crocus-rgb), 75%);
    color: white;
}

.survey-submit-btn:hover {
    background-color: rgba(var(--color-crocus-rgb), 100%);
}

.survey-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
}

.survey-loader {
    background-color: rgba(255, 255, 255, 85%);
    cursor: wait;
}

.survey-loader-icon {
    width: 15px;
    aspect-ratio: 1;
    border-radius: 50%;
    animation: l5 1s infinite linear alternate;
}

.survey-success {
    padding: 2rem;
}