:root {
  /* background colors */
  --clr-bg-body: #36384d;
  --clr-bg-card: #ffffff;
  --clr-bg-check: #f86759;
  --clr-bg-primary: #232742;

  /* text colors */
  --clr-text-primary: #252841;

  /* button gradient */
  --btn-gradient-bg: rgb(255, 83, 121);
  --btn-linear-gradient: linear-gradient(90deg, rgba(255, 83, 121, 1) 0%, rgba(255, 105, 62, 1) 100%);
}

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

body {
  background-color: var(--clr-bg-body);
  font-family: "Open Sans", sans-serif;
  font-size: 16px;
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.card {
  color: var(--clr-text-primary);
  background-color: var(--clr-bg-card);
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  display: flex;
  border-radius: 2rem;
  padding: 1.25rem;
  width: 52rem;
  height: 34rem;
  justify-content: space-between;
}

.card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  padding: 2rem;
}

.card-header > h1 {
  font-size: 3.3rem;
  font-weight: 700;
}

.card-content > p {
  margin: 1.5rem 0;
  line-height: 1.5;
}

.card-content > ul {
  margin: 1.5rem 0;
  list-style: none;
  line-height: 1.5;
}

.card-content > ul > li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.card-content > ul > li > img {
  width: 1rem;
  height: 1rem;
}

.subcribe-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.subcribe-form > label {
  font-size: 0.75rem;
  font-weight: 700;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-field > input {
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px rgba(128, 128, 128, 0.5) solid;
}

.form-field > input:focus {
  outline: none;
  border: 1px var(--clr-bg-primary) solid;
}

.form-field > input::placeholder {
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.5;
}

.form-field > button[type="submit"] {
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  background: var(--clr-bg-primary);
  cursor: pointer;
  outline: none;
}

.form-field > button[type="submit"]:hover {
  background: var(--btn-linear-gradient);
  box-shadow: 0px 10px 15px 0px rgba(255, 105, 62, 0.5);
}

.error-message {
  color: red;
  font-size: 0.75rem;
  font-weight: 700;
}

.illustration.mobile {
  display: none;
}

.success-message {
  color: var(--clr-text-primary);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 22rem;
  background-color: var(--clr-bg-card);
  border-radius: 10px;
  padding: 2rem;
}

.success-message > img {
  width: 3rem;
  height: 3rem;
}

.success-message > h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

.success-message > p {
  line-height: 1.5;
  font-size: 0.8rem;
}

.success-message > button {
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  background: var(--clr-bg-primary);
  cursor: pointer;
  outline: none;
}

.success-message > button:hover {
  background: var(--btn-linear-gradient);
  box-shadow: 0px 10px 15px 0px rgba(255, 105, 62, 0.5);
}

.d_none {
  display: none;
}

.hidden {
  visibility: hidden;
}

@media (width <= 54rem) {
  .illustration.mobile {
    display: block;
  }
  .illustration.desktop {
    display: none;
  }
  .card {
    flex-direction: column-reverse;
    height: auto;
    width: auto;
    padding: 1.5rem;
  }
}

@media (width <= 35rem) {
  .container {
    justify-content: unset;
    align-items: unset;
  }

  .container:has(.success-message) {
    justify-content: center;
    align-items: center;
  }

  .card {
    border-radius: 0;
    padding: 0;
    width: 100%;
  }

  .card-body {
    flex: 1;
  }
}

@media (width <= 27rem) {
  .container:has(.success-message) {
    justify-content: unset;
    align-items: unset;
  }

  .success-message {
    max-width: 100%;
    justify-content: center;
    padding-top: 10rem;
  }

  .success-message > button {
    margin-top: auto;
  }
}
