/* Eric Hunt CPA - job pages built with Elementor on the Full Width template.
   Loaded by wp-content/novamira-sandbox/ehc-job-page.php on single jobpost views.
   Kept out of the Elementor page so saving in the editor cannot wipe it. */

/* NOTE: the page width constraint is NOT here. The theme builds the header and
   footer as Elementor templates of the same data-elementor-type as the page, so
   any selector general enough to catch the page also squeezes the header. The
   loader prints that one rule inline, scoped to the current post ID. */

/* [job_details] supplies the application form. Hide its duplicate company header
   and job-features block, because the page design already covers both. */
.ehc-apply .sjb-page > .sjb-detail > .list-data > div > header,
.ehc-apply .sjb-page .job-features{display:none}
.ehc-apply .sjb-page{width:100%!important;padding:0}

/* ---------- application form, matched to the page design ---------- */
.ehc-apply .jobpost-form{background:#fff;border:1px solid #E2E7EF;border-radius:14px;
  padding:clamp(22px,3vw,34px);box-shadow:0 4px 18px rgba(10,27,51,.05);margin-top:0}
.ehc-apply .jobpost-form h3{font-size:clamp(21px,2.4vw,27px)!important;line-height:1.25!important;
  color:#0A1B33!important;font-weight:700!important;margin:0!important;letter-spacing:-.01em}
.ehc-apply .jobpost-form h3::after{content:"";display:block;width:52px;height:3px;margin:13px 0 22px;
  background:linear-gradient(90deg,#C9A84C,#E8C96A);border-radius:2px}

/* stack each label above its field instead of the plugin's 3/9 bootstrap split */
.ehc-apply .jobpost-form .col-md-3,
.ehc-apply .jobpost-form .col-md-9{width:100%!important;max-width:100%!important;
  flex:0 0 100%!important;padding-left:0!important;padding-right:0!important;float:none!important}
.ehc-apply .jobpost-form .row{margin-left:0!important;margin-right:0!important;display:block!important}
.ehc-apply .jobpost-form label{display:block;font-size:12px!important;font-weight:700!important;
  letter-spacing:.07em;text-transform:uppercase;color:#5A6477!important;margin:0 0 7px!important;
  line-height:1.4}
.ehc-apply .jobpost-form label .required{color:#C9A84C!important;margin-left:2px}
.ehc-apply .jobpost-form .form-group{margin-bottom:19px}
.ehc-apply .jobpost-form .form-control{height:auto!important;padding:12px 14px!important;
  font-size:15px!important;line-height:1.4!important;border:1px solid #CFD7E3!important;
  border-radius:8px!important;background:#fff!important;color:#1F2937!important;box-shadow:none!important}
.ehc-apply .jobpost-form .form-control:focus{border-color:#C9A84C!important;
  box-shadow:0 0 0 3px rgba(201,168,76,.18)!important;outline:none!important}
.ehc-apply .jobpost-form .iti{width:100%!important;display:block}
.ehc-apply .jobpost-form input[type=file].form-control{padding:11px 14px!important;
  background:#F7F9FC!important;border-style:dashed!important;cursor:pointer}
.ehc-apply .jobpost-form .validity-note{font-size:12.5px;color:#B4232A;margin-top:6px}

/* Simple Job Board ships .sjb-page .sjb-detail .jobpost-form .file div with
   !important, so the Browse button needs a deeper selector to win. */
.ehc-apply .sjb-page .sjb-detail .jobpost-form .file > div{background:#0A1B33!important;
  color:#fff!important;border:0!important;border-radius:6px!important;padding:8px 18px!important;
  font-size:13px!important;font-weight:700!important;letter-spacing:.03em!important;cursor:pointer;
  transition:background .15s}
.ehc-apply .sjb-page .sjb-detail .jobpost-form .file > div:hover{background:#132F50!important}
.ehc-apply .sjb-page .sjb-detail .jobpost-form .file > span{color:#5A6477!important;font-size:15px!important}

/* Elementor forces background-image:none inside lazy-loaded containers until they
   scroll into view, so the submit needs a solid color under the gradient or it
   renders invisible above the fold. */
.ehc-apply .jobpost-form button.app-submit{background-color:#C9A84C!important;
  background-image:linear-gradient(135deg,#C9A84C,#E8C96A)!important;color:#0A1B33!important;
  border:1px solid transparent!important;border-radius:8px!important;padding:13px 30px!important;
  font-size:15px!important;font-weight:700!important;white-space:nowrap;
  box-shadow:0 6px 18px rgba(201,168,76,.30);transition:transform .15s,box-shadow .15s}
.ehc-apply .jobpost-form button.app-submit:hover{transform:translateY(-1px);
  box-shadow:0 8px 22px rgba(201,168,76,.38)}
.ehc-apply .jobpost-form .btn-app-modal-close{display:none!important}

@media (max-width:620px){
  .ehc-apply .jobpost-form{padding:20px 18px}
  .ehc-apply .jobpost-form button.app-submit{width:100%}
  body.single-jobpost.elementor-page .elementor table{font-size:14px}
  body.single-jobpost.elementor-page .elementor table th,
  body.single-jobpost.elementor-page .elementor table td{padding:10px 12px!important}
}
