/* ══════════════════════════════════════════════════════════
   COMPONENT — contact form + adoption options

   The only real form on the site. Every control is labelled, required
   fields are marked both visually and programmatically, and the text
   inputs carry autocomplete tokens (WCAG 1.3.5 Identify Input Purpose).
   ══════════════════════════════════════════════════════════ */
.contact-hero{ position:relative; overflow:hidden; }
.contact-hero .contact-grid{ position:relative; z-index:1; }
.form-errors,
.form-status{
  margin-top:16px; padding:12px 14px; border:1px solid currentColor;
  border-radius:var(--r-sm); font-size:13px; line-height:1.5;
}
.form-errors{ color:var(--error); background:var(--error-dim); }
.form-status{ color:var(--success-text); background:color-mix(in srgb,var(--success-text) 10%,transparent); }
.form-errors:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px; }
.contact-grid{
  display:grid; grid-template-columns:minmax(0,.44fr) minmax(0,.56fr);
  gap:clamp(36px,5vw,88px); align-items:start;
}
.cf-h{ font-size:clamp(32px,4.6vw,66px); margin-block:22px 18px; }
.cf-lede{ font-size:15px; color:var(--fog); margin-bottom:10px; }
.cf-sub{ max-width:46ch; margin-bottom:clamp(24px,3.5vh,36px); }

/* ── the card ────────────────────────────────────────────── */
.cform{
  border:1px solid var(--line-2); border-radius:var(--r-lg);
  background:linear-gradient(160deg,var(--surface),var(--surface-2)),var(--ink-2);
  box-shadow:var(--sh-float);
  padding:clamp(22px,2.6vw,34px);
}
.cform-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:16px;
  margin-bottom:clamp(18px,2.4vh,26px);
}
.cform-head h3{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(17px,1.6vw,22px); letter-spacing:-.025em; color:var(--paper);
}
.cf-req{ font-size:11.5px; color:var(--fog-dim); white-space:nowrap; }

/* HubSpot raw HTML embeds use their own vendor classes instead of the
   original .cf-* fields. Keep those controls inside the same design-led card
   so the raw embed has the same spacing, typography, focus treatment, and
   theme contrast as the original form. These selectors intentionally remain
   scoped to the contact card so HubSpot styles cannot affect other content. */
.cform .hs-form,
.cform .hs-form *,
.cform .hbspt-form,
.cform .hbspt-form *{ box-sizing:border-box; }
.cform .hs-form,
.cform .hbspt-form{ display:block !important; width:100% !important; max-width:100% !important; }
.cform .hs-form fieldset{ display:block !important; max-width:none !important; width:100% !important; margin:0 !important; padding:0 !important; border:0 !important; }
.cform .hs-form fieldset.form-columns-2,
.cform .hs-form .allocore-name-row{
  display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; column-gap:16px !important; row-gap:0 !important;
}
.cform .hs-form fieldset.form-columns-1 .hs-form-field,
.cform .hs-form fieldset.form-columns-2 .hs-form-field,
.cform .hs-form .allocore-name-row .hs-form-field,
.cform .hs-form .allocore-name-row > .hs_firstname,
.cform .hs-form .allocore-name-row > .hs_lastname{
  float:none !important; width:100% !important; min-width:0 !important; padding:0 !important;
}
.cform .hs-form .hs-form-field{ float:none !important; width:100% !important; min-width:0 !important; margin:0 0 16px !important; padding:0 !important; }
.cform .hs-form .hs-form-field > label,
.cform .hs-form .hs-form-field label{
  display:block !important; margin:0 0 7px !important; font-size:12.5px !important; line-height:1.35 !important;
  font-weight:500 !important; color:var(--paragraph) !important;
}
.cform .hs-form .hs-form-required{ color:var(--paragraph) !important; font-weight:700 !important; }
.cform .hs-form .hs-input{
  box-sizing:border-box !important; width:100% !important; max-width:none !important; display:block !important;
  padding:13px 14px !important; font-family:var(--font-body,Inter,sans-serif) !important;
  font-size:14px !important; line-height:1.4 !important; color:var(--paper) !important;
  background:var(--ink) !important; border:1px solid var(--field-outline) !important;
  border-radius:var(--r-sm) !important; box-shadow:none !important;
  transition:border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cform .hs-form textarea.hs-input{ min-height:112px; resize:vertical; }
.cform .hs-form select.hs-input{
  appearance:none; -webkit-appearance:none; padding-right:38px; cursor:pointer;
  background-image:linear-gradient(45deg,transparent 50%,var(--fog) 50%),linear-gradient(135deg,var(--fog) 50%,transparent 50%);
  background-position:calc(100% - 20px) calc(50% + 1px),calc(100% - 15px) calc(50% + 1px);
  background-size:5px 5px,5px 5px; background-repeat:no-repeat;
}
.cform .hs-form .hs-input::placeholder{ color:var(--placeholder); opacity:1; }
.cform .hs-form .hs-input:focus,
.cform .hs-form .hs-input:focus-visible{
  outline:2px solid var(--focus-ring); outline-offset:2px;
  border-color:var(--field-outline);
}
.cform .hs-form .hs-input[aria-invalid="true"],
.cf-field input[aria-invalid="true"],
.cf-field select[aria-invalid="true"],
.cf-field textarea[aria-invalid="true"]{
  border-color:var(--error) !important;
  box-shadow:0 0 0 2px var(--error-dim);
}
.allocore-field--invalid{ color:var(--error); }
.allocore-field-error{
  display:block; margin-top:7px; color:var(--error); font-size:12px; line-height:1.45;
}
.cform .hs-form .inputs-list{ list-style:none; margin:0; padding:0; }
.cform .hs-form .hs-form-checkbox-display,
.cform .hs-form .hs-form-booleancheckbox-display{
  display:grid; grid-template-columns:auto 1fr; align-items:start; gap:10px;
  color:var(--fog-dim); font-size:12px; line-height:1.5;
}
.cform .hs-form input[type="checkbox"],
.cform .hs-form input[type="radio"]{
  width:18px; height:18px; margin:1px 0 0; accent-color:var(--action);
}
.cform .hs-form input[type="checkbox"]:focus-visible,
.cform .hs-form input[type="radio"]:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px; }
.cform .hs-form .hs-error-msgs{
  list-style:none; margin:7px 0 0; padding:0; color:var(--error);
  font-size:12px; line-height:1.45;
}
.cform .hs-form .hs-error-msgs label{ color:var(--error); font-size:12px; }
.cform .hs-form .hs-fieldtype-booleancheckbox{ margin-top:4px; }
.cform .hs-form .hs-richtext,
.cform .hs-form .hs-form-required + span{
  color:var(--fog-dim); font-size:12px; line-height:1.5;
}
.cform .hs-form .hs-richtext a{ color:var(--paper); text-underline-offset:3px; }
.cform .hs-form .hs-submit{ margin-top:clamp(18px,2.4vh,24px); }
.cform .hs-form .hs-button{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:48px; padding:13px 22px; border:0; border-radius:999px;
  font:600 14px/1.2 var(--font-body,Inter,sans-serif); color:#fff;
  background:var(--action); cursor:pointer;
  transition:transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
.cform .hs-form .hs-button:hover,
.cform .hs-form .hs-button:focus-visible{
  color:var(--action-hover-text); background:var(--paper); transform:translateY(-2px);
}
.cform .hs-form .hs-button:focus-visible{ outline:2px solid var(--focus-on-action); outline-offset:3px; }
.cform .allocore-hubspot-target,
.cform .allocore-hubspot-form{ width:100%; max-width:100%; }
.cform .allocore-hubspot-loading{ color:var(--fog-dim); font-size:13px; }
.cform .allocore-hubspot-loading[hidden]{ display:none; }

/* HubSpot can render an iframe when the raw embed is configured that way.
   The form's own CSS is applied through the embed config; this keeps the
   outer frame from overflowing the card in either theme. */
.cform iframe{ display:block; width:100%; max-width:100%; border:0; }

/* HubSpot's injected stylesheet can otherwise win the cascade after the
   page theme has loaded. Reassert the two theme-critical values explicitly
   for direct raw HTML renders. */
:root[data-theme="light"] .cform .hs-form .hs-input{ color:#15284e; background:#f4f9fd; }
:root[data-theme="light"] .cform .hs-form .hs-form-field label{ color:#273445; }
:root[data-theme="light"] .cform .hs-form .hs-richtext,
:root[data-theme="light"] .cform .hs-form .hs-form-checkbox-display,
:root[data-theme="light"] .cform .hs-form .hs-form-booleancheckbox-display{ color:#384352; }
:root[data-theme="dark"] .cform .hs-form .hs-input{ color:#f2f3f5; background:#011019; }
:root[data-theme="dark"] .cform .hs-form .hs-form-field label{ color:#d9e1ef; }
:root[data-theme="dark"] .cform .hs-form .hs-richtext,
:root[data-theme="dark"] .cform .hs-form .hs-form-checkbox-display,
:root[data-theme="dark"] .cform .hs-form .hs-form-booleancheckbox-display{ color:#b3c1d8; }

@media (max-width:640px){
  .cform .hs-form fieldset.form-columns-2,
  .cform .hs-form .allocore-name-row{ grid-template-columns:1fr !important; }
}

.cf-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.cf-field{ margin-bottom:16px; }
.cf-field label{
  display:block; margin-bottom:7px;
  font-size:12.5px; font-weight:500; color:var(--paragraph);
}
/* Not flame: at 12.5px, #ff4117 measures 3.49:1 on the light card and fails
   1.4.3. The asterisk is a marker, not an alert — the "* Required" legend and
   the required attribute carry the meaning, so weight does the emphasis. */
.cf-field label .req,
.cf-req .req{ color:var(--paragraph); font-weight:700; }

.cf-field input,
.cf-field select,
.cf-field textarea{
  width:100%; display:block;
  padding:13px 14px;
  font-family:inherit; font-size:14px; line-height:1.4;
  color:var(--paper);
  background:var(--ink);
  /* --flow-edge, not --line-2: an input's boundary is a UI component
     boundary and needs 3:1 (1.4.11). The hairline measures ~1.45:1. */
  border:1px solid var(--field-outline); border-radius:var(--r-sm);
  transition:border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.cf-field textarea{ min-height:112px; resize:vertical; }
.cf-field select{
  appearance:none; -webkit-appearance:none;
  padding-right:38px; cursor:pointer;
  /* caret drawn with gradients so it needs no asset and follows the theme */
  background-image:
    linear-gradient(45deg,transparent 50%,var(--fog) 50%),
    linear-gradient(135deg,var(--fog) 50%,transparent 50%);
  background-position:calc(100% - 20px) calc(50% + 1px), calc(100% - 15px) calc(50% + 1px);
  background-size:5px 5px, 5px 5px;
  background-repeat:no-repeat;
}
.cf-field input::placeholder,
.cf-field textarea::placeholder{ color:var(--fog-dim); }
.cf-field input:focus-visible,
.cf-field select:focus-visible,
.cf-field textarea:focus-visible{
  outline:2px solid var(--focus-ring); outline-offset:2px;
  border-color:var(--field-outline);
}

.cf-note{
  font-size:11.5px; line-height:1.5; color:var(--fog-dim);
  margin-block:6px clamp(18px,2.4vh,24px);
}
.cf-consent{ display:grid; grid-template-columns:auto 1fr; align-items:start; gap:10px; color:var(--fog-dim); font-size:12px; line-height:1.5; }
.cf-consent input{ width:18px; height:18px; margin:1px 0 0; accent-color:var(--action); }
.cf-consent a{ color:var(--paper); text-underline-offset:3px; }
.cf-consent input:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px; }

.allocore-soc2-row{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.allocore-soc2-consent{ display:flex; align-items:flex-start; gap:.65rem; margin-block:1rem; }
.allocore-soc2-consent input{ width:18px; height:18px; margin-top:.15rem; accent-color:var(--action); flex:0 0 auto; }
.allocore-soc2-consent input:focus-visible{ outline:2px solid var(--focus-ring); outline-offset:3px; }
.allocore-honeypot{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
@media (max-width:600px){ .allocore-soc2-row{ grid-template-columns:1fr; } }

/* ── adoption options ────────────────────────────────────── */
.aopts{ list-style:none; display:flex; flex-direction:column; gap:16px; }
.aopt{
  padding:22px 24px;
  border:1px solid var(--line-2); border-radius:var(--r-lg);
  background:linear-gradient(150deg,var(--surface),var(--surface-2));
  transition:transform .5s var(--ease), border-color .5s var(--ease);
}
.aopt:hover{ transform:translateY(-3px); border-color:var(--flame); }
.aopt h3{
  font-family:var(--font-display); font-weight:700;
  font-size:clamp(16px,1.4vw,20px); letter-spacing:-.025em;
  color:var(--paper); margin-bottom:7px;
}
.aopt p{ font-size:14px; line-height:1.55; color:var(--paragraph); }
.aopt .aopt-terms{
  margin-top:16px; padding-top:14px;
  border-top:1px solid var(--line-2);
  font-family:'JetBrains Mono',monospace;
  font-size:10.5px; letter-spacing:.1em; text-transform:uppercase;
  color:var(--eyebrow);
}
.aopt-foot{
  margin-top:16px;
  font-size:11.5px; color:var(--fog-dim);
}
