.inp {
    position: relative;
    margin: auto;
    width: 100%;
}

.inp .label {
    top: 16px;
    left: 0;
    transform-origin: 0 0;
    transition: all 0.2s ease;
}

.inp .border {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
}

.inp input {
    -webkit-appearance: none;
    width: 100%;
    border: 0;
    font-family: inherit;
    padding: 12px 0;
    height: 48px;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid #c8ccd4;
    background: none;
    border-radius: 0;
    color: #223254;
}

.inp input:hover {
    background: rgba(34, 50, 84, 0.03);
}

.inp input:not(:placeholder-shown) + span {
    color: #9098a9;
    transform: translateY(-26px) scale(0.75);
}

.inp input:focus {
    background: none;
    outline: none;
}

.inp input:focus + span {
    transform: translateY(-26px) scale(0.75);
}

.inp input:focus + span + .border {
    /* transform: scaleX(1);*/
}


.fa.fa-question-circle-o {
    font-size: 22px;
    text-align: center;
    vertical-align: middle;
    margin-left: 9px;
    margin-top: 9px;
    cursor: pointer;
}

.field-row {
    margin-bottom: 30px;
}

.vue-form-wizard .wizard-tab-content {
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 10px;
}

.vue-form-wizard .description {
    margin-top: 9px !important;
    float: left !important;
    font-size: 12px !important;

}

.tooltip {
    display: block !important;
    z-index: 10000;
}

.tooltip .tooltip-inner {

    color: white;
    border-radius: 16px;
    padding: 5px 10px 4px;
}

.tooltip .tooltip-arrow {
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    margin: 5px;
    z-index: 1;
}

.tooltip[x-placement^="top"] {
    margin-bottom: 5px;
}

.tooltip[x-placement^="top"] .tooltip-arrow {
    border-width: 5px 5px 0 5px;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
    bottom: -5px;
    left: calc(50% - 5px);
    margin-top: 0;
    margin-bottom: 0;
}

.tooltip[x-placement^="bottom"] {
    margin-top: 5px;
}

.tooltip[x-placement^="bottom"] .tooltip-arrow {
    border-width: 0 5px 5px 5px;
    border-left-color: transparent !important;
    border-right-color: transparent !important;
    border-top-color: transparent !important;
    top: -5px;
    left: calc(50% - 5px);
    margin-top: 0;
    margin-bottom: 0;
}

.tooltip[x-placement^="right"] {
    margin-left: 5px;
}

.tooltip[x-placement^="right"] .tooltip-arrow {
    border-width: 5px 5px 5px 0;
    border-left-color: transparent !important;
    border-top-color: transparent !important;
    border-bottom-color: transparent !important;
    left: -5px;
    top: calc(50% - 5px);
    margin-left: 0;
    margin-right: 0;
}

.tooltip[x-placement^="left"] {
    margin-right: 5px;
}

.tooltip[x-placement^="left"] .tooltip-arrow {
    border-width: 5px 0 5px 5px;
    border-top-color: transparent !important;
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
    right: -5px;
    top: calc(50% - 5px);
    margin-left: 0;
    margin-right: 0;
}

.tooltip.popover .popover-inner {
    background: #f9f9f9;
    padding: 24px;
    border-radius: 5px;
    box-shadow: 0 5px 30px rgba(black, .1);
}

.tooltip.popover .popover-arrow {
    border-color: #f9f9f9;
}

.tooltip[aria-hidden='true'] {
    visibility: hidden;
    opacity: 0;
    transition: opacity .15s, visibility .15s;
}

.tooltip[aria-hidden='false'] {
    visibility: visible;
    opacity: 1;
    transition: opacity .15s;
}

.logo {
    padding-top: 30px;
}

.padding-top-50 {
    padding-top: 40px;
}

.nav-item {
    margin-bottom: 15px;
}

.nav-item.active {
}

.nav-item a {
    padding-left: 10px !important;
}

.nav-item.active a {
    color: white;
}

.navbar-nav {
    width: 100%
}

.wizard-header {
    display: none;
}

.btn-primary {
    color: white;
    border-radius: 0px;
}

.form-wizard .btn-step {
    background-color: #e3e3e3 !important;
    color: black;
    border-color: #e3e3e3;
    opacity: .7
}

.form-wizard .btn-step.active {
    opacity: 1
}


.btn-substep {
    width: 100%;
    border-radius: 0px;
    background: none;
}

.active .stepTitle {
    color: white !important;
}

.stepTitle {
    position: relative;
    margin-top: -30px;
    margin-bottom: 30px;
}

h3.btn-substep {
    color: black;
    font-size: 20px
}

.subcategories-container {
    padding-bottom: 0px;
}


@media only screen and (max-width: 600px) {
    .fa.fa-question-circle-o {
        position: absolute;
        top: 0px;
        right: 17px;
        font-size: 17px;

    }

    label.label {
        width: 90% !important;
        float: left !important;
        line-height: 18px;
        margin-bottom: 15px;
    }

    .vs--unsearchable .vs__search {
        height: 0px;
        margin-bottom: 0px;
        margin-top: 0px;
    }

    .v-select {
        float: left !important;
        width: 100% !important;
    }

    i.description {
        font-size: 12px !important;
    }

    .field-row {
        margin-bottom: 10px;
    }
}


.preview-text {
    padding: 20px;
    border-radius: 4px;
    margin-top: 10px;
    background: #f2f2f2;
}

.exit-popup-zone {
    position: absolute;
    width: 150px;
    height: 150px;
    top: 0;
    right: 0
}

.day__month_btn::before, .month__year_btn::before {
    content: 'Clicca qui per cambiare mese/anno';
    font-size: 10px;
    position: absolute;
    padding-top: 15px;
    width: 100%;
    left: 0;
}

.tab-content {
    background: white;
    margin-top: 20px;
    padding: 30px;
    -webkit-box-shadow: 0px 9px 20px -8px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 9px 20px -8px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 9px 20px -8px rgba(0, 0, 0, 0.75);
}

h2.category-name {
    font-size: 20px;
    color: #b3b0b0;
}

.tab-content label.label {
    font-size: 24px !important;
    font-weight: 500;
    display: block;
}


/* Customize the label (the container) */
.container-radio {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 20px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    float: left;
    width: 100%;
}

/* Hide the browser's default radio button */
.container-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}


/* Hide the browser's default checkbox */
.container-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Create a custom checkbox */
.container-checkbox .checkmark {
    position: absolute;
    top: 5px !important;
    left: 0;
    height: 25px;
    width: 25px;
    background-color: #eee;
}

/*
.container-radio .checkmark {
    top: 5px !important;
}*/

/* On mouse-over, add a grey background color */
.container-checkbox:hover input ~ .checkmark {
    background-color: #ccc;
}

/* When the checkbox is checked, add a blue background */
.container-checkbox input:checked ~ .checkmark, .container-radio input:checked ~ .checkmark {
    background-color: #2196F3;
}

.container-radio input:checked ~ .checkmark, .container-radio input ~ .checkmark {
    border-radius: 50%;
}

/* Show the checkmark when checked */
.container-checkbox input:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
.container-checkbox .checkmark::after {
    left: 9px;
    top: 4px;
    width: 8px;
    height: 13px;
    border: solid white;
    border-top-width: medium;
    border-right-width: medium;
    border-bottom-width: medium;
    border-left-width: medium;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    content: "";
    position: absolute;
    display: none;
}

.alert-danger {
    float: left;
    width: 100%;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.container-radio .checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the indicator (dot/circle) when checked */
.container-radio input:checked ~ .checkmark:after {
    display: block;
}

/* Style the indicator (dot/circle) */
.container-radio .checkmark:after {
    top: 9px;
    left: 9px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.form-control {
    height: 50px;
    font-size: 20px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.vs__dropdown-toggle {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    display: flex;
    background: none;
    border: 1px solid #ced4da !important;
    border-radius: 0.25rem !important;
    white-space: normal;
    min-height: 50px !important;
    height: auto !important;
    font-size: 20px !important;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.vs__dropdown-menu {
    font-size: 20px;
    width: 100% !important;
}

.form-control::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
    color: #e3e3e3;
    opacity: 1; /* Firefox */
}

.form-control:-ms-input-placeholder { /* Internet Explorer 10-11 */
    color: #e3e3e3;
}

.form-control::-ms-input-placeholder { /* Microsoft Edge */
    color: #e3e3e3;
}


@media (max-width: 1030px) {

    .tab-content {
        padding: 10px;
    }


    .exit-popup-zone {
        display: none;
    }

    .no-padding-mobile {
        padding-top: 0px;
    }

    .continue-later {
        background: none;
        color: #005384 !important;
        text-decoration: underline;
        margin-bottom: 20px !important;
        padding: 12px !important;
    }

    .tab-content label.label {
        font-size: 20px !important;
        line-height: 25px;
        margin-bottom: 30px;
    }

    .navbar.fixed-bottom button {
        margin-top: 0px !important;
    }

    .container-radio {
        font-size: 19px !important;
        line-height: 21px;
        margin-bottom: 30px;
    }

    .container-fluid {
        padding-top: 0px !important
    }

    .navbar.fixed-bottom {
        background: white;
        -webkit-box-shadow: 0px 1px 7px rgba(132, 132, 132, 0.75);
        -moz-box-shadow: 0px 1px 7px rgba(132, 132, 132, 0.75);
        box-shadow: 0px 1px 7px rgba(132, 132, 132, 0.75);
    }

    .navbar.fixed-bottom {
        visibility: visible;
    }

    .tab-content p {
        font-size: 14px !important;
    }

    .continue-later {
        margin-bottom: 30px;
    }
}

.category-description {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e3e3e3;
}

.row-field {
    margin-bottom: 30px;
}

.single-field {
    margin-bottom: 30px;
}

.additional-informations {
    text-decoration: underline !important;
    font-weight: bold !important;
    cursor: pointer !important;
    color: rgb(101, 217, 206) !important;
    margin-top: 12px;
    float: left;
    margin-left: 10px;
}

@media (max-width: 600px) {

    .additional-informations {
        margin-top: 0px;
        margin-left: 0px;
        margin-bottom: 10px
    }

    .label.has-info {
        margin-bottom: 0px !important;
    }


}

.category-box {
    background: #e3e3e3;
}

.category-box h2 {
    color: #005384 !important;
    font-weight: bold;
    margin-top: 0.5rem;
}

h5 button:hover, h5 button:focus {
    text-decoration: none !important;
    border: none !important;
    box-shadow: none !important;
}

h5 button {
    width: 100%;
    text-align: left !important;
    font-weight: bold !important;
    text-transform: uppercase;
    border: none !important;
}

.modify-form-accordion .label {
    font-size: 22px;
}

.card-header.is-invalid .btn-link {
    color: #761b18 !important;
}

.card-header.is-invalid {
    color: #761b18;
    background-color: #f9d6d5;
    border-color: #f7c6c5;
}

.card-header.is-warning .btn-link {
    color: #856404 !important;
}

.card-header.is-warning {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}

/* =========================================================================
   Spolverata gerarchia font del form (create + modify, contratti + servizi).
   Scoped a #contract_form: prima era tutto 20-24px e piatto. Nuova scala:
   domanda 16 (semibold) > opzioni/input 15 > descrizione 13.
   ========================================================================= */

/* Titolo della domanda */
#contract_form .tab-content label.label,
#contract_form .modify-form-accordion .label {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin-bottom: 6px !important;
}

/* Descrizioni / hint sotto la domanda */
#contract_form i.description,
#contract_form .description,
#contract_form .category-name {
    font-size: 13px !important;
    line-height: 1.45 !important;
}

/* Opzioni radio / checkbox */
#contract_form .container-radio,
#contract_form .container-checkbox {
    font-size: 15px !important;
    line-height: 1.4 !important;
    margin-bottom: 10px !important;
    padding-left: 28px !important;
    min-height: 20px;
}

/* Cerchio/quadrato del controllo: ridimensionato e allineato alla PRIMA riga
   del testo (prima era 25px e disallineato coi testi ora piu' piccoli). */
#contract_form .container-radio .checkmark,
#contract_form .container-checkbox .checkmark {
    top: 2px !important;
    left: 0 !important;
    height: 18px !important;
    width: 18px !important;
    background-color: #e9edf2;
}
/* Stato selezionato in blu (la specificita' con #contract_form batteva la regola
   originale del checked, lasciando il controllo grigio anche quando scelto). */
#contract_form .container-radio input:checked ~ .checkmark,
#contract_form .container-checkbox input:checked ~ .checkmark {
    background-color: #2196F3 !important;
}

/* Pallino interno del radio, centrato nel cerchio da 18px */
#contract_form .container-radio .checkmark:after {
    top: 5px !important;
    left: 5px !important;
    width: 8px !important;
    height: 8px !important;
}
/* Spunta interna della checkbox, centrata */
#contract_form .container-checkbox .checkmark::after {
    top: 2px !important;
    left: 6px !important;
    width: 5px !important;
    height: 10px !important;
}

/* Input di testo e select */
#contract_form .form-control,
#contract_form .vs__dropdown-toggle,
#contract_form .vs__dropdown-menu,
#contract_form .vs__search {
    font-size: 15px !important;
}
#contract_form .form-control:not(textarea) {
    height: 46px !important;
}
/* Textarea LIBERE: niente auto-grow, nessuno script tocca l'altezza. Altezza di
   default comoda e ridimensionabili a mano dal bordo inferiore. IMPORTANTE: niente
   !important sull'height, altrimenti batterebbe lo stile inline del drag e il resize
   manuale non avrebbe effetto (era il bug: la textarea restava incollata a 46px). */
#contract_form textarea.form-control {
    height: 120px;
    min-height: 90px;
    resize: vertical !important;
    overflow-y: auto !important;
}
#contract_form .vs__dropdown-toggle {
    min-height: 46px !important;
}

/* Righetta sottile tra un campo e l'altro, per separarli visivamente */
#contract_form .single-field {
    border-bottom: 1px solid #edf0f4;
    padding-bottom: 18px;
    margin-bottom: 18px;
}
#contract_form .single-field:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Intestazione categoria (accordion header) piu' sobria */
#contract_form .card-header h5 button {
    font-size: 13px !important;
    letter-spacing: .02em;
}

/* Titolo pagina compatto (era 2rem, wrappava su 2 righe) */
#contract_form .page-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -.01em;
}
@media (min-width: 768px) {
    #contract_form .page-title {
        font-size: 1.45rem;
    }
}
