* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Raleway', sans-serif;
}

html,
body {
    height: 100%;
    position: relative;
    background-color: #777;
}

.tab {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 70%;
    transform: translateX(-50%);
    margin: 0 auto;
    visibility: hidden;
    padding: 20px;
    background-color: #FFF;
    overflow: auto;
}

.tab h1 {
    padding: 5px 20px;
    color: #FFF;
    background-color: #00F;
}

.tab input[type="range"] {
    width: 100%;
}

.next {
    display: inline-block;
    appearance: button;
    backface-visibility: hidden;
    background-color: #405cf5;
    border-radius: 6px;
    border-width: 0;
    box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .1) 0 2px 5px 0, rgba(0, 0, 0, .07) 0 1px 1px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-size: 100%;
    height: 44px;
    line-height: 1.15;
    margin: 12px 0 0;
    outline: none;
    overflow: hidden;
    padding: 0 25px;
    position: relative;
    text-align: center;
    text-transform: none;
    transform: translateZ(0);
    transition: all .2s, box-shadow .08s ease-in;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.next:disabled {
    background-color: rgb(180,180,180);
}

.next:focus {
    box-shadow: rgba(50, 50, 93, .1) 0 0 0 1px inset, rgba(50, 50, 93, .2) 0 6px 15px 0, rgba(0, 0, 0, .1) 0 2px 2px 0, rgba(50, 151, 211, .3) 0 0 0 4px;
}

.separator {
    width: 100%;
    border-bottom: 1px solid #333;
    margin: 15px 0;
}

.tab textarea {
    width: 100%;
    min-height: 200px;
}

.label_range {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
}

strong img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

.custom_checkbox,
.custom_radio {
    display: inline-block;
    vertical-align: middle;
}

.custom_checkbox input,
.custom_radio input {
    display: none;
}

.custom_checkbox label {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #00F;
    background-color: #FFF;
    cursor: pointer;
}

.custom_checkbox label:after {
    content: "";
    display: none;
    position: absolute;
    width: 10px;
    height: 6px;
    border-left: 2px solid #00F;
    border-bottom: 2px solid #00F;
    transform: rotate(-45deg);
    top: 2px;
    left: 2px;
}

.custom_checkbox input:checked+label:after {
    display: inline-block;
}


.custom_radio label {
    position: relative;
    display: inline-block;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 2px solid #00F;
    background-color: #FFF;
    cursor: pointer;
}

.custom_radio label:after {
    content: "";
    display: none;
    position: absolute;
    width: 80%;
    height: 80%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #00F;
    border-radius: 50%;
}

.custom_radio input:checked+label:after {
    display: inline-block;
}

input[type='text'] {
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.tab table {
    border-collapse: collapse;
    margin: 0 auto;
}

.tab table th, .tab table td {
    padding: 10px;
    text-align: center;
    border: 1px dotted #000;
}

.tab table th {
    color: #FFF;
    background-color: #555;
}

.tab table tr td:first-child{
    text-align: left;
}

.tab table tr td:not(:first-child) {
    width: 115px;
    max-width: 115px;
}

.custom_radio {
    position: relative;
    cursor: pointer;
}

td:hover .custom_radio::before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-top: 10px solid #000;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid transparent;
    bottom: calc(100% - 10px);
    left: 50%;
    margin-left: -10px;
}

td:hover .custom_radio::after {
    position: absolute;
    padding: 10px;
    color: #FFF;
    background-color: #000;
    bottom: calc(100% + 10px);
    left: 50%;
    min-width: 100px;
    transform: translateX(-50%);
    border-radius: 5px;
}

/* TAB 1 */
td:hover .custom_radio.per_nulla::after{
    content: "Per nulla";
}

td:hover .custom_radio.un_poco::after{
    content: "Un poco";
}

td:hover .custom_radio.abbastanza::after{
    content: "Abbastanza";
}

td:hover .custom_radio.molto::after{
    content: "Molto";
}

td:hover .custom_radio.moltissimo::after{
    content: "Moltissimo";
}



/* TAB 2 */
td:hover .custom_radio.per_niente_vera_per_me::after{
    content: "Per niente vera per me";
}

td:hover .custom_radio.poco_vera_per_me::after{
    content: "Poco vera per me";
}

td:hover .custom_radio.abbastanza_vera_per_me::after{
    content: "Abbastanza vera per me";
}

td:hover .custom_radio.alquanto_vera_per_me::after{
    content: "Alquanto vera per me";
}

td:hover .custom_radio.totalmente_vera_per_me::after{
    content: "Totalmente vera per me";
}



/* TAB 3 */
td:hover .custom_radio.mai::after{
    content: "Mai";
}

td:hover .custom_radio.raramente::after{
    content: "Raramente";
}

td:hover .custom_radio.spesso::after{
    content: "Spesso";
}

td:hover .custom_radio.sempre::after{
    content: "Sempre";
}


/* TAB 4 */
td:hover .custom_radio.nessuna_ansia::after{
    content: "Nessuna ansia";
}

td:hover .custom_radio.ansia_lieve::after{
    content: "Ansia lieve";
}

td:hover .custom_radio.ansia_moderata::after{
    content: "Ansia moderata";
}

td:hover .custom_radio.ansia_grave::after{
    content: "Ansia grave";
}


/* TAB 5 */
td:hover .custom_radio.mai::after{
    content: "Mai";
}

td:hover .custom_radio.qualche_volta::after{
    content: "Qualche volta";
}

td:hover .custom_radio.spesso::after{
    content: "Spesso";
}

td:hover .custom_radio.quasi_sempre::after{
    content: "Quasi sempre";
}


#codice_personale {
    text-align: center;
    font-size: 30px;
    padding: 20px;
}