.psicon-form {
    max-width: 760px;
    max-height: 700px;
    min-height: 600px ! Important;
    margin: 0 auto;
    font-family: inherit;
    display: flex;
    align-items: center;
}

.psicon-progress {
    height: 6px;
    background: #e8e8e8;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 40px;
}

.psicon-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: #111;
    transition: width .25s ease;
}
/**/
:root {
    --psicon-ease-typeform: cubic-bezier(0.215, 0.61, 0.355, 1);
    --psicon-ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

.psicon-step {
    display: none;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(34px);
    transition:
        opacity .62s var(--psicon-ease-soft),
        transform .62s var(--psicon-ease-soft);
    will-change: opacity, transform;
}

.psicon-step.is-active,
.psicon-step.is-leaving {
    display: block;
}

.psicon-step.is-active {
    opacity: 1;
    transform: translateY(0);
}

.psicon-step.is-leaving {
    opacity: 0;
    transform: translateY(-26px);
}

.psicon-question,
.psicon-description,
.psicon-input,
.psicon-options,
.psicon-scale,
.psicon-scale-labels,
.psicon-legal,
.psicon-nav {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(4px);
    transition:
        opacity .68s var(--psicon-ease-soft),
        transform .68s var(--psicon-ease-soft),
        filter .68s var(--psicon-ease-soft);
    will-change: opacity, transform, filter;
}

.psicon-step.is-entering .psicon-question {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: .05s;
}

.psicon-step.is-entering .psicon-description {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: .14s;
}

.psicon-step.is-entering .psicon-input,
.psicon-step.is-entering .psicon-scale,
.psicon-step.is-entering .psicon-scale-labels,
.psicon-step.is-entering .psicon-legal {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: .24s;
}

.psicon-step.is-entering .psicon-options {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: .05s;
}

.psicon-choice {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .58s var(--psicon-ease-soft),
        transform .58s var(--psicon-ease-soft),
        background-color .28s var(--psicon-ease-typeform),
        box-shadow .28s var(--psicon-ease-typeform);
}

.psicon-step.is-entering .psicon-choice {
    opacity: 1;
    transform: translateY(0);
}

/*.psicon-step.is-entering .psicon-choice:nth-child(1) { transition-delay: .28s; }
.psicon-step.is-entering .psicon-choice:nth-child(2) { transition-delay: .35s; }
.psicon-step.is-entering .psicon-choice:nth-child(3) { transition-delay: .42s; }
.psicon-step.is-entering .psicon-choice:nth-child(4) { transition-delay: .49s; }
.psicon-step.is-entering .psicon-choice:nth-child(5) { transition-delay: .56s; }
.psicon-step.is-entering .psicon-choice:nth-child(6) { transition-delay: .63s; }
.psicon-step.is-entering .psicon-choice:nth-child(7) { transition-delay: .70s; }
.psicon-step.is-entering .psicon-choice:nth-child(8) { transition-delay: .77s; }*/

.psicon-step.is-entering .psicon-nav {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
    transition-delay: .05s;
}

/**/

.psicon-question {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
    margin-bottom: 24px;
}

.psicon-description {
    margin: -10px 0 22px;
    opacity: .75;
}

.psicon-input {
    width: 100%;
    border: 0;
    border-bottom: 2px solid #111;
    font-size: 22px;
    padding: 14px 0;
    background: transparent;
    outline: none;
}

.psicon-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    border: 2px solid transparent;
    background: transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.psicon-option:has(input:checked) {
  background: #f5efef85;
  border-color: currentColor;
}

.psicon-options.area-intervento {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}
.psicon-options.area-intervento .psicon-option {
    width: 30%;
}
.psicon-option, .psicon-legal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    align-content: space-between;
}

.psicon-option:hover,
.psicon-legal:hover {
    border-color: #111;
}
/*  letter  */
.psicon-choice {
    position: relative;
    display: flex;
    align-items: center;
    width: fit-content;
    min-inline-size: 280px;
    max-width: 100%;
    gap: 6px;
    padding: 10px 12px 10px 8px;
    margin-bottom: 6px;
    border-radius: 999px;
    background: #eeeeee;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.2;
}

.psicon-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.psicon-choice-key-wrap {
    display: flex;
    align-items: center;
}

.psicon-choice-key {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid #bbb;
    background: #fff;
    color: #111;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    padding: 0;
}

.psicon-choice-hint {
    display: none;
}

.psicon-choice-text {
    color: #111;
    padding: 0;
}

.psicon-choice:has(input:checked) {
    background: #fff;
    box-shadow: inset 0 0 0 2px #111;
}

.psicon-choice:has(input:checked) .psicon-choice-key {
    background: #111;
    border-color: #111;
    color: #fff;
}


/**/
.psicon-scale {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
}

.psicon-scale label span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.psicon-scale input {
    position: absolute;
    opacity: 0;
}

.psicon-scale input:checked + span {
    border-color: #111;
    box-shadow: inset 0 0 0 2px #111;
}

.psicon-scale-labels {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 10px;
    opacity: .75;
}

.psicon-nav {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.psicon-nav button {
    border: 0;
    border-radius: 6px;
    padding: 13px 22px;
    cursor: pointer;
    font-weight: 700;
}

.psicon-next,
.psicon-submit {
    background: #111;
    color: #fff;
}

.psicon-prev {
    background: #eee;
    color: #111;
}

.psicon-error {
    color: #b00020;
    margin-top: 12px;
    font-size: 14px;
}

.psicon-success {
    text-align: center;
    padding: 60px 20px;
}

@media (max-width: 767px) {
    .psicon-question {
        font-size: 23px;
    }

    .psicon-scale label span {
        width: 42px;
        height: 42px;
    }

    .psicon-options.area-intervento .psicon-option {
        width: 48%;
    }
}

/**/
