/* Universal Selector to remove default browser settings */
* {
  padding: 0rem;
  margin: 0rem;
  box-sizing: border-box;
}

/* Google Font Classes */
.poppins-regular {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.poppins-medium {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-style: normal;
}

.poppins-semibold {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.poppins-bold {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-style: normal;
}

/* CSS Custom Properties */
:root {
  /* Primary */
  --Red: hsl(0, 100%, 74%);
  --Green: hsl(154, 59%, 51%);

  /* Accent */
  --Blue: hsl(248, 32%, 49%);

  /* Neutral */
  --Dark-Blue: hsl(249, 10%, 26%);
  --Grayish-Blue: hsl(246, 25%, 77%);

  /* Active */
  --Bright-Green: hsl(154, 59%, 70%);
}

html {
  font-size: 16px;
}

.sr-only:not(:focus):not(:active) {
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

body {
  background-image: url(./assets/images/bg-intro-mobile.png);
  background-color: var(--Red);
}

.flex {
  display: flex;
  flex-direction: column;
  height: fit-content;
  margin: 6rem 2rem;
  text-align: center;
}

.content-heading {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.content-text {
  color: color-mix(in srgb, white 80%, transparent);
  margin-bottom: 4rem;
}

.signup-offer {
  background-color: var(--Blue);
  color: var(--Grayish-Blue);
  padding: 1.4rem 2.2rem;
  margin-bottom: 1.6rem;
  line-height: 1.5;
  border-radius: 0.5rem;
}

.trial {
  color: white;
}

.signup-form {
  background-color: white;
  padding: 1.8rem;
  border-radius: 0.5rem;
}

:where(.signup-offer, .signup-form) {
  box-shadow: 0 0.5rem color-mix(in hsl, var(--Dark-Blue) 20%, transparent);
}

.input {
  width: 100%;
  padding: 1rem 0.8rem;
  border: 1px solid var(--Grayish-Blue);
  border-radius: 0.5rem;
}

.input.invalid {
  color: var(--Red);
  border: 1px solid var(--Red);
  background: url(./assets/images/icon-error.svg) no-repeat 95% 50%;
}

.error {
  height: 2rem;
  color: var(--Red);
  font-style: italic;
  text-align: right;
  padding-top: 0.3rem;
  padding-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.submit {
  background-color: var(--Green);
  color: color-mix(in srgb, white 80%, transparent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  border: 1px solid green;
  border-radius: 0.5rem;
}

@media (hover: hover) {
  .submit:hover {
    background-color: var(--Blue);
  }

  .agreement:hover {
    color: var(--Blue);
  }
}

.submit:active {
  background-color: var(--Bright-Green);
}

.terms {
  color: var(--Grayish-Blue);
  font-size: 0.7rem;
}

.agreement {
  color: var(--Red);
  background-color: white;
  font-size: 0.7rem;
  border: none;
}

.agreement:active {
  color: var(--Green);
}

:where(.submit, .agreement) {
  cursor: pointer;
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 1015px) {
  body {
    background-image: url(./assets/images/bg-intro-desktop.png);
  }

  .flex {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    min-height: 100vh;
    margin: 0 8rem;
  }

  .content {
    width: 50%;
    text-align: left;
  }

  .content-heading {
    font-size: 2.7rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .content-text {
    font-size: 1.2rem;
  }

  .signup {
    width: 50%;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1340px) {
  .flex {
    gap: 4rem;
  }
  .content-heading {
    font-size: 3.6rem;
  }
}

@media only screen and (min-width: 1500px) {
  .flex {
    gap: 6rem;
  }

  .content-heading {
    font-size: 4.2rem;
  }

  .content-text {
    font-size: 2rem;
  }
}
