/* HReasy forms: contact + workforce demand (uses theme --hr-* tokens). */
.hrf[hidden], .hrf-done[hidden], .hrf-alert[hidden] { display: none !important; }
.hrf-wrap { --f-line: var(--hr-line, #E6DECF); --f-ink: var(--hr-ink, #1B2638); --f-muted: var(--hr-muted, #736D63); --f-blue: var(--hr-blue, #003893); --f-crimson: var(--hr-crimson, #C8102E); }
.hrf { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); background: var(--hr-card, #FFFEFB); border: 1px solid var(--f-line); border-radius: var(--hr-r-lg, 8px); }
.hrf fieldset { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 18px; }
.hrf legend { margin-bottom: 4px; padding: 0; font-size: 1.25rem; font-weight: 600; color: var(--hr-navy, #0A1F44); outline: 0; }
.hrf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
@media (max-width: 640px) { .hrf-grid { grid-template-columns: minmax(0, 1fr); } }
.hrf-field { display: grid; gap: 6px; min-width: 0; }
.hrf-field label, .hrf-phone > label { font-weight: 500; font-size: .92rem; color: var(--f-ink); }
.hrf-req { color: var(--f-crimson); }
.hrf-opt { color: var(--f-muted); font-weight: 400; font-size: .85rem; }
.hrf input[type="text"], .hrf input[type="email"], .hrf input[type="tel"], .hrf input[type="number"], .hrf input[type="date"], .hrf select, .hrf textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--f-line); border-radius: 6px; background: #fff; color: var(--f-ink); font: 400 1rem/1.4 var(--hr-sans, sans-serif);
  transition: border-color .2s, box-shadow .2s;
}
.hrf textarea { min-height: 130px; resize: vertical; }
.hrf input:focus, .hrf select:focus, .hrf textarea:focus { outline: 0; border-color: var(--f-blue); box-shadow: 0 0 0 4px var(--hr-blue-50, #EDF1F6); }
.hrf .is-invalid { border-color: var(--f-crimson) !important; box-shadow: 0 0 0 3px var(--hr-crimson-50, #FCEEF0) !important; }
.hrf input[type="file"] { padding: 10px; border: 1px dashed var(--f-line); border-radius: 6px; background: #fff; font-size: .92rem; max-width: 100%; }
.hrf-help { margin: 0; font-size: .85rem; color: var(--f-muted); }
.hrf-err { margin: 0; min-height: 0; font-size: .85rem; font-weight: 500; color: var(--f-crimson); }
.hrf-err:empty { display: none; }
.hrf-phone { display: grid; gap: 6px; }
.hrf-phone__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 10px; }
@media (max-width: 480px) { .hrf-phone__row { grid-template-columns: minmax(0, 1fr); } }
.hrf-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--f-ink); }
.hrf-consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--f-crimson); }
.hrf-note { margin: 0; font-size: .85rem; color: var(--f-muted); }
.hrf-alert { margin: 0; padding: 12px 14px; border-radius: 6px; background: var(--hr-crimson-50, #FCEEF0); color: var(--hr-crimson-700, #8F0B20); font-weight: 500; }
.hrf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hrf-submit[disabled] { opacity: .65; pointer-events: none; }

/* Steps */
.hrf-stepper { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.hrf-stepper li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--f-line); border-radius: 6px; font-weight: 500; font-size: .9rem; color: var(--f-muted); background: #fff; }
.hrf-stepper li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--hr-paper-2, #F4EEE3); font-size: .8rem; font-weight: 600; }
.hrf-stepper li.is-active { border-color: var(--hr-navy, #0A1F44); color: var(--hr-navy, #0A1F44); }
.hrf-stepper li.is-active span { background: var(--hr-navy, #0A1F44); color: #fff; }
.hrf-stepper li.is-done span { background: #15803D; color: #fff; }
@media (max-width: 480px) { .hrf-stepper li { font-size: 0; justify-content: center; } .hrf-stepper li span { font-size: .8rem; } }
/* Without JS every step shows; with JS one at a time */
.hrf.is-enhanced .hrf-step:not(.is-active) { display: none; }
.hrf:not(.is-enhanced) .hrf-stepper, .hrf:not(.is-enhanced) .hrf-next, .hrf:not(.is-enhanced) .hrf-back { display: none; }
.hrf-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 6px; border-top: 1px solid var(--f-line); }
.hrf-nav .hr-btn { min-width: 140px; }

.hrf-shortlist { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 6px; background: var(--hr-blue-50, #EDF1F6); font-size: .92rem; }

/* Requirement lines */
.hrf-lines { display: grid; gap: 14px; }
.hrf-line { padding: 16px; border: 1px solid var(--f-line); border-radius: 8px; background: #fff; }
.hrf-line__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.hrf-remove { padding: 4px 8px !important; border: 0 !important; background: none !important; color: var(--f-crimson); font-size: .88rem; text-decoration: underline; cursor: pointer; }
.hrf-grid--line { grid-template-columns: 1.5fr .8fr 1.2fr 1fr 1fr; }
@media (max-width: 900px) { .hrf-grid--line { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hrf-grid--line { grid-template-columns: minmax(0, 1fr); } }
.hrf-add { justify-self: start; }
.hrf-more { border: 1px solid var(--f-line); border-radius: 8px; padding: 12px 16px; background: #fff; }
.hrf-more summary { cursor: pointer; font-weight: 500; }
.hrf-more[open] summary { margin-bottom: 14px; }
.hrf-more .hrf-grid + .hrf-field { margin-top: 16px; }

/* Review */
.hrf-review .hr-facts > div { grid-template-columns: 170px 1fr; }
.hrf-table { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: .95rem; }
.hrf-table td { padding: 10px 8px; border-top: 1px solid var(--f-line); vertical-align: top; }
@media (max-width: 560px) { .hrf-table td { display: block; border: 0; padding: 2px 0; } .hrf-table tr { display: block; padding: 10px 0; border-top: 1px solid var(--f-line); } }

/* Result */
.hrf-done { padding: clamp(28px, 4vw, 44px); text-align: center; background: var(--hr-card, #FFFEFB); border: 1px solid var(--f-line); border-radius: var(--hr-r-lg, 8px); outline: 0; }
.hrf-done__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #ECF7F0; color: #15803D; font-size: 1.6rem; font-weight: 700; }
.hrf-done h3 { margin: 0 0 8px; }
.hrf-done p { max-width: 520px; margin: 0 auto 14px; color: var(--f-muted); }
.hrf-done__ref strong { color: var(--hr-navy, #0A1F44); font-size: 1.15rem; letter-spacing: .04em; }
