/* Centric Forms › forms made in the builder (the affiliate form is one). Scoped to .caf so it never touches the theme. */
.caf {
  --caf-bg: #1f1f1f; --caf-fg: #fff; --caf-muted: rgba(255,255,255,.6); --caf-line: #ccc; --caf-divider: rgba(255,255,255,.22);
  --caf-line-hover: #fff; --caf-field: transparent; --caf-arrow: #4b5563; --caf-accent: #ffcc30;
  --caf-err: #ff8a80; --caf-btn-bg: #f5f7fa; --caf-btn-fg: #000;
  --caf-display: 'Integral CF', 'IntegralCF', var(--font-heading-family, Impact), sans-serif;
  --caf-body: 'Oakes-Grotesk', 'Oakes Grotesk', var(--font-body-family, system-ui), sans-serif;
  background: var(--caf-bg); color: var(--caf-fg); font-family: var(--caf-body);
  -webkit-font-smoothing: antialiased; text-align: left;
}
.caf--light {
  --caf-bg: #fff; --caf-fg: #1e1e1e; --caf-muted: #5f5f5c; --caf-line: #cfcfcb; --caf-line-hover: #8a8a86; --caf-divider: #e3e3e0; --caf-arrow: #8a8a86;
  --caf-field: #fff; --caf-err: #c0392b; --caf-btn-bg: #1e1e1e; --caf-btn-fg: #fff;
}
.caf *, .caf *::before, .caf *::after { box-sizing: border-box; }
.caf__in { max-width: 688px; margin: 0 auto; padding: 0 20px; }
.caf-form, .caf-done { display: flex; flex-direction: column; gap: 40px; }
.caf-title { margin: 0 0 8px; font-family: var(--caf-display); font-weight: 700; font-size: 28px; line-height: 1.2; letter-spacing: -.3px; color: var(--caf-fg); text-transform: uppercase; text-align: center; }
.caf-group { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.caf-hr { margin: 12px 0; height: 0; border: 0; border-top: 1px solid var(--caf-divider); }
.caf-legend { padding: 0; margin: 0 0 24px; font-size: 16px; font-weight: 400; letter-spacing: 1.12px; text-transform: uppercase; color: var(--caf-fg); }
.caf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; }
.caf-field { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.caf-field--wide { grid-column: 1 / -1; }
.caf-field[hidden] { display: none; }
.caf-label { font-size: 15px; font-weight: 500; letter-spacing: .6px; color: var(--caf-fg); }
.caf-label::after { content: '*'; margin-left: 1px; font-size: .75em; vertical-align: top; }
.caf-label--opt::after { content: none; }
.caf-opt { margin-left: 6px; font-weight: 400; text-transform: none; letter-spacing: .4px; color: var(--caf-muted); }
.caf-input {
  width: 100%; min-height: 47px; margin: 0; padding: 12px 11px; border: 1px solid var(--caf-line); border-radius: 0;
  background: var(--caf-field); color: var(--caf-fg); font: inherit; font-size: 13px; letter-spacing: .84px;
  transition: border-color .15s ease, box-shadow .15s ease; -webkit-appearance: none; appearance: none;
}
.caf-input::placeholder { color: var(--caf-muted); opacity: 1; }
.caf-input:hover { border-color: var(--caf-line-hover); }
.caf-input:focus { outline: none; border-color: var(--caf-fg); box-shadow: 0 0 0 1px var(--caf-fg); }
.caf-textarea { min-height: 204px; resize: vertical; line-height: 1.5; }
.caf-select { position: relative; }
.caf-select select { padding-right: 40px; cursor: pointer; }
.caf-select select:invalid { color: var(--caf-muted); }
.caf-select option { color: #1e1e1e; background: #fff; }
.caf-select svg { position: absolute; right: 12px; top: 50%; width: 9px; height: 6px; margin-top: -1px; pointer-events: none; fill: var(--caf-arrow); }
.caf-field.is-invalid .caf-input { border-color: var(--caf-err); }
.caf-err { margin: 0; min-height: 0; font-size: 13px; line-height: 1.35; color: var(--caf-err); }
.caf-err:empty { display: none; }
.caf-hint { margin: 0; font-size: 13px; color: var(--caf-muted); }

.caf-check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; margin-top: -4px; line-height: 1.45; color: var(--caf-fg); }
.caf-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.caf-box { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--caf-line-hover); display: grid; place-items: center; transition: background .15s, border-color .15s; }
.caf-box svg { width: 14px; height: 14px; fill: none; stroke: var(--caf-btn-fg); stroke-width: 3; opacity: 0; }
.caf-check input:checked + .caf-box { background: var(--caf-btn-bg); border-color: var(--caf-btn-bg); }
.caf-check input:checked + .caf-box svg { opacity: 1; }
.caf-check input:focus-visible + .caf-box { box-shadow: 0 0 0 2px var(--caf-bg), 0 0 0 4px var(--caf-fg); }

.caf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.caf-submit {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 50px;
  border: 0; border-radius: 0; background: var(--caf-btn-bg); color: var(--caf-btn-fg); cursor: pointer; min-height: 52px; margin-top: -2px;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: 1.05px; text-transform: uppercase; transition: opacity .15s, transform .15s;
}
.caf-submit:hover { opacity: .9; }
.caf-submit:active { transform: translateY(1px); }
.caf-submit:focus-visible { outline: 2px solid var(--caf-fg); outline-offset: 3px; }
.caf-submit:disabled { cursor: progress; opacity: .75; }
.caf-spin { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: caf-spin .7s linear infinite; }
.caf-submit.is-busy .caf-spin { display: inline-block; }
@keyframes caf-spin { to { transform: rotate(360deg); } }
.caf-alert { margin: -16px 0 0; padding: 12px 14px; border: 1px solid var(--caf-err); color: var(--caf-err); font-size: 14px; line-height: 1.45; }
.caf-alert[hidden] { display: none; }
.caf-note { margin: -16px -40px 0; font-size: 16px; line-height: 1.6; color: var(--caf-fg); text-align: center; }
@media (max-width: 700px) { .caf-note { margin-left: 0; margin-right: 0; } }

.caf-done { align-items: center; text-align: center; padding: 24px 0; outline: none; }
.caf-done[hidden], .caf-form[hidden] { display: none; }
.caf-done__check { width: 64px; height: 64px; border-radius: 50%; background: var(--caf-accent); display: grid; place-items: center; }
.caf-done__check svg { width: 30px; height: 30px; fill: none; stroke: #000; stroke-width: 2.6; }
.caf-done__text { margin: -16px 0 0; max-width: 440px; font-size: 15px; line-height: 1.6; color: var(--caf-muted); }

@media (max-width: 640px) {
  .caf-grid { grid-template-columns: 1fr; gap: 18px; }
  .caf-title { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) { .caf-input, .caf-submit, .caf-box { transition: none; } .caf-spin { animation-duration: 2s; } }

/* Builder blocks the hand-built affiliate form didn't have */
.caf-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--caf-fg); opacity: .85; }
.caf-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.caf-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.caf-choice { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 47px; padding: 0 16px; border: 1px solid var(--caf-line); cursor: pointer; font-size: 14px; letter-spacing: .4px; color: var(--caf-fg); transition: border-color .15s; }
.caf-choice:hover { border-color: var(--caf-line-hover); }
.caf-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.caf-choice__mark { flex: none; width: 16px; height: 16px; border: 1.5px solid var(--caf-line-hover); }
.caf-choice input[type="radio"] + .caf-choice__mark { border-radius: 50%; }
.caf-choice:has(input:checked) { border-color: var(--caf-fg); box-shadow: inset 0 0 0 1px var(--caf-fg); }
.caf-choice input:checked + .caf-choice__mark { background: var(--caf-fg); box-shadow: inset 0 0 0 3px var(--caf-bg); }
.caf-choice input:focus-visible + .caf-choice__mark { outline: 2px solid var(--caf-fg); outline-offset: 2px; }
.caf-field.is-invalid .caf-choice { border-color: var(--caf-err); }
.caf-field--check { gap: 6px; margin-top: -4px; }
.caf-field--check .caf-check { margin-top: 0; }
.caf-loading { min-height: 640px; }
.caf-loading::before { content: ''; display: block; width: 28px; height: 28px; margin: 200px auto 0; border: 2px solid var(--caf-fg); border-right-color: transparent; border-radius: 50%; opacity: .5; animation: caf-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .caf-choice { transition: none; } .caf-loading::before { animation-duration: 2s; } }

/* Inside the theme: run edge to edge like the old Hulk section (removes the theme's side padding around app blocks). */
.page-width-desktop:has(> .shopify-app-block > .caf) { padding-left: 0 !important; padding-right: 0 !important; max-width: none !important; }

/* Reputation: the dark section uses the store's own brown-black and runs edge to edge like its other sections. */
.caf--reputation { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.caf--reputation:not(.caf--light) {
  --caf-bg: #1a0c0b; --caf-line: rgba(255,255,255,.7); --caf-line-hover: #fff; --caf-divider: rgba(255,255,255,.2);
  --caf-btn-bg: #fff; --caf-btn-fg: #1a0c0b; --caf-accent: #fff; --caf-muted: rgba(255,255,255,.55);
}
/* Reputation: the store's own fonts (set in its theme settings), like the Hulk form had. */
.caf--reputation {
  --caf-display: var(--font-heading-family, inherit);
  --caf-body: var(--font-body-family, inherit);
}
.caf--reputation .caf-title { font-weight: var(--font-heading-weight, 700); font-style: var(--font-heading-style, normal); letter-spacing: 0; }
