/* TerraFab OS marketing site — shared form components.
   Used by Contact and Request Demo -- both share the same card, label,
   input/select, consent, honeypot, error-banner and success-state
   pattern. Both forms submit to their existing, already-shipped backend
   endpoints (POST /api/v1/public/contact and .../request-access) with
   real fetch calls -- not the prototypes' fake client-only success
   state. See contact.js/request-demo.js for the exact contracts. */

.tf-form-card { background: var(--tf-shell); border-radius: var(--tf-r-lg); box-shadow: var(--tf-shadow-lg); overflow: hidden; }
.tf-form-card__header { background: var(--tf-deep); padding: 20px 30px; }
.tf-form-card__header-title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 19px; color: var(--tf-sand); }
.tf-form-card__header-sub {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: 0.12em;
  color: rgba(245,238,227,0.6); margin-top: 5px;
}
.tf-form-card__body { padding: 28px 30px 32px; display: grid; gap: 18px; }

.tf-form-label {
  display: block; font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.14em; color: rgba(22,33,31,0.55); margin-bottom: 7px; text-transform: uppercase;
}
.tf-form-label__optional { color: rgba(22,33,31,0.35); text-transform: none; letter-spacing: normal; }
.tf-form-input {
  width: 100%; box-sizing: border-box; background: #FFFFFF; border: 1px solid rgba(10,41,48,0.16);
  border-radius: 8px; padding: 12px 14px; font-size: 15px; color: var(--tf-ink); outline: none;
  font-family: 'Inter', sans-serif; transition: border-color 150ms, box-shadow 150ms;
}
.tf-form-input:focus { border-color: var(--tf-ocean); box-shadow: 0 0 0 3px rgba(15,76,92,0.12); }
textarea.tf-form-input { resize: vertical; }
select.tf-form-input {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%233C5A62' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}

.tf-form-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 480px) {
  .tf-form-field-grid { grid-template-columns: 1fr; }
}

.tf-form-consent { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; }
.tf-form-consent input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--tf-coral); flex-shrink: 0; }
.tf-form-consent span { font-size: 14px; color: var(--tf-body-muted); line-height: 1.5; }

.tf-form-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tf-form-error {
  display: none; gap: 10px; align-items: flex-start; background: rgba(192,73,43,0.08);
  border: 1px solid rgba(192,73,43,0.3); border-radius: 10px; padding: 12px 14px;
}
.tf-form-error[data-visible="true"] { display: flex; }
.tf-form-error__mark { color: var(--tf-coral-deep); font-weight: 700; flex-shrink: 0; }
.tf-form-error__text { font-size: 14px; color: var(--tf-coral-deep); line-height: 1.45; }

  slice-marketing-request-demo-contact
 
  HEAD
 
 slice-marketing-request-demo-contact

.tf-chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.tf-chip {
  border: none; cursor: pointer; padding: 9px 15px; border-radius: 9999px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; transition: all 160ms;
  background: rgba(10,41,48,0.06); color: rgba(22,33,31,0.7);
}
.tf-chip[aria-pressed="true"] { background: var(--tf-ocean); color: var(--tf-sand); }

 main
  075ce74105eb9f9733319d5b188b7023cf3e0f47
  main
.tf-submit-btn {
  margin-top: 4px; border: none; border-radius: var(--tf-r-sm); padding: 16px 24px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  cursor: not-allowed; background: rgba(10,41,48,0.12); color: rgba(22,33,31,0.45);
  transition: all 180ms;
}
.tf-submit-btn[data-ready="true"] { cursor: pointer; background: var(--tf-coral); color: var(--tf-shell); }
.tf-submit-btn[data-ready="true"]:hover { background: var(--tf-coral-press); }
.tf-form-hint { font-size: 12px; color: rgba(22,33,31,0.5); line-height: 1.5; text-align: center; }

.tf-form-success { padding: 52px 30px; text-align: center; }
.tf-form-success[hidden] { display: none; }
.tf-form-success__icon {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(15,122,134,0.14); color: var(--tf-ocean-text);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; font-size: 24px; font-weight: 700;
}
.tf-form-success__title { font-family: 'Archivo', sans-serif; font-weight: 700; font-size: 22px; margin-bottom: 10px; }
.tf-form-success__body { font-size: 15px; line-height: 1.6; color: rgba(22,33,31,0.7); max-width: 36ch; margin: 0 auto 26px; }
.tf-form-success__reset {
  background: transparent; border: 1.5px solid rgba(10,41,48,0.25); color: var(--tf-ink); cursor: pointer;
  padding: 12px 26px; border-radius: var(--tf-r-sm); font-family: 'Inter', sans-serif; font-size: 12px;
  font-weight: 600; letter-spacing: 0.12em;
}
.tf-form-success__reset:hover { background: var(--tf-ocean); color: var(--tf-sand); border-color: var(--tf-ocean); }
