@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/*font-family: "Poppins", sans-serif;*/

:root{
    --Red_400: hsl(0, 100%, 74%); 
    --Green_400: hsl(154, 59%, 51%);
    --Purple_700: hsl(248, 32%, 49%);
    --Gray_900: hsl(249, 10%, 26%); 
    --Purple_350: hsl(246, 25%, 77%);
    --white: #ffffff;
    --red:rgba(29, 11, 11, 0.198);
    --Green_shadow: hsla(154, 59%, 51%, 0.512);
}
*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}
body{
    font-family: "Poppins", sans-serif;
    background-color: var(--Red_400);
    background-image: url(./images/bg-intro-mobile.png);
    color: var(--white); 
}

.main-container{
    width: 330px;
    margin: 96px auto 40px;
}

h1{
    width: 235px;
    font-size: 1.7em;
    line-height: 38px;
    margin: -10px auto 16px;
}

.description{
    text-align: center;
    margin: 0 10px 68px;
}

.offer{
    background-color: var(--Purple_700);
    width: 330px;
    height: 90px;
    padding: 22px 75px;
    border-radius: 16px;
    text-align: center;
    font-weight: 400;
    margin-bottom: 20px;
    box-shadow: 0 6px 0 var(--red);
}

.offer span{
    font-weight: 700;
}

.form-container{
    background-color: var(--white);
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 8px 0 var(--red);
    
}

input{
    width: 100%;
    height: 55px;
    margin-bottom: 18px;
    border-radius: 6px;
    border: solid 1px var(--Gray_900);
    padding-left: 20px;
    outline: none;
    font-weight: 700;
    font-family: "Poppins", sans-serif;
}

input[type="submit"]{
    background-color: var(--Green_400);
    color: var(--white);
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 400;
    border: none;
    box-shadow:0 4px 0 var(--Green_shadow);
}

input[type="submit"]:hover{
    cursor: pointer;
}

.error-container{
    position: relative;
}

.icon-error{
    position: absolute;
    right: 15px;
    top: -46px;
}

.error{
    color: var(--Red_400);
    font-style: italic;
    text-align: right;
    font-size: 12px;
    margin: -12px 0 18px;
}
.terms{
    color: var(--Purple_350);
    font-size: 0.7em;
    margin: 0 14px;
    text-align: center;
}

.terms a{
    color: var(--Red_400);
    text-decoration: none;
    font-weight: 700;

}
.attribution { font-size: 15px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }


@media only screen and (min-width:1135px){
    .main-container{
        display: flex;
        width: 1114px;
        
    }
}


h1{
    font-size: 3em;
    width: 414px;
    line-height: 55px;
    margin-bottom: 36px;
    margin-left: 10px;
}

.description{
    text-align:left;
}

section:nth-child(1){
    padding-top: 200px;
    width: 570px;
}

section:nth-child(2){
    width: 540px;
}

.offer{
    width: 100%;
}
