@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

body {
  background-color: var(--dark-slate-gray);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  font-family: var(--font);
  overflow: auto;
}

.newsletter__card {
  background-color: var(--white);
  display: flex;
  padding: 30px 30px 30px 60px;
  border-radius: 30px;
}

.info__card {
  padding-right: 60px;
}

.title {
  font-size: 50px;
}

.cta {
  width: 400px;
}

.updates__list {
  margin: 50px 0;
  padding-left: 20px;
  list-style: none;
}

.list__item {
  display: flex;
  margin-bottom: 20px;
}

.updates__list li {
  margin-left: 20px;
}

.email__input__indicators {
  display: flex;
  justify-content: space-between;
}

.newsletter__form label {
  color: var(--charcoal-gray);
  font-weight: var(--bold-weight);
}

.email__validation__message {
  color: var(--tomato);
  font-weight: var(--bold-weight);
}

.newsletter__form input {
  display: block;
  margin: 10px 0 30px 0;
  padding: 15px 200px 15px 15px;
  font-size: 20px;
  border: 1px solid var(--gray);
  border-radius: 10px;
  transition: cursor 0.1s;
}

.newsletter__form:hover {
  cursor: pointer;
}

.newsletter__form button,
.dismiss__button {
  background-color: var(--dark-slate-gray);
  width: 100%;
  padding: 15px 0;
  border-radius: 10px;
  border: none;
  color: var(--white);
  font-size: 20px;
  font-weight: var(--bold-weight);
  transition: cursor 0.1s;
}

.newsletter__form button:hover,
.dismiss__button:hover {
  cursor: pointer;
  background: linear-gradient(90deg, hsl(347, 100%, 66%), var(--tomato));
}

.invalid__input {
  background-color: hsla(4, 100%, 67%, 40%);
  border: 2px solid var(--tomato) !important;
}

.invalid__input,
.invalid__input::placeholder {
  color: var(--tomato);
}

.invalid__input:focus {
  border: 2px solid var(--tomato) !important;
  outline: none;
}

/* Thank You Message */

.thank__you__card {
  background-color: var(--white);
  border-radius: 20px;
  padding: 50px;
}

.thank__you__card h1 {
  font-size: 50px;
  color: var(--charcoal-gray);
  font-weight: var(--bold-weight);
  width: 300px;
  margin-bottom: 0;
}

.thank__you__card p {
  width: 300px;
  margin-bottom: 30px;
}

.email__placeholder {
  font-weight: var(--bold-weight);
}

.image__container {
  background-image: url("../images/illustration-sign-up-desktop.svg");
  width: 400px;
  height: 593px;
}

.hidden {
  display: none;
}

@media only screen and (max-width: 767px) {
  body {
    display: block;
    background: none;
  }

  .image__container {
    background-image: url("../images/illustration-sign-up-mobile.svg");
    background-size: cover;
    width: 100%;
    height: 284px;
  }

  .newsletter__card {
    flex-direction: column-reverse;
    padding: 0;
  }

  .info__card {
    padding-left: 25px;
  }

  .title {
    font-size: 40px;
    margin-bottom: 0;
    width: auto;
  }

  .cta {
    width: 300px;
  }

  .updates__list {
    margin-top: 30px;
  }

  .newsletter__form input {
    padding: 15px 60px 15px 15px;
    font-size: 20px;
    border: 1px solid var(--gray);
    border-radius: 10px;
    transition: cursor 0.1s;
    margin-bottom: 20px;
  }

  .newsletter__form button {
    width: 330px;
    border-radius: 10px;
    border: none;
    color: var(--white);
    font-size: 20px;
    font-weight: var(--bold-weight);
    transition: cursor 0.1s;
    margin-bottom: 20px;
  }

  /* Thank You Card */
  .thank__you__card {
    padding: 150px 30px 50px 30px;
  }

  .dismiss__button {
    margin-top: 250px;
  }
}

:root {
  /* Primary Colors */
  --tomato: hsl(4, 100%, 67%);

  /* Neutral Colors */

  --dark-slate-gray: hsl(234, 29%, 20%);
  --charcoal-gray: hsl(235, 18%, 26%);
  --gray: hsl(231, 7%, 60%);
  --white: hsl(0, 0%, 100%);

  /* Typography */
  --font: Roboto;
  --regular-weight: 400;
  --bold-weight: 700;
}
