/* Free-trial sign-up form (layouts/partials/trial-signup-form.njk).
   Self-contained, like newsletter-signup.css: brand colours are hard-coded
   because most pages don't define the freetrial CSS variables. */

.trial-signup {
  position: relative;
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: #212121;
  text-align: left;
}

.trial-signup__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 0.75rem;
}

.trial-signup__field {
  min-width: 0;
}

.trial-signup__label {
  display: block;
  margin: 0 0 0.4rem;
}

.trial-signup__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  padding: 0.65rem 0.9rem;
  border: 1px solid #BDBDBD;
  border-radius: 8px;
  background: #fff;
  color: #212121;
  font: inherit;
  font-size: 1.05rem;
}

.trial-signup__input::placeholder {
  color: #8a949e;
}

.trial-signup__input:focus-visible,
.trial-signup__btn:focus-visible,
.trial-signup__result:focus-visible {
  outline: 3px solid #00796B;
  outline-offset: 2px;
}

/* Honeypot: off-screen rather than display:none, which some bots skip. */
.trial-signup__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Turnstile only shows itself when it needs the visitor to do something,
   so reserve no space for it. */
.trial-signup__captcha:not(:empty) {
  margin: 0.9rem 0 0;
}

.trial-signup__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  min-height: 48px;
  padding: 0.9rem 2rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #FFC107;
  color: #212121;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease;
}

.trial-signup__btn:hover {
  background: #E5A000;
  color: #212121;
  text-decoration: none;
}

.trial-signup__btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.trial-signup__error a,
.trial-signup__result a:not(.trial-signup__btn) {
  color: #00796B;
  font-weight: 700;
}

.trial-signup__result {
  padding: 1.25rem 1.4rem;
  border: 1px solid #E0E0E0;
  border-left: 4px solid #00BFA5;
  border-radius: 10px;
  background: #fff;
}

.trial-signup [hidden] {
  display: none !important;
}

@media (max-width: 480px) {
  .trial-signup__fields {
    grid-template-columns: 1fr;
  }

  .trial-signup__btn {
    display: flex;
    width: 100%;
  }
}

/* base.njk pages load senior-friendly-typography.css, whose global
   `p` / `label` / heading rules carry !important. Restate this block's own
   typography to match, as newsletter-signup.css does. */
.trial-signup .trial-signup__label {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  color: #212121 !important;
}

.trial-signup .trial-signup__error {
  margin: 0.75rem 0 0 !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  color: #B71C1C !important;
}

.trial-signup .trial-signup__fineprint {
  margin: 0.75rem 0 0 !important;
  font-size: 1rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #3d4b5a !important;
}

.trial-signup .trial-signup__result-title {
  margin: 0 0 0.5rem !important;
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: #212121 !important;
}

.trial-signup .trial-signup__result-text {
  margin: 0 0 0.5rem !important;
  font-size: 1.0625rem !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  color: #3d4b5a !important;
  overflow-wrap: anywhere; /* long email addresses */
}

.trial-signup .trial-signup__result-text:last-child {
  margin-bottom: 0 !important;
}

@media print {
  .trial-signup {
    display: none !important;
  }
}
