@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");

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

body {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  background-color: hsl(234, 29%, 20%);
  color: hsl(234, 29%, 20%);
}

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin-top: 50px;
}

.container {
  display: flex;
  flex-wrap: wrap-reverse;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  max-width: 1000px;
  width: 100%;
  background-color: hsl(0, 0%, 100%);
  border-radius: 16px;
  padding: 16px;
}

.left-block,
.right-block {
  flex: 1 1 400px;
  min-width: 300px;
}

.right-block .desktop {
  display: block;
  width: 100%;
  height: auto;
}

.mobile {
  display: none;
}

.left-block {
  align-self: center;
  padding: 0 30px;
}

.left-block .title {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 20px;
}

.left-block .description {
  margin-bottom: 20px;
  line-height: 1.5;
}

.left-block .list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.left-block .list .item {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
}

.left-block .list .item img {
  margin-right: 16px;
  vertical-align: bottom;
  flex-grow: 0;
}

.left-block .list .item p {
  flex-grow: 1;
}

.left-block .form-block {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.left-block .form-block label {
  font-size: 14px;
  font-weight: 700;
}

.left-block .form-block input {
  padding: 16px;
  border: 1px solid hsl(0, 0%, 58%);
  border-radius: 8px;
}

.left-block .form-block .form-button,
.success-message .dismiss-btn {
  padding: 16px;
  border: none;
  background-color: hsl(234, 29%, 20%);
  color: hsl(0, 0%, 100%);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
}
.left-block .form-block .form-button:hover,
.success-message .dismiss-btn:hover,
.left-block .form-block .form-button:focus,
.success-message .dismiss-btn:focus,
.left-block .form-block .form-button:active,
.success-message .dismiss-btn:active {
  background: linear-gradient(
    90deg,
    rgba(255, 82, 123, 1) 0%,
    rgba(255, 106, 58, 1) 100%
  );
}

.success-message {
  display: none;
  text-align: left;
  background-color: hsl(0, 0%, 100%);
  padding: 30px;
  border-radius: 15px;
  color: hsl(234, 29%, 20%);
  width: 25%;
  margin-top: 75px;
}

.success-message img {
  width: 35px;
  height: 35px;
  margin-bottom: 16px;
}

.success-message .title {
  font-size: 40px;
  margin-bottom: 16px;
}

.success-message .description {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 16px;
}

.success-message .user-email {
  font-weight: 700;
}

.attribution {
  color: hsl(0, 0%, 100%);
  text-align: center;
  margin-bottom: 10px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.attribution a {
  color: hsl(4, 100%, 67%);
}

.error-message {
  color: hsl(4, 100%, 67%);
  font-size: 14px;
  margin-top: 6px;
  display: none;
  font-weight: 700;
}

input.error {
  background-color: #ffe8e6;
  border: 1px solid hsl(4, 100%, 67%) !important;
  opacity: 0.7;
}
input.error::placeholder {
  color: hsl(4, 100%, 67%);
}

.label-error {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 575.98px) {
  .container {
    padding: 0;
  }
  .success-message {
    width: 100%;
  }
  .right-block .desktop {
    display: none;
  }
  .mobile {
    display: block;
    width: 100%;
  }
  .attribution {
    margin-bottom: 0;
  }
}
