/* Application forms (Careers page + the template editor's preview). Colors come from the template's theme. */
.hf {
  --hf-color: #102232; --hf-accent: #E2AB29;
  --hf-bg: color-mix(in srgb, var(--hf-color) 7%, #F5F6F8);
  --hf-card: #FFFFFF; --hf-ink: #102232; --hf-muted: #5E6B78; --hf-line: #DCE1E7;
  --hf-font: "Figtree", "Segoe UI", system-ui, sans-serif;
  font-family: var(--hf-font); color: var(--hf-ink); background: var(--hf-bg);
  border-radius: 12px; overflow: hidden; padding-bottom: 28px;
}
.hf[data-bg="white"] { --hf-bg: #FFFFFF; --hf-line: #E3E7EC; }
.hf[data-bg="white"] .hf-card { border: 1px solid var(--hf-line); box-shadow: none; }
.hf[data-bg="dark"] { --hf-bg: #0E1A26; --hf-card: #162636; --hf-ink: #EEF2F6; --hf-muted: #A8B4C0; --hf-line: #2B3E51; }
.hf[data-font="serif"] { --hf-font: "Source Serif 4", Georgia, "Times New Roman", serif; }
.hf[data-font="rounded"] { --hf-font: "Nunito", "Figtree", system-ui, sans-serif; }
.hf[data-font="mono"] { --hf-font: "JetBrains Mono", ui-monospace, Consolas, monospace; }
.hf * { box-sizing: border-box; }
.hf [hidden] { display: none !important; }

.hf-banner { height: 132px; background: var(--hf-color); background-size: cover; background-position: center; }
.hf-banner.gradient { background: linear-gradient(120deg, var(--hf-color), var(--hf-accent)); }
.hf-banner.none { height: 10px; }
.hf-banner.crest { display: flex; align-items: center; gap: 14px; padding: 0 28px; color: #fff;
  background: linear-gradient(120deg, var(--hf-color), color-mix(in srgb, var(--hf-color) 70%, #000)); }
.hf-banner.crest img { width: 72px; height: 72px; }
.hf-banner.crest strong { display: block; font-size: 19px; }
.hf-banner.crest span { color: var(--hf-accent); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

.hf-body { max-width: 720px; margin: -36px auto 0; padding: 0 16px; position: relative; }
.hf-banner.none + .hf-body { margin-top: 18px; }
.hf-card { background: var(--hf-card); border-radius: 10px; padding: 20px 24px; margin-top: 12px; box-shadow: 0 1px 2px rgba(16, 34, 50, .08), 0 2px 8px rgba(16, 34, 50, .05); }
.hf-title { border-top: 8px solid var(--hf-color); margin-top: 0; }
.hf-title h1 { font-size: 28px; line-height: 1.2; margin: 0; }
.hf-sub { color: var(--hf-muted); font-weight: 600; margin: 6px 0 0; }
.hf-desc { white-space: pre-line; margin: 12px 0 0; line-height: 1.55; }
.hf-required-note { color: #C0392B; font-size: 13px; margin: 14px 0 0; }
.hf-preview-note { margin: 12px 0 0; padding: 8px 10px; border-radius: 6px; font-size: 13px; background: color-mix(in srgb, var(--hf-accent) 18%, transparent); }
.hf-section { border-left: 6px solid var(--hf-accent); }
.hf-section h2 { margin: 4px 0 0; font-size: 20px; }
.hf-section p, .hf-header p { white-space: pre-line; color: var(--hf-muted); margin: 8px 0 0; line-height: 1.5; }
.hf-step { font-size: 12px; font-weight: 700; color: var(--hf-muted); text-transform: uppercase; letter-spacing: .05em; }
.hf-header { background: color-mix(in srgb, var(--hf-color) 8%, var(--hf-card)); }
.hf-header h3 { margin: 0; font-size: 18px; color: var(--hf-ink); }
.hf-empty { color: var(--hf-muted); text-align: center; }

.hf-q { transition: box-shadow .12s; }
.hf-q:focus-within { box-shadow: inset 6px 0 0 var(--hf-accent), 0 1px 2px rgba(16, 34, 50, .08); }
.hf-q.bad { box-shadow: inset 6px 0 0 #C0392B, 0 1px 2px rgba(16, 34, 50, .08); }
.hf-label { display: block; font-size: 16px; font-weight: 600; line-height: 1.4; }
.hf-req { color: #C0392B; margin-left: 4px; }
.hf-help { color: var(--hf-muted); font-size: 13.5px; margin: 4px 0 0; white-space: pre-line; }
.hf-input { width: 100%; margin-top: 12px; font: inherit; font-size: 15px; color: var(--hf-ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--hf-line); padding: 8px 2px; border-radius: 0; }
.hf-input:focus { outline: none; border-bottom: 2px solid var(--hf-color); padding-bottom: 7px; }
.hf[data-bg="dark"] .hf-input:focus { border-bottom-color: var(--hf-accent); }
.hf-input.short { max-width: 280px; }
select.hf-input { border: 1px solid var(--hf-line); border-radius: 6px; padding: 8px 10px; background: var(--hf-card); }
.hf-area { min-height: 96px; resize: vertical; line-height: 1.5; }
.hf-count { display: block; text-align: right; font-size: 12px; color: var(--hf-muted); margin-top: 4px; }
.hf-count.short { color: #B9770E; }
.hf-choices { display: grid; gap: 4px; margin-top: 10px; }
.hf-choice { display: flex; align-items: center; gap: 10px; padding: 7px 4px; cursor: pointer; border-radius: 6px; }
.hf-choice:hover { background: color-mix(in srgb, var(--hf-color) 5%, transparent); }
.hf-choice input[type=radio], .hf-choice input[type=checkbox], .hf-scale input { width: 18px; height: 18px; accent-color: var(--hf-color); flex: none; margin: 0; }
.hf[data-bg="dark"] .hf-choice input, .hf[data-bg="dark"] .hf-scale input { accent-color: var(--hf-accent); }
.hf-choice.other .hf-other { margin-top: 0; flex: 1; padding: 4px 2px; }
.hf-scale { display: flex; align-items: flex-end; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.hf-scale-pt { display: grid; justify-items: center; gap: 6px; min-width: 34px; cursor: pointer; font-size: 13px; color: var(--hf-muted); }
.hf-scale-end { font-size: 13px; color: var(--hf-muted); padding-bottom: 2px; max-width: 120px; }
.hf-err { color: #C0392B; font-size: 13px; margin: 8px 0 0; min-height: 0; }
.hf-err:empty { display: none; }

.hf-nav { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.hf-progress { flex: 1; height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--hf-color) 15%, transparent); overflow: hidden; }
.hf-progress span { display: block; height: 100%; background: var(--hf-color); transition: width .2s; }
.hf[data-bg="dark"] .hf-progress span { background: var(--hf-accent); }
.hf-pagecount { font-size: 13px; color: var(--hf-muted); white-space: nowrap; }
.hf-nav [data-next] { margin-left: auto; }
.hf-btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 22px; border-radius: 6px; border: 0; cursor: pointer;
  font: 700 14.5px/1 var(--hf-font); color: #fff; background: var(--hf-color); box-shadow: inset 0 -3px 0 var(--hf-accent); text-decoration: none; }
.hf-btn:hover { filter: brightness(1.12); }
.hf-btn:disabled { opacity: .6; cursor: default; }
.hf-btn.ghost { background: transparent; color: var(--hf-color); box-shadow: inset 0 0 0 1px var(--hf-line); }
.hf[data-bg="dark"] .hf-btn.ghost { color: var(--hf-ink); }
.hf-form-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 6px; background: #FBEAEA; color: #941314; font-size: 14px; }
.hf-form-err.ok { background: #E8F5EC; color: #1E6B3A; }
.hf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.hf-done { text-align: center; padding: 36px 24px; }
.hf-done .hf-btn { margin-top: 18px; }
.hf-check { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; color: #fff; background: #1E8449; }
.hf-who { display: flex; align-items: center; gap: 12px; }
.hf-who img { width: 44px; height: 44px; border-radius: 50%; background: #E6EAEE; }
@media (max-width: 600px) {
  .hf-card { padding: 16px; }
  .hf-title h1 { font-size: 23px; }
  .hf-banner { height: 96px; }
  .hf-banner.crest img { width: 52px; height: 52px; }
}
