/* ==========================================================================================
   Goodguys HR — public form styles.
   Built on the goodguys-group theme tokens (--accent, --border, --text-1, --r …); the fallbacks only
   matter if the theme stylesheet is missing. Buttons reuse the theme's .ggc-btn.
   Class prefix: ggc-hr-. Modules add their own rules in their own file with a ggc-hr-<module>- prefix.
   ========================================================================================== */

.ggc-hr-form { display:grid; gap:24px; max-width:640px; }
.ggc-hr-form > input[type="hidden"] { display:none; }

/* honeypot: off-screen for people, present for bots */
.ggc-hr-hp { position:absolute !important; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }

/* ── field ── */
.ggc-hr-field { min-width:0; margin:0; padding:0; border:0; }
.ggc-hr-field[hidden], .ggc-hr-other[hidden] { display:none; }
.ggc-hr-label { display:block; margin:0 0 6px; padding:0; font-size:16px; font-weight:700; line-height:1.5; color:var(--text-1, #111620); }
.ggc-hr-req, .ggc-hr-opt { margin-left:6px; font-size:13px; font-weight:500; }
.ggc-hr-req { color:#B42318; }
.ggc-hr-opt { color:var(--text-3, #596171); }
.ggc-hr-help { margin:-2px 0 8px; font-size:14px; line-height:1.6; color:var(--text-3, #596171); }

.ggc-hr-input { display:block; width:100%; min-height:48px; padding:10px 14px; border:1.5px solid #8A93A1; border-radius:var(--r, 6px); background:#fff; color:var(--text-1, #111620); font:inherit; font-size:16px; line-height:1.5; transition:border-color var(--dur, 160ms), box-shadow var(--dur, 160ms); }
.ggc-hr-input::placeholder { color:#7A8391; }
.ggc-hr-input:hover { border-color:var(--accent, #0077B6); }
.ggc-hr-input:focus { outline:none; border-color:var(--accent, #0077B6); box-shadow:0 0 0 3px var(--accent-border, #BDE3F5); }
textarea.ggc-hr-input { min-height:120px; resize:vertical; }
select.ggc-hr-input { appearance:none; padding-right:40px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%233B4351' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 14px center; }
.ggc-hr-field--number .ggc-hr-input, .ggc-hr-field--date .ggc-hr-input, .ggc-hr-field--tel .ggc-hr-input { max-width:280px; }
.ggc-hr-input--file { min-height:0; padding:10px; border-style:dashed; background:var(--accent-softer, #F0F8FD); }
.ggc-hr-input--file::file-selector-button { margin-right:12px; padding:8px 14px; border:1.5px solid var(--accent, #0077B6); border-radius:var(--r, 6px); background:#fff; color:var(--accent-text, #00699F); font:inherit; font-weight:700; cursor:pointer; }

/* ── choices ── */
.ggc-hr-choices { display:grid; gap:8px; }
.ggc-hr-choice { display:flex; align-items:flex-start; gap:10px; padding:11px 14px; border:1.5px solid var(--border, #DFE3E8); border-radius:var(--r, 6px); background:#fff; line-height:1.5; cursor:pointer; transition:border-color var(--dur, 160ms), background-color var(--dur, 160ms); }
.ggc-hr-choice:hover { border-color:var(--accent, #0077B6); }
.ggc-hr-choice:has(input:checked) { border-color:var(--accent, #0077B6); background:var(--accent-softer, #F0F8FD); }
.ggc-hr-choice:has(input:focus-visible) { box-shadow:0 0 0 3px var(--accent-border, #BDE3F5); }
.ggc-hr-choice input { flex:none; width:20px; height:20px; margin:2px 0 0; accent-color:var(--accent, #0077B6); }
.ggc-hr-choice input:focus-visible { outline:none; }
.ggc-hr-choice--single { border:0; padding:0; background:none; }
.ggc-hr-choice--single:has(input:checked) { background:none; }
.ggc-hr-other { margin-top:8px; }
.js .ggc-hr-other[data-collapsed] { display:none; }
@media (min-width:560px) {
	.ggc-hr-likert .ggc-hr-choices { grid-template-columns:repeat(5, minmax(0, 1fr)); }
	.ggc-hr-likert .ggc-hr-choice { flex-direction:column; align-items:center; text-align:center; padding:10px 6px; font-size:14px; }
}

/* ── errors ── */
.ggc-hr-field.is-invalid .ggc-hr-input, .ggc-hr-field.is-invalid .ggc-hr-choice { border-color:#B42318; }
.ggc-hr-error { margin:8px 0 0; font-size:14px; font-weight:700; line-height:1.5; color:#B42318; }
.ggc-hr-summary { padding:16px 20px; border:1.5px solid #B42318; border-left-width:5px; border-radius:var(--r, 6px); background:#FEF3F2; color:var(--text-1, #111620); }
.ggc-hr-summary { scroll-margin-top:calc(var(--header-h, 68px) + 16px); }
.ggc-hr-summary:focus { outline:3px solid #B42318; outline-offset:2px; }
.ggc-hr-summary-title { margin:0; font-weight:700; }
.ggc-hr-summary ul { margin:8px 0 0; padding-left:1.3em; }
.ggc-hr-summary a { color:#912018; }

/* ── headings, static blocks, actions ── */
.ggc-hr-heading { margin:16px 0 0; padding-top:24px; border-top:1px solid var(--border, #DFE3E8); font-size:20px; letter-spacing:.04em; }
.ggc-hr-form > .ggc-hr-heading:first-of-type { margin-top:0; padding-top:0; border-top:0; }
.ggc-hr-heading-help { margin:-16px 0 0; color:var(--text-3, #596171); }
.ggc-hr-html > :last-child { margin-bottom:0; }
.ggc-hr-actions { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:8px; }
.ggc-hr-submit { cursor:pointer; font:inherit; font-weight:700; }
.ggc-hr-submit[disabled] { opacity:.6; cursor:progress; }

/* ── notices, facts ── */
.ggc-hr-notice { margin:0 0 24px; padding:14px 18px; border:1.5px solid var(--accent-border, #BDE3F5); border-left-width:5px; border-radius:var(--r, 6px); background:var(--accent-softer, #F0F8FD); color:var(--text-1, #111620); }
.ggc-hr-notice p { margin:0; }
.ggc-hr-notice--success { border-color:var(--green-border, #C3E6C5); border-left-color:var(--gg-green, #43B149); background:var(--green-soft, #ECF7ED); }
.ggc-hr-notice--warning { border-color:#F5D58A; border-left-color:#B7791F; background:#FFF9E8; }
.ggc-hr-notice--error { border-color:#F3B8B2; border-left-color:#B42318; background:#FEF3F2; }
.ggc-hr-facts { margin:0; border-top:1px solid var(--border, #DFE3E8); }
.ggc-hr-facts > div { display:grid; grid-template-columns:8em 1fr; gap:12px; padding:10px 0; border-bottom:1px solid var(--border-soft, #ECEFF2); }
.ggc-hr-facts dt { color:var(--text-3, #596171); font-size:14px; }
.ggc-hr-facts dd { margin:0; }
.ggc-hr-muted { color:var(--text-3, #596171); }
.ggc-hr-sr { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ── bare shell (interviewee form: logo only) ── */
.ggc-hr-bare { background:var(--accent-softer, #F0F8FD); }
.ggc-hr-bare-header { position:static; }
.ggc-hr-bare .ggc-hr-main > .ggc-section { padding-block:clamp(20px, 4vw, 40px); }
.ggc-hr-bare .ggc-hr-main > .ggc-section > .ggc-wrap { max-width:720px; padding:clamp(20px, 4vw, 36px); border:1px solid var(--border, #DFE3E8); border-radius:var(--r, 6px); background:#fff; }
.ggc-hr-bare-title { margin:0 0 16px; font-size:clamp(22px, 3vw, 28px); letter-spacing:.04em; }
.ggc-hr-bare-footer { padding:20px 0 32px; font-size:13px; color:var(--text-3, #596171); text-align:center; }
.ggc-hr-bare-footer p { margin:0; }

@media (max-width:479.98px) {
	.ggc-hr-actions .ggc-btn { flex:1 1 auto; }
	.ggc-hr-facts > div { grid-template-columns:1fr; gap:2px; }
}
@media (prefers-reduced-motion:reduce) {
	.ggc-hr-input, .ggc-hr-choice { transition:none; }
}
