* {
  box-sizing: border-box;
}

body {
  background: #000;
  font-family: Roboto, sans-serif;
  width: 100%;
  min-height: 100vh;
  color: hsl(235, 18%, 26%);
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.signup-container {
  width: 900px;
  max-width: 100%;
  min-height: 630px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  background-color: hsl(0, 0%, 100%);
  border-radius: 20px;
  overflow: hidden;
}

.content {
  width: 400px;
  max-width: 100%;
  color: hsl(235, 18%, 26%);
  margin-left: 60px;
}

.signup-header {
  color: hsl(235, 18%, 26%);
  font-size: 45px;
  margin-top: 100px !important;
  margin-left: 40px;
  font-weight: 700;
}

p {
  font-size: 16px;
  color: hsl(235, 18%, 26%);
  margin-left: 10px;
  line-height: 24px;
}

.update-list {
  width: 400px;
  max-width: 100%;
  text-align: left;
  margin-left: 15px;
}

.icon {
  margin-right: 10px !important;
}

li {
  margin-left: -39px;
  list-style: none;
  padding: 5px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.image {
  margin-right: 20px;
  margin-left: 20px;
}

.image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}

#signup-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
}



.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.newsletter-label {
  display: block;
  font-weight: bold;
  font-size: 14px;
  margin: 0;
}

.error-message {
  color: red;
  font-size: 13px;
  display: none;
  margin: 0 !important;   /* override global p { margin-left: 10px } */
  line-height: normal;
  text-align: right;
}

.email-input {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid hsl(231, 7%, 60%);
  border-radius: 5px;
  cursor: pointer;
}

.email-input:focus {
  border: 1px solid hsl(231, 7%, 60%);
  outline: none;
}

.submit-button {
  width: 100%;
  background: linear-gradient(to right, #ff4272 0%, #ffb369 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
  color: #fff;
  padding: 14px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
}

.submit-button:hover {
  background-color: #ff4272;
}

.attribution {
  font-size: 11px;
  text-align: center;
  position: fixed;
  bottom: 10px;
  width: 100%;
  color: #fff;
}

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



#success {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: hsl(0, 0%, 100%);
  border-radius: 20px;
  width: 450px;
  max-width: 90%;
  min-height: 450px;
  padding: 48px 40px;
  text-align: center;
}

#success img {
  width: 56px;
  height: 56px;
  margin: 0 0 24px 0;
}

.success-text {
  color: hsl(235, 18%, 26%);
  font-size: 30px;
  font-weight: 700;
  margin: 0 0 12px 0;
  text-align: center;
}

#success p {
  margin: 0 0 8px 0;
  text-align: center;
}

.dismiss-button {
  width: 100%;
  background: linear-gradient(to right, #ff4272 0%, #ffb369 100%);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
  color: #fff;
  padding: 14px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  margin-top: 32px;
}

.dismiss-button:hover {
  background-color: #4CAF50;
  color: #fff;
}

/* =========================
   MOBILE RESPONSIVE LAYOUT
========================= */

@media (max-width: 768px) {
  body {
    padding: 20px;
    align-items: center;
  }

  .signup-container {
    width: 100%;
    max-width: 420px;
    min-height: auto;
    flex-direction: column;
    border-radius: 20px;
    padding: 20px;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  }

  .content {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .signup-header {
    font-size: 38px;
    margin: 0 0 20px 0 !important;
  }

  p {
    margin-left: 0;
    text-align: left;
    margin-bottom: 24px;
  }

  .update-list {
    width: 100%;
    margin-left: 0;
    padding-left: 0;
    margin-bottom: 28px;
  }

  li {
    margin-left: 0;
    white-space: normal;
  }

  .image {
    display: none;
  }

  #signup-form {
    width: 100%;
    padding: 0;
    margin-top: 10px;
  }

  .email-input,
  .submit-button {
    width: 100%;
  }

  #success {
    width: 100%;
    max-width: 420px;
    min-height: auto;
    border-radius: 20px;
    padding: 40px 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  }

  .dismiss-button {
    width: 100%;
    margin: 30px 0 0 0;
  }

  .attribution {
    display: none;
  }
}