@import url('root.css');

/* =========================================
   PAGE TITLE SECTION
   ========================================= */
.page-title{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    padding: 60px 20px;
    background-image: url('../images/foot_massage.jpg');
    background-size: cover;
    background-position: center;
    margin-top: -10px;

    .content{
        text-align: center;
        max-width: 800px;
        padding: 30px 40px;
        background-color: rgba(245, 245, 245, 0.575);
        border-radius: 20px;

        h1{
            color: var(--green);
            font-family: var(--heading-font);
            font-size: 70px;
        }

        p{
            color: var(--green);
            font-family: var(--body-font);
            font-size: 20px;
            margin-bottom: 0;
        }
    }
}

/* =========================================
   WIGGLE LINE - between page title and booking form
   ========================================= */
.wiggle-line{
    position: relative;
    z-index: 4;
    height: 100px;
    margin-top: -46px;
    /* top half lets the page title show through, bottom half blends into the booking form */
    background: linear-gradient(to bottom, transparent 50%, transparent 50%);

    &::before{
        content: "";
        position: absolute;
        inset: 0;
        background-color: var(--goldenrod);

        /* wavy band shape - wiggle on the top and bottom edge */
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,18 C240,40 420,0 720,14 C1000,28 1200,2 1440,20 L1440,80 C1200,100 1000,70 720,86 C420,100 240,64 0,84 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,18 C240,40 420,0 720,14 C1000,28 1200,2 1440,20 L1440,80 C1200,100 1000,70 720,86 C420,100 240,64 0,84 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    }
}

/* =========================================
   BOOKING FORM SECTION
   ========================================= */
.booking-form{
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
    margin-top: -38px;
    padding: 90px 60px 100px;
    background-color: whitesmoke;

    /* LEFT - FORM */
    .left{
        padding: 40px;
        background-color: white;
        border-radius: 20px;
        box-shadow: 0 10px 25px rgba(36, 49, 23, 0.12);

        h2{
            color: var(--green);
            font-family: var(--heading-font);
            font-size: 50px;
        }

        .intro{
            color: var(--clay-brown);
            font-family: var(--body-font);
            font-size: 18px;
            margin-bottom: 25px;
        }

        .form-row{
            display: grid;
            grid-template-columns: repeat(2 , 1fr);
            gap: 20px;
        }

        .form-group{
            display: flex;
            flex-direction: column;
            margin-bottom: 20px;

            label{
                color: var(--green);
                font-family: var(--body-font);
                font-size: 16px;
                font-weight: 600;
                margin-bottom: 8px;

                span{
                    color: var(--clay-brown);
                    font-weight: 400;
                }
            }

            input, select, textarea{
                width: 100%;
                padding: 12px 18px;
                border: 2px solid var(--bone);
                border-radius: 12px;
                background-color: white;
                color: var(--green);
                font-family: var(--body-font);
                font-size: 17px;
                outline: none;
                transition: border-color 0.2s ease;

                &:focus{
                    border-color: var(--goldenrod);
                }
            }

            textarea{
                resize: vertical;
            }
        }

        .book-btn{
            display: inline-block;
            padding: 12px 40px;
            background-color: var(--goldenrod);
            color: var(--bone);
            border: none;
            border-radius: 30px;
            font-family: var(--body-font);
            font-size: 18px;
            cursor: pointer;
            transition: background-color 0.2s ease;

            &:hover{
                background-color: var(--clay-brown);
            }
        }

        /* hidden until the form is sent */
        .success-message{
            display: none;
            text-align: center;
            padding: 60px 20px;

            p{
                color: var(--clay-brown);
                font-family: var(--body-font);
                font-size: 18px;
            }
        }
    }

    /* RIGHT - WHAT TO EXPECT AND CONTACT INFO */
    .right{
        display: flex;
        flex-direction: column;
        background-color: var(--green);
        border-radius: 20px;
        overflow: hidden;

        .image{
            height: 240px;
            background-image: url('../images/candles.png');
            background-size: cover;
            background-position: center;
        }

        .details{
            padding: 30px;

            h2{
                color: var(--goldenrod);
                font-family: var(--heading-font);
                font-size: 40px;
                margin-bottom: 20px;
            }

            h3{
                color: var(--goldenrod);
                font-family: var(--heading-font);
                font-size: 28px;
                margin-top: 25px;
                margin-bottom: 15px;
            }

            .step{
                display: flex;
                flex-direction: row;
                align-items: center;
                margin-bottom: 15px;

                .number{
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    flex-shrink: 0;
                    width: 38px;
                    height: 38px;
                    margin-right: 15px;
                    background-color: var(--goldenrod);
                    color: var(--bone);
                    font-family: var(--body-font);
                    font-size: 18px;
                    border-radius: 50%;
                }

                p{
                    margin-bottom: 0;
                }
            }

            p{
                color: whitesmoke;
                font-family: var(--body-font);
                font-size: 17px;
                margin-bottom: 8px;
            }

            a{
                color: whitesmoke;
                text-decoration: none;
                transition: color 0.2s ease;

                &:hover{
                    color: var(--goldenrod);
                }
            }
        }
    }
}

/* =========================================
   WIGGLE LINE 1 - between booking form and footer
   ========================================= */
.wiggle-line1{
    position: relative;
    z-index: 4;
    height: 100px;
    margin-top: -46px;
    /* top half lets the booking form show through, bottom half blends into the footer */
    background: linear-gradient(to bottom, transparent 50%, transparent 50%);

    &::before{
        content: "";
        position: absolute;
        inset: 0;
        background-color: var(--clay-brown);

        /* wavy band shape - long, gentle sweeps like the first line, but flowing the opposite way */
        -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,12 C260,0 460,38 760,20 C1040,4 1240,36 1440,10 L1440,84 C1240,64 1040,98 760,82 C460,66 260,100 0,78 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100' preserveAspectRatio='none'%3E%3Cpath d='M0,12 C260,0 460,38 760,20 C1040,4 1240,36 1440,10 L1440,84 C1240,64 1040,98 760,82 C460,66 260,100 0,78 Z' fill='black'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
    }
}

/* =========================================
   PHONE VIEW
   ========================================= */
@media (max-width: 767px){
    /* PAGE TITLE */
    .page-title{
        min-height: 260px;
        padding: 40px 20px 60px;

        .content{
            padding: 22px 20px;

            h1{
                font-size: 42px;
            }

            p{
                font-size: 17px;
            }
        }
    }

    /* WIGGLE LINE */
    .wiggle-line{
        height: 70px;
        margin-top: -32px;
    }

    /* BOOKING FORM */
    .booking-form{
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: -26px;
        padding: 60px 20px 70px;

        .left{
            padding: 25px 20px;

            h2{
                font-size: 36px;
            }

            .intro{
                font-size: 16px;
            }

            /* stacks the side-by-side fields */
            .form-row{
                grid-template-columns: 1fr;
                gap: 0;
            }

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

        .right{
            .image{
                height: 180px;
            }

            .details{
                padding: 25px 20px;

                h2{
                    font-size: 32px;
                }

                h3{
                    font-size: 24px;
                }
            }
        }
    }

    /* WIGGLE LINE 1 */
    .wiggle-line1{
        height: 70px;
        margin-top: -32px;
    }
}

/* =========================================
   TABLET VIEW
   ========================================= */
@media (min-width: 768px) and (max-width: 1100px){
    .booking-form{
        grid-template-columns: 1fr;
        padding: 80px 40px 90px;
    }
}

/* =========================================
   BIGGER SCREEN SIZES VIEWS
   ========================================= */
