
@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');


html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  padding: 0;
  margin: 0;
}

:root{
  /* color */
  --clr-red-400: oklch(0.7353 0.1621 21.84);
  --clr-green-400: oklch(0.7525 0.154 159.77);
  --clr-purple-700: oklch(0.4986 0.124 287.12);
  --clr-gray-900: oklch(0.3621 0.0228 292.1);
  --clr-purple-350: oklch(0.7871 0.0413 290);
  --clr-white: oklch(1 0 0);
  --clr-shadow: oklch(0.7017 0.1895 23.33 / 100%);
  --clr-grey-input: oklch(0.8975 0 0);

  /* weights */
  --weight-400:400;
  --weight-500:500;
  --weight-600:600;
  --weight-700:700;

    /* spacing */
  --space-3xs: clamp(0.3125rem, 0.3125rem + 0vw, 0.3125rem);
  --space-2xs: clamp(0.5625rem, 0.5408rem + 0.1087vw, 0.625rem);
  --space-xs: clamp(0.875rem, 0.8533rem + 0.1087vw, 0.9375rem);
  --space-s: clamp(1.125rem, 1.0815rem + 0.2174vw, 1.25rem);
  --space-m: clamp(1.6875rem, 1.6223rem + 0.3261vw, 1.875rem);
  --space-l: clamp(2.25rem, 2.163rem + 0.4348vw, 2.5rem);
  --space-xl: clamp(3.375rem, 3.2446rem + 0.6522vw, 3.75rem);
  --space-2xl: clamp(4.5rem, 4.3261rem + 0.8696vw, 5rem);
  --space-3xl: clamp(6.75rem, 6.4891rem + 1.3043vw, 7.5rem);

  /* border radius */
  --border-rds:5px;

  /* 14px-18px */
  --step--1: clamp(0.7292rem, 0.6593rem + 0.3106vw, 0.9rem);
  --step-0: clamp(0.875rem, 0.7727rem + 0.4545vw, 1.125rem);
  --step-1: clamp(1.05rem, 0.9043rem + 0.6477vw, 1.4063rem);

  /* 30px-35px */
  --step--1-judul: clamp(1.5625rem, 1.4858rem + 0.3409vw, 1.75rem);
  --step-0-judul: clamp(1.875rem, 1.7472rem + 0.5682vw, 2.1875rem);
  --step-1-judul: clamp(2.25rem, 2.0518rem + 0.8807vw, 2.7344rem);
}



body::before{
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  background: var(--clr-red-400);
  background-image: url(images/bg-intro-mobile.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

body{
  font-family: "Poppins", sans-serif;
}

main{
  display: flex;
  align-items:center;
  padding: var(--space-m);
  flex-direction: column;
}


/* -------------------------------- section 1 ------------------------------- */
.judul, .deskripsi{
  color: var(--clr-white);
}

.section-1{
  grid-area: section-1;
}

.section-1 .judul{
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-size: var(--step-0-judul);
}
.section-1 .deskripsi{
  text-align: center;
  font-weight: var(--weight-500);
  font-size: var(--step-1);
}


/* -------------------------------- section-2 ------------------------------- */

.section-2{
  margin-top: 3.4rem;
  grid-area: section-2;
}

.section-2 p{
  color: var(--clr-white);
  background-color: var(--clr-purple-700);
  border-radius: var(--border-rds);
  padding-inline: var(--space-xl);
  padding-block: var(--space-s);
  text-align: center;
  font-size: var(--step-1);
  box-shadow: 0px 6px var(--clr-shadow); /* still not see the background */
}

/* -------------------------------- section-3 ------------------------------- */

.section-3{
  background-color: var(--clr-white);
  margin-top: 1.5rem;
  padding: var(--space-m);
  border-radius: var(--border-rds);
  box-shadow: 0px 10px var(--clr-shadow); /* still not see the background */
  grid-area: section-3;

}

.section-3 p{
  font-size: var(--step--1);
  text-align: center; 
  color: var(--clr-grey-input);
  margin-top: .8rem;
}

.section-3 p>span{
  color: var(--clr-red-400);
}

.successed p{
  color: var(--clr-green-400);
  font-size: var(--step-1);
  padding: var(--space-3xs);
  display: none;
}

form button{
  text-transform: uppercase;
  background-color: var(--clr-green-400);
  color: var(--clr-white);
  border: none;
  letter-spacing: 1px;
  font-family: "Poppins", sans-serif;
}


form input, form button{
  min-width: 100%;
  border-radius: var(--border-rds);
  padding: var(--space-xs);
  font-size:var(--step-0) ;
}

form input{
  border: solid 1px var(--clr-grey-input);
}

form input:first-child{
  margin-bottom: var(--space-2xs);
}

form input:not([placeholder="First Name"]){
  margin-block: var(--space-2xs) ;
}

form input::placeholder{
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

/* ------------------------------- desktop ui ------------------------------- */

@media screen and (min-width:769px) {
  main{
    padding: var(--space-xl);
    display: grid;
    column-gap: 50px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-template-areas: 
    "section-1 section-2" 
    "section-1 section-3"
    ;
  }

  .section-1 .judul , .section-1 .deskripsi{
    text-align: left;
  }

  .section-1 .judul{
    font-size: 3.6rem;
  }
  .section-1 .deskripsi{
  font-size: 1.2rem;

  }

  
}
