.inail-mat-radio-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.mdc-radio {
    padding: 0 !important;
    margin-top: 4px !important;
    margin-right: 10px !important;
}

mat-radio-group {
    margin-top: 5px !important;
}

/*Bordo esterno del radio button*/
.mdc-radio__outer-circle {
    width: 24px !important;
    height: 24px !important;
    border: 2px solid #7e858b !important;
}

.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle {
    // border-color: #0060DF !important;
    border: 2px solid #002E5F !important;
    box-shadow: none !important;
}



.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:enabled+.mdc-radio__background .mdc-radio__inner-circle {
    border-color: #002e5f !important;
    //   background: #002e5f !important;
}

mat-radio-group .mdc-form-field>label {
    padding-left: 8px !important;
    padding-top: 6px !important;
    font-size: 16px !important;
    color: black !important;
    line-height: 20.6333px !important;
    cursor: pointer !important;
    font-weight: 400px !important;
}

mat-radio-group .mdc-form-field:hover label {
    color: #004D99 !important;
}

mat-radio-group .mdc-form-field:hover .mdc-radio__outer-circle {
    border-color: #004D99 !important;
}

mat-radio-group .mdc-form-field:hover .mdc-radio--disabled .mdc-radio__outer-circle {
    border-color: #7e858b !important;
}

mat-radio-group .mdc-form-field:has(.mdc-radio--disabled) label {
    color: #54595d !important;
    cursor: not-allowed !important;
}

mat-radio-group .mdc-form-field:has(.mdc-radio--disabled):hover label {
    color: #54595d !important;
    cursor: not-allowed !important;
}


mat-radio-group .mdc-form-field:hover .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle {
    // border-color: #0060DF !important;
    border: 2px solid #004D99 !important;
    box-shadow: none !important;
}

mat-radio-button:hover .mdc-radio__outer-circle {
    border-color: #004D99 !important;
}

mat-radio-button:hover .mdc-radio .mdc-radio__native-control:enabled:checked+.mdc-radio__background .mdc-radio__outer-circle {
    border-color: #004D99 !important;
}

.mat-mdc-radio-touch-target {
    display: none !important;
}

.mdc-radio__background {
    cursor: pointer !important;
}

/*Disabilitare effetto di hover */

.mat-mdc-radio-button.mat-accent {
    --mat-radio-checked-ripple-color: blue !important;
}

.mat-mdc-radio-button .mdc-radio .mdc-radio__background::before {
    background-color: transparent !important;
}

/* Focus sul radio button */

mat-radio-button:focus-within .mdc-radio__outer-circle {
    outline: none !important;
    box-shadow: 0 0 0 2px white, 0 0 0 3px #19191a !important;
}

/* Radio button disabilitata */

mat-radio-button input[disabled] {
    opacity: 0 !important;
    cursor: not-allowed !important;
}

mat-radio-group[disabled] mat-radio-button {
    cursor: not-allowed !important;
}

.mat-mdc-radio-button .mdc-radio [aria-disabled="true"] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle,
.mat-mdc-radio-button .mdc-radio .mdc-radio__native-control:disabled:checked+.mdc-radio__background .mdc-radio__outer-circle {
    opacity: 1 !important;
    border: 2px solid #c6cedc !important;
}

.mat-mdc-radio-button .mdc-radio [aria-disabled="true"] .mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__outer-circle {
    border: 2px solid #002e5f !important;
    box-shadow: none !important;
}

.inail-mat-label-error {
    color: #c9291b !important;
    font-weight: bold !important;
    word-wrap: break-word !important;
    font-size: 14.44px !important;
}

/*Label radio button in errore */

// .ng-invalid mat-radio-group label {
//     color: #19191a !important;
//     font-weight: 400px !important;
//     word-wrap: break-word !important;
//     font-size: 16px !important;
// }

// .ng-invalid .mdc-radio__outer-circle {
//     border-color: #c9291b !important;
// }
mat-radio-group.ng-invalid.ng-touched mat-radio-group label {
    color: #19191a !important;
    font-weight: 400px !important;
    word-wrap: break-word !important;
    font-size: 16px !important;
}
 
mat-radio-group.ng-invalid.ng-touched .mdc-radio__outer-circle {
    border-color: #c9291b !important;
}

.mdc-radio__outer-circle {
    width: 24px !important;
    height: 24px !important;
}

.mdc-radio__inner-circle {
    width: 24px !important;
    height: 24px !important;
    border-width: 12px !important;
}

.mdc-radio__native-control:checked+.mdc-radio__background .mdc-radio__inner-circle {
    transform: scale(0.7) !important;
}


.mat-internal-form-field {
    margin-top: 2px !important;
}


.mdc-radio__outer-circle-error {
    border-color: #c9291b !important;
}

mat-radio-button {
    margin-bottom: 10px !important;
}

legend {
    border: 0 !important;
}

legend.inail-mat-legend-title span.fa-question-circle:focus {
    font-size: 18px !important;
}