/* hub.pagebody.ai -- contact page (the "book an intro call" lead form).
   Page-specific styles only. The chrome (tokens, reset, background, top bar,
   buttons, footer) comes from the shared foundation (foundation.css).
   Everything here is scoped under `.pbf` and reads the foundation's CSS
   variables with fallbacks, so the form tracks the live hub theme. Lifted from
   pagebody-strategist-landing/hub-contact.html; the preview-only page chrome
   (html/body background + font) was dropped because foundation.css provides it. */

.pbf {
  --pbf-bg: var(--bg, #060706);
  --pbf-surface: var(--surface, rgba(18, 21, 18, 0.62));
  --pbf-surface-solid: var(--surface-solid, #121512);
  --pbf-border: var(--border, #242a23);
  --pbf-border-2: var(--border-2, #2f372e);
  --pbf-fg: var(--fg, #f4f6f3);
  --pbf-muted: var(--muted, #9aa39a);
  --pbf-muted-2: var(--muted-2, #707870);
  --pbf-accent: var(--accent, #90fe00);
  --pbf-danger: var(--danger, #ff5757);
  --pbf-radius: var(--radius, 12px);
  --pbf-ease: var(--ease, cubic-bezier(0.16, 1, 0.3, 1));
  --pbf-font: var(--font-brand, "Sora", system-ui, sans-serif);

  font-family: var(--pbf-font);
  color: var(--pbf-fg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.pbf *,
.pbf *::before,
.pbf *::after {
  box-sizing: border-box;
}

.pbf-wrap {
  max-width: var(--maxw, 1180px);
  margin: 0 auto;
  padding: clamp(96px, 13vh, 150px) clamp(20px, 5vw, 48px) clamp(48px, 8vw, 96px);
}

.pbf-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}

/* ---- Left: intro ---- */
.pbf-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pbf-accent);
}
.pbf-eyebrow::before {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--pbf-accent);
  flex: none;
}

.pbf-title {
  font-weight: 700;
  font-size: clamp(2.1rem, 4.8vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0 0 20px;
  color: var(--pbf-fg);
}
.pbf-grn {
  color: var(--pbf-accent);
}

.pbf-lead {
  margin: 0 0 38px;
  max-width: 42ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  font-weight: 300;
  color: var(--pbf-muted);
  line-height: 1.6;
}

.pbf-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
  max-width: 44ch;
}
.pbf-feature {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
}
.pbf-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--pbf-border-2);
  background: var(--pbf-surface);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  color: var(--pbf-accent);
  flex: none;
}
.pbf-feature-icon svg {
  width: 18px;
  height: 18px;
}
.pbf-feature-title {
  margin: 2px 0 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pbf-fg);
  line-height: 1.3;
}
.pbf-feature-desc {
  margin: 0;
  font-size: 14px;
  font-weight: 300;
  color: var(--pbf-muted);
  line-height: 1.55;
}

/* ---- Right: form card ---- */
.pbf-card {
  background: var(--pbf-surface);
  border: 1px solid var(--pbf-border);
  border-radius: 16px;
  padding: clamp(24px, 3.2vw, 40px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.pbf-form {
  display: grid;
  gap: 20px;
}
.pbf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.pbf-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.pbf-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--pbf-fg);
  line-height: 1.3;
}
.pbf-req {
  color: var(--pbf-accent);
  font-weight: 700;
}

.pbf-field input,
.pbf-field select,
.pbf-field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--pbf-fg);
  width: 100%;
  padding: 13px 15px;
  background: rgba(18, 21, 18, 0.5);
  border: 1px solid var(--pbf-border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.18s var(--pbf-ease), box-shadow 0.18s var(--pbf-ease),
    background-color 0.18s var(--pbf-ease);
  appearance: none;
  -webkit-appearance: none;
}
.pbf-field textarea {
  resize: vertical;
  min-height: 124px;
  line-height: 1.55;
}
.pbf-field input::placeholder,
.pbf-field textarea::placeholder {
  color: var(--pbf-muted-2);
}
.pbf-field input:focus,
.pbf-field select:focus,
.pbf-field textarea:focus {
  border-color: var(--pbf-accent);
  box-shadow: 0 0 0 3px rgba(144, 254, 0, 0.13);
}
/* Native dropdown list readability on dark UIs */
.pbf-field select option {
  background: var(--pbf-surface-solid);
  color: var(--pbf-fg);
}
.pbf-field select optgroup {
  background: var(--pbf-surface-solid);
  color: var(--pbf-muted);
  font-weight: 600;
}

.pbf-select-wrap {
  position: relative;
}
.pbf-select-wrap select {
  padding-right: 42px;
  cursor: pointer;
}
.pbf-select-wrap.placeholder select {
  color: var(--pbf-muted-2);
}
.pbf-select-wrap::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translateY(-65%) rotate(45deg);
  border-right: 1.6px solid var(--pbf-muted);
  border-bottom: 1.6px solid var(--pbf-muted);
  pointer-events: none;
}

/* Error state */
.pbf-field.has-error input,
.pbf-field.has-error select,
.pbf-field.has-error textarea {
  border-color: var(--pbf-danger);
  box-shadow: 0 0 0 3px rgba(255, 87, 87, 0.12);
}
.pbf-err {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--pbf-danger);
}
.pbf-err:empty {
  display: none;
}
.pbf-help {
  margin: 0;
  font-size: 13px;
  font-weight: 300;
  color: var(--pbf-muted);
  line-height: 1.45;
}
.pbf-field.has-error .pbf-help {
  display: none;
}

/* Consent */
.pbf-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 2px;
}
.pbf-consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 19px;
  height: 19px;
  margin: 1px 0 0;
  padding: 0;
  border: 1.6px solid var(--pbf-border-2);
  border-radius: 5px;
  background: var(--pbf-surface-solid);
  cursor: pointer;
  flex: none;
  position: relative;
  z-index: 1;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.pbf-consent input[type="checkbox"]:hover {
  border-color: var(--pbf-accent);
}
.pbf-consent input[type="checkbox"]:checked {
  background-color: var(--pbf-accent);
  border-color: var(--pbf-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23060706' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.2 8.6l3 3L12.8 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px 13px;
}
.pbf-consent input[type="checkbox"]:focus-visible {
  outline: 3px solid rgba(144, 254, 0, 0.35);
  outline-offset: 2px;
}
.pbf-consent-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--pbf-muted);
  line-height: 1.5;
}
.pbf-consent-text label {
  cursor: pointer;
}
.pbf-consent-text a {
  color: var(--pbf-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.pbf-consent-text a:hover {
  opacity: 0.85;
}
.pbf-consent .pbf-err {
  grid-column: 1 / -1;
}
.pbf-consent.has-error input[type="checkbox"] {
  border-color: var(--pbf-danger);
  outline: 2px solid rgba(255, 87, 87, 0.2);
  outline-offset: 1px;
}

/* Submit (mirrors hub .btn-primary) */
.pbf-submit {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  padding: 15px 24px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #060706;
  background: var(--pbf-accent);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 0.2s var(--pbf-ease), filter 0.2s var(--pbf-ease);
}
.pbf-submit:hover {
  filter: brightness(1.08);
}
.pbf-submit:active {
  transform: scale(0.985);
}
.pbf-submit:focus-visible {
  outline: 3px solid rgba(144, 254, 0, 0.4);
  outline-offset: 2px;
}
.pbf-submit[disabled] {
  cursor: progress;
  filter: brightness(0.92);
}
.pbf-submit svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.pbf-submit.is-loading svg {
  display: none;
}
.pbf-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(6, 7, 6, 0.35);
  border-top-color: #060706;
  border-radius: 50%;
  animation: pbf-spin 0.7s linear infinite;
  flex: none;
}
.pbf-submit.is-loading .pbf-spinner {
  display: inline-block;
}
@keyframes pbf-spin {
  to {
    transform: rotate(360deg);
  }
}

.pbf-formnote {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
  font-weight: 300;
  color: var(--pbf-muted-2);
}

.pbf-form-error {
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 87, 87, 0.08);
  border: 1px solid rgba(255, 87, 87, 0.35);
  color: var(--pbf-danger);
  font-size: 14px;
  line-height: 1.45;
}
.pbf-form-error[hidden] {
  display: none;
}

/* Success */
.pbf-success {
  text-align: center;
  padding: 20px 6px 10px;
}
.pbf-success[hidden] {
  display: none;
}
.pbf-success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(144, 254, 0, 0.12);
  border: 1px solid rgba(144, 254, 0, 0.4);
  color: var(--pbf-accent);
  display: grid;
  place-items: center;
}
.pbf-success-icon svg {
  width: 26px;
  height: 26px;
}
.pbf-success h2 {
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
  color: var(--pbf-fg);
}
.pbf-success p {
  margin: 0 auto;
  max-width: 42ch;
  color: var(--pbf-muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
}
/* Shown only when the visitor flagged "Immediately" on the timeline field:
   fast-lane them straight to instant booking. */
.pbf-success-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  padding: 13px 22px;
  font-size: 14.5px;
  font-weight: 600;
  color: #060706;
  background: var(--pbf-accent);
  border-radius: 8px;
  text-decoration: none;
  transition: filter 0.2s var(--pbf-ease);
}
.pbf-success-cta:hover {
  filter: brightness(1.08);
}
.pbf-success-cta[hidden] {
  display: none;
}

/* Honeypot */
.pbf-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 880px) {
  .pbf-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .pbf-row {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pbf *,
  .pbf *::before,
  .pbf *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
