/* ============================================================
   TBB Academy: Contact us
   Form card on the left, email + shortcuts on the right. The
   Forminator form (design style "None") is styled here, scoped
   to .tbb-ah-contact__form .forminator-ui. Forminator ships its
   own rules with !important, so ours need it too.
   Shared UI is in tbb-academy-base.css.
   ============================================================ */

.tbb-ah.tbb-ah-contact { padding-top: 56px; }
.tbb-ah.tbb-ah-contact::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 512px;
  background: radial-gradient(55% 45% at 50% 35%, rgb(253 186 116 / .14), transparent 70%);
  pointer-events: none;
}
.tbb-ah .tbb-ah-contact__head { max-width: 672px; }
.tbb-ah .tbb-ah-contact__title {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--tbb-ah-fg);
  text-wrap: balance;
}
.tbb-ah .tbb-ah-contact__head .tbb-ah-lead { margin-top: 14px; }

.tbb-ah .tbb-ah-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 40px;
}
.tbb-ah .tbb-ah-contact__info { display: grid; gap: 16px; }
.tbb-ah .tbb-ah-contact__info .tbb-ah-card { opacity: 1; }

/* Email card */
.tbb-ah .tbb-ah-contact__list { margin-top: 8px; font-size: 14px; }
.tbb-ah .tbb-ah-contact__list dt { color: var(--tbb-ah-subtle); }
.tbb-ah .tbb-ah-contact__list dd { margin-top: 2px; }
.tbb-ah .tbb-ah-contact__list a,
.tbb-ah .tbb-ah-contact__list a:is(:link, :visited) { color: var(--tbb-ah-fg); font-weight: 500; overflow-wrap: anywhere; transition: color .2s; }
.tbb-ah .tbb-ah-contact__list a:is(:hover, :focus-visible) { color: var(--tbb-ah-brand); }

/* Shortcuts */
.tbb-ah .tbb-ah-contact__shortcuts-title { margin-top: 0; }
.tbb-ah .tbb-ah-contact__shortcuts { display: grid; margin-top: 8px; }
.tbb-ah .tbb-ah-contact__shortcuts a,
.tbb-ah .tbb-ah-contact__shortcuts a:is(:link, :visited) {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--tbb-ah-border);
  color: var(--tbb-ah-fg);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s;
}
.tbb-ah .tbb-ah-contact__shortcuts li:first-child a { border-top: 0; }
.tbb-ah .tbb-ah-contact__shortcuts a:is(:hover, :focus-visible) { color: var(--tbb-ah-brand); }
.tbb-ah .tbb-ah-contact__shortcuts .tbb-ah-ico { width: 32px; height: 32px; }
.tbb-ah .tbb-ah-contact__shortcuts .tbb-ah-ico svg { width: 16px; height: 16px; }
.tbb-ah .tbb-ah-contact__shortcuts a > .tbb-ah-icon { margin-left: auto; font-size: 14px; color: var(--tbb-ah-subtle); }

/* ── Form card ────────────────────────────────────────────────── */
/* No blur and no transform on the form card: either one makes the card the
   containing block for position: fixed children, and Google's invisible
   reCAPTCHA badge (fixed, bottom right of the screen) ends up pinned to the
   card's corner instead. The card's fill is solid enough without the blur. */
.tbb-ah .tbb-ah-contact__form {
  padding: 28px;
  opacity: 1;
  background: #fff;
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
}
.tbb-ah .tbb-ah-contact__form-title {
  margin-bottom: 20px;
  font-family: var(--tbb-ah-font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--tbb-ah-fg);
}
.tbb-ah .tbb-ah-contact__fallback a,
.tbb-ah .tbb-ah-contact__fallback a:is(:link, :visited) { color: var(--tbb-ah-fg); font-weight: 500; overflow-wrap: anywhere; }
.tbb-ah .tbb-ah-contact__note {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px dashed var(--tbb-ah-edge-hover);
  border-radius: calc(var(--tbb-ah-radius) - 2px);
  font-size: 14px;
  color: var(--tbb-ah-muted);
}

.tbb-ah-contact__form .forminator-ui { margin: 0 !important; font-family: var(--tbb-ah-font) !important; text-align: left; }
.tbb-ah-contact__form .forminator-ui .forminator-row { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 16px !important; }
.tbb-ah-contact__form .forminator-ui .forminator-row:empty { display: none; }
.tbb-ah-contact__form .forminator-ui .forminator-col { flex: 1 1 224px; min-width: 0; padding: 0 !important; }
.tbb-ah-contact__form .forminator-ui .forminator-label {
  display: block;
  margin: 0 0 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  color: var(--tbb-ah-fg) !important;
}
.tbb-ah-contact__form .forminator-ui .forminator-required { color: #dc2626 !important; }
.tbb-ah-contact__form .forminator-ui :is(.forminator-input, .forminator-textarea, select) {
  width: 100% !important;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1px solid var(--tbb-ah-border) !important;
  border-radius: calc(var(--tbb-ah-radius) - 2px) !important;
  background: #fff !important;
  box-shadow: none !important;
  color: var(--tbb-ah-fg) !important;
  font: 400 15px/1.5 var(--tbb-ah-font) !important;
  transition: border-color .2s, box-shadow .2s;
}
.tbb-ah-contact__form .forminator-ui .forminator-textarea { min-height: 160px; resize: vertical; }
.tbb-ah-contact__form .forminator-ui :is(.forminator-input, .forminator-textarea, select):focus {
  outline: none !important;
  border-color: var(--tbb-ah-edge-hover) !important;
  box-shadow: 0 0 0 3px rgb(133 77 14 / .12) !important;
}
.tbb-ah-contact__form .forminator-ui ::placeholder { color: var(--tbb-ah-subtle); opacity: 1; }
.tbb-ah-contact__form .forminator-ui .forminator-description { margin-top: 6px; font-size: 13px; color: var(--tbb-ah-subtle); }
.tbb-ah-contact__form .forminator-ui .forminator-merge-tags { font-size: 13px; line-height: 1.6; color: var(--tbb-ah-subtle); }
.tbb-ah .tbb-ah-contact__form :is(.forminator-ui, .tbb-ah-contact__fallback) a:is(:link, :visited):not(#tbb-ah-u) {
  color: var(--tbb-ah-fg);
  text-decoration: underline;
  text-decoration-color: var(--tbb-ah-edge-hover);
  text-underline-offset: 3px;
  transition: color .2s;
}
.tbb-ah .tbb-ah-contact__form :is(.forminator-ui, .tbb-ah-contact__fallback) a:is(:hover, :focus-visible):not(#tbb-ah-u) { color: var(--tbb-ah-brand); }
.tbb-ah-contact__form .forminator-ui .forminator-has_error :is(.forminator-input, .forminator-textarea) { border-color: #dc2626 !important; }
.tbb-ah-contact__form .forminator-ui .forminator-error-message {
  display: block;
  margin-top: 6px !important;
  padding: 0 !important;
  background: none !important;
  color: #dc2626 !important;
  font-size: 13px !important;
}
.tbb-ah-contact__form .forminator-ui :is(.forminator-button-submit, button[type="submit"]) {
  display: inline-flex !important;
  align-items: center;
  height: 40px;
  margin: 4px 0 0 !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 0 var(--tbb-ah-radius) 0 var(--tbb-ah-radius) !important;
  background: var(--tbb-ah-solid-bg) !important;
  box-shadow: none !important;
  color: var(--tbb-ah-solid-fg) !important;
  font: 500 14px/1 var(--tbb-ah-font) !important;
  cursor: pointer;
  transition: background-color .2s;
}
.tbb-ah-contact__form .forminator-ui :is(.forminator-button-submit, button[type="submit"]):is(:hover, :focus-visible) { background: var(--tbb-ah-solid-hover) !important; }
.tbb-ah-contact__form .forminator-ui .forminator-response-message {
  margin: 0 0 16px !important;
  padding: 12px 16px !important;
  border: 1px solid var(--tbb-ah-edge) !important;
  border-radius: calc(var(--tbb-ah-radius) - 2px) !important;
  background: var(--tbb-ah-badge-bg) !important;
  color: var(--tbb-ah-fg) !important;
  font-size: 14px !important;
}
.tbb-ah-contact__form .forminator-ui .forminator-response-message:empty,
.tbb-ah-contact__form .forminator-ui .forminator-response-message[aria-hidden="true"] { display: none; }
.tbb-ah-contact__form .forminator-ui .forminator-success { border-color: var(--tbb-ah-ok) !important; }
.tbb-ah-contact__form .forminator-ui .forminator-error { border-color: #dc2626 !important; }

@media (min-width: 768px) {
  .tbb-ah.tbb-ah-contact { padding-top: 80px; }
  .tbb-ah .tbb-ah-contact__title { font-size: 56px; }
}
@media (max-width: 899px) {
  .tbb-ah .tbb-ah-contact__layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  .tbb-ah .tbb-ah-contact__form { padding: 20px; }
}
