/* HireWay Group V3: final, narrow-scoped fixes following the original page CSS. */
:root { --hw-brand:#111154; --hw-accent:#ff7415; --hw-edge:clamp(16px,4vw,44px); }
html,body { width:100%; max-width:100%; }
/* Compact the persistent navigation without changing its color scheme. */
body > .hw-header { box-shadow:0 2px 12px rgba(15,20,60,.055); }
.hw-header .template_header_columns { padding-block:8px !important; gap:clamp(10px,1.2vw,18px) !important; max-width:1320px !important; }
.hw-header .template_header_columns > .wp-block-column:first-child { min-width:0!important;flex:0 0 clamp(135px,14vw,178px) !important;max-width:178px; }
.hw-header .hw-logo { display:flex;align-items:center; }
.hw-header .hw-logo img { width:clamp(135px,13.5vw,174px)!important; max-height:52px!important;object-fit:contain;object-position:left center; }
.hw-header .menu-items { gap:clamp(5px,1vw,14px); flex-wrap:nowrap!important; font-size:clamp(13px,1vw,15px); }
.hw-header .menu-link,.hw-header .menu-button { padding:7px clamp(6px,.8vw,12px);white-space:nowrap; }
.hw-header .right-group { gap:clamp(6px,.8vw,12px); }
.hw-header .dropdown-toggle { white-space:nowrap; }
/* Legacy page wrappers sometimes impose pixel widths or negative margins. Constrain direct page content. */
.hw-main {min-width:0;}
.hw-main > * {max-width:100%;}
.hw-main :is(.container,.max-w-screen-xl,.max-w-7xl,.wp-block-columns,.wp-block-column,.form-section) {max-width:100%;min-width:0;}
.hw-main :is(.grid,.flex,.flex-row,.flex-col) > * {min-width:0;}
.hw-main :is(input,textarea,select) {box-sizing:border-box;}
.hw-main :is(.form-section,.wp-block-group) { min-width:0; }
.hw-main :is(.form-section,.wp-block-group) > .hw-wpform { max-width:min(100%,1000px)!important; }
.hw-main .form-section { padding-inline:var(--hw-edge); }
.hw-main .form-section .hw-wpform {max-width:1000px!important;}
.hw-main .hw-wpform { position:relative;left:auto;right:auto; margin:16px auto 26px!important;width:100%;max-width:min(100%,1000px)!important;padding:clamp(18px,3vw,34px)!important;border:1px solid #e2e5ed;border-radius:16px;background:#fff;box-shadow:0 8px 32px rgba(17,17,84,.065);overflow:visible; }
.hw-wpform .wpforms-form,.hw-wpform .wpforms-field-container { width:100%;max-width:100%;min-width:0; }
.hw-wpform .hw-form-row { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(16px,2vw,24px);width:100%; }
.hw-wpform .hw-form-row > * {min-width:0;}
.hw-wpform .wpforms-field {width:100%;max-width:100%;min-width:0;padding:8px 0 13px;margin:0;clear:none;}
.hw-wpform .wpforms-field-label { display:block;margin:0 0 7px;max-width:100%;line-height:1.4;font-size:14px;font-weight:650;text-align:start; }
.hw-wpform input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]),
.hw-wpform select,.hw-wpform textarea {display:block;min-width:0!important;max-width:100%!important;width:100%!important;height:auto;min-height:48px;padding:12px 15px!important;margin:0!important;border:1px solid #cfd6e2!important;border-radius:9px!important;background:#fff!important;color:#111154!important;box-shadow:none!important;outline-offset:2px;font-size:15px!important;line-height:1.45!important;appearance:auto;}
.hw-wpform textarea {resize:vertical;min-height:130px!important;}
.hw-wpform select {appearance:auto!important;padding-inline-end:30px!important;}
.hw-wpform input:focus,.hw-wpform select:focus,.hw-wpform textarea:focus {border-color:var(--hw-accent)!important;outline:2px solid rgba(255,116,21,.1);}
.hw-wpform .hw-choice {display:flex;align-items:start;gap:10px;margin:12px 0;max-width:100%;line-height:1.5;text-align:start;}
.hw-wpform .hw-choice input {flex:0 0 auto;margin-top:5px;}
.hw-wpform .hw-choice span {flex:1;min-width:0;overflow-wrap:break-word;}
.hw-wpform .wpforms-submit-container { padding-top:14px;margin:0; }
.hw-wpform button.wpforms-submit {min-width:160px;padding:12px 26px!important;border-radius:9px!important;max-width:100%;}
.hw-wpform .hw-signature-wrap {width:100%;max-width:640px;overflow:hidden;}
.hw-wpform canvas.hw-signature {width:100%;max-width:100%;border-radius:9px;}
.hw-wpform input[type=file] {display:block;width:100%;max-width:100%;padding:11px!important;border:1px dashed #cfd6e2;border-radius:9px;overflow:hidden;}
.hw-wpform .wpforms-field-description {overflow-wrap:anywhere;}
/* Footer: make the columns respect their container and avoid the orphaned decorative image. */
.hw-footer .footer-container {max-width:1240px;margin:0 auto!important;padding:36px var(--hw-edge) 12px!important;grid-template-columns:minmax(0,1fr) minmax(0,.85fr) minmax(0,1.65fr)!important;gap:clamp(18px,3vw,54px)!important;align-items:start;}
.hw-footer .footer-column {min-width:0;justify-self:stretch!important;}
.hw-footer .footer-column h3 {font-size:clamp(17px,1.6vw,21px);line-height:1.3;margin:0 0 15px;}
.hw-footer .footer-column > img {width:clamp(165px,19vw,225px)!important;margin:0 0 12px!important;}
.hw-footer .footer-nav,.hw-footer .footer-services {margin:0;padding:0;}
.hw-footer .footer-services {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 22px;}
.hw-footer .footer-services li,.hw-footer .footer-nav li {margin:0 0 7px!important;line-height:1.45;}
.hw-footer .footer-column a {overflow-wrap:anywhere;}
.hw-footer .footer-socials {margin-top:6px;}
.hw-footer .illustration-footer {right:0;bottom:0;max-width:120px;pointer-events:none;opacity:.85;}
.hw-footer > .wp-block-group > p:last-child {border-top:1px solid rgba(255,255,255,.13)!important;padding:20px var(--hw-edge)!important;margin:0!important;}
@media(max-width:1100px) and (min-width:851px){
 .hw-header .template_header_columns > .wp-block-column:first-child {flex-basis:140px!important;}
 .hw-header .menu-items {gap:2px;font-size:12px;}
 .hw-header .menu-link,.hw-header .menu-button{padding:6px 5px;}
 .hw-header .right-group {gap:4px;}
}
@media(max-width:850px){
 .hw-header .template_header_columns {min-height:66px;padding:7px 3px!important;}
 .hw-header .template_header_columns > .wp-block-column:first-child {flex-basis:158px!important;max-width:158px!important;min-width:0!important;}
 .hw-header .hw-logo img {width:152px!important;max-height:48px!important;}
 .hw-header .menu-items { flex-wrap:nowrap!important; }
 .hw-header .menu-items.show {padding:70px 20px 25px;align-items:stretch;justify-content:flex-start;gap:10px;}
 .hw-header .menu-items.show li {max-width:100%;}
 .hw-header .menu-items.show .menu-link,.hw-header .menu-items.show .menu-button {width:100%;white-space:normal;text-align:center;padding:12px;}
 .hw-footer .footer-container {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:26px!important;}
 .hw-footer .footer-column:last-of-type {grid-column:1/-1;}
 .hw-footer .illustration-footer {display:none;}
}
@media(max-width:650px){
 .hw-main .form-section {padding-inline:14px;}
 .hw-main .hw-wpform {padding:18px!important;margin:12px auto 24px!important;}
 .hw-wpform .hw-form-row {grid-template-columns:minmax(0,1fr);gap:0;}
 .hw-wpform .wpforms-field {padding-bottom:11px;}
 .hw-footer .footer-container {grid-template-columns:minmax(0,1fr)!important;text-align:center!important;padding:32px 18px 12px!important;gap:23px!important;}
 .hw-footer .footer-column:last-of-type {grid-column:auto;}
 .hw-footer .footer-column {text-align:center!important;}
 .hw-footer .footer-column h3 {margin-bottom:11px;}
 .hw-footer .footer-services {grid-template-columns:minmax(0,1fr)!important;gap:4px;}
 .hw-footer .footer-socials {justify-content:center;}
 .hw-wpform .wpforms-submit {width:100%;}
}
html[lang=ar] .hw-wpform {direction:rtl;}
html[lang=ar] .hw-wpform input[type=email], html[lang=ar] .hw-wpform input[type=tel] {direction:ltr;text-align:right;}
html[lang=ar] .hw-header .hw-logo img {object-position:right center;}
/* Honeypot must not expand RTL document scroll dimensions. */
.hw-wpform input.hw-trap {position:fixed!important;left:0!important;right:auto!important;top:0!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;overflow:hidden!important;}
/* Retain native, accessible controls even when old WPForms styling is present. */
.hw-wpform .hw-choice input[type="radio"],.hw-wpform .hw-choice input[type="checkbox"] { display:inline-block!important; position:static!important; appearance:auto!important;-webkit-appearance:auto!important;opacity:1!important;visibility:visible!important;width:18px!important;height:18px!important;min-width:18px!important;margin:3px 0 0!important;padding:0!important;accent-color:#111154;clip:auto!important;clip-path:none!important;}
.hw-wpform canvas.hw-signature {display:block!important;min-height:160px!important;border:1px dashed #9aa7ba!important;background:#fff!important;touch-action:none!important;}
.hw-wpform, .hw-wpform form {background:#fff!important;}
