/* Newsletter Component - Simple Version */
.newsletter {
  text-align: center;
}

.newsletter--home {
  margin-bottom: var(--size-7);
  padding: var(--size-3) 0 var(--size-6) 0;
}

.newsletter--simple {
  background-color: var(--surface-2);
  padding: var(--size-6);
  border-radius: 16px;
  margin-bottom: var(--size-7);
  border: 1px solid var(--surface-3);
}

.newsletter__cta {
  /* Container for the CTA partial */
}

.newsletter__description {
  color: var(--text-2);
  margin-bottom: var(--size-4);
  font-size: var(--font-size-2);
  max-width: var(--size-content-2);
  margin-inline: auto;
}

.newsletter__description a {
  color: var(--link-surface-color, var(--link-hover-color));
}

.newsletter__description a:hover {
  color: var(--link-surface-hover-color, var(--link-color));
}

.newsletter__form {
  max-width: 460px;
  margin: 0 auto;
}

.newsletter__form-group {
  display: flex;
  gap: var(--size-3);
}

.newsletter__email-input {
  flex: 1;
  height: 40px;
  padding: var(--size-2) var(--size-3);
  font-size: var(--font-size-1);
  background-color: transparent;
  border: 1px solid var(--surface-4);
  border-radius: var(--radius-2);
  color: var(--text-1);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter__email-input:focus {
  outline: 2px solid var(--link-color);
  outline-offset: -2px;
  border-color: var(--link-color);
}

.newsletter__email-input::placeholder {
  color: var(--text-2);
  opacity: 1;
}

.newsletter__submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  padding: var(--size-2) var(--size-4);
  height: 40px;
  font-size: var(--font-size-1);
  font-weight: 500;
  background-color: var(--button-bg, var(--link-color));
  color: var(--button-text, white);
  border: none;
  border-radius: var(--radius-2);
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter__submit-button:hover {
  background-color: var(--button-bg-hover, var(--link-hover-color));
  filter: brightness(0.9);
}

/* Newsletter Component - Full Version */
.newsletter--full {
  background-color: var(--surface-2);
  padding: var(--size-6);
  border-radius: 16px;
  margin-bottom: var(--size-7);
  border: 1px solid var(--surface-3);
}

.newsletter__title {
  font-size: var(--font-size-1);
  margin-bottom: var(--size-3);
}

.newsletter__description--full {
  color: var(--text-2);
  margin-bottom: var(--size-5);
}

.newsletter__form-group--full {
  display: flex;
  gap: var(--size-4);
  margin-bottom: var(--size-3);
}

.newsletter__email-input--full {
  flex: 1;
  height: 56px;
  padding: 16px;
  font-size: var(--font-size-1);
  background-color: var(--gray-9);
  border: 1px solid var(--surface-4);
  border-radius: var(--radius-2);
  color: var(--text-1);
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
}

.newsletter__email-input--full:focus {
  outline: 2px solid var(--link-color);
  outline-offset: -2px;
  border-color: var(--link-color);
}

.newsletter__email-input--full::placeholder {
  color: var(--text-2);
  opacity: 1;
}

/* MD3 Square Filled Button */
.newsletter__submit-button--full {
  padding: var(--size-3) var(--size-6);
  min-height: 40px;
  font-size: var(--font-size-1);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.01em;
  background-color: var(--button-bg, var(--link-color));
  color: var(--button-text, white);
  border: none;
  border-radius: 16px;
  cursor: pointer;
  text-transform: none;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.newsletter__submit-button--full:hover {
  background-color: var(--button-bg-hover, var(--link-hover-color));
  filter: brightness(0.9);
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
}

.newsletter__submit-button--full:active {
  background-color: var(--link-hover-color);
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
}

.newsletter__privacy {
  margin: 0;
  color: var(--text-2);
}

.newsletter__success {
  background-color: var(--green-1);
  color: var(--green-8);
  padding: var(--size-4);
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--green-3);
}

.newsletter__success p {
  margin: 0;
}

/* Newsletter CTA Component */
.newsletter-cta {
  background-color: var(--surface-2);
  padding: var(--size-5);
  border-radius: var(--radius-3);
  margin-top: var(--size-6);
  text-align: center;
}

.newsletter-cta__text {
  margin-bottom: var(--size-3);
}

.newsletter-cta__text:last-child {
  margin-bottom: 0;
}

.newsletter-cta__link {
  color: var(--link-surface-color, var(--link-hover-color));
  font-weight: 500;
}

.newsletter-cta__link:hover {
  color: var(--link-surface-hover-color, var(--link-color));
}