/* Serpworks 3.3.64 — service header cleanup, service help row, and Create Job FAQ/attachments layout.
   Styling only. No changes to form names, AJAX, click handlers, upload, featured-job, or FAQ controls. */

/* Service wizard guide: directly after heading/subtitle, above progress steps. */
.sw3-create .sw3-service-guide {
  box-sizing:border-box; display:flex; align-items:center; gap:15px;
  width:100%; min-width:0; margin:-1px 0 20px; padding:14px 17px;
  border:1px solid #e4d0fb; border-radius:14px;
  background:linear-gradient(105deg,#fbf8ff 0%,#f4edff 100%);
  color:#41334f; box-shadow:0 4px 14px rgba(81,46,134,.035);
}
.sw3-create .sw3-service-guide__icon {
  flex:0 0 40px; width:40px; height:40px; border-radius:11px;
  display:flex; align-items:center; justify-content:center;
  background:#f0e4ff; color:#7c3aed; border:1px solid #d9bdff;
}
.sw3-create .sw3-service-guide__text {
  min-width:0; flex:1; display:flex; flex-wrap:wrap; align-items:baseline;
  gap:4px 6px; font-size:14px; line-height:1.55;
}
.sw3-create .sw3-service-guide__text strong {font-weight:760; color:#29313e; margin-right:1px;}
.sw3-create .sw3-service-guide__text a {
  color:#7132cd !important; text-decoration:underline !important;
  text-underline-offset:3px; font-weight:700;
  background:none !important; border:0 !important;
}
.sw3-create .sw3-service-guide__text a:hover {color:#4e2094 !important;}
.sw3-create .sw3-service-guide__text a:focus-visible {
  outline:2px solid #7c3aed; outline-offset:3px; border-radius:2px;
}
.sw3-create .sw3-service-guide__or {color:#71657b;}
@media(max-width:767px) {
  .sw3-create .sw3-service-guide {
    align-items:flex-start; gap:11px; margin:0 0 15px;
    padding:13px 12px; border-radius:13px;
  }
  .sw3-create .sw3-service-guide__icon {width:36px;height:36px;flex-basis:36px;border-radius:9px;}
  .sw3-create .sw3-service-guide__icon svg {width:21px;height:21px;}
  .sw3-create .sw3-service-guide__text {font-size:13px;line-height:1.5;gap:2px 5px;}
}

/* Create Job > Additional details.
   The child theme uses 3 equal columns, making existing long FAQ questions unusable.
   Here the FAQ receives a wider share on large desktops and a full row at
   smaller desktop widths. Optional field visibility and behavior are unchanged. */
@media(min-width:1400px) {
  body .dashboard_content #create-jobs .job-form-card.sw-job-extras:has(.faq-wap) > .row {
    display:grid !important;
    grid-template-columns:minmax(0,.78fr) minmax(0,1.72fr) minmax(0,.82fr) !important;
    gap:0 !important; align-items:start !important; min-width:0 !important;
  }
  body .dashboard_content #create-jobs .job-form-card.sw-job-extras:has(.faq-wap) > .row > .field-row {
    min-width:0 !important; max-width:100% !important; box-sizing:border-box !important;
    padding-left:17px !important; padding-right:17px !important;
  }
  body .dashboard_content #create-jobs .job-form-card.sw-job-extras:has(.faq-wap) > .row > .field-row:first-child {
    padding-left:0 !important;
  }
  body .dashboard_content #create-jobs .job-form-card.sw-job-extras:has(.faq-wap) > .row > .field-row:last-child {
    padding-right:0 !important;
  }
}
@media(min-width:1100px) and (max-width:1399px) {
  body .dashboard_content #create-jobs .job-form-card.sw-job-extras:has(.faq-wap) > .row {
    display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:0 !important; align-items:start !important;
  }
  body .dashboard_content #create-jobs .job-form-card.sw-job-extras:has(.faq-wap) > .row > .field-row {
    min-width:0 !important; max-width:100% !important; box-sizing:border-box !important;
    padding-left:0 !important; padding-right:0 !important;
  }
  body .dashboard_content #create-jobs .job-form-card.sw-job-extras:has(.faq-wap) > .row > .attachments-field {
    grid-column:1; grid-row:1; padding:0 18px 17px 0 !important;
    border-left:0 !important;
  }
  body .dashboard_content #create-jobs .job-form-card.sw-job-extras:has(.faq-wap) > .row > .sw-job-featured-field {
    grid-column:2; grid-row:1; padding:0 0 17px 18px !important;
    border-left:1px solid #e8dafa !important;
  }
  body .dashboard_content #create-jobs .job-form-card.sw-job-extras:has(.faq-wap) > .row > .sw-job-faq-field {
    grid-column:1 / -1; grid-row:2;
    padding:19px 0 0 !important; margin:0 !important;
    border-left:0 !important; border-top:1px solid #e8dafa !important;
  }
}
/* If an optional field has been hidden, don't leave an empty visual column. */
@media(min-width:1100px) {
  body .dashboard_content #create-jobs .job-form-card.sw-job-extras:has(.faq-wap) > .row:not(:has(> .attachments-field)) {
    grid-template-columns:minmax(0,1.6fr) minmax(0,.9fr) !important;
  }
  body .dashboard_content #create-jobs .job-form-card.sw-job-extras:has(.faq-wap) > .row:not(:has(> .sw-job-featured-field)) {
    grid-template-columns:minmax(0,.8fr) minmax(0,1.8fr) !important;
  }
}

/* FAQ accordion: readable preview, controls kept on the right, editor full width. */
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field,
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-wap,
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-list,
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-item {
  min-width:0 !important; max-width:100% !important; width:100% !important;
  box-sizing:border-box !important;
}
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-item {
  border:1px solid #e8ddf4; border-radius:11px; background:#fff;
  overflow:hidden; margin:0 0 10px;
}
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-top {
  box-sizing:border-box; display:flex !important; flex-flow:row nowrap !important;
  align-items:center !important; justify-content:space-between !important;
  gap:10px !important; min-width:0 !important; max-width:100% !important;
  padding:10px 12px !important;
}
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-top .faq_title {
  min-width:0 !important; max-width:100% !important;
  width:auto !important; flex:1 1 auto !important;
  display:flex !important; flex-flow:row nowrap !important; align-items:center !important;
  gap:10px !important;
}
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-top .faq-name-top {
  min-width:0 !important; max-width:100% !important; flex:1 1 auto !important;
  display:-webkit-box !important; -webkit-box-orient:vertical; -webkit-line-clamp:2;
  overflow:hidden !important; text-overflow:ellipsis !important;
  overflow-wrap:anywhere; word-break:normal !important;
  white-space:normal !important; line-height:1.45 !important;
  font-size:14px !important; font-weight:650 !important; color:#253447 !important;
}
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-top .according_btn {
  flex:none !important; width:34px !important; min-width:34px !important;
  height:34px !important; display:flex !important; align-items:center !important;
  justify-content:center !important; margin:0 !important;
  border-radius:8px !important; background:#f3eaff !important;
}
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-top .button-action {
  display:inline-flex !important; align-items:center !important; justify-content:flex-end !important;
  gap:7px !important; flex:0 0 auto !important; min-width:0 !important;
  width:auto !important; margin:0 !important; padding:0 !important;
}
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-top .button-action a {
  display:inline-flex !important; align-items:center !important; justify-content:center !important;
  width:34px !important; min-width:34px !important; height:34px !important;
  margin:0 !important; border-radius:8px !important; background:#f6f7f9 !important;
}
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-top .button-action a:hover {
  background:#f0e6ff !important;
}
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-content,
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-content .row,
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-content .field-row {
  box-sizing:border-box !important; min-width:0 !important; max-width:100% !important;
}
body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-content :is(input.questions,textarea.answer) {
  box-sizing:border-box !important; width:100% !important; min-width:0 !important;
  max-width:100% !important; font-size:14px !important;
}
@media(max-width:767px) {
  body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-top {gap:6px !important;padding:8px !important;}
  body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-top .faq_title {gap:7px !important;}
  body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-top .according_btn,
  body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-top .button-action a {
    width:31px !important; min-width:31px !important; height:31px !important;
  }
  body .dashboard_content #create-jobs :is(.sw-job-extras,.sw-job-faq-step) .sw-job-faq-field .faq-top .faq-name-top {font-size:13px !important;}
}


/* Create Service header: match the cleaner Add New Job presentation. */
.sw3-create .sw3-page-header{align-items:flex-start !important;justify-content:flex-start !important;margin:0 0 18px !important;}
.sw3-create .sw3-title-line{align-items:flex-start !important;gap:16px !important;}
.sw3-create .sw3-main-icon{width:60px !important;height:60px !important;flex:0 0 60px !important;border-radius:16px !important;background:#f7efff !important;border:1px solid #e3d2fb !important;display:flex !important;align-items:center !important;justify-content:center !important;box-shadow:none !important;}
.sw3-create .sw3-main-icon img{max-width:34px !important;max-height:34px !important;}
.sw3-create .sw3-eyebrow{margin:2px 0 8px !important;}
.sw3-create .sw3-page-header h2{margin:0 !important;}
.sw3-create .sw3-page-header p{margin:7px 0 0 !important;max-width:720px !important;}
.sw3-create .sw3-header-pill{display:none !important;}
@media(max-width:767px){
  .sw3-create .sw3-page-header{margin:0 0 14px !important;}
  .sw3-create .sw3-title-line{gap:12px !important;}
  .sw3-create .sw3-main-icon{width:52px !important;height:52px !important;flex-basis:52px !important;border-radius:14px !important;}
  .sw3-create .sw3-main-icon img{max-width:30px !important;max-height:30px !important;}
  .sw3-create .sw3-eyebrow{font-size:11px !important;letter-spacing:.12em !important;margin:0 0 6px !important;}
}

/* Create Job split steps: Step 5 FAQs, Step 6 Add Attachments + Featured. */
body .dashboard_content #create-jobs .sw-job-faq-step .row,
body .dashboard_content #create-jobs .sw-job-assets-step .row{align-items:flex-start !important;}
body .dashboard_content #create-jobs .sw-job-faq-step .sw-job-faq-field{padding-top:0 !important;}
body .dashboard_content #create-jobs .sw-job-assets-step .attachments-field,
body .dashboard_content #create-jobs .sw-job-assets-step .sw-job-featured-field{min-width:0 !important;max-width:100% !important;}
@media(min-width:1100px){
  body .dashboard_content #create-jobs .sw-job-assets-step .row{display:grid !important;grid-template-columns:minmax(0,1.35fr) minmax(290px,.85fr) !important;gap:0 !important;}
  body .dashboard_content #create-jobs .sw-job-assets-step .attachments-field{padding:0 18px 0 0 !important;border-left:0 !important;}
  body .dashboard_content #create-jobs .sw-job-assets-step .sw-job-featured-field{padding:0 0 0 18px !important;border-left:1px solid #e8dafa !important;}
}
@media(max-width:1099px){
  body .dashboard_content #create-jobs .sw-job-assets-step .attachments-field,
  body .dashboard_content #create-jobs .sw-job-assets-step .sw-job-featured-field{padding-left:0 !important;padding-right:0 !important;border-left:0 !important;}
  body .dashboard_content #create-jobs .sw-job-assets-step .sw-job-featured-field{padding-top:18px !important;margin-top:18px !important;border-top:1px solid #e8dafa !important;}
}
body .dashboard_content #create-jobs .sw-job-assets-step .attachments-list ul{margin:14px 0 0 !important;}
body .dashboard_content #create-jobs .sw-job-assets-step .toggle-row{min-height:56px !important;}

@media(min-width:1100px){
  body .dashboard_content #create-jobs .sw-job-assets-step .row:not(:has(> .attachments-field)),
  body .dashboard_content #create-jobs .sw-job-assets-step .row:not(:has(> .sw-job-featured-field)){grid-template-columns:minmax(0,1fr) !important;}
  body .dashboard_content #create-jobs .sw-job-assets-step .row:not(:has(> .attachments-field)) .sw-job-featured-field,
  body .dashboard_content #create-jobs .sw-job-assets-step .row:not(:has(> .sw-job-featured-field)) .attachments-field{padding:0 !important;border-left:0 !important;}
}


/* V3.3.65 — dedicated FAQ step must occupy its entire card.  The active
   Serpworks child theme retains a three-column :has(.faq-wap) rule from the
   old combined section. More specific selectors below override that rule
   without altering its behavior for any other job form section. */
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step.sw-job-faq-step:has(.faq-wap) > .row {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  box-sizing:border-box !important;
}
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step.sw-job-faq-step > .row > .sw-job-faq-field {
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  flex:0 0 100% !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
  box-sizing:border-box !important;
}
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .sw-job-faq-field > label {
  align-self:flex-start !important;
  margin-bottom:9px !important;
}
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .sw-job-faq-field #add-faq {
  order:1 !important;
  align-self:flex-start !important;
}
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .sw-job-faq-field .faq-wap {
  order:2 !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:13px 0 0 !important;
  padding:0 !important;
}
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .sw-job-faq-field .faq-list,
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .sw-job-faq-field .faq-list > .faq-item {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin-left:0 !important;
  margin-right:0 !important;
  box-sizing:border-box !important;
}
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .faq-content {
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  padding:16px !important;
  box-sizing:border-box !important;
}
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .faq-content > .row {
  display:block !important;
  margin:0 !important;
  padding:0 !important;
  min-width:0 !important;
  max-width:100% !important;
  width:100% !important;
}
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .faq-content > .row > .field-row {
  display:block !important;
  float:none !important;
  flex:none !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 0 16px !important;
  padding:0 !important;
  border:0 !important;
  box-sizing:border-box !important;
}
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .faq-content > .row > .field-row:last-child { margin-bottom:0 !important; }
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .faq-content input.questions,
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .faq-content textarea.answer {
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
  margin:0 !important;
  box-sizing:border-box !important;
}
body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .faq-content textarea.answer {
  min-height:122px;
  resize:vertical;
}
/* Previous child-theme rule also targets the new Attachments/Featured card.
   Keep exactly two columns on desktop, and only one when an optional field is hidden. */
@media(min-width:1100px){
  body .dashboard_content #create-jobs .job-form-card.sw-job-assets-step.sw-job-assets-step:has(.attachments-field,.toggle-row) > .row {
    display:grid !important;
    grid-template-columns:minmax(0,1.35fr) minmax(0,.85fr) !important;
    gap:0 !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
  }
  body .dashboard_content #create-jobs .job-form-card.sw-job-assets-step.sw-job-assets-step > .row > .field-row:first-child {
    min-width:0 !important;
    padding:0 18px 0 0 !important;
  }
  body .dashboard_content #create-jobs .job-form-card.sw-job-assets-step.sw-job-assets-step > .row > .field-row + .field-row {
    min-width:0 !important;
    padding:0 0 0 18px !important;
    border-left:1px solid #e8dafa !important;
  }
  body .dashboard_content #create-jobs .job-form-card.sw-job-assets-step.sw-job-assets-step > .row:not(:has(> .attachments-field)),
  body .dashboard_content #create-jobs .job-form-card.sw-job-assets-step.sw-job-assets-step > .row:not(:has(> .sw-job-featured-field)) {
    grid-template-columns:minmax(0,1fr) !important;
  }
  body .dashboard_content #create-jobs .job-form-card.sw-job-assets-step.sw-job-assets-step > .row:not(:has(> .attachments-field)) > .field-row,
  body .dashboard_content #create-jobs .job-form-card.sw-job-assets-step.sw-job-assets-step > .row:not(:has(> .sw-job-featured-field)) > .field-row {
    padding:0 !important;
    border:0 !important;
  }
}
@media(max-width:767px){
  body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step {min-width:0 !important;max-width:100% !important;}
  body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .faq-content {padding:12px !important;}
  body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .faq-top .faq-name-top {overflow-wrap:anywhere !important;}
  body .dashboard_content #create-jobs .job-form-card.sw-job-faq-step .faq-top .button-action {flex-shrink:0 !important;}
}

/* V3.3.65 — same compact heading hierarchy as Add New Job: icon + title +
   subtitle, without the purple marketplace eyebrow. The tutorial stays below. */
.sw3-create .sw3-page-header {
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:0 !important;
  margin:0 0 18px !important;
}
.sw3-create .sw3-title-line {display:flex !important;align-items:center !important;gap:14px !important;min-width:0 !important;}
.sw3-create .sw3-main-icon {
  width:49px !important;
  height:49px !important;
  flex:0 0 49px !important;
  border-radius:14px !important;
  background:#f0e6ff !important;
  border:1px solid #e7d6ff !important;
  box-shadow:none !important;
}
.sw3-create .sw3-main-icon img {width:28px !important;height:28px !important;max-width:28px !important;max-height:28px !important;}
.sw3-create .sw3-page-header h2 {font-size:28px !important;font-weight:760 !important;line-height:1.2 !important;letter-spacing:-.02em !important;margin:0 0 4px !important;color:#0c2831 !important;}
.sw3-create .sw3-page-header p {font-size:14px !important;line-height:1.5 !important;margin:0 !important;color:#6c6981 !important;}
@media(max-width:767px){
  .sw3-create .sw3-title-line {gap:12px !important;align-items:center !important;}
  .sw3-create .sw3-main-icon {width:41px !important;height:41px !important;flex-basis:41px !important;border-radius:11px !important;}
  .sw3-create .sw3-main-icon img {width:23px !important;height:23px !important;max-width:23px !important;max-height:23px !important;}
  .sw3-create .sw3-page-header h2 {font-size:23px !important;line-height:1.2 !important;}
  .sw3-create .sw3-page-header p {font-size:13px !important;line-height:1.45 !important;}
}
