/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
  }
  
  /* 2. Remove default margin */
  * {
    margin: 0;
    padding: 0;
  }
  
  /* 3. Enable keyword animations */
  /* @media (prefers-reduced-motion: no-preference) {
    html {
      interpolate-size: allow-keywords;
    }
  } */
  
  body {
    /* 4. Add accessible line-height */
    line-height: 1.5;
    /* 5. Improve text rendering */
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    font-family: "Josefin Sans", sans-serif;
    text-align: center;
    min-height: 100vh;
    
  }
  
  /* 6. Improve media defaults */
  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
  }
  
  /* 7. Inherit fonts for form controls */
  input, button, textarea, select {
    font: inherit;
  }
  
  /* 8. Avoid text overflows */
  p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
  }
  
  /* 9. Improve line wrapping */
  /* p {
    text-wrap: pretty;
  }
  h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
  } */
  
  /*
    10. Create a root stacking context
  */
  #root, #__next {
    isolation: isolate;
  }

:root{
    /* colors */
    --color-saturated-red: hsl(0, 36%, 70%);
    --color-soft-red: hsl(0, 93%, 68%);

    --color-greyish-red: hsl(0, 6%, 24%);

    /* gradient white */
    --grd-white--clr-1: hsl(0, 0%, 100%);
    --grd-white--clr-2: hsl(0, 100%, 98%);

    /* gradient red*/
    --grd-red--clr-1: hsl(0, 80%, 86%);
    --grd-red--clr-2: hsl(0, 74%, 74%);
}

.wrapper{
    display: grid;
    place-content: center;
}


/* header */

.header{
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: start;
    
}

.header img.logo{
    max-width: 150px;
    padding-left: 2rem;
}


/* hero img */
.main-img{
    display: grid;
}

.main-img picture img{
    width: 100%;
}


/* body - text */

.main-text .body-text{
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2.5rem;
}

.main-text .body-text h1.main-heading{
    font-weight: 500;
    font-size: 2.5rem;
    line-height: 1;
    letter-spacing: 0.5rem;
}

.main-text .body-text h1 span{
    display: block;
}

.main-text .body-text h1 span.pink{
    color: var(--color-saturated-red);
    font-weight: 300;
}

.main-text .body-text p{
    color: var(--color-saturated-red);
}


/* form */
form{
    display: flex;
    flex-direction: column;
    position: relative;
}


form input{
    width: 100%;
    outline: transparent;
    border: 1px solid var(--color-saturated-red);
    border-radius: 1.5rem;
    padding: 1rem;
    position: relative;
    
}

form input:focus{
  outline: 2px solid var(--color-saturated-red);
  
}

form input::placeholder{
    color: var(--color-saturated-red);
}

button{
  border: transparent;
  background-color: transparent;
  outline: transparent;
  position: absolute;
  top: 0px;
  right: -5px;
  background: linear-gradient(135deg,var(--grd-red--clr-1),var(--grd-red--clr-2));
  padding: 1.2rem 2rem;
  border-radius: 1.5rem;
  cursor: pointer;
}



form button:hover{
  background: linear-gradient(135deg,var(--grd-white--clr-1),var(--grd-white--clr-2) ,var(--grd-red--clr-1),var(--grd-red--clr-2));
}


.error-icon{
  display: block;
  position: absolute;
  top: 1rem;
  right: 5rem;
  width: 25px;
  height: 25px;
} 

.error-text{
  color: var(--color-soft-red);
  padding: 0.5rem 0 0 0.5rem;
}


.hidden{
  display: none;
} 


@media(min-width: 770px){
    .wrapper{
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-areas: 
        "header header header main-img main-img"
        "main-text main-text main-text main-img main-img";
        min-height: 100vh;
        align-content: stretch;
        justify-self: stretch;
    }

    .header{
        min-height: 100%;
        display: block;
        padding: 3rem 3rem 0rem 10rem ;
        grid-area: header;
    }

    .header img.logo{
      min-width: 200px;
      padding-left: 0;
    }

    .main-img{
        display: block;
        grid-area: main-img;
        min-width: 100%;
        min-height: 100%;
    }

    .main-text {
        grid-area: main-text;
    }

    .main-text .body-text{
        padding: 0;
        /* display: flex; */
        flex-direction: column;
        gap: 2rem;
        margin-top: 0;
        margin-left: 10rem;
        text-align: left;
        width: 60%;
        /* transform: translateY(-50px); */
    }
    
    .main-text .body-text h1.main-heading{
      font-size: 4rem;
      line-height: 1.3;
    }

    
    .main-img picture img{
        min-width: 100%;
        min-height: 100vh;
        object-fit: cover; /* optional for better image filling */
        display: block;
    }

    form input{
      padding: 1rem;
  }
  
    
    /* form button img.icon-arrow{
      
      padding: 1.2rem 2rem;
      border-radius: 1.5rem;
      cursor: pointer;
  
  } */
}