@import url('https://fonts.cdnfonts.com/css/titillium-web');

.d-flex {
    display: flex;
}

.d-none {
    display: none;
}

.cform-container {
    font-family: 'Titillium Web', sans-serif !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px;
}

.cform-container * {
    font-family: 'Titillium Web', sans-serif !important;
}

.cform-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
}

.cform-header .cform-title {
    color: #D0103A;
    font-size: 48px;
    font-weight: 600;
    text-align: center;
}

@media only screen and (max-width: 768px) {
    .cform-header .cform-title {
        text-align: center;
        font-size: 40px;
    }
}


.cform-header .cform-helper-container {
    text-align: center;
}

.cform-header .cform-helper-container div {
    margin-bottom: 0.5rem;
}

.cform-header .cform-helper-container a {
    color: black;
    text-decoration: underline;
}

.cform-error-msg {
    color: #d0103a;
    margin: 10px;
    width: 75%;
}

.cform-info-msg {
    color: black;
    margin: 10px;
    margin-bottom: 0;
    width: 75%;
}

.cform-last-step {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cform-bubbles-container {
    display: flex;
    width: 100%;
    align-content: center;
    justify-content: center;
    padding: 20px 0px;
}

.cform-bubbles-container .cform-bubble {
    padding: 20px;
    border-radius: 50%;
    background-color: rgb(185, 112, 128);
    color: white;
    display: grid;
    margin: 0px 20px;
    width: 60px;
    height: 60px;
    justify-content: center;
    align-content: center;
}

.cform-bubbles-container .cform-bubble.active {
    background-color: #D0103A;
}

.cform-bubbles-container .cform-bubble p {
    font-size: 45px;
    flex: 1;
    margin: 0px;
    font-weight: 500;
}

.cform-bubbles-container .cform-bubble-line {
    position: absolute;
    width: 125px;
    height: 5px;
    background-color: #D0103A;
    transform: translate(0px, 28px);
    z-index: -2;
}

.cform-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    margin: 20px;
    border-radius: 30px;
    box-shadow: 0px 10px 40px #00000029;
    padding-bottom: 30px;
}

.cform-form.result {
    text-align: center;
    padding: 50px;
}

.cform-form h3 {
    color: #D0103A;
    font-size: 35px;
    font-weight: 600;
    padding: 25px 60px;
    width: 100%;
}

@media only screen and (max-width: 768px) {
    .cform-form.result {
        padding: 20px;
    }

    .cform-form h3 { 
        padding: 25px;
        font-size: 30px;
    }
}

.cform-form-fields .cform-soluzioni {
    grid-template: auto / 100% 0%;
}

.cform-form-fields {
    width: 100%;
    display: grid;
    grid-template: auto / 50% 50%;
    align-content: center;
    justify-content: center;
}

.cform-form-fields .cform-field-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 320px;
    padding: 20px;
}

.cform-form-fields .cform-field-container p,
.cform-form-fields .cform-field-container label {
    font-size: 15px;
    font-weight: 300;
    text-align: left;
    width: 75%;
}

.cform-form-fields .cform-field-container label {
    margin-top: 15px;
    margin-bottom: 15px;
}

.cform-form-fields .cform-field-container input {
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border: 1px solid #363636;
    border-radius: 30px;
    opacity: 1;
    padding: 5px 10px;
    width: 75%;
    transition: all 0.1s ease-in;
    cursor: pointer;
    font-size: 15px;
}

.cform-form-fields .cform-field-container input[type="text"]:focus {
    border: 1px solid #FFCB2C;
    outline: none;
    box-shadow: 0px 3px 6px #00000029;
}

.cform-form-fields .cform-field-container input[type="text"]:hover:not(:disabled) {
    box-shadow: 0px 3px 6px #00000029;
    outline-style: none;
    border: 1px solid #FFCB2C;
}

.cform-form-fields .cform-field-container input.error {
    border: 1px solid #D0103A;
}

.cform-form-fields .cform-field-container select {
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border: 1px solid #363636;
    border-radius: 30px;
    opacity: 1;
    padding: 5px 10px;
    width: 75%;
    transition: all 0.1s ease-in;
    font-size: 15px;
    color: black !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg fill='black' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position-x: 100%;
    background-position-y: 5px;
}

.cform-form-fields .cform-field-container select:disabled {
    border: 1px solid #ababab;
    cursor: default;
}

.cform-form-fields .cform-field-container select:hover:not(:disabled) {
    box-shadow: 0px 3px 6px #00000029;
    outline-style: none;
    border: 1px solid #FFCB2C;
}

.cform-form-fields .cform-field-container select:focus {
    border: 1px solid #FFCB2C;
    outline: none;
    box-shadow: 0px 3px 6px #00000029;
}

.cform-form-fields .cform-field-container select.error {
    border: 1px solid #D0103A;
}

.cform-form-fields .cform-field-container input:disabled {
    background: #FFFFFF 0% 0% no-repeat padding-box;
    border-color: #C3C3C3;
    cursor: default;
}

.cform-autocomplete-items {
    background-color: #FFFFFF;
    border: 1px solid #d4d4d4;
    /* border-radius: 25px; */
    height: 50vh;
    list-style-type: none;
    margin:0;
    overflow-y: scroll;
    padding: 0;
    position: absolute;
    transform: translate(0px, 87px);
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    width: 30%;
    z-index: 99;
}

.cform-autocomplete-items::-webkit-scrollbar {
    display: none;
}

.cform-autocomplete-items li:hover,
.cform-autocomplete-items li:focus {
    background-color: highlight;
    color: highlighttext;
    outline: none;
}

.cform-autocomplete-items li {
    /* padding: 10px 20px; */
    padding: 10px;
    cursor: pointer;
    background-color: #fff;
}

@media only screen and (max-width: 768px) {
    .cform-autocomplete-items {
        width: 55%;
    }
}

.cform-btn-container {
    display: flex;
    width: 100%;
    justify-content: center;
}

.cform-btn {
    background-color: #D0103A;
    color: white;
    text-transform: uppercase;
    padding: 10px 40px;
    border-radius: 30px !important;
    border-color: #D0103A !important;
    box-shadow: 0px 10px 20px #00000033;
    border: 0px;
    font-size: 1rem;
    margin: 0px 10px;
    cursor: pointer;
    width: 180px;
}

.cform-btn.disabled {
    background-color: #9f0929;
    cursor: default;
}

.cform-soluzioni {
    display: block;
    flex-direction: column;
    width: 100%;
    margin-left: 100px;
}

.cform-soluzioni h4 {
    margin: 10px 20px;
}

.cform-soluzioni label {
    display: flex;
    flex-direction: row-reverse;
    justify-content: left;
    margin: 20px;
}

.cform-soluzioni + .cform.cform-soluzioni {
    margin-top: 1rem;
}

.cform-soluzioni input[type='checkbox'] {
    /* Add if not using autoprefixer */
    -webkit-appearance: none;
    appearance: none;
    /* For iOS < 15 to remove gradient background */
    background-color: #fff;
    /* Not removed via appearance */
    margin: 0;
    font: inherit;
    color: currentColor;
    border-radius: 5px;
    width: 20px;
    height: 20px;
    margin-right: 20px;
    transition: all 0.15s ease-in;
    border: 1px solid black;
}

.cform-soluzioni input[type='checkbox']:hover {
    background-color: #00000029;
    border: 0px solid black;
}

.cform-soluzioni input[type='checkbox']:focus {
    background-color: #00000029;
    border: 0px solid black;
    outline: none;
}

.cform-soluzioni input[type='checkbox']:checked {
    background-color: #D0103A;
    border: 0px solid black;
}

@media only screen and (max-width: 768px) {

    .cform-form-fields {
        grid-template: auto / auto;
    }

    .cform-soluzioni {
        margin-left: 15px;
    }
}