/* ============ WordPress additions ============
   Only rules the HTML did not need: classes that replace inline styles found in the copy (§103). */
.link-u { text-decoration: underline; text-underline-offset: .2em; }

/* ---- Forms: Gravity Forms prints extra wrappers. They are removed from the layout so each field sits in the
   RIQ form grid exactly as in the HTML (§109). Gravity Forms' own CSS is switched off (gform_disable_css). */
form.pg-form > .gform-body,
form.pg-form > .gform_body,
form.pg-form .gform_fields,
form.pg-form > .gform_footer,
form.pg-form > .gform-footer,
.gform_wrapper[class*="pg-form_wrapper"] { display: contents; }

form.pg-form .gform_validation_container,
form.pg-form .gform_required_legend,
form.pg-form .gform_validation_errors,
form.pg-form .gform_ajax_spinner,
form.pg-form .gfield--type-honeypot { display: none !important; }
.gform_wrapper iframe[name^="gform_ajax_frame_"] { display: none; }
form.pg-form .pg-form__go .btn[disabled] { opacity: .6; cursor: progress; }
.riq-anchor { display: block; position: absolute; width: 0; height: 0; margin-top: -120px; visibility: hidden; pointer-events: none; }   /* out of the layout grid (it took a grid cell) */
/* Gravity Forms prints these before the <form>; with the wrapper at display: contents they became grid items of the
   page layout (contact: the form was pushed into the narrow column). The HTML has neither. */
.gform_wrapper[class*="pg-form_wrapper"] > .gform_heading,
.gform_wrapper[class*="pg-form_wrapper"] > .gform_anchor { display: none !important; }

/* After sending (Gravity Forms confirmation): the same white card as the form, with the "Thank you." message. */
div.pg-form.riq-sent-card {
    --white: #231F20; --light-grey: #6B6B6B;
    position: relative;
    display: block;
    padding: calc(var(--cvw) * 3) !important;
    background: #FFFFFF;
    color: #231F20;
    &::before { position: absolute; inset: 0 0 auto; height: 4px; background: var(--orange); content: ""; }
    & .rq-sent { padding: var(--sp20) 0; outline: none; }
    & .rq-sent h3 { margin: 0 0 var(--sp15); font-size: var(--f40); font-weight: 700; color: #231F20; }
    & .rq-sent p { margin: 0; font-size: var(--f18); line-height: var(--lhLead); color: #444; }
}

/* HireZoot (job application): its server message (shown only when sending fails). */
.riq-apply .awsm-application-message:empty { display: none; }
.riq-apply .awsm-application-message { margin-top: var(--sp15); padding-left: 14px; border-left: 3px solid var(--orange); font-size: var(--f15); color: #231F20; }
.riq-apply .awsm-application-message p { margin: 0; }
.riq-apply.is-sent .awsm-application-message { display: none !important; }
/* HireZoot's jQuery Validate adds its own error <div> next to the theme's .rq-err message: show only the theme's (as in the HTML) */
.riq-apply div.awsm-job-form-error { display: none !important; }

/* HireZoot fields from its form builder that the HTML form did not have: a list of tick boxes ("Industry"). */
.pg-form fieldset.pg-opts { min-width: 0; margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: var(--sp12); }
.pg-form fieldset.pg-opts legend { padding: 0; margin-bottom: var(--sp12); font-family: var(--font-body); font-size: var(--f15); font-weight: 600; color: var(--white); }   /* as the other field labels */
.pg-form .pg-opts__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp12) var(--sp30); }
.pg-form .pg-opts .pg-check { display: flex !important; flex-wrap: nowrap; align-items: flex-start; cursor: pointer; }
.pg-form .pg-opts .pg-check span { flex: 1 1 auto; min-width: 0; }
.pg-form .pg-opts .pg-check input { flex: none; }
.pg-form fieldset.pg-opts[aria-invalid="true"] legend { color: #ff8a7a; }
/* HireZoot Pro section titles ("1. Personal Details"): a full-width line between the groups of fields. */
.pg-form .riq-form-sec { grid-column: 1 / -1; margin: var(--sp20) 0 0; padding-top: var(--sp20); border-top: 1px solid var(--white-20); font-size: var(--f18); font-weight: 700; letter-spacing: 0; color: var(--white); }
.pg-form .riq-form-sec:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---- Sliders (Swiper, assets/js/sliders.js). Swiper moves the list, so the HTML's native side-scroll is switched
   off once it runs; card widths and the gap come from Swiper (3 / 2 cards; 84% wide on phones, as in the HTML). */
.riq-swiper { overflow: hidden; }
.vc-grid.cs-slider.is-swiper {
    gap: 0;
    overflow: visible;
    scroll-snap-type: none;
    scroll-behavior: auto;
    cursor: grab;
    & > li { flex: 0 0 auto; scroll-snap-align: none; height: auto; }
    &:active { cursor: grabbing; }
}
@media (max-width: 767.98px) { .vc-grid.cs-slider.is-swiper > li { width: 84%; } }

/* ---- Search (search.php / searchform.php): an open field on a hairline, like the site's forms. */
.riq-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp20); width: 100%; max-width: 720px; }
.riq-search input[type="search"] { flex: 1 1 280px; min-height: 52px; padding: var(--sp12) 0; border: 0; border-bottom: 1px solid var(--white-40); border-radius: 0; background: transparent; font: inherit; font-size: var(--f25); color: var(--white); }
.riq-search input[type="search"]:focus { outline: none; border-bottom-color: var(--orange); }
.riq-search input[type="search"]::placeholder { color: var(--white-40); opacity: 1; }
.sm .nav-links { display: flex; gap: var(--sp20); margin-top: var(--sp30); }
.sm .nav-links .page-numbers { color: var(--white); }
.sm .nav-links .current { color: var(--orange); }
