*{
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: "Roboto", sans-serif;
}

body{
    height: 100vh;
}

@media screen and (min-width:1000px){
 body{
    background-color: #242742;
    display: flex;
 }
}




.btn{
    text-align: center;
    background-color: #242742;
    color: #FFF;
    border-radius: 8px;
    padding: 1em ;
    margin-top: auto;
}



p{
    font-size: 1.1rem;
}


/* Main */

@media screen and (min-width:1000px){
    main{
        background-color: #fff;
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
        align-content: center;
        height: 70vh;
        width: 60%;
        margin: auto;
        border-radius: 36px;
    }
}

/* Picture */
picture{
    display: block;
    margin: auto;
    width: 100%;
}

picture img{
    width: 100%;
}


@media screen and (min-width:1000px){
    picture{
        width: 50%;
        height: 90%;
    }

    picture img{
        height: 100%;
        
    }
}

/* main section */
.info_container{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 2.5rem;
}

h1{
    font-size: 2.5rem;
}

.benefit{
    display: flex;
    margin: 1em 0;
}

.benefit img{
    width: 20px;
    margin-right: 1em;
}

@media screen and (min-width:1000px){
 .info_container{
    justify-content: center;
  
 }

 h1{
    font-size: 3.5rem;
 }
}


/* form */
form{
    display: flex;
    flex-direction: column;
    gap: 1em;
}

label{
    font-weight: bold;
}

.form_text{
    display: flex;
    align-content: center;
    justify-content: space-between;
}

input{
    border-radius: 8px;
    outline: none;
    padding: 1.5em;
    border: rgba(25,24,43,.25) solid 1px ;
}


.subscribe{
    padding: 1.5em;
}

/* Success message */
.success_container{
    position: absolute;
    background-color: #fff;
    z-index: 1;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
}

.success_message{
    height: 100%;
    padding: 2.5em;
    display: flex;
    flex-direction: column;
    color: #242742;
}

.success_info{
    display: flex;
    flex-direction: column;
    gap: 1em;
    align-items: start;
    justify-content: center;
    padding-top: 6em;

}

.success_para{
    font-size: 1rem;
    line-height: 30px;
}

h2{
    font-size: 2.5rem;
    margin: .5em 0 .1em;
}



.dismiss:hover{
    background-image: linear-gradient(#FF6A3A, #FF527B);
    cursor: pointer;
    
}

@media screen and (min-width:1000px){
    .success_container{
        background-color: #36384D;
        z-index: 1;
        width: 100vw;
    }

    .success_message{
        height: 50%;
        width: 25%;
        margin: auto;
        background-color: #fff;
        border-radius: 36px;
    }

    .success_info{
        padding-top: 0;
    }

    h2{
        font-size: 3.5em;
    }
    
}

/* Utility CSS */
.hide{
    display: none;
}

/* error class */
.error{
    color: #FF6155;
    border: #FF6155 1px solid;
    background-color: rgba(255, 97, 85, 0.15);
}

.error_message{
    font-size: .75rem;
    font-weight: bold;
    color: #FF6155;
}

.error::placeholder{
    color: #FF6155;
}


