*{
    box-sizing: border-box;
}

body{
    font-family: 'Poppins', sans-serif;
    background-image: url("images/bg-intro-desktop.png");
    background-color: hsl(0, 100%, 74%) ;
    background-size: cover;
    color: white;
    font-size: 16px;
}

/* .header{
    float: left;
    width: 100%;
    padding: 15vh;
} */

h1{
    float: left;
    width: 45%;
    font-size: 40px;
    /* position: absolute;
    top: 40%;
    left: 25%;
    transform: translate(-50%, -50%); */
}

p{
    float: left;
}

.try-now{
    float: right;
    background-color: hsl(248, 32%, 49%);
    border-radius: 5px;
    /* margin: 50px 50px 10px 0; */
    box-shadow: 0 7px rgba(49, 45, 68, 0.15);
    width: 45%;
}

.try-now p{
    width: 100%;
    text-align: center;
}

.try-now br{
    display: none;
}

.try-now p span{
    font-weight: 700;
    text-align: center;
}

.form{
    background-color: white;
    /* position: absolute;
    
    top: 50%;
    left: 70%; */
    /* transform: translate(-50%, -50%); */
    border-radius: 5px;
    height: 60%;
    width: 50%;
    float: right;
    box-shadow: 0 7px rgba(49, 45, 68, 0.15);
}

.input{
    border: 1px solid hsl(246, 25%, 77%);
    border-radius: 5px;
    padding-left: 10px;
    position: relative;
    margin: 15px 5px;
    width: 90%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 0);
}

input{
    border: none;
    color: hsl(246, 25%, 77%);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.input:focus-within, input:focus{
    outline: none;
    color: hsl(249, 10%, 26%) ;
    border-color: hsl(249, 10%, 26%);
    
}

input[type=submit]{
    font-family: 'Poppins', sans-serif;
    position: relative;
    background-color: hsl(154, 59%, 51%);
    color: white;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    outline: none;
    padding: 10px;
    margin: 5px 5px;
    max-width: 90%;
    text-align: center;
    left: 50%;
    top: 50%;
    transform: translate(-50%, 0);
}

/* input[type=submit]:active{
    background-color: ;
} */

.form img{
    float: right;
    display: none;
}

#lnameText, #fnameText, #emailText, #passText{
    font-style: italic;
    font-weight: 500;
    line-height: 0;
}

@media only screen and (max-width: 768px){
    body{
        background-image: url("images/bg-intro-mobile.png");
        min-width: 340px;
    }
    
    .header{
        padding: 5vh;
    }

    h1{
        width: 100%;
        font-size: 30px;
        text-align: center;
    }

    .description{
        font-size: 12px;
        text-align: center;
        margin-bottom: 40px;
        width: 100%;
    }

    .description br{
        display: none;
    }

    .try-now{
        width: 100%;
        font-size: 14px;
        text-align: center;
        margin: 0;
        margin-bottom: 25px;
    }

    .try-now br{
        display: block;
    }

    .form{
        width: 100%;
        margin-bottom: 20px;
    }

    .form input{
        width: 85%;
        padding: 10px 30px 10px 15px;
        margin-top: 5px;
    }

    input[type=submit]{
        text-align: center;
        width: 100%;
        padding: 10px 30px;
    }

    .form p{
        width: 100%;
        font-size: 12px;
        padding: 0 40px;
        margin-bottom: 20px;
    }

    #lnameText, #fnameText, #emailText, #passText{
        float: none;
        font-size: 10px;
        color: hsl(0, 100%, 74%);
        text-align: right;
        padding: 0;
        margin: 0;
        margin-bottom: 20px;
        transform: translate( -5%, 0);
        
    }

    .form img{
        display: none;
        margin-right: 7px;
        margin-top: 10px;
        overflow: visible;
    /* transform: translate(-50%, 0); */
    }
}

@media only screen and (min-width: 768px){
    *{
        float: none;
    }

    body{
        min-width: 1440px;
    }

    .grid{
        display: grid;
        grid-template-columns: auto auto ;
        grid-gap: 20px;
        margin-top: 150px;
    }

    h1>br, p>br{
        display: block;;
    }

    .form>p>br{
        display: none;
    }

    .row1>*, .row2>*{
        width: 100%;
    }

    .row2{
        float: left;
        padding: 20px 25vh 0 100px;
    }

    

    .row1{
        float: left;
        padding: 100px 0 0 20vh;
    }

    br{
        display: none;
    }

    .try-now{
        margin-bottom: 25px;
    }

    .input{
        padding: 10px 10px 10px 15px;
    }

    input{
        padding-left: 10px;
        width: 90%;
    }

    .input[type=submit]{
        padding: 0;
        margin: 0;
        text-align: left;
    }

    #lnameText, #fnameText, #emailText, #passText{
        float: none;
        font-size: 10px;
        color: hsl(0, 100%, 74%);
        text-align: right;
        padding: 0;
        margin: 0;
        margin-bottom: 20px;
        transform: translate( -5%, 0);
    }

    .form>p, .form>span{
        width: 100%;
        text-align: center;
        font-size: 10px;
        margin-bottom: 20px;
    }
}
