/* Serpworks Job Creation typography/spacing parity with Create Service — V3.3.67.
 * Presentation-only. All six sections, WordPress editor, Select2, field values,
 * AJAX handlers, FAQ, attachments, validation and featured toggle are untouched.
 * Selectors deliberately exceed existing FreeAgent child-theme specificity. */

/* Card density matches the 24px-padded service step rather than wasting vertical space. */
body .dashboard_content #create-jobs.job-form > .job-form-card {
  padding:20px 24px 21px !important;
  margin-bottom:14px !important;
}
body .dashboard_content #create-jobs.job-form > .job-form-card > .job-form-card__head {
  gap:13px !important;
  margin-bottom:16px !important;
  padding-bottom:14px !important;
}
body .dashboard_content #create-jobs.job-form > .job-form-card > .job-form-card__head h5 {
  font-size:21px !important;
  line-height:1.35 !important;
  letter-spacing:-.25px !important;
  font-weight:750 !important;
}
body .dashboard_content #create-jobs.job-form > .job-form-card > .job-form-card__head p {
  font-size:14px !important;
  line-height:1.5 !important;
}

/* Keep original Bootstrap columns; only remove stacked vertical gaps/margins. */
body .dashboard_content #create-jobs.job-form > .job-form-card > .row {
  row-gap:12px !important;
}
body .dashboard_content #create-jobs.job-form > .job-form-card > .row > .field-row {
  min-width:0 !important;
  min-height:0 !important;
  margin-top:0 !important;
  margin-bottom:0 !important;
}
body .dashboard_content #create-jobs.job-form .job-form-card .field-row > label:not(.toggle-checkbox),
body .dashboard_content #create-jobs.job-form .job-form-card .toggle-row > div > label {
  font-size:14px !important;
  line-height:1.5 !important;
  font-weight:700 !important;
  color:#26333c !important;
  margin-bottom:7px !important;
}
body .dashboard_content #create-jobs.job-form .job-form-card .field-row .field-hint,
body .dashboard_content #create-jobs.job-form .job-form-card .field-row .char-count,
body .dashboard_content #create-jobs.job-form .job-form-card .field-row .field-error {
  font-size:13px !important;
  line-height:1.5 !important;
}

/* Same 15px control typography and 46px field height as Service Creation. */
body .dashboard_content #create-jobs.job-form .job-form-card .field-row input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
body .dashboard_content #create-jobs.job-form .job-form-card .field-row select,
body .dashboard_content #create-jobs.job-form .job-form-card .field-row textarea,
body .dashboard_content #create-jobs.job-form .job-form-card .field-row .select2-selection__rendered,
body .dashboard_content #create-jobs.job-form .job-form-card .field-row .select2-search__field {
  font-size:15px !important;
  line-height:1.5 !important;
}
body .dashboard_content #create-jobs.job-form .job-form-card .field-row > :is(input[type="text"],input[type="number"],input[type="email"],select),
body .dashboard_content #create-jobs.job-form .job-form-card .field-row .select2-container .select2-selection {
  min-height:46px !important;
  border-radius:10px !important;
}
body .dashboard_content #create-jobs.job-form .job-form-card .field-row .select2-container .select2-selection {
  padding-top:5px !important;
  padding-bottom:5px !important;
}
body .dashboard_content #create-jobs.job-form .job-form-card .field-row input::placeholder,
body .dashboard_content #create-jobs.job-form .job-form-card .field-row textarea::placeholder {
  font-size:15px !important;
  line-height:1.5 !important;
}

/* Description editor: larger toolbar text, service-equivalent legibility, and less
 * wasted space between its field label, mode switch and editor. Avoid changing
 * TinyMCE initialization, editable content or its actual stored markup. */
body .dashboard_content #create-jobs.job-form .job-form-card .wp-editor-tabs {
  margin-top:3px !important;
}
body .dashboard_content #create-jobs.job-form .job-form-card .wp-switch-editor {
  font-size:13px !important;
  line-height:1.4 !important;
}
body .dashboard_content #create-jobs.job-form .job-form-card .wp-editor-wrap .quicktags-toolbar :is(input,button),
body .dashboard_content #create-jobs.job-form .job-form-card .wp-editor-wrap .mce-toolbar :is(button,.mce-txt),
body .dashboard_content #create-jobs.job-form .job-form-card .wp-editor-area {
  font-size:14px !important;
}
body .dashboard_content #create-jobs.job-form .job-form-card .wp-editor-area {
  font-size:15px !important;
  line-height:1.6 !important;
}

/* Previous wide-screen child-theme extras use large label spacing and fixed
 * minimum row heights. Keep their column layouts while reducing vertical waste. */
body .dashboard_content #create-jobs.job-form .job-form-card.sw-job-faq-step .sw-job-faq-field > label,
body .dashboard_content #create-jobs.job-form .job-form-card.sw-job-assets-step :is(.attachments-field > label,.toggle-row > div > label) {
  font-size:14px !important;
  line-height:1.5 !important;
  margin-bottom:7px !important;
}
body .dashboard_content #create-jobs.job-form .job-form-card .toggle-row .field-hint {
  font-size:13px !important;
  line-height:1.5 !important;
}

@media(max-width:767px) {
  body .dashboard_content #create-jobs.job-form > .job-form-card {
    padding:17px 16px 18px !important;
    margin-bottom:12px !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card > .job-form-card__head {
    margin-bottom:14px !important;
    padding-bottom:12px !important;
    gap:11px !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card > .job-form-card__head h5 {
    font-size:19px !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card > .job-form-card__head p {
    font-size:13px !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card > .row {
    row-gap:10px !important;
  }
  /* Avoid restoring old 21px bottom margins on mobile optional sections. */
  body .dashboard_content #create-jobs.job-form > .job-form-card > .row > .field-row {
    margin-bottom:0 !important;
  }
}


/* V3.3.69 — fix the actual mobile Step 6 grid/gutter alignment.
   Bootstrap's .row negative margins plus earlier zero-padding rules caused
   the Upload label and Featured area to escape the card's inner content line.
   Scoped to the regular JWS job form and <=767px only. */
@media (max-width:767px) {
  body .dashboard_content #create-jobs.job-form > .job-form-card.sw-job-assets-step > .row {
    display:flex !important;
    flex-direction:column !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
    padding:0 !important;
    gap:0 !important;
    row-gap:0 !important;
    box-sizing:border-box !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card.sw-job-assets-step > .row > :is(.attachments-field,.sw-job-featured-field) {
    display:block !important;
    flex:0 0 auto !important;
    float:none !important;
    box-sizing:border-box !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    border-left:0 !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card.sw-job-assets-step > .row > .attachments-field > label {
    display:block !important;
    padding:0 !important;
    margin:0 0 10px !important;
    font-size:14px !important;
    line-height:1.45 !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card.sw-job-assets-step > .row > .attachments-field > button.outline_btn {
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    align-self:flex-start !important;
    width:auto !important;
    min-height:44px !important;
    height:auto !important;
    padding:9px 18px !important;
    margin:0 !important;
    border-radius:9px !important;
    white-space:nowrap !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card.sw-job-assets-step > .row > .attachments-field .attachments-list {
    width:100% !important;
    max-width:100% !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card.sw-job-assets-step > .row > .sw-job-featured-field {
    border-top:1px solid #e8dafa !important;
    padding:18px 0 0 !important;
    margin:19px 0 0 !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card.sw-job-assets-step .sw-job-featured-field .toggle-row {
    display:flex !important;
    flex-flow:row nowrap !important;
    align-items:flex-start !important;
    justify-content:space-between !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    gap:12px !important;
    margin:0 !important;
    padding:0 !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card.sw-job-assets-step .sw-job-featured-field .toggle-row > div {
    display:block !important;
    flex:1 1 auto !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card.sw-job-assets-step .sw-job-featured-field .toggle-row > div > label {
    display:block !important;
    margin:0 0 6px !important;
    padding:0 !important;
    font-size:14px !important;
    line-height:1.45 !important;
    color:#26333c !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card.sw-job-assets-step .sw-job-featured-field .toggle-row > div > .field-hint {
    display:block !important;
    margin:0 !important;
    padding:0 !important;
    font-size:13px !important;
    line-height:1.5 !important;
  }
  body .dashboard_content #create-jobs.job-form > .job-form-card.sw-job-assets-step .sw-job-featured-field .toggle-row > .toggle-checkbox {
    display:block !important;
    position:relative !important;
    flex:0 0 auto !important;
    align-self:flex-start !important;
    margin:1px 0 0 !important;
  }
}
