/* Hero newsletter signup + thank-you modal. Injected only on pages that ship
   the `.tbe-newsletter-form` (see injectNewsletter in render.ts). */

.tbe-newsletter-form {
  width: 100%;
  max-width: 560px;
  margin: 0;
  text-align: left;
}

.tbe-newsletter-row {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.tbe-newsletter-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 14px 16px;
  font-size: 16px;
  color: #1a1a1a;
  font-family: inherit;
}

.tbe-newsletter-input::placeholder {
  color: #8a8f8c;
}

.tbe-newsletter-btn {
  flex: 0 0 auto;
  border: 0;
  cursor: pointer;
  background: #92f8c7;
  color: #05271a;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: inherit;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.tbe-newsletter-btn:hover {
  background: #7be9b4;
}

.tbe-newsletter-btn:active {
  transform: translateY(1px);
}

.tbe-newsletter-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

.tbe-newsletter-fine {
  margin: 12px 2px 0;
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
}

.tbe-newsletter-fine a {
  color: #92f8c7;
  text-decoration: underline;
}

.tbe-newsletter-error {
  margin: 10px 2px 0;
  font-size: 14px;
  color: #ff9b9b;
}

.tbe-newsletter-error[hidden] {
  display: none;
}

@media (max-width: 560px) {
  .tbe-newsletter-row {
    flex-direction: column;
    padding: 8px;
  }
  .tbe-newsletter-btn {
    width: 100%;
    padding: 14px;
  }
}

/* Thank-you modal */
.tbe-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tbe-modal[hidden] {
  display: none;
}

.tbe-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 9, 0.72);
  backdrop-filter: blur(2px);
}

.tbe-modal__box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: #0e1a14;
  border: 1px solid rgba(146, 248, 199, 0.25);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.tbe-modal__title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  color: #92f8c7;
}

.tbe-modal__body {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.tbe-modal__btn {
  border: 0;
  cursor: pointer;
  background: #92f8c7;
  color: #05271a;
  font-weight: 700;
  font-size: 16px;
  padding: 13px 36px;
  border-radius: 10px;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.tbe-modal__btn:hover {
  background: #7be9b4;
}
