.psicon-form {
    max-width: 760px;
    max-height: 700px;
    min-height: 600px ! Important;
    margin: 0 auto;
    font-family: "Mukta", Sans-serif;
    display: flex;
    align-items: center;
    color: #000;
}

.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-range-mobile {
    display: none;
}
.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;
}

/* CHECKBOX */

.psicon-legal input[type="checkbox"] {
  appearance: none;
  background-color: #fff;
  margin: 0;
  width: 1.45em;
  height: 1.4em;
  border: 0.15em solid currentColor;
  border-radius: 0.15em;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
}

.psicon-legal input[type="checkbox"]::before {
  content: "";
  width: 0.85em;
  height: 0.85em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background-color: CanvasText;
  transform-origin: bottom left;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.psicon-legal input[type="checkbox"]:checked::before {
  content: "";
  width: 0.85em;
  height: 0.85em;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background: #134553;
  transform: scale(1);
}

.psicon-legal input[type="checkbox"]:focus {
  outline: max(2px, 0.15em) solid currentColor;
}

/* animazione caricamento */

.psicon-loading {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
}

.psicon-loading[hidden] {
    display: none;
}

.psicon-loading-content {
    width: 100%;
    max-width: 460px;
    text-align: center;

    animation: psicon-loading-enter 0.4s ease both;
}

.psicon-loading-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 60px;
    margin-bottom: 22px;
}

.psicon-loading-animation span {
    width: 16px;
    height: 16px;

    background: #111;
    border-radius: 50%;

    animation: psicon-loading-bounce 1.2s ease-in-out infinite;
}

.psicon-loading-animation span:nth-child(2) {
    animation-delay: 0.15s;
}

.psicon-loading-animation span:nth-child(3) {
    animation-delay: 0.3s;
}

.psicon-loading-title {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.psicon-loading-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.7;
}

body.psicon-is-submitting {
    overflow: hidden;
}

@keyframes psicon-loading-bounce {
    0%,
    80%,
    100% {
        transform: translateY(0) scale(0.8);
        opacity: 0.35;
    }

    40% {
        transform: translateY(-18px) scale(1);
        opacity: 1;
    }
}

@keyframes psicon-loading-enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .psicon-loading-content,
    .psicon-loading-animation span {
        animation-duration: 2s;
    }
}

/**/
/* range input */
@media (max-width: 767px) {

    /* Nasconde i pulsanti numerici su mobile */
    .psicon-scale-desktop {
        display: none;
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }

    /* Mostra il range */
    .psicon-range-mobile {
        display: block;
        width: 100%;
        padding: 8px 2px 4px;
    }

    .psicon-range-value {
        display: flex;
        align-items: baseline;
        justify-content: center;
        margin-bottom: 22px;
        color: #111;
    }

    .psicon-range-current {
        font-size: 22px;
        font-weight: 600;
        line-height: 1;
        letter-spacing: -1px;
    }

    .psicon-range-max {
        margin-left: 5px;
        font-size: 16px;
        font-weight: 500;
        opacity: 0.55;
    }

    .psicon-range {
        --range-progress: 50%;

        display: block;
        width: 100%;
        height: 30px;
        margin: 0;
        padding: 0;

        appearance: none;
        -webkit-appearance: none;

        background: transparent;
        cursor: pointer;
        outline: none;
    }

    /* Chrome, Safari, Edge */
    .psicon-range::-webkit-slider-runnable-track {
        width: 100%;
        height: 8px;
        border-radius: 999px;

        background:
            linear-gradient(
                to right,
                #111 0%,
                #111 var(--range-progress),
                #e8e8e8 var(--range-progress),
                #e8e8e8 100%
            );
    }

    .psicon-range::-webkit-slider-thumb {
        width: 26px;
        height: 26px;
        margin-top: -9px;

        appearance: none;
        -webkit-appearance: none;

        border: 3px solid #111;
        border-radius: 50%;
        background: #fff;

        box-shadow:
            0 2px 7px rgba(0, 0, 0, 0.16);

        transition:
            transform 0.18s ease,
            box-shadow 0.18s ease;
    }

    .psicon-range:active::-webkit-slider-thumb {
        transform: scale(1.08);

        box-shadow:
            0 2px 10px rgba(0, 0, 0, 0.22);
    }

    /* Firefox */
    .psicon-range::-moz-range-track {
        width: 100%;
        height: 8px;

        border: 0;
        border-radius: 999px;
        background: #e8e8e8;
    }

    .psicon-range::-moz-range-progress {
        height: 8px;

        border-radius: 999px;
        background: #111;
    }

    .psicon-range::-moz-range-thumb {
        width: 22px;
        height: 22px;

        border: 3px solid #111;
        border-radius: 50%;
        background: #fff;

        box-shadow:
            0 2px 7px rgba(0, 0, 0, 0.16);
    }

    .psicon-range:focus-visible::-webkit-slider-thumb {
        outline: 3px solid rgba(17, 17, 17, 0.2);
        outline-offset: 3px;
    }

    .psicon-range:focus-visible::-moz-range-thumb {
        outline: 3px solid rgba(17, 17, 17, 0.2);
        outline-offset: 3px;
    }

    .psicon-scale-labels {
        align-items: flex-start;
        gap: 10px;
        margin-top: 14px;
    }

    .psicon-scale-labels span {
        width: 33.333%;
        font-size: 12px;
        line-height: 1.25;
    }

    .psicon-scale-labels span:nth-child(1) {
        text-align: left;
    }

    .psicon-scale-labels span:nth-child(2) {
        text-align: center;
    }

    .psicon-scale-labels span:nth-child(3) {
        text-align: right;
    }
}
@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%;
    }

    .psicon-form {
        max-height: 100%;
        align-items: start;
        min-height: auto ! Important;
    }
}

/**/
