/*
 * HireDesk, applicant-facing styles.
 * Everything is scoped to the plugin's own areas (:is(#chf-application, #chf-care), #chf-competency, the
 * saved screen and notes) so the theme's styles and other forms on the site are unaffected.
 */
:is(#chf-application, #chf-care), #chf-competency { width: 100%; max-width: none; margin-left: auto !important; margin-right: auto !important; float: none; color: #101828; font-size: 16px; line-height: 1.55; text-transform: none; letter-spacing: normal; }
:is(#chf-application, #chf-care) *, #chf-competency * { box-sizing: border-box; }

/* header card with the step tracker */
:is(#chf-application, #chf-care) .chf-head, #chf-competency .chf-head { margin: 0 0 18px; padding: 24px 26px 20px; background: #fff; border: 1px solid #e4e7ec; border-radius: 14px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); position: relative; overflow: hidden; }
:is(#chf-application, #chf-care) .chf-head-title, #chf-competency .chf-head-title { margin: 18px 0 6px; padding: 0; border: 0; font-size: 26px; line-height: 1.25; font-weight: 700; color: #101828; text-transform: none; letter-spacing: -.01em; }
:is(#chf-application, #chf-care) .chf-head-loc, #chf-competency .chf-head-loc { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 3px 10px; border-radius: 999px; background: #e7f6ec; color: #008a3c; font-size: 14px; font-weight: 600; }
:is(#chf-application, #chf-care) .chf-head-intro, #chf-competency .chf-head-intro { margin: 0; color: #667085; font-size: 15px; }

.chf-stepper { display: flex; list-style: none; margin: 0; padding: 0; }
.chf-stepper li { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; margin: 0; padding: 0; text-align: center; min-width: 0; }
.chf-stepper li::before { content: ""; position: absolute; top: 15px; right: 50%; width: 100%; height: 2px; background: #e4e7ec; z-index: 0; }
.chf-stepper li:first-child::before { display: none; }
.chf-stepper li.is-done::before, .chf-stepper li.is-current::before { background: #00a32a; }
.chf-stepper-dot { position: relative; z-index: 1; display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; background: #fff; color: #667085; border: 2px solid #d0d5dd; }
.chf-stepper .is-done .chf-stepper-dot { background: #00a32a; border-color: #00a32a; color: #fff; }
.chf-stepper .is-current .chf-stepper-dot { border-color: #00a32a; color: #008a3c; box-shadow: 0 0 0 5px rgba(0, 163, 42, .14); }
.chf-stepper-label { font-size: 13px; font-weight: 600; color: #667085; line-height: 1.3; }
.chf-stepper .is-current .chf-stepper-label, .chf-stepper .is-done .chf-stepper-label { color: #101828; }
@media (max-width: 480px) { .chf-stepper-label { font-size: 11.5px; } }

/* form card */
:is(#chf-application, #chf-care) .chf-form-card, #chf-competency .chf-form-card { padding: 26px; background: #fff; border: 1px solid #e4e7ec; border-radius: 14px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
@media (max-width: 600px) { :is(#chf-application, #chf-care) .chf-form-card, #chf-competency .chf-form-card, :is(#chf-application, #chf-care) .chf-head, #chf-competency .chf-head { padding: 18px; } }

/* Gravity Forms inside the plugin's pages (also sets the GF theme colours) */
:is(#chf-application, #chf-care) .gform_wrapper, #chf-competency .gform_wrapper {
    --gf-color-primary: #00a32a;
    --gf-color-primary-rgb: 0, 163, 42;
    --gf-color-primary-darker: #008a3c;
    --gf-color-primary-contrast: #fff;
    --gf-ctrl-border-color: #d0d5dd;
    --gf-ctrl-border-color-focus: #00a32a;
    --gf-ctrl-radius: 8px;
    --gf-radius: 8px;
    margin: 0;
}
:is(#chf-application, #chf-care) .gform_wrapper .gfield_label, #chf-competency .gform_wrapper .gfield_label { color: #101828; font-size: 15px; font-weight: 600; text-transform: none; letter-spacing: normal; margin-bottom: 6px; }
:is(#chf-application, #chf-care) .gform_wrapper .gfield_required, #chf-competency .gform_wrapper .gfield_required { color: #d92d20; }
:is(#chf-application, #chf-care) .gform_wrapper input[type=text], :is(#chf-application, #chf-care) .gform_wrapper input[type=email], :is(#chf-application, #chf-care) .gform_wrapper input[type=tel], :is(#chf-application, #chf-care) .gform_wrapper input[type=number], :is(#chf-application, #chf-care) .gform_wrapper input[type=date], :is(#chf-application, #chf-care) .gform_wrapper select, :is(#chf-application, #chf-care) .gform_wrapper textarea,
#chf-competency .gform_wrapper input[type=text], #chf-competency .gform_wrapper input[type=email], #chf-competency .gform_wrapper input[type=tel], #chf-competency .gform_wrapper select, #chf-competency .gform_wrapper textarea {
    min-height: 46px; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px; background-color: #fff; color: #101828; font-size: 16px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); text-transform: none; letter-spacing: normal; transition: border-color .12s, box-shadow .12s;
}
:is(#chf-application, #chf-care) .gform_wrapper input:focus, :is(#chf-application, #chf-care) .gform_wrapper select:focus, :is(#chf-application, #chf-care) .gform_wrapper textarea:focus,
#chf-competency .gform_wrapper input:focus, #chf-competency .gform_wrapper select:focus, #chf-competency .gform_wrapper textarea:focus { border-color: #00a32a; box-shadow: 0 0 0 4px rgba(0, 163, 42, .15); outline: none; }
:is(#chf-application, #chf-care) .gform_wrapper .gfield_description, #chf-competency .gform_wrapper .gfield_description, :is(#chf-application, #chf-care) .gform_wrapper .ginput_complex label, #chf-competency .gform_wrapper .ginput_complex label { color: #667085; font-size: 13px; }
:is(#chf-application, #chf-care) .gform_wrapper .gsection, #chf-competency .gform_wrapper .gsection { border-bottom: 1px solid #e4e7ec; padding-bottom: 8px; margin-top: 18px; }
:is(#chf-application, #chf-care) .gform_wrapper .gsection_title, #chf-competency .gform_wrapper .gsection_title { font-size: 18px; font-weight: 700; color: #101828; text-transform: none; letter-spacing: normal; }

/* radio and checkbox choices as tappable cards */
:is(#chf-application, #chf-care) .gform_wrapper .gfield_radio .gchoice, :is(#chf-application, #chf-care) .gform_wrapper .gfield_checkbox .gchoice,
#chf-competency .gform_wrapper .gfield_radio .gchoice, #chf-competency .gform_wrapper .gfield_checkbox .gchoice { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; padding: 10px 12px; border: 1px solid #e4e7ec; border-radius: 10px; background: #fff; transition: border-color .12s, background .12s; }
:is(#chf-application, #chf-care) .gform_wrapper .gchoice:hover, #chf-competency .gform_wrapper .gchoice:hover { border-color: #abefc6; background: #f6fef9; }
:is(#chf-application, #chf-care) .gform_wrapper .gchoice:has(input:checked), #chf-competency .gform_wrapper .gchoice:has(input:checked) { border-color: #00a32a; background: #ecfdf3; }
:is(#chf-application, #chf-care) .gform_wrapper .gchoice label, #chf-competency .gform_wrapper .gchoice label { margin: 0; color: #344054; font-size: 15px; cursor: pointer; text-transform: none; letter-spacing: normal; flex: 1; }
:is(#chf-application, #chf-care) .gform_wrapper .gchoice input, #chf-competency .gform_wrapper .gchoice input { accent-color: #00a32a; width: 18px; height: 18px; margin: 0; flex: 0 0 18px; }

/* progress bar and page steps */
:is(#chf-application, #chf-care) .gform_wrapper .gf_progressbar_wrapper, #chf-competency .gform_wrapper .gf_progressbar_wrapper { margin: 0 0 22px; }
:is(#chf-application, #chf-care) .gform_wrapper .gf_progressbar_title, #chf-competency .gform_wrapper .gf_progressbar_title { color: #667085; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: normal; margin-bottom: 6px; }
:is(#chf-application, #chf-care) .gform_wrapper .gf_progressbar, #chf-competency .gform_wrapper .gf_progressbar { background: #eaecf0; border-radius: 999px; height: 10px; padding: 0; box-shadow: none; overflow: hidden; }
:is(#chf-application, #chf-care) .gform_wrapper .gf_progressbar_percentage, #chf-competency .gform_wrapper .gf_progressbar_percentage { background: linear-gradient(90deg, #008a3c, #00a32a) !important; border-radius: 999px; height: 10px; }
:is(#chf-application, #chf-care) .gform_wrapper .gf_progressbar_percentage span, #chf-competency .gform_wrapper .gf_progressbar_percentage span { display: none; }
:is(#chf-application, #chf-care) .gform_wrapper .gf_page_steps, #chf-competency .gform_wrapper .gf_page_steps { border-bottom: 1px solid #e4e7ec; margin-bottom: 20px; padding-bottom: 12px; }

/* buttons */
:is(#chf-application, #chf-care) .gform_wrapper .gform_footer, :is(#chf-application, #chf-care) .gform_wrapper .gform_page_footer,
#chf-competency .gform_wrapper .gform_footer, #chf-competency .gform_wrapper .gform_page_footer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid #e4e7ec; }
:is(#chf-application, #chf-care) .gform_wrapper .gform_button, :is(#chf-application, #chf-care) .gform_wrapper .gform_next_button,
#chf-competency .gform_wrapper .gform_button, #chf-competency .gform_wrapper .gform_next_button {
    min-height: 48px; padding: 12px 26px !important; border: 0 !important; border-radius: 10px !important; background: #00a32a !important; color: #fff !important; font-size: 16px !important; font-weight: 700 !important; text-transform: none !important; letter-spacing: normal !important; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .1) !important; transition: background .12s;
}
:is(#chf-application, #chf-care) .gform_wrapper .gform_button:hover, :is(#chf-application, #chf-care) .gform_wrapper .gform_next_button:hover,
#chf-competency .gform_wrapper .gform_button:hover, #chf-competency .gform_wrapper .gform_next_button:hover { background: #008a3c !important; }
:is(#chf-application, #chf-care) .gform_wrapper .gform_previous_button, #chf-competency .gform_wrapper .gform_previous_button {
    min-height: 48px; padding: 12px 22px !important; border: 1px solid #d0d5dd !important; border-radius: 10px !important; background: #fff !important; color: #344054 !important; font-size: 16px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: normal !important; cursor: pointer; box-shadow: none !important;
}
:is(#chf-application, #chf-care) .gform_wrapper .gform_save_link {
    display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; margin-left: auto !important;
    min-height: 48px; padding: 12px 20px !important; border: 1.5px solid #00a32a !important; border-radius: 10px !important;
    background: #fff !important; color: #008a3c !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1.2 !important;
    text-decoration: none !important; text-transform: none !important; letter-spacing: normal !important; box-shadow: none !important; cursor: pointer;
    transition: background .12s, border-color .12s, color .12s;
}
:is(#chf-application, #chf-care) .gform_wrapper .gform_save_link::before {
    content: ""; display: inline-block; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor !important; opacity: 1 !important;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21l-7-5-7 5V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2z'/%3E%3C/svg%3E") center / contain no-repeat;
}
:is(#chf-application, #chf-care) .gform_wrapper .gform_save_link:hover { background: #ecfdf3 !important; border-color: #008a3c !important; color: #006b2f !important; }
:is(#chf-application, #chf-care) .gform_wrapper .gform_save_link:focus-visible { outline: 3px solid rgba(0, 163, 42, .35) !important; outline-offset: 2px; }
:is(#chf-application, #chf-care) .gform_wrapper .gform_save_link svg, :is(#chf-application, #chf-care) .gform_wrapper .gform_save_link img { display: none !important; }
@media (max-width: 600px) {
    :is(#chf-application, #chf-care) .gform_wrapper .gform_page_footer, :is(#chf-application, #chf-care) .gform_wrapper .gform_footer { flex-direction: column; align-items: stretch; }
    :is(#chf-application, #chf-care) .gform_wrapper .gform_page_footer > *, :is(#chf-application, #chf-care) .gform_wrapper .gform_footer > * { width: 100% !important; margin-left: 0 !important; }
    :is(#chf-application, #chf-care) .gform_wrapper .gform_save_link { order: 3; }
}

/* errors */
:is(#chf-application, #chf-care) .gform_wrapper .gform_validation_errors, #chf-competency .gform_wrapper .gform_validation_errors { border-radius: 10px; border: 1px solid #fecdca; background: #fef3f2; box-shadow: none; }
:is(#chf-application, #chf-care) .gform_wrapper .gfield_error input, :is(#chf-application, #chf-care) .gform_wrapper .gfield_error select, :is(#chf-application, #chf-care) .gform_wrapper .gfield_error textarea,
#chf-competency .gform_wrapper .gfield_error input, #chf-competency .gform_wrapper .gfield_error select { border-color: #f97066; }
:is(#chf-application, #chf-care) .gform_wrapper .validation_message, #chf-competency .gform_wrapper .validation_message { color: #b42318; font-size: 13.5px; background: none; border: 0; padding: 4px 0 0; }
:is(#chf-application, #chf-care) .gform_confirmation_message, #chf-competency .gform_confirmation_message { padding: 22px; border-radius: 12px; background: #ecfdf3; border: 1px solid #abefc6; color: #054f31; font-size: 16px; }

/* notes and language choice */
.chf-note.chf-note {
    box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; padding: 14px 16px;
    border: 1px solid #abefc6; border-radius: 12px; background: #f6fef9; color: #054f31; font-size: 15px; line-height: 1.5; text-transform: none; letter-spacing: normal;
}
.chf-note.chf-note .chf-btn, #chf-competency .chf-note a, :is(#chf-application, #chf-care) .chf-note a {
    display: inline-flex; align-items: center; margin-left: auto; padding: 9px 16px; border: 0; border-radius: 9px; background: #00a32a; color: #fff;
    font-size: 14px; font-weight: 700; text-decoration: none; text-transform: none; letter-spacing: normal;
}
.chf-note.chf-note .chf-btn:hover, #chf-competency .chf-note a:hover, :is(#chf-application, #chf-care) .chf-note a:hover { background: #008a3c; color: #fff; }
#chf-competency .chf-langs, :is(#chf-application, #chf-care) .chf-langs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 16px; font-size: 14px; color: #667085; }
#chf-competency .chf-langs a, :is(#chf-application, #chf-care) .chf-langs a, #chf-competency .chf-langs strong, :is(#chf-application, #chf-care) .chf-langs strong { padding: 5px 12px; border-radius: 999px; border: 1px solid #d0d5dd; color: #344054; text-decoration: none; font-weight: 600; }
#chf-competency .chf-langs strong, :is(#chf-application, #chf-care) .chf-langs strong { background: #00a32a; border-color: #00a32a; color: #fff; }

/* saved screen */
.chf-saved-screen.chf-saved-screen {
    box-sizing: border-box; margin: 0 0 18px; padding: 30px 28px; text-align: center; border: 1px solid #e4e7ec; border-radius: 14px; background: #fff;
    color: #101828; font-size: 16px; line-height: 1.6; text-transform: none; letter-spacing: normal; box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}
.chf-saved-screen.chf-saved-screen .chf-saved-icon { display: inline-flex; width: 56px; height: 56px; margin: 0 0 12px; border-radius: 50%; align-items: center; justify-content: center; background: #ecfdf3; color: #00a32a; box-shadow: 0 0 0 8px #f6fef9; }
.chf-saved-screen.chf-saved-screen p { margin: 0 0 12px; color: #475467; }
.chf-saved-screen.chf-saved-screen .chf-saved-title { font-size: 22px; font-weight: 700; color: #101828; }
.chf-saved-screen.chf-saved-screen a:not(.chf-btn) { color: #008a3c; text-decoration: underline; }
.chf-saved-screen.chf-saved-screen .chf-saved-url { width: 100%; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px; font-size: 14px; }
.chf-saved-screen.chf-saved-screen .chf-btn {
    display: inline-block; margin-top: 6px; padding: 12px 26px; border: 0; border-radius: 10px; background: #00a32a; color: #fff;
    font-size: 16px; font-weight: 700; text-decoration: none; text-transform: none; letter-spacing: normal;
}
.chf-saved-screen.chf-saved-screen .chf-btn:hover { background: #008a3c; color: #fff; }

/* location picker on the Apply page */
:is(#chf-application, #chf-care) .chf-pick { display: flex; flex-direction: column; gap: 16px; max-width: 460px; margin: 0 auto 20px; padding: 26px; background: #fff; border: 1px solid #e4e7ec; border-radius: 14px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
:is(#chf-application, #chf-care) .chf-pick-label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; color: #101828; text-transform: none; letter-spacing: normal; }
:is(#chf-application, #chf-care) .chf-pick select { height: 46px; padding: 8px 12px; border: 1px solid #d0d5dd; border-radius: 8px; background: #fff; font-size: 16px; }
:is(#chf-application, #chf-care) .chf-btn, #chf-competency .chf-btn {
    display: inline-flex; align-items: center; justify-content: center; padding: 12px 22px; border: 0; border-radius: 10px; background: #00a32a; color: #fff;
    font-size: 16px; font-weight: 700; text-decoration: none; text-transform: none; letter-spacing: normal; cursor: pointer;
}
:is(#chf-application, #chf-care) .chf-btn:hover, #chf-competency .chf-btn:hover { background: #008a3c; color: #fff; }

.chf-note.chf-note .chf-notyou { margin-left: auto; color: #054f31; font-size: 14px; font-weight: 600; text-decoration: underline; background: none; padding: 0; }
.chf-note.chf-note .chf-notyou:hover { color: #008a3c; background: none; }
:is(#chf-application, #chf-care) .chf-note a.chf-notyou { background: none; color: #054f31; padding: 0; }

.chf-cookie-note { box-sizing: border-box; display: block; margin: 0 0 16px; padding: 12px 14px; border: 1px solid #fedf89; border-radius: 10px; background: #fffaeb; color: #7a2e0e; font-size: 15px; line-height: 1.5; text-align: left; text-transform: none; letter-spacing: normal; }
.chf-cookie-note strong { color: #7a2e0e; }

/* centred header */
:is(#chf-application, #chf-care) .chf-head, #chf-competency .chf-head { text-align: center; }
:is(#chf-application, #chf-care) .chf-head .chf-stepper, #chf-competency .chf-head .chf-stepper { max-width: 720px; margin: 0 auto; }
:is(#chf-application, #chf-care) .chf-head-intro, #chf-competency .chf-head-intro { max-width: 640px; margin-left: auto; margin-right: auto; }
:is(#chf-application, #chf-care) .chf-form-card, #chf-competency .chf-form-card { padding: 32px 36px; }
@media (max-width: 600px) { :is(#chf-application, #chf-care) .chf-form-card, #chf-competency .chf-form-card { padding: 18px; } }

/* save needs the required fields of the page */
:is(#chf-application, #chf-care) .chf-save-warn { margin: 18px 0 0; padding: 12px 14px; border: 1px solid #fecdca; border-radius: 10px; background: #fef3f2; color: #b42318; font-size: 15px; font-weight: 600; }
:is(#chf-application, #chf-care) .gform_wrapper .gfield.chf-missing input:not([type=radio]):not([type=checkbox]), :is(#chf-application, #chf-care) .gform_wrapper .gfield.chf-missing select, :is(#chf-application, #chf-care) .gform_wrapper .gfield.chf-missing textarea { border-color: #f04438 !important; box-shadow: 0 0 0 3px rgba(240, 68, 56, .12) !important; }
:is(#chf-application, #chf-care) .gform_wrapper .gfield.chf-missing .gchoice { border-color: #fda29b; }
:is(#chf-application, #chf-care) .gform_wrapper .gfield.chf-missing .gfield_label { color: #b42318; }

/* save button at the top, next to the page steps */
:is(#chf-application, #chf-care) .gform_wrapper .chf-form-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 0 22px; padding: 0 0 16px; border-bottom: 1px solid #e4e7ec; }
:is(#chf-application, #chf-care) .gform_wrapper .chf-form-top .gf_page_steps, :is(#chf-application, #chf-care) .gform_wrapper .chf-form-top .gf_progressbar_wrapper { flex: 1 1 320px; margin: 0 !important; padding: 0 !important; border: 0 !important; }
:is(#chf-application, #chf-care) .gform_wrapper .chf-form-top .gform_save_link { margin-left: auto !important; flex: 0 0 auto; }
:is(#chf-application, #chf-care) .gform_wrapper .gform_page_footer .gform_save_link, :is(#chf-application, #chf-care) .gform_wrapper .gform_footer .gform_save_link { display: none !important; }
:is(#chf-application, #chf-care) .chf-save-warn { margin: 0 0 18px; }
@media (max-width: 600px) { :is(#chf-application, #chf-care) .gform_wrapper .chf-form-top .gform_save_link { width: 100%; order: -1; margin-left: 0 !important; } }

/* finished: reference numbers only */
.chf-wrap .chf-refs { margin: 18px 0 0; }
.chf-wrap .chf-refs-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chf-wrap .chf-ref { flex: 1 1 220px; max-width: 320px; padding: 14px 18px; border: 1px solid #e4e7ec; border-radius: 12px; background: #f9fafb; text-align: center; }
.chf-wrap .chf-ref-label { display: block; color: #667085; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.chf-wrap .chf-ref-num { display: block; margin-top: 4px; color: #101828; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.chf-wrap .chf-refs-note { margin: 12px auto 0; max-width: 620px; color: #667085; font-size: 14px; text-align: center; }
.chf-wrap .chf-refs-next { margin: 18px 0 0; text-align: center; }
.chf-wrap .chf-form-card > .chf-refs:first-child { margin-top: 0; }

/* moving to the next step in place */
.chf-wrap.chf-loading { opacity: .55; transition: opacity .2s; pointer-events: none; }
.chf-moving { display: flex; justify-content: center; padding: 28px 0; }
.chf-spinner { width: 28px; height: 28px; border: 3px solid #d0d5dd; border-top-color: #008a3c; border-radius: 50%; animation: chf-spin .8s linear infinite; }
@keyframes chf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .chf-spinner { animation-duration: 2.4s; } }

.chf-wrap .chf-ref-copy { display: inline-flex; align-items: center; gap: 6px; margin: 10px auto 0; padding: 6px 12px; border: 1px solid #d0d5dd; border-radius: 999px; background: #fff; color: #344054; font: inherit; font-size: 13px; font-weight: 600; line-height: 1.2; cursor: pointer; box-shadow: none; text-transform: none; }
.chf-wrap .chf-ref-copy:hover { border-color: #008a3c; color: #008a3c; background: #fff; }
.chf-wrap .chf-ref-copy:focus-visible { outline: 3px solid rgba(0, 138, 60, .3); outline-offset: 2px; }
.chf-wrap .chf-ref-copy.is-copied { border-color: #008a3c; background: #e7f6ec; color: #05603a; }

/* choice cards: keep the circle/box in the row whatever the theme does to radios and checkboxes */
:is(#chf-application, #chf-care) .gform_wrapper .gchoice, #chf-competency .gform_wrapper .gchoice { position: relative; flex-wrap: nowrap; }
:is(#chf-application, #chf-care) .gform_wrapper .gchoice input[type=radio], :is(#chf-application, #chf-care) .gform_wrapper .gchoice input[type=checkbox],
#chf-competency .gform_wrapper .gchoice input[type=radio], #chf-competency .gform_wrapper .gchoice input[type=checkbox] {
    position: static !important; inset: auto !important; float: none !important; transform: none !important; opacity: 1 !important; visibility: visible !important;
    flex: 0 0 18px !important; width: 18px !important; height: 18px !important; min-width: 18px; margin: 0 !important; padding: 0 !important; align-self: center; vertical-align: middle; }
:is(#chf-application, #chf-care) .gform_wrapper .gchoice label, #chf-competency .gform_wrapper .gchoice label {
    position: static !important; display: block !important; margin: 0 !important; padding: 0 !important; text-indent: 0 !important; line-height: 1.4; font-weight: 500; }
:is(#chf-application, #chf-care) .gform_wrapper .gchoice label::before, :is(#chf-application, #chf-care) .gform_wrapper .gchoice label::after,
#chf-competency .gform_wrapper .gchoice label::before, #chf-competency .gform_wrapper .gchoice label::after { content: none !important; display: none !important; }

.chf-wrap .chf-note-staff { margin-top: 10px; padding: 10px 14px; border: 1px solid #fedf89; border-radius: 8px; background: #fffaeb; color: #7a2e0e; font-size: 14px; }

/* spinner while a form is loading */
.chf-wrap .chf-form-spin { display: none; }
.chf-wrap .chf-form-loading .chf-form-spin { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 160px; color: #667085; font-size: 15px; }
:is(#chf-application, #chf-care) .gform_wrapper .gchoice input[type=radio], :is(#chf-application, #chf-care) .gform_wrapper .gchoice input[type=checkbox],
#chf-competency .gform_wrapper .gchoice input[type=radio], #chf-competency .gform_wrapper .gchoice input[type=checkbox] { position: relative !important; z-index: 1 !important; width: 22px !important; height: 22px !important; flex-basis: 22px !important; }

/* confirmation after sending: one tidy box, even spacing inside (also when the text has its own boxes, e.g. the quiz score) */
:is(#chf-application, #chf-care) .gform_confirmation_message, #chf-competency .gform_confirmation_message { margin: 0; padding: 24px 26px; text-align: center; line-height: 1.6; }
:is(#chf-application, #chf-care) .gform_confirmation_message + .gform_confirmation_message, #chf-competency .gform_confirmation_message + .gform_confirmation_message,
:is(#chf-application, #chf-care) .gform_confirmation_wrapper + .gform_confirmation_wrapper, #chf-competency .gform_confirmation_wrapper + .gform_confirmation_wrapper { margin-top: 14px; }
:is(#chf-application, #chf-care) .gform_confirmation_message .gform_confirmation_message, #chf-competency .gform_confirmation_message .gform_confirmation_message { margin: 14px 0 0; padding: 0; border: 0; border-radius: 0; background: none; }
:is(#chf-application, #chf-care) .gform_confirmation_message > :first-child, #chf-competency .gform_confirmation_message > :first-child { margin-top: 0; }
:is(#chf-application, #chf-care) .gform_confirmation_message > :last-child, #chf-competency .gform_confirmation_message > :last-child { margin-bottom: 0; }
:is(#chf-application, #chf-care) .gform_confirmation_message :is(h1, h2, h3, h4), #chf-competency .gform_confirmation_message :is(h1, h2, h3, h4) { margin: 0 0 10px; padding: 0; color: #054f31; font-size: 20px; line-height: 1.35; }
:is(#chf-application, #chf-care) .gform_confirmation_message p, #chf-competency .gform_confirmation_message p { margin: 0 0 8px; }
:is(#chf-application, #chf-care) .gform_confirmation_message hr, #chf-competency .gform_confirmation_message hr { margin: 16px auto; border: 0; border-top: 1px solid #abefc6; }
:is(#chf-application, #chf-care) .gform_confirmation_message :is(p, strong, span, div, li), #chf-competency .gform_confirmation_message :is(p, strong, span, div, li) { color: inherit; }

/* sign out on the finished page */
.chf-wrap .chf-signout { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin: 18px auto 0; padding-top: 16px; border-top: 1px solid #eaecf0; max-width: 640px; color: #667085; font-size: 14px; text-align: center; }
.chf-wrap .chf-signout a.chf-signout-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid #d0d5dd; border-radius: 999px; background: #fff !important; color: #344054 !important; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: border-color .15s, color .15s, background .15s; }
.chf-wrap .chf-signout a.chf-signout-btn:hover { border-color: #b42318; color: #b42318 !important; background: #fef3f2 !important; }
.chf-wrap .chf-signout-btn:focus-visible { outline: 3px solid rgba(0, 138, 60, .3); outline-offset: 2px; }

/* Join Us step: sign in for people who already started */
:is(#chf-application, #chf-care) .chf-resume-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 18px; padding: 14px 18px; border: 1px solid #abefc6; border-radius: 14px; background: #f6fef9; color: #054f31; font-size: 15px; }
:is(#chf-application, #chf-care) .chf-resume-icon { display: inline-flex; width: 36px; height: 36px; flex: 0 0 36px; align-items: center; justify-content: center; border-radius: 50%; background: #d1fadf; color: #008a3c; }
:is(#chf-application, #chf-care) .chf-resume-text { flex: 1 1 220px; font-weight: 600; }
:is(#chf-application, #chf-care) a.chf-resume-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #00a32a !important; color: #fff !important; font-size: 14.5px; font-weight: 700; line-height: 1.2; text-decoration: none !important; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); transition: background .15s; }
:is(#chf-application, #chf-care) a.chf-resume-btn:hover { background: #008a3c !important; }
:is(#chf-application, #chf-care) a.chf-resume-btn:focus-visible { outline: 3px solid rgba(0, 163, 42, .35); outline-offset: 2px; }
@media (max-width: 520px) { :is(#chf-application, #chf-care) a.chf-resume-btn { width: 100%; justify-content: center; } }

/* sign documents (DocuSign) */
.chf-wrap .chf-sign { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 560px; margin: 4px auto 22px; text-align: center; }
.chf-wrap .chf-sign-icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 50%; background: #e7f6ec; color: #008a3c; }
.chf-wrap .chf-sign-text { margin: 0; color: #344054; font-size: 16px; line-height: 1.6; }
.chf-wrap a.chf-sign-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; border-radius: 12px; background: #00a32a !important; color: #fff !important; font-size: 17px; font-weight: 700; line-height: 1.2; text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 6px 16px rgba(0, 163, 42, .25); transition: background .15s, transform .1s; }
.chf-wrap a.chf-sign-btn:hover { background: #008a3c !important; }
.chf-wrap a.chf-sign-btn:active { transform: translateY(1px); }
.chf-wrap a.chf-sign-btn:focus-visible { outline: 3px solid rgba(0, 163, 42, .35); outline-offset: 3px; }
.chf-wrap a.chf-sign-btn.is-busy { pointer-events: none; opacity: .85; }
.chf-wrap .chf-sign-note { margin: 0; color: #667085; font-size: 13.5px; }
.chf-wrap .chf-sign-msg { width: 100%; margin: 0 0 6px; padding: 12px 16px; border-radius: 10px; font-size: 15px; }
.chf-wrap .chf-sign-msg-later { background: #fffaeb; border: 1px solid #fedf89; color: #93370d; }
.chf-wrap .chf-sign-msg-error, .chf-wrap .chf-sign-msg-declined { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; }

/* test not passed: built-in result card with Try again */
.chf-wrap .chf-result { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 560px; margin: 4px auto 22px; padding: 26px 24px; border: 1px solid #fedf89; border-radius: 14px; background: #fffcf5; text-align: center; }
.chf-wrap .chf-result.is-final { border-color: #fecdca; background: #fffbfa; }
.chf-wrap .chf-result-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: #fef0c7; color: #b54708; }
.chf-wrap .chf-result.is-final .chf-result-icon { background: #fee4e2; color: #b42318; }
.chf-wrap .chf-result-title { margin: 2px 0 0; padding: 0; border: 0; color: #101828; font-size: 21px; font-weight: 700; line-height: 1.3; }
.chf-wrap .chf-result-score { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.chf-wrap .chf-result-pct { color: #101828; font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.chf-wrap .chf-result-need, .chf-wrap .chf-result-text { margin: 0; color: #475467; font-size: 15px; line-height: 1.55; }
.chf-wrap a.chf-result-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; padding: 13px 26px; border-radius: 12px; background: #00a32a !important; color: #fff !important; font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 6px 16px rgba(0, 163, 42, .25); transition: background .15s; }
.chf-wrap a.chf-result-btn:hover { background: #008a3c !important; }
.chf-wrap a.chf-result-btn:focus-visible { outline: 3px solid rgba(0, 163, 42, .35); outline-offset: 3px; }
.chf-wrap a.chf-result-btn.is-busy { pointer-events: none; opacity: .8; }
.chf-wrap a.chf-result-btn.is-busy svg { animation: chf-spin .8s linear infinite; }
.chf-wrap .chf-try-note { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: #fffaeb; border: 1px solid #fedf89; color: #93370d; font-size: 14.5px; text-align: center; }


/* tabs on the test page: the test and earlier results */
.chf-wrap .chf-tabs-nav { display: flex; gap: 6px; margin: 0 0 14px; padding: 5px; border: 1px solid #e4e7ec; border-radius: 12px; background: #f9fafb; }
.chf-wrap .chf-tabs-nav button.chf-tab { flex: 1 1 0; margin: 0; padding: 11px 16px; border: 0; border-radius: 9px; background: transparent; color: #475467; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: normal; cursor: pointer; box-shadow: none; transition: background .15s, color .15s; }
.chf-wrap .chf-tabs-nav button.chf-tab:hover { background: #fff; color: #101828; }
.chf-wrap .chf-tabs-nav button.chf-tab.is-on { background: #fff; color: #05603a; box-shadow: 0 1px 3px rgba(16, 24, 40, .1), 0 0 0 1px #abefc6; }
.chf-wrap .chf-tabs-nav button.chf-tab:focus-visible { outline: 3px solid rgba(0, 163, 42, .3); outline-offset: 2px; }

/* history: application and every test try, as a timeline (numbers and scores only, never the answers) */
.chf-wrap .chf-hist { width: 100%; max-width: none; margin: 24px 0 0; padding: 20px 22px 8px; border: 1px solid #e4e7ec; border-radius: 14px; background: #fff; text-align: left; box-sizing: border-box; }
.chf-wrap .chf-tab-hist .chf-hist { margin: 0; border: 0; padding: 0; }
.chf-wrap .chf-hist-head { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.chf-wrap .chf-hist-title { margin: 0; padding: 0; border: 0; color: #101828; font-size: 17px; font-weight: 700; line-height: 1.3; text-transform: none; letter-spacing: normal; }
.chf-wrap .chf-hist-count { display: inline-flex; min-width: 24px; height: 24px; padding: 0 7px; align-items: center; justify-content: center; border-radius: 999px; background: #f2f4f7; color: #344054; font-size: 12.5px; font-weight: 700; }
.chf-wrap .chf-hist-list { position: relative; margin: 0; padding: 0; list-style: none; }
.chf-wrap .chf-hist-item { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 0; padding: 14px 0; border-top: 1px solid #f2f4f7; }
.chf-wrap .chf-hist-item:first-child { border-top: 0; }
/* the line joining the steps */
.chf-wrap .chf-hist-item:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: calc(50% + 18px); bottom: calc(-50% + 18px); width: 2px; background: #eaecf0; }
.chf-wrap .chf-hist-dot { position: relative; z-index: 1; display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center; border-radius: 50%; background: #f2f4f7; color: #475467; box-shadow: 0 0 0 4px #fff; }
.chf-wrap .is-app .chf-hist-dot { background: #eff8ff; color: #175cd3; }
.chf-wrap .is-pass .chf-hist-dot { background: #dcfae6; color: #067647; }
.chf-wrap .is-fail .chf-hist-dot { background: #fee4e2; color: #b42318; }
.chf-wrap .chf-hist-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.chf-wrap .chf-hist-name { color: #101828; font-size: 15.5px; font-weight: 600; line-height: 1.35; }
.chf-wrap .chf-hist-try { color: #667085; font-weight: 500; }
.chf-wrap .chf-hist-try::before { content: "\00b7"; margin: 0 6px 0 2px; color: #98a2b3; }
.chf-wrap .chf-hist-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: #667085; font-size: 13.5px; }
.chf-wrap .chf-hist-ref { color: #344054; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.chf-wrap .chf-hist-sep { width: 3px; height: 3px; border-radius: 50%; background: #98a2b3; }
.chf-wrap .chf-hist-side { display: flex; align-items: center; gap: 14px; }
.chf-wrap .chf-hist-score { display: flex; align-items: center; gap: 10px; }
.chf-wrap .chf-hist-score strong { min-width: 44px; color: #101828; font-size: 16px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.chf-wrap .chf-hist-bar { position: relative; display: block; width: 120px; height: 8px; border-radius: 999px; background: #f2f4f7; overflow: visible; }
.chf-wrap .chf-hist-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: #98a2b3; }
.chf-wrap .is-pass .chf-hist-fill { background: #17b26a; }
.chf-wrap .is-fail .chf-hist-fill { background: #f04438; }
.chf-wrap .chf-hist-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 2px; background: #344054; }
.chf-wrap .chf-hist-badge { display: inline-flex; min-width: 92px; justify-content: center; padding: 5px 12px; border-radius: 999px; background: #f2f4f7; color: #475467; font-size: 13px; font-weight: 700; white-space: nowrap; }
.chf-wrap .is-app .chf-hist-badge { background: #eff8ff; color: #175cd3; }
.chf-wrap .is-pass .chf-hist-badge { background: #dcfae6; color: #067647; }
.chf-wrap .is-fail .chf-hist-badge { background: #fef3f2; color: #b42318; }
@media (max-width: 640px) {
    .chf-wrap .chf-hist { padding: 16px 16px 4px; }
    .chf-wrap .chf-hist-item { grid-template-columns: 32px minmax(0, 1fr); row-gap: 10px; }
    .chf-wrap .chf-hist-side { grid-column: 2; justify-content: space-between; }
    .chf-wrap .chf-hist-item:not(:last-child)::after { top: 34px; bottom: -14px; }
    .chf-wrap .chf-hist-bar { width: 90px; }
}

.chf-wrap .chf-hist-meta .chf-hist-copy { margin: 0; padding: 3px 9px; gap: 4px; font-size: 12px; }

/* answer helper (testing, staff only) */
.chf-wrap .chf-answer-notice { margin: 0 0 16px; padding: 12px 16px; border: 1px dashed #f79009; border-radius: 10px; background: #fffaeb; color: #93370d; font-size: 14px; line-height: 1.5; }
.chf-wrap .chf-answer-hint { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 9px; border-radius: 999px; background: #dcfae6; color: #067647; font-size: 12px; font-weight: 700; line-height: 1.5; vertical-align: middle; white-space: nowrap; }
.chf-wrap .gform_wrapper .gchoice.chf-answer-correct { border-style: dashed !important; border-color: #17b26a !important; }

/* finished page */
.chf-wrap .chf-done { display: flex; flex-direction: column; gap: 18px; }
.chf-wrap .chf-done > .chf-refs { margin: 0; }
.chf-wrap .chf-pass { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border: 1px solid #abefc6; border-radius: 14px; background: linear-gradient(135deg, #ecfdf3 0%, #f6fef9 60%, #fff 100%); }
.chf-wrap .chf-pass-icon { display: inline-flex; flex: 0 0 52px; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: #17b26a; color: #fff; box-shadow: 0 0 0 6px #dcfae6; }
.chf-wrap .chf-pass-main { flex: 1; min-width: 0; }
.chf-wrap .chf-pass-title { margin: 0; padding: 0; border: 0; color: #054f31; font-size: 20px; font-weight: 800; line-height: 1.3; text-transform: none; letter-spacing: normal; }
.chf-wrap .chf-pass-text { margin: 2px 0 0; color: #067647; font-size: 15px; }
.chf-wrap .chf-pass-score { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.chf-wrap .chf-pass-score strong { color: #054f31; font-size: 30px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.chf-wrap .chf-pass-bar { width: 140px; background: #d1fadf; }
.chf-wrap .chf-pass-bar .chf-hist-fill { background: #17b26a; }
/* the form's own confirmation (and the quiz add-on's result) as a quiet note */
:is(#chf-application, #chf-care) .chf-done-note .gform_confirmation_message, #chf-competency .chf-done-note .gform_confirmation_message {
    padding: 16px 20px; border: 1px solid #eaecf0; border-radius: 12px; background: #f9fafb; color: #344054; font-size: 15px; text-align: center; }
:is(#chf-application, #chf-care) .chf-done-note .gform_confirmation_message .gform_confirmation_message, #chf-competency .chf-done-note .gform_confirmation_message .gform_confirmation_message { padding: 0; border: 0; background: none; }
:is(#chf-application, #chf-care) .chf-done-note .gform_confirmation_message :is(h1, h2, h3, h4), #chf-competency .chf-done-note .gform_confirmation_message :is(h1, h2, h3, h4) { color: #101828; font-size: 17px; }
:is(#chf-application, #chf-care) .chf-done-note .gform_confirmation_message + .gform_confirmation_message, #chf-competency .chf-done-note .gform_confirmation_message + .gform_confirmation_message { margin-top: 10px; }
/* numbers as two even tiles across the page */
.chf-wrap .chf-done .chf-refs-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.chf-wrap .chf-done .chf-ref { max-width: none; padding: 18px 20px; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.chf-wrap .chf-done .chf-refs-note { max-width: none; }
.chf-wrap .chf-done .chf-hist { margin-top: 18px; }
/* sign out: a footer row across the card */
.chf-wrap .chf-signout { max-width: none; justify-content: space-between; margin: 20px 0 0; padding: 16px 20px; border: 1px solid #eaecf0; border-radius: 12px; background: #f9fafb; text-align: left; }
@media (max-width: 600px) {
    .chf-wrap .chf-pass { flex-wrap: wrap; padding: 18px; }
    .chf-wrap .chf-pass-score { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
    .chf-wrap .chf-signout { justify-content: center; text-align: center; }
}

/* ------------------------------------------------------------ header card (redesign) */
:is(#chf-application, #chf-care) .chf-head, #chf-competency .chf-head {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "step loc" "title title" "intro intro" "bar bar"; align-items: center; column-gap: 16px;
    padding: 26px 30px 24px; text-align: left; border: 1px solid #e4e7ec; border-radius: 16px;
    background: radial-gradient(120% 140% at 100% 0%, #ecfdf3 0%, rgba(236, 253, 243, 0) 55%), #fff; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); }
:is(#chf-application, #chf-care) .chf-head-step, #chf-competency .chf-head-step { grid-area: step; margin: 0; color: #067647; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
:is(#chf-application, #chf-care) .chf-head-loc, #chf-competency .chf-head-loc { grid-area: loc; justify-self: end; margin: 0; padding: 5px 12px; background: #fff; border: 1px solid #abefc6; }
:is(#chf-application, #chf-care) .chf-head-title, #chf-competency .chf-head-title { grid-area: title; margin: 8px 0 6px; font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
:is(#chf-application, #chf-care) .chf-head-intro, #chf-competency .chf-head-intro { grid-area: intro; max-width: 720px; margin: 0; color: #475467; font-size: 15.5px; line-height: 1.55; }
:is(#chf-application, #chf-care) .chf-head .chf-stepper, #chf-competency .chf-head .chf-stepper { grid-area: bar; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; max-width: none; margin: 22px 0 0; }
/* each step: a bar on top, then the number and name */
.chf-head .chf-stepper li { flex-direction: row; align-items: center; gap: 8px; padding-top: 14px; text-align: left; }
.chf-head .chf-stepper li::before, .chf-head .chf-stepper li:first-child::before { content: ""; display: block; position: absolute; top: 0; left: 0; right: 0; width: auto; height: 6px; border-radius: 999px; background: #eaecf0; z-index: 0; }
.chf-head .chf-stepper li.is-done::before { background: #17b26a; }
.chf-head .chf-stepper li.is-current::before { background: linear-gradient(90deg, #17b26a 0 50%, #d1fadf 50% 100%); }
.chf-head .chf-stepper-dot { flex: 0 0 26px; width: 26px; height: 26px; font-size: 12px; border-width: 2px; }
.chf-head .chf-stepper .is-current .chf-stepper-dot { box-shadow: 0 0 0 4px rgba(0, 163, 42, .14); }
.chf-head .chf-stepper-label { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chf-head .chf-stepper .is-todo .chf-stepper-label { color: #98a2b3; }
/* finished: every bar green */
:is(#chf-application, #chf-care) .chf-head.is-finished, #chf-competency .chf-head.is-finished { background: radial-gradient(120% 140% at 100% 0%, #dcfae6 0%, rgba(220, 250, 230, 0) 60%), #fff; }
@media (max-width: 700px) {
    :is(#chf-application, #chf-care) .chf-head, #chf-competency .chf-head { grid-template-columns: 1fr; grid-template-areas: "step" "title" "loc" "intro" "bar"; padding: 20px 18px; }
    :is(#chf-application, #chf-care) .chf-head-loc, #chf-competency .chf-head-loc { justify-self: start; margin-bottom: 8px; }
    :is(#chf-application, #chf-care) .chf-head-title, #chf-competency .chf-head-title { font-size: 23px; }
    .chf-head .chf-stepper li { flex-direction: column; align-items: flex-start; gap: 4px; }
    .chf-head .chf-stepper li:not(.is-current) .chf-stepper-label { display: none; }
    .chf-head .chf-stepper .is-current .chf-stepper-label { white-space: normal; }
}

/* the branch is fixed: the Location field is shown but cannot be changed */
:is(#chf-application, #chf-care, #chf-competency) .gform_wrapper :is(input, select)[data-chf-locked][name], input[data-chf-locked], select[data-chf-locked] { background-color: #f2f4f7 !important; color: #344054 !important; border-color: #e4e7ec !important; cursor: not-allowed; box-shadow: none !important; }
select[data-chf-locked] { pointer-events: none; }

/* no coloured side stripes: a plain border instead */
.chf-cookie-note { border-left: 1px solid #fedf89; }
.chf-wrap .chf-note-staff { border: 1px solid #fedf89; border-radius: 8px; }
/* a step with documents still needed */
.chf-stepper li.is-pending .chf-stepper-dot { background: #dc6803 !important; border-color: #dc6803 !important; color: #fff !important; font-weight: 800; }
.chf-stepper li.is-pending::before, .chf-stepper li.is-pending .chf-stepper-bar { background: #fdb022 !important; }
.chf-stepper li.is-pending .chf-stepper-label { color: #b54708 !important; font-weight: 700; }
.chf-stepper-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #dc6803; color: #fff; font-size: 11px; font-style: normal; line-height: 18px; text-align: center; }
.chf-left-docs { margin: 10px 0 4px; padding-left: 20px; color: #344054; }
.chf-left-docs li { margin: 2px 0; font-weight: 600; }

/* sign buttons: DocuSign is opening */
a.chf-sign-btn.is-busy { pointer-events: none; opacity: 1 !important; background: #067647 !important; cursor: progress; }
.chf-spin { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: chf-spin .8s linear infinite; }
@keyframes chf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .chf-spin { animation-duration: 2.4s; } }
.chf-sign-wait { max-width: 460px; margin: 12px auto 0; color: #344054; font-size: 14px; line-height: 1.5; text-align: center; }
.chf-sign-retry { margin-left: 4px; color: #067647 !important; font-weight: 700; text-decoration: underline !important; }

/* Care in your home, the first step (city and kind of care): one centred column, the page's font, the brand green */
#chf-care.chf-care-pick { max-width: 560px; margin: 0 auto; }
#chf-care.chf-care-pick .chf-head { display: block; margin: 0 0 14px; text-align: center; }
#chf-care.chf-care-pick .chf-head-intro { margin: 6px 0 0; }
#chf-care.chf-care-pick .chf-pick { max-width: none; margin: 0; gap: 18px; }
#chf-care .chf-pick select { width: 100%; height: 48px; padding: 0 42px 0 14px; border: 1px solid #d0d5dd; border-radius: 10px; font: inherit; font-size: 16px; font-weight: 400; color: #101828; -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px 16px; cursor: pointer; }
#chf-care .chf-pick select:focus { outline: none; border-color: #067647; box-shadow: 0 0 0 3px rgba(6, 118, 71, .15); }
#chf-care .chf-pick select:invalid { color: #667085; }
#chf-care .chf-pick select option { color: #101828; }
#chf-care .chf-pick .chf-btn { width: 100%; height: 48px; margin: 2px 0 0; border: 0; border-radius: 10px; background: #067647; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: none; }
#chf-care .chf-pick .chf-btn:hover { background: #05603a; }
#chf-care .chf-pick .chf-btn:focus-visible { outline: 3px solid rgba(6, 118, 71, .35); outline-offset: 2px; }
@media (max-width: 600px) { #chf-care.chf-care-pick { padding: 0 2px; } }
