/* Hubgrade contact forms */
.hg-contact-hero__title { width: 100%; max-width: 100%; margin-inline: auto; font-size: clamp(2rem,5.4vw,3.75rem); line-height: 1.2; overflow: visible; overflow-wrap: anywhere; }
.hg-contact-hero__gradient { display: inline-block; padding: 0 .22em .08em 0; margin: 0; overflow: visible; white-space: nowrap; vertical-align: baseline; }
.hg-contact-form { display: grid; gap: 12px; }
[data-contact-form] input.hg-contact-input {
  display: block; width: 100%; min-height: 46px;
  padding: 11px 15px;
  border: 1px solid #d7dbe4;
  border-radius: 11px;
  background: #fff;
  color: #000 !important;
  -webkit-text-fill-color: #000;
  caret-color: #000;
  font: inherit; font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}
.hg-contact-input::placeholder { color: #64748b; -webkit-text-fill-color: #64748b; opacity: 1; }
.hg-contact-input:focus {
  outline: none;
  border-color: rgba(255,0,122,0.6);
  box-shadow: 0 0 15px rgba(255,0,122,0.2);
}
[data-contact-form="callback"] .hg-contact-input:focus {
  border-color: rgba(121,40,202,0.7);
  box-shadow: 0 0 15px rgba(121,40,202,0.25);
}
.hg-privacy-choice {
  display: flex; align-items: flex-start; gap: 10px;
  color: #94a3b8; font-size: 11px; line-height: 1.45; font-weight: 400;
}
.hg-privacy-choice input {
  flex: none; width: 18px; height: 18px; margin-top: 1px;
  accent-color: #ec167f;
}
.hg-privacy-choice a { text-decoration: underline; text-underline-offset: 2px; color: #c084fc; }
.hg-privacy-choice a:hover { color: #ec167f; }
.hg-form-status { margin: 0; font-size: 12px; line-height: 1.5; color: #f87171; }
.hg-form-status:empty { display: none; }
.hg-form-status.hg-success { color: #4ade80; }
.hg-form-status.hg-pending { color: #cbd5e1; }
[data-contact-form] button[type="submit"][aria-busy="true"] {
  cursor: wait;
  opacity: .8;
  pointer-events: none;
}
[data-contact-form] button[type="submit"][aria-busy="true"]::before {
  content: '';
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  margin-right: .5em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: hg-contact-spin .7s linear infinite;
}
@keyframes hg-contact-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  [data-contact-form] button[type="submit"][aria-busy="true"]::before { animation: none; }
}

/* Dialog */
.hg-contact-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 28px; border: 1px solid rgba(236,22,127,.25);
  border-radius: 18px; background: #0b0717; color: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.hg-contact-dialog::backdrop { background: rgba(2,4,12,.72); }
.hg-contact-dialog[open] { animation: hg-dialog-in 240ms cubic-bezier(.2,.8,.2,1) both; }
.hg-contact-dialog[open]::backdrop { animation: hg-backdrop-in 240ms ease-out both; }
.hg-contact-dialog[open].is-closing { animation: hg-dialog-out 200ms ease-in both; }
.hg-contact-dialog[open].is-closing::backdrop { animation: hg-backdrop-out 200ms ease-in both; }
@keyframes hg-dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hg-dialog-out {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(12px) scale(.97); }
}
@keyframes hg-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes hg-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hg-contact-dialog[open],
  .hg-contact-dialog[open]::backdrop { animation: none; }
}
.hg-contact-dialog h2 { margin: 0 0 12px; font-size: 21px; }
.hg-contact-dialog p { margin: 0 0 22px; color: #cbd5e1; font-size: 14px; line-height: 1.55; }
.hg-contact-dialog button {
  display: inline-flex; min-height: 42px; align-items: center; justify-content: center;
  padding: 9px 20px; border: 0; border-radius: 10px;
  background: #ec167f; color: #fff; cursor: pointer; font: inherit;
}

/* Keep the guide banner compact and free of the section watermark. */
.hg-guide-banner { height: auto; min-height: 0; flex: none; padding-top: 24px; padding-bottom: 24px; }
.hg-guide-banner::before { display: none; }
.hg-guide-banner__inner { align-items: stretch; }
.hg-guide-banner__inner > :first-child { display: flex; flex: 1 1 auto; align-items: center; max-width: 780px; }
@media (min-width: 1024px) {
  .hg-guide-banner { padding-top: 28px; padding-bottom: 28px; }
}

.hg-guide-form { display: flex; flex: 0 1 460px; width: 100%; max-width: 460px; flex-direction: column; align-items: stretch; gap: 12px; padding: 18px; border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background: linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.015)); box-shadow: 0 16px 40px rgba(0,0,0,.18); }
.hg-guide-form__row { display: flex; align-items: center; }
.hg-guide-form__row .hg-contact-input { flex: 1 1 auto; min-width: 0; min-height: 50px; border-color: rgba(148,163,184,.42); border-radius: 12px; box-shadow: 0 5px 18px rgba(0,0,0,.12); }
.hg-guide-form__row .hg-contact-input:focus { border-color: #ec167f; box-shadow: 0 0 0 3px rgba(236,22,127,.16); }
.hg-guide-choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: start; gap: 6px 10px; padding: 2px 1px; color: #d7deeb; font-size: 12px; line-height: 1.55; }
.hg-guide-choice input { grid-column: 1; grid-row: 1; appearance: none; display: grid; place-content: center; width: 19px; height: 19px; margin: 1px 0 0; border: 1px solid #64748b; border-radius: 5px; background: #111322; cursor: pointer; transition: background .18s ease,border-color .18s ease,box-shadow .18s ease; }
.hg-guide-choice input::before { content: ""; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0); transition: transform .14s ease; }
.hg-guide-choice input:checked { border-color: #ec167f; background: #ec167f; box-shadow: 0 0 0 3px rgba(236,22,127,.14); }
.hg-guide-choice input:checked::before { transform: rotate(-45deg) scale(1); }
.hg-guide-choice input:focus-visible { outline: 2px solid #f472b6; outline-offset: 3px; }
.hg-guide-choice label { grid-column: 2; cursor: pointer; }
.hg-guide-choice a { color: #e9a9d0; text-decoration: underline; text-decoration-color: rgba(236,22,127,.65); text-underline-offset: 3px; }
.hg-guide-choice a:hover { color: #fff; }
.hg-guide-marketing input { margin-top: 1px; }
.hg-guide-marketing-note { margin: -2px 0 0; color: #9ba7bb; font-size: 11px; line-height: 1.5; }
.hg-guide-submit { align-self: flex-start; justify-content: center; min-height: 44px; padding: 0 20px; border: 1px solid rgba(236,22,127,.5); border-radius: 11px; background: linear-gradient(120deg,#ec167f,#c20c69); box-shadow: 0 8px 20px rgba(236,22,127,.18); cursor: pointer; transition: transform .18s ease,box-shadow .18s ease,opacity .18s ease,filter .18s ease; }
.hg-guide-submit:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 11px 26px rgba(236,22,127,.3); }
.hg-guide-submit:not(:disabled):active { transform: translateY(0); }
.hg-guide-submit:disabled { border-color: rgba(148,163,184,.18); background: #252432; color: #8790a1; box-shadow: none; cursor: not-allowed; opacity: .76; }
.hg-guide-submit:focus-visible { outline: 2px solid #f472b6; outline-offset: 3px; }

/* Guide form responsive */
@media (max-width: 640px) {
  .hg-guide-banner__inner > :first-child { max-width: none; }
  .hg-guide-form { flex-basis: auto; max-width: none; padding: 15px; }
  .hg-guide-submit { align-self: stretch; }
}
