/* Don't show header border */
header
{
    border-bottom: none !important;
}

/* Full size form */
.content-container {
    display: flex;
    flex-direction: column;
}

/* Request form */
#request-form {
    flex-grow: 1;
    font-weight: bold;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 0;

    color: #fff;

    background-attachment: scroll;
    background-position: center;
    background-color: #99998a;
    background-size: cover;
    background-repeat: no-repeat;

    min-height: 80vh;
}

.no-webp #request-form {
    background-image: url('../../img/misc/plumber_mobile-min.jpg');
}

.webp #request-form {
    background-image: url('../../img/misc/plumber_mobile-min.webp');
}

#request-form > div {
    justify-content: center;

    width: 100%;

    background-color: rgba(0, 0, 0, .4);
}

@media (min-width: 501px) {
    #request-form {
        background-attachment: fixed;
        background-position: bottom;
        min-height: unset;
    }

    .no-webp #request-form {
        background-image: url('../../img/misc/plumber-min.jpg');
    }
    
    .webp #request-form {
        background-image: url('../../img/misc/plumber-min.webp');
    }
}

@media (max-width: 500px) {
    #request-form:not([data-step]),
    #request-form[data-step="button"]
    {
        justify-content: start;
        flex-grow: 1;
    }

    #request-form:not([data-step]) > div,
    #request-form[data-step="button"] > div,
    #request-form:not([data-step]) #request-steps,
    #request-form[data-step="button"] #request-steps
    {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }
}

/* Request progress */
#request-progress
{
    margin: 2rem;
}

#request-progress > div
{
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 20rem;
    max-width: 100%;
    margin: 0 auto;
}

#request-background-bar
{
    position: absolute;
    right: 0;
    left: 0;

    flex-grow: 1;

    height: 4px;

    background-color: #ccc;
}

#request-progress-bar
{
    position: absolute;
    left: 0;

    flex-grow: 1;

    height: 4px;

    transition: width .3s;

    background-color: #2892f2;
}

#request-progress-steps
{
    display: flex;
    align-items: center;
    flex-grow: 1;
    justify-content: space-between;
}

#request-progress-steps .step
{
    z-index: 1;

    padding: 4px;

    cursor: pointer;
    transition: background-color .3s;

    border: none;
    border-radius: 100%;
    background-color: #fff;
}

#request-progress-steps .step span
{
    display: block;

    width: 1rem;
    height: 1rem;

    transition: background-color .3s, opacity .3s;

    border-radius: 100%;
    background-color: #fff;
}

#request-progress-steps .step.current span
{
    background-color: #2892f2;
}

#request-progress-steps .step.current ~ .step:not(.unlocked)
{
    cursor: not-allowed;
    pointer-events: none;

    background-color: #ccc;
}

#request-progress-steps .step.current ~ .step:not(.unlocked) span
{
    background-color: #ccc;
}

#request-steps .step:not(:first-of-type)
{
    display: none;
}

#request-steps .step .step-content-container
{
    padding: 2rem 0;

    background-color: rgba(0, 0, 0, .3);
}

.step-small-area
{
    margin-right: 10vw;
    margin-left: 10vw;
}

#request-steps .step .step-helper-text
{
    font-size: 1.2rem;
    font-weight: bold;

    padding: 0.5rem 0 1rem;

    transition: opacity .3s;
    text-align: center;
}

#request-steps .step .step-helper-text:empty
{
    display: none;
}

#request-steps .step .step-helper-text.error
{
    color: red;
}

#request-steps .step.messages-hidden .step-helper-text
{
    display: none;
}

#request-steps .step .step-helper-text a::after
{
    content: ' >>';
}

#request-navigation
{
    padding: 2rem 0;

    background-color: rgba(0, 0, 0, .3);
}

#request-navigation > div
{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#request-navigation > div
{
    text-align: center;
}

#request-navigation button
{
    font-size: 1.2rem;
    font-weight: bold;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: .3rem 2.5rem;

    cursor: pointer;
    transition: background-color .3s;

    color: #fff;
    border: none;
    border-radius: 5px;
    background-color: #2892f2;
}

#request-navigation button:hover
{
    background-color: #0872d2;
}

#request-navigation button img
{
    height: 1.2rem;
}

#request-navigation button *:nth-child(2)
{
    margin-left: .5rem;
}

@media screen and (max-width: 500px)
{
    #request-progress
    {
        margin: 1.9rem;
    }

    #request-progress > div
    {
        width: unset;
    }

    #request-progress-steps .step span
    {
        width: 1.4rem;
        height: 1.4rem;
    }

    #request-steps .step .step-content-container
    {
        padding: 0 0 1rem;
    }

    .step-small-area
    {
        margin-right: 10vw;
        margin-left: 10vw;
    }

    #request-navigation
    {
        padding-top: .95rem;
    }

    #request-navigation button
    {
        font-size: 1.5rem;

        padding: .3rem 1.2rem;
    }
}

/* Form elements */
#request-form input
{
    font-size: inherit;
    box-sizing: border-box;
    width: 100%;
    height: 38px;
    padding-left: 8px;

    border: 1px solid #d2d2d2;
    border-radius: 3px;
}

#request-form textarea
{
    width: 100%;
    padding: 8px;
    font-size: inherit;

    border: 1px solid #d2d2d2;
    border-radius: 3px;
}

#request-form select {
    font-size: inherit;
}

.input-group-radius span
{
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-radius input
{
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.submit-form:focus
{
    box-shadow: none;
}

.hide-arrow
{
    cursor: default !important;

    opacity: 0;
}

.disable-arrow
{
    cursor: default !important;
}

.services.left h6
{
    font-size: 1.4rem;
}

@media screen and (max-width: 500px)
{
    #request-form input,
    #request-form textarea,
    #request-form select {
        font-size: 16px;
    }
}

/*
Book buttons

These are the classes you will change for the colors of the
top buttons on Invio Richiesta.
*/

.btn-book
{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    cursor: pointer;
    transition: .3s border-color, .3s color, .3s background-color;

    text-align: center;
    font-weight: normal;
    color: #4a4a4a; /* Button text color #4a4a4a*/
    background: white; /* Button background (none)*/
    padding: 0.5rem 1.4rem;
    border-radius: 1.5rem;
}

.active-option,
.btn-book:focus,
.btn-book:hover
{
    color: #fff; /* Button text color when active */
    border-color: #2892f2; /* Button border when active #2892f2*/
    background: #2892f2; /* Button background when active */
}

.btn-book svg path
{
    transition: .3s fill;

    fill: #000; /* Icon color #000*/
}

.active-option svg path,
.btn-book:focus svg path,
.btn-book:hover svg path
{
    fill: white; /* Icon color when active */
}

.btn-book svg
{
    width: 3.5rem;
    height: 3.9rem;
    margin-right: 0.9rem;

    vertical-align: middle;
}

.btn-book span
{
    font-size: 1.8rem;
    line-height: 1.4;

    display: inline-block;

    vertical-align: middle;
}

@media (max-width: 768px)
{
    .button-container-x
    {
        margin: .5rem 0;
    }

    .btn-book
    {
        width: 100%;
    }

    .btn-book svg
    {
        margin-right: 1rem;
    }
}

@media (max-width: 500px)
{
    .btn-book
    {
        justify-content: flex-start;
    }
}

/*
Book buttons

These are the classes you will change for the colors of the
top buttons on Invio Richiesta.
ADDED FOR ELE
*/

.btn-book-ele
{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    cursor: pointer;
    transition: .3s border-color, .3s color, .3s background-color;

    text-align: center;
    font-weight: normal;
    color: #4a4a4a; /* Button text color #4a4a4a*/
    background: white; /* Button background (none)*/
    padding: 0.5rem 1.4rem;
    border-radius: 1.5rem;
}

.active-option,
.btn-book-ele:focus,
.btn-book-ele:hover
{
    color: #000; /* Button text color when active */
    border-color: #fcfb00; /* Button border when active */
    background: #fcfb00; /* Button background when active */
}

.btn-book-ele svg path
{
    transition: .3s fill;

    fill: #000; /* Icon color #000*/
}

.active-option svg path,
.btn-book-ele:focus svg path,
.btn-book-ele:hover svg path
{
    fill: #000; /* Icon color when active */
}

.btn-book-ele svg
{
    width: 3.5rem;
    height: 3.9rem;
    margin-right: 0.9rem;

    vertical-align: middle;
}

.btn-book-ele span
{
    font-size: 1.8rem;
    line-height: 1.4;

    display: inline-block;

    vertical-align: middle;
}

@media (max-width: 768px)
{
    .button-container-x
    {
        margin: .5rem 0;
    }

    .btn-book-ele
    {
        width: 100%;
    }

    .btn-book-ele svg
    {
        margin-right: 1rem;
    }
}

@media (max-width: 500px)
{
    .btn-book-ele
    {
        justify-content: flex-start;
    }
}

/*
Book buttons

These are the classes you will change for the colors of the
top buttons on Invio Richiesta.
ADDED FOR FAB
*/

.btn-book-fab
{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    cursor: pointer;
    transition: .3s border-color, .3s color, .3s background-color;

    text-align: center;
    font-weight: normal;
    color: #4a4a4a; /* Button text color #4a4a4a*/
    background: white; /* Button background (none)*/
    padding: 0.5rem 1.4rem;
    border-radius: 1.5rem;
}

.active-option,
.btn-book-fab:focus,
.btn-book-fab:hover
{
    color: #000; /* Button text color when active */
    border-color: #f18f01; /* Button border when active */
    background: #f18f01; /* Button background when active */
}

.btn-book-fab svg path
{
    transition: .3s fill;

    fill: #000; /* Icon color #000*/
}

.active-option svg path,
.btn-book-fab:focus svg path,
.btn-book-fab:hover svg path
{
    fill: #000; /* Icon color when active */
}

.btn-book-fab svg
{
    width: 3.5rem;
    height: 3.9rem;
    margin-right: 0.9rem;

    vertical-align: middle;
}

.btn-book-fab span
{
    font-size: 1.8rem;
    line-height: 1.4;

    display: inline-block;

    vertical-align: middle;
}

@media (max-width: 768px)
{
    .button-container-x
    {
        margin: .5rem 0;
    }

    .btn-book-fab
    {
        width: 100%;
    }

    .btn-book-fab svg
    {
        margin-right: 1rem;
    }
}

@media (max-width: 500px)
{
    .btn-book-fab
    {
        justify-content: flex-start;
    }
}

/*
Book buttons

These are the classes you will change for the colors of the
top buttons on Invio Richiesta.
ADDED FOR BUTTON ON MAIN PAGE : mnpg
*/

.btn-book-mnpg
{
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;

    cursor: pointer;
    transition: .3s border-color, .3s color, .3s background-color;

    text-align: center;
    font-weight: normal;
    color: #4a4a4a; /* Button text color #4a4a4a*/
    background: white; /* Button background (none)*/
    padding: 0.5rem 1.4rem;
    border-radius: 1.5rem;
}

.active-option,
.btn-book-mnpg:focus,
.btn-book-mnpg:hover
{
    color: #fff; /* Button text color when active */
    border-color: #2892f2; /* Button border when active #2892f2*/
    background: #2892f2; /* Button background when active */
}

.btn-book-mnpg svg path
{
    transition: .3s fill;

    fill: #000; /* Icon color #000*/
}

.active-option svg path,
.btn-book-mnpg:focus svg path,
.btn-book-mnpg:hover svg path
{
    fill: white; /* Icon color when active */
}

.btn-book-mnpg svg
{
    width: 2.5rem;
    height: 3rem;
    margin-right: 0.9rem;

    vertical-align: middle;
}

.btn-book-mnpg span
{
    font-size: 1.6rem;
    line-height: 1.4;

    display: inline-block;

    vertical-align: middle;
}

@media (max-width: 768px)
{
    .button-container-x
    {
        margin: .5rem 0;
    }

    .btn-book-mnpg
    {
        width: 100%;
    }

    .btn-book-mnpg svg
    {
        margin-right: 1rem;
    }
}

@media (max-width: 500px)
{
    .btn-book-mnpg
    {
        justify-content: flex-start;
    }
}

.footer-x img
{
    cursor: pointer;
}

/* General step elements */

.step-header
{
    font-size: 2rem;

    display: flex;
    align-items: center;

    margin: 1rem 0 2rem;
}

.step-header-image
{
    height: 3rem;
    margin-right: .5rem;
}

.step-form-flex {
    display: flex;
    flex-direction: row;
    align-items: center;
}

@media (max-width: 500px)
{
    .step-header
    {
        font-size: 1.5rem;

        margin: 0;
        padding: 1.9rem 0;
    }
}

/* Button step */
#request-steps .step[data-step=button]  {
    display: flex;
    flex-direction: column;
}

#request-steps .step[data-step=button] .step-content-container  {
    flex-grow: 1;
}

#request-steps .step[data-step=button] .step-content
{
    padding-bottom: 10vh;
}

#request-slogan
{
    font-size: 2.4rem;
    margin: 0vh 0rem;
    text-align: center;
    white-space: nowrap;
    background-color: #2892f2;
    color: #fff;
    font-weight: bold;
    font-style: italic;
    font-family: Roboto, Calibri, Candara, Segoe, 'Segoe UI', Optima;
}

#request-slogan-old
{
    font-size: 2.5rem;
    margin: 5vh 2rem;
    text-align: center;
    white-space: nowrap;
}

#oppure
{
    font-size: 1.2rem;

    display: flex;
    align-items: center;

    padding: 1rem 0;

    text-align: center;
}

#oppure span:nth-child(1),
#oppure span:nth-child(3)
{
    flex-grow: 1;

    border-bottom: 2px solid #fff;
}

#oppure span:nth-child(2)
{
    display: inline-block;

    padding: 0 1.5rem;
}

#step-button-chiama
{
    font-size: 24px;
    line-height: 46px;

    padding: 2rem 0;

    pointer-events: none;
}

#step-button-chiama-mainpage
{
    font-size: 24px;
    line-height: 46px;
    padding: 2rem 0;
    pointer-events: none;
}

#step-button-chiama a
{
    color: inherit;
}

#step-button-chiama-mainpage a
{
    color: inherit;
}

#step-button-chiama a img
{
    height: 3rem;
    padding-right: 1rem;

    vertical-align: middle;
    text-decoration: none;
}

#step-button-chiama-mainpage a img
{
    height: 3rem;
    padding-right: 1rem;

    vertical-align: middle;
    text-decoration: none;
}

#step-button-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(max-content, 35%));
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

#step-button-container-mainpage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(max-content, 30%));
    grid-column-gap: 1rem;
    grid-row-gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

#service-intro
{
    font-size: 1.8rem;

    display: flex;
    align-items: center;
    margin: 0;
}

.head-introimage
{
    height: 3rem;
    padding-right: 1rem;
}

@media (max-width: 1000px)
{
    #request-slogan
    {
        font-size: 1.5rem;
        margin: 0rem 0rem;
        background-color: #2892f2;
        font-style: italic;
        font-weight: bold;
        font-family: Roboto, Calibri, Candara, Segoe, 'Segoe UI', Optima;
        color: white;
    }
    
    #request-slogan-old
    {
        font-size: 2rem;
        margin: 2rem;
    }
}

@media (max-width: 800px)
{
    #request-steps .step[data-step=button] .step-content
    {
        padding-bottom: 0;
    }

    #step-button-container {
        grid-template-columns: repeat(1, 1fr);
    }

    #step-button-container button {
        max-width: 80%;
        margin: 0 auto;
    }
    

    #step-button-container-mainpage {
        grid-template-columns: repeat(1, 1fr);
    }

    #step-button-container-mainpage button {
        max-width: 80%;
        margin: 0 auto;
    }
}


@media (max-width: 607px)
{
    #request-slogan
    {
        font-size: 1.5rem;
        margin: 0rem 0rem;
        background-color: #2892f2;
        font-style: italic;
        font-weight: bold;
        font-family: Roboto, Calibri, Candara, Segoe, 'Segoe UI', Optima;
        color: white;
    }
    
    #request-slogan-old
    {
        font-size: 1.4rem;
        margin: 2rem 0;
    }
}

@media (max-width: 500px)
{
    #request-steps .step[data-step=button]  {
        flex-grow: 1;
    }

    #step-button-container button {
        max-width: unset;
    }
   
    #step-button-container-mainpage button {
        max-width: unset;
    }

    #step-button-chiama
    {
        font-size: 1.8rem;

        padding-top: 6.5rem;
        padding-bottom: .8rem;

        text-align: center;
        pointer-events: all;
    }
    
    #step-button-chiama-mainpage
    {
        font-size: 1.6rem;
        padding-top: 1.5rem;
        padding-bottom: .8rem;
        margin-top: 0rem;
        text-align: left;
        pointer-events: all;
    }

    #step-button-chiama a img
    {
        padding-right: .5rem;
    }
    
    #step-button-chiama-mainpage a img
    {
        padding-right: .5rem;
    }   
    
    #service-intro
    {
        font-size: 2.2rem;
        padding: 1.4rem 0 0;
    }

    .head-introimage
    {
        width: 4.5rem;
        height: 4.5rem;
    }
}

/* Schedule step */
.step[data-step=schedule] .date-container {
    flex: 1;
    display: flex;
    flex-direction: row;
    margin-right: 1rem;
    width: 100%;
}

.step[data-step=schedule] .date-icon {
    height: 38px;
    padding: 5px 10px;
    box-sizing: border-box;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    font-size: 18px;
    text-align: center;
    background-color: #efefef;
}

.step[data-step=schedule] .date-icon + input {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.step[data-step=schedule] #date-box {
    flex: 1;
}

.step[data-step=schedule] .time-container {
    flex: 0.5;
}

.step[data-step=schedule] .time-ellipsis {
    margin: 0 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
}

.step[data-step=schedule] #hour-box,
.step[data-step=schedule] #minute-box {
    flex: 1;
    height: 38px;
    border-radius: 3px;
    padding-left: 0.5em;
    background: #ffffff;
}

.step[data-step=schedule] .step-helper-text a
{
    color: inherit;
}

.drp-buttons .btn-primary
{
    width: unset;
}

.drp-buttons .btn-default
{
    color: #000;
}

@media (max-width: 500px)
{
    .step[data-step=schedule] .moment-container {
        flex-direction: column;
    }

    .step[data-step=schedule] .date-container {
        margin-right: 0;
        flex: unset;
    }

    .step[data-step=schedule] .time-container {
        margin-top: 1rem;
        width: 100%;
    }
}

/* Problem step */

#problem-box
{
    line-height: 1;

    height: 4.5em;
}

@media (max-width: 500px)
{
    #problem-box
    {
        height: 3.5em;
    }
}

/* Name step */

#request-form .step[data-step='name'] [name='pluto']
{
    border: 1px solid rgba(0, 0, 0, .1);
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.step[data-step='name'] .text-danger
{
    display: none;
}

.step[data-step='name'] .privacy
{
    font-size: 1rem;

    margin-top: 1rem;

    text-align: center;

    color: grey;
}

.step[data-step='name'] .submit-form
{
    font-size: 1.2rem;
}

/* Google reviews */
.google-reviews {
    background-color: #2892f2;
    color: #fff;
    padding: 3rem;
    text-align: center;
}

.google-reviews h2 {
    color: inherit;
    margin: 0 0 2rem;
    text-align: center;
    font-size: 2.1rem;
    font-weight: bold;
}

.google-reviews-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.google-reviews-container .google-reviews-line {
    display: flex;
    align-items: center;
    margin: 0.5rem 0;
}

.google-reviews-container .google-reviews-line-star {
    font-size: 1.4rem;
}

.google-reviews-container .google-reviews-line-star > span:first-child {
    font-size: 2.2rem;
    line-height: 0;
    color: #fbbc04;
    margin-right: 0.5rem;
}

.google-reviews-container .google-reviews-progress {
    margin-left: 1rem;
    width: 20rem;
    height: 10px;
    border-radius: 5px;
    background-color: #fff;
    overflow: hidden;
}

.google-reviews-container .google-reviews-progress > div {
    height: 10px;
    background-color: #fbbc04;
}

.google-reviews-container > :last-child {
    text-align: center;
    margin-left: 5rem;
}

.google-reviews-average {
    font-size: 6rem;
    line-height: 1;
}

.google-reviews-average-stars {
    font-size: 3rem;
    line-height: 1;
    color: #fbbc04;
}

.google-reviews-count {
    margin-top: 0.5rem;
    font-size: 1.4rem;
    text-decoration: underline;
    color: inherit;
    display: block;
}

.google-reviews-count:hover {
    color: inherit;
}

.google-reviews-button {
    display: inline-block;
    margin: 2rem 0 0;
    padding: 1rem 3rem;
    border-radius: 40px;
    background-color: #fbbc04;
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.google-reviews-button:hover {
    text-decoration: none;
    background-color: #fff;
    color: #2892f2;
}

@media screen and (max-width: 768px)
{
    .google-reviews-container .google-reviews-line {
        margin: 0.2rem 0;
    }

    .google-reviews-container .google-reviews-progress {
        width: 12rem;
    }

    .google-reviews-container > :last-child {
        margin-left: 2rem;
    }

    .google-reviews-button {
        font-size: 1.4rem;
        padding: 1rem 2rem;
    }
}

@media (max-width: 500px)
{
    .google-reviews-container {
        flex-direction: column-reverse;
    }

    .google-reviews-container > :last-child {
        margin-left: 0;
        margin-bottom: 2rem;
    }

    .google-reviews-button {
        font-size: 1.3rem;
        padding: 1rem 1.3rem;
    }
}
