/* Talk to Hebra — marketing lead modal (shared) */
.tth-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(5, 11, 20, 0.72);
  backdrop-filter: blur(6px);
}
.tth-overlay.is-open { display: flex; }

.tth-dialog {
  width: min(100%, 480px);
  max-height: calc(100vh - 2.5rem);
  overflow: auto;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
  padding: 1.75rem 1.5rem 1.5rem;
  position: relative;
  color: #F9FAFB;
  font-family: 'Source Sans Pro', Helvetica, Arial, sans-serif;
}

.tth-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #E5E7EB;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.tth-close:hover { background: rgba(241,117,34,0.2); color: #fff; }
.tth-close:focus-visible { outline: 2px solid #f17522; outline-offset: 2px; }

.tth-eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f17522;
  margin-bottom: 0.45rem;
}
.tth-title {
  font-family: 'Poppins', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
  color: #F9FAFB;
}
.tth-lead {
  color: #9CA3AF;
  font-size: 0.98rem;
  line-height: 1.55;
  margin: 0 0 1.35rem;
}

.tth-field { margin-bottom: 1rem; }
.tth-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #D1D5DB;
  margin-bottom: 0.4rem;
}
.tth-field .tth-optional { font-weight: 400; color: #6B7280; }
.tth-field input,
.tth-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: #0B1220;
  color: #F9FAFB;
  font-size: 1rem;
  font-family: inherit;
}
.tth-field input:focus,
.tth-field textarea:focus {
  outline: none;
  border-color: rgba(241,117,34,0.65);
  box-shadow: 0 0 0 3px rgba(241,117,34,0.15);
}
.tth-field input[aria-invalid="true"],
.tth-field textarea[aria-invalid="true"] {
  border-color: #f87171;
}
.tth-error {
  display: none;
  color: #fca5a5;
  font-size: 0.82rem;
  margin-top: 0.35rem;
}
.tth-error.is-visible { display: block; }
.tth-form-error {
  display: none;
  color: #fca5a5;
  font-size: 0.9rem;
  margin: 0 0 0.85rem;
}
.tth-form-error.is-visible { display: block; }

.tth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.tth-submit {
  flex: 1 1 auto;
  min-width: 140px;
  border: 0;
  border-radius: 50px;
  padding: 0.9rem 1.4rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #f17522, #BF7AB4);
  box-shadow: 0 4px 16px rgba(241,117,34,0.25);
  font-family: inherit;
}
.tth-submit:hover { transform: translateY(-1px); }
.tth-submit:disabled { opacity: 0.65; cursor: wait; transform: none; }
.tth-submit:focus-visible { outline: 2px solid #f17522; outline-offset: 2px; }

.tth-cancel {
  flex: 0 0 auto;
  border-radius: 50px;
  padding: 0.9rem 1.2rem;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  color: #E5E7EB;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.28);
  font-family: inherit;
}
.tth-cancel:hover { background: rgba(255,255,255,0.06); }
.tth-cancel:focus-visible { outline: 2px solid #f17522; outline-offset: 2px; }

.tth-success { display: none; text-align: center; padding: 0.5rem 0 0.25rem; }
.tth-success.is-visible { display: block; }
.tth-form.is-hidden { display: none; }
.tth-success .tth-title { margin-top: 0.25rem; }
.tth-success-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
}
.tth-success-actions .cta-button,
.tth-success-actions .tth-demo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  background: linear-gradient(135deg, #f17522, #BF7AB4);
  color: #fff !important;
  border: none;
}
.tth-success-link {
  color: #f17522;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.tth-success-link:hover { text-decoration: underline; }

.final-cta-tertiary {
  margin-top: 1.1rem;
  text-align: center;
}
.final-cta-tertiary a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.95rem;
}
.final-cta-tertiary a:hover { color: #f17522; }
.final-cta-tertiary a span { color: #f17522; }

@media (max-width: 560px) {
  .tth-overlay { align-items: flex-end; padding: 0; }
  .tth-dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    padding: 1.5rem 1.15rem 1.35rem;
  }
  .tth-actions { flex-direction: column; }
  .tth-submit, .tth-cancel { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .tth-submit:hover { transform: none; }
}
