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

:root {
  /* Primary Color */
  --color-primary-red: hsl(4, 100%, 67%);

  /* Neutral Colors */
  --color-blue-800: hsl(234, 29%, 20%);
  --color-blue-700: hsl(235, 18%, 26%);
  --color-grey: hsl(0, 0%, 58%);
  --color-white: hsl(0, 0%, 100%);

  /* Typography */
  --font-family: "Roboto", sans-serif;
  --font-size-body: 16px;
  --font-weight-normal: 400;
  --font-weight-bold: 700;
}

* {
  box-sizing: border-box;
  font-weight: var(--font-weight-normal);
  padding: 0;
  margin: 0;
  font-family: var(--font-family);
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-content: center;
  background-color: var(--color-blue-700);
  color: var(--color-blue-800);
}

button {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 0.5rem;
  background-color: var(--color-blue-800);
  color: var(--color-white);
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

b {
  font-weight: var(--font-weight-bold);
}

.button-wrapper {
  margin-bottom: 50px;
}

.container {
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.illustration {
  display: flex;
  justify-content: center;
}

.illustration > img {
  width: 100%;
}

.content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0px 30px;
  gap: 20px;
}

.content h1 {
  font-size: 45px;
  font-weight: var(--font-weight-bold);
  margin-top: 30px;
  margin-bottom: 5px;
}

.content__list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}
.content__list li {
  display: flex;
  align-items: start;
  gap: 10px;
}

.form {
  margin: 0 30px;
}

.newsletter-form .label-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.newsletter-form label {
  font-weight: var(--font-weight-bold);
}

.newsletter-form .error-message {
  color: var(--color-primary-red);
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  display: none;
}

.newsletter-form input {
  width: 100%;
  padding: 16px;
  border: 1px solid var(--color-grey);
  border-radius: 0.5rem;
  font-size: var(--font-size-body);
  margin-bottom: 20px;
}

.newsletter-form input.error {
  border: 1px solid var(--color-primary-red);
  background-color: hsl(4, 100%, 94%);
  color: var(--color-primary-red);
}

.success-message {
  height: 100%;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  margin: 0px 30px;
}

.success-message .content-wrapper {
  margin-top: 120px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.content-wrapper h1 {
  font-size: 45px;
  font-weight: var(--font-weight-bold);
  line-height: 1.01;
}

.icon-success {
  width: 70px;
}

.attribution {
  font-size: 11px;
  text-align: center;
  display: none;
}

.attribution a {
  color: hsl(228, 45%, 44%);
}

@media screen and (min-width: 1100px) {
  body {
    align-items: center;
  }

  .container {
    flex-direction: row-reverse;
    border-radius: 2rem;
    padding: 20px;
    align-items: center;
  }

  .content {
    margin-right: 50px;
    width: 400px;
    gap: 25px;
  }

  .success-message {
    width: 350px;
    gap: 30px;
    justify-content: center;
  }

  .success-message .content-wrapper {
    margin-top: 40px;
    gap: 30px;
  }

  .icon-success {
    width: 50px;
  }
}
