* {
    margin: 0;
    padding: 0
}

html {
    height: 100%
}

.msform {
    text-align: center;
    position: relative;
    margin-top: 20px;
    font-size: 16px;
}

.msform fieldset .form-card {
    background: white;
    border: 0 none;
    border-radius: 0px;
    box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.2);
    padding: 20px 40px 30px 40px;
    box-sizing: border-box;
    width: 94%;
    margin: 0 3% 20px 3%;
    position: relative
}

.msform fieldset {
    background: white;
    border: 0 none;
    border-radius: 0.5rem;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding-bottom: 20px;
    position: relative
}

.msform fieldset:not(:first-of-type) {
    display: none
}

.msform fieldset .form-card {
    text-align: left;
    color: #9E9E9E
}

.msform .error {
    text-align: left;
    color: #bc0707;
    font-size: 14px;
    display: inherit;
    font-weight: normal;
}

.msform input,
.msform textarea {
    padding: 0px 8px 4px 8px;
    border: none;
    border-bottom: 1px solid #ccc;
    border-radius: 0px;
    margin-bottom: 6px;
    margin-top: 3px;
    width: 100%;
    box-sizing: border-box;
    font-family: montserrat;
    color: #2C3E50;
    font-size: 16px;
    letter-spacing: 1px
}

.msform input:focus,
.msform textarea:focus {
    -moz-box-shadow: none !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    border: none;
    font-weight: bold;
    border-bottom: 2px solid skyblue;
    outline-width: 0
}

.msform .action-button {
    width: 100px;
    background: #17a2b8;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 0px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px
}

.msform .action-button:hover,
.msform .action-button:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 3px skyblue
}

.msform .action-button-previous {
    width: 100px;
    background: #616161;
    font-weight: bold;
    color: white;
    border: 0 none;
    border-radius: 0px;
    cursor: pointer;
    padding: 10px 5px;
    margin: 10px 5px
}

.msform .action-button-previous:hover,
.msform .action-button-previous:focus {
    box-shadow: 0 0 0 2px white, 0 0 0 3px #616161
}

select.list-dt {
    border: none;
    outline: 0;
    border-bottom: 1px solid #ccc;
    color: #555555;
    font-family: montserrat;
    font-size: 16px;
    margin: 2px
}

select.list-dt:focus {
    border-bottom: 2px solid skyblue
}

.card {
    z-index: 0;
    border: none;
    border-radius: 0.5rem;
    position: relative
}

.fs-title {
    font-size: 25px;
    color: #2C3E50;
    margin-bottom: 10px;
    font-weight: bold;
    text-align: left
}

#progressbar {
    margin-bottom: 30px;
    overflow: hidden;
    color: lightgrey
}

#progressbar .active {
    color: #000000
}

#progressbar li {
    list-style-type: none;
    font-size: 11px;
    width: 25%;
    float: left;
    position: relative;
    margin: 0;
    white-space: nowrap;
}

#progressbar #fatturazione:before {
    font-family: FontAwesome;
    content: "\f15b"
}

#progressbar #pagamento:before {
    font-family: FontAwesome;
    content: "\f09d"
}

#progressbar #partecipanti:before {
    font-family: FontAwesome;
    content: "\f007"
}

#progressbar #conferma:before {
    font-family: FontAwesome;
    content: "\f00c"
}

#progressbar li:before {
    width: 50px;
    height: 50px;
    line-height: 45px;
    display: block;
    font-size: 18px;
    color: #ffffff;
    background: lightgray;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    padding: 2px
}

#progressbar li:after {
    content: '';
    width: 100%;
    height: 2px;
    background: lightgray;
    position: absolute;
    left: 0;
    top: 25px;
    z-index: -1
}

#progressbar li.active:before,
#progressbar li.active:after {
    background: #0160ad
}

.radio-group {
    position: relative;
    text-align: left;
}

.radio {
    margin: 8px !important;
    display: inline-block !important;
    align-items: normal !important;
    width: auto !important;
}

.fit-image {
    width: 100%;
    object-fit: cover
}

::-webkit-input-placeholder {
    color: #cbcbcb;
}
:-moz-placeholder {
    color: #cbcbcb;
    opacity: 1;
}
::-moz-placeholder {
    color: #cbcbcb;
    opacity: 1;
}
:-ms-input-placeholder {
    color: #cbcbcb;
}
::-ms-input-placeholder {
    color: #cbcbcb;
}
::placeholder {
    color: #cbcbcb;
}

.form-valid {
    opacity: 0.5;
}

.msform input:required:valid {
    border-bottom: 1px solid #06aa23;
}

/* ============================================================
   STILI SPECIFICI FORM CONVEGNO (#msform)
   ============================================================ */

#msform {
    font-size: 15px;
    color: #333;
    line-height: 1.5;
}

#msform h5 {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    text-transform: uppercase;
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

#msform .form-card {
    box-shadow: none;
    padding: 0;
    width: 100%;
    margin: 0;
}

/* Spaziature griglia */
#msform .form-row,
#msform .row {
    margin-left: -8px;
    margin-right: -8px;
}

#msform [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 15px;
}

#msform .form-group {
    margin-bottom: 0;
    width: 100%;
}

/* Input, select, textarea */
#msform input:not([type="checkbox"]):not([type="radio"]),
#msform select,
#msform textarea {
    width: 100%;
    height: 44px;
    padding: 8px 14px;
    border: 1px solid #ccc !important;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    box-shadow: none;
    transition: border-color 0.2s ease-in-out;
    /* reset stili base msform */
    border-bottom: 1px solid #ccc !important;
    letter-spacing: normal;
    margin-bottom: 0;
    margin-top: 15px;
}

#msform input:not([type="checkbox"]):not([type="radio"]):focus,
#msform select:focus {
    border-color: #555 !important;
    border-bottom: 1px solid #555 !important;
    outline: none;
    font-weight: normal;
}

/* Campi disabilitati */
#msform input[disabled] {
    background-color: #f8f9fa !important;
    border-color: #e9ecef !important;
    color: #6c757d;
    cursor: not-allowed;
}

/* Checkbox e radio */
#msform input[type="checkbox"],
#msform input[type="radio"],
#msform .radio {
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 8px 0 0 !important;
    vertical-align: middle !important;
    position: relative;
    top: -1px;
}

#msform label {
    display: inline;
    font-weight: normal;
    vertical-align: middle;
    cursor: pointer;
}

#msform .form-check-inline {
    display: inline-block;
    margin-right: 20px;
    margin-top: 5px;
}

/* Select conoscenza */
#msform select.list-dt,
#msform #conoscenza {
    width: auto;
    display: inline-block !important;
    margin-left: 10px;
    height: 40px;
    padding: 5px 30px 5px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #ccc !important;
}

/* Pulsante invio */
#msform input[type="submit"],
#msform .action-button {
    background-color: #555 !important;
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    padding: 12px 30px;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    height: auto;
    margin-top: 15px;
    width: auto;
    transition: background-color 0.2s;
}

#msform input[type="submit"]:hover,
#msform .action-button:hover {
    background-color: #333 !important;
    box-shadow: none;
}

/* Messaggi di errore */
#msform label.error {
    color: #dc3545 !important;
    font-size: 13px;
    font-weight: 400;
    display: block !important;
    margin-top: 5px;
    margin-bottom: 0;
}

#msform input.error,
#msform select.error {
    border-color: #dc3545 !important;
}