/* Fit pages only (and the reminder banner/popup for seekers who still need Fit). */

/* Banner: contained notice below the green nav, same family as the employer-profile notice. */
.wc-fit-banner {
  position: relative;
  max-width: 1120px;
  margin: 12px auto 8px;
  background: #fff8e8;
  border: 1px solid #ead9a8;
  border-radius: 6px;
  padding: 12px 44px 12px 16px;
  font-size: 16px;
  line-height: 1.45;
  color: #3d320c;
  box-sizing: border-box;
}
.wc-fit-banner-text { margin: 0; }
button.wc-fit-banner-close,
.wc-fit-banner-close {
  position: absolute;
  right: 8px;
  top: 4px;
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 30px;
  padding: 0 !important;
  margin: 0 !important;
  text-align: center;
  font-size: 22px;
  font-weight: 400;
  font-family: inherit;
  color: #3d320c !important;
  text-decoration: none !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 4px;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer;
}
button.wc-fit-banner-close:hover,
button.wc-fit-banner-close:focus,
.wc-fit-banner-close:hover,
.wc-fit-banner-close:focus {
  background: rgba(0,0,0,.08) !important;
  color: #000 !important;
  text-decoration: none !important;
  outline: none;
}

.wc-fit-modal {
  position: fixed;
  z-index: 10000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.45);
}
.wc-fit-modal-card {
  position: relative;
  background: #fff;
  max-width: 520px;
  margin: 12vh auto;
  padding: 22px 24px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.wc-fit-modal-card h2 { margin: 0 40px 10px 0; font-size: 22px; }
.wc-fit-modal-close {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #333;
  border-radius: 4px;
}
.wc-fit-modal-close:hover,
.wc-fit-modal-close:focus { background: #f0f0f0; }
.wc-fit-modal-foot { margin: 14px 0 0; }

/* Employer (and couple) start page: white centered card. */
.wc-fit-start-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  padding: 28px 32px;
  box-sizing: border-box;
}
.wc-fit-btn-secondary {
  background: #fff !important;
  border: 1px solid #1c739f !important;
  color: #1c739f !important;
}

/* Free-couple start: résumé-hidden banner as a neutral info notice, not an error. */
.wc-fit-start-page .wc-psp-banner-hidden,
.wc-fit-page .wc-psp-banner-hidden {
  border: 1px solid #b9d0de;
  background: #f3f9fc;
  color: #1a3a4a;
}

/* Job page boxes. */
.wc-fit-listing-tools,
.wc-fit-job {
  border: 1px solid #d4e4ee;
  background: #f7fbfe;
  padding: 10px 12px;
  margin: 0 0 12px;
  border-radius: 6px;
  font-size: 16px;
}

/* Quick/full questionnaire: readable sentence-case labels, real headings, spacing. */
.wc-fit-form label,
.wc-fit-form .form-item > label,
.wc-fit-form .fieldset-legend,
.wc-fit-form .form-type-checkboxes > label,
.wc-fit-form .form-type-radios > label,
.wc-fit-form .form-type-select > label,
.wc-fit-form .form-type-textfield > label {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 16px !important;
  font-weight: 600;
  color: #222 !important;
}
.wc-fit-form .form-checkboxes label,
.wc-fit-form .form-radios label,
.wc-fit-form .form-type-checkbox label,
.wc-fit-form .form-type-radio label {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-size: 15px !important;
  font-weight: 400;
  color: #222 !important;
}
.wc-fit-form .form-item { margin: 0 0 1.35em; }
.wc-fit-form fieldset.wc-fit-section {
  margin: 0 0 2em;
  border: 0;
  padding: 0;
  background: transparent;
}
.wc-fit-section-title,
.wc-fit-form legend,
.wc-fit-form legend.panel-heading,
.wc-fit-form .panel-heading,
.wc-fit-form .fieldset-legend,
.wc-fit-form .panel-title.fieldset-legend,
.wc-fit-form fieldset.wc-fit-section > legend,
.wc-fit-form fieldset > legend {
  display: block !important;
  width: 100% !important;
  float: none !important;
  font-size: 1.25em !important;
  font-weight: 700 !important;
  color: #14324a !important;
  margin: 1.4em 0 0.6em !important;
  padding: 0 !important;
  text-align: center !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}
.wc-fit-form .wc-fit-privacy { margin: 0 0 1em; font-size: 15px; color: #333; }

/* Safeguard: never shrink the questionnaire to a narrow column. */
.wc-fit-form,
.wc-fit-form .wc-fit-section,
.wc-fit-form fieldset,
.wc-fit-form .form-wrapper,
.wc-fit-form .form-item,
.wc-fit-form .form-checkboxes,
.wc-fit-form .form-radios,
.wc-fit-form .form-type-checkboxes,
.wc-fit-form .form-type-radios {
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  clear: both;
}
.wc-fit-form .form-item > label,
.wc-fit-form .form-type-checkboxes > label,
.wc-fit-form .form-type-radios > label,
.wc-fit-form .form-type-select > label,
.wc-fit-form .form-type-textfield > label {
  display: block;
  float: none !important;
  width: auto !important;
  max-width: 100% !important;
  white-space: normal;
}

/* Theme (customstyle.css): section.helpsection{margin-top:23px}
   .helpsection .sectionhelp{padding:42px 7px;border:1px solid #ccc}
   Bootstrap .container is width 750/970/1170 and centered with
   margin-left/right:auto. Zero only vertical spacing (same pattern as
   .helpsection.wc-cp-host) so the banner lines up with the page container.
   Do not set margin:0 or padding:0 on .container — that left-aligns it
   at ~780px. Do not depend on JS: also match :has(#wc-fit-banner). */
section.helpsection:has(#wc-fit-banner),
section.helpsection.wc-fit-banner-host,
.helpsection:has(#wc-fit-banner),
.helpsection.wc-fit-banner-host,
.helpsection:has(#wc-fit-banner) .sectionhelp,
.helpsection.wc-fit-banner-host .sectionhelp {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: 0 !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
.helpsection:has(#wc-fit-banner) .sectionhelp,
.helpsection.wc-fit-banner-host .sectionhelp {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.helpsection:has(#wc-fit-banner) .container,
.helpsection.wc-fit-banner-host .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: 0 !important;
  background: none !important;
  background-color: transparent !important;
  box-shadow: none !important;
  min-height: 0 !important;
}
.helpsection:has(#wc-fit-banner) .wc-fit-banner,
.helpsection.wc-fit-banner-host .wc-fit-banner {
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  margin: 12px 0;
}

/* page--user.tpl.php wraps all user pages, including Fit start, in
   .registration-form-card (new_custom.css: white, 30px pad, shadow).
   Flatten that wrapper so only .wc-fit-start-card shows. */
html body.wc-fit-start-page .registration-form-card,
html body.wc-fit-start-page.page-user .registration-form-card,
html body.wc-fit-start-page .col-md-9 > .registration-form-card,
html body.wc-fit-start-page .registration-form-card .main-heading-wrapper {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-bottom: 0 !important;
}

/* Dismissible confirmation after "Don't show me this again". */
.messages.wc-fit-optout-ack,
.wc-fit-optout-ack {
  position: relative;
  padding-right: 44px;
}
button.wc-fit-optout-ack-close,
.wc-fit-optout-ack-close {
  appearance: none;
  -webkit-appearance: none;
  position: absolute;
  top: 6px;
  right: 8px;
  background: transparent;
  border: 0;
  padding: 0 6px;
  margin: 0;
  box-shadow: none;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  color: #27620a;
}
button.wc-fit-optout-ack-close:hover,
button.wc-fit-optout-ack-close:focus,
.wc-fit-optout-ack-close:hover,
.wc-fit-optout-ack-close:focus {
  color: #000;
  outline: 1px dotted #27620a;
}


/* Green next-steps box after Fit answers are saved. */
.wc-fit-saved-next {
  background: #eef8ee;
  border: 1px solid #9cc89c;
  border-radius: 6px;
  padding: 16px 18px 14px;
  margin: 0 0 18px;
  color: #1a3d1a;
  font-size: 16px;
  line-height: 1.5;
}
.wc-fit-saved-lead {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 17px;
}
.wc-fit-saved-next-head {
  margin: 0 0 8px;
  font-weight: 700;
}
.wc-fit-saved-steps {
  margin: 0 0 12px;
  padding-left: 22px;
}
.wc-fit-saved-steps li {
  margin: 0 0 10px;
}
.wc-fit-saved-btn {
  display: inline-block;
  margin: 0 8px 4px 0;
  font-weight: 700;
}
a.btn.wc-fit-saved-btn-sec {
  background: #fff;
  border: 1px solid #1c739f;
  color: #1c739f;
}
.wc-fit-saved-edit {
  margin: 0;
}
.wc-fit-saved-next-bottom {
  margin: 18px 0 16px;
}
.wc-fit-saved-next:focus {
  outline: 2px solid #27620a;
  outline-offset: 2px;
}

/* Keep the green main nav visible on Fit pages at desktop width.
   Pre-existing: after Save on /fit/quick, only the thin green bar showed. */
@media (min-width: 768px) {
  body.wc-fit-page nav.navbar .navbar-collapse,
  body.wc-fit-page nav.navbar .navbar-collapse.collapse,
  body.wc-fit-page.page-user nav.navbar .navbar-collapse,
  body.wc-fit-page.page-user nav.navbar .navbar-collapse.collapse {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    max-height: none !important;
  }
  body.wc-fit-page nav.navbar .nav.navbar-nav,
  body.wc-fit-page nav.navbar .nav.navbar-nav > li,
  body.wc-fit-page nav.navbar .nav.navbar-nav > li > a {
    display: block !important;
    visibility: visible !important;
  }
  body.wc-fit-page nav.navbar .nav.navbar-nav > li {
    float: left;
  }
  body.wc-fit-page nav.navbar #custom-search-input,
  body.wc-fit-page nav.navbar .navbar-collapse form {
    display: block !important;
    visibility: visible !important;
  }
}


/* Access Denied (custom 403 node): hide the node "Submitted by" line
   and the résumé-visibility banner. Body class is added in
   preprocess_html; page-node-45728 is the site_403 node on this site. */
body.wc-access-denied .submitted,
body.page-node-45728 .submitted,
body.wc-access-denied .wc-psp-banner,
body.page-node-45728 .wc-psp-banner {
  display: none !important;
}


/* Work values (quick-match Q17 and full-questionnaire item 13.1).
   One-line explainer under each value name, above the select, readable at 390. */
.wc-fit-form .wc-fit-twa .form-type-select {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.wc-fit-form .wc-fit-twa .form-type-select > label {
  order: 1;
  margin-bottom: 2px;
}
.wc-fit-form .wc-fit-twa .form-type-select > .description,
.wc-fit-form .wc-fit-twa .form-type-select > .help-block {
  order: 2;
  color: #5a6570;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  margin: 0 0 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
.wc-fit-form .wc-fit-twa .form-type-select > select,
.wc-fit-form .wc-fit-twa .form-type-select > .form-select,
.wc-fit-form .wc-fit-twa .form-type-select > .form-control {
  order: 3;
}

/* Achievement (the first select) was missing its border and box while the
   other five had them. Cause: the theme rule
     select:focus { outline: none !important; border: 0 !important; }
   strips the border on focus. The first select is the one a click, tab, or
   focus restoration hits, so it is the one that looks unstyled. Markup is
   the same on all six (no first-child rule removes the unfocused border).
   Pin the same box on every work-value select, including :focus. */
.wc-fit-form .wc-fit-twa select,
.wc-fit-form .wc-fit-twa select.form-control,
.wc-fit-form .wc-fit-twa select.form-select,
.wc-fit-form .wc-fit-twa .form-item:first-child select,
.wc-fit-form .wc-fit-twa .form-item:first-of-type select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  border: 1px solid #afafaf !important;
  border-radius: 3px;
  padding: 6px 36px 6px 12px;
  background-color: #fff;
  background-image: url(/sites/all/themes/working_couples/assets/images/dropdownarrow.png);
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: #111;
}
.wc-fit-form .wc-fit-twa select:focus,
.wc-fit-form .wc-fit-twa select.form-control:focus,
.wc-fit-form .wc-fit-twa .form-item:first-of-type select:focus {
  outline: 2px solid #1c739f !important;
  outline-offset: 1px;
  border: 1px solid #1c739f !important;
  box-shadow: 0 0 0 2px rgba(28, 115, 159, 0.22);
}

@media (max-width: 400px) {
  .wc-fit-form .wc-fit-twa .form-type-select > .description,
  .wc-fit-form .wc-fit-twa .form-type-select > .help-block {
    font-size: 12px;
    line-height: 1.35;
  }
}

/* Empty-state on /user/.../fit-matches while results are still calculating. */
.wc-fit-matches-browse { margin: 14px 0 0; }
.wc-fit-matches-browse-btn { display: inline-block; }

/* /post-jobs-couples (node 49140, employer landing page): hide the node
   "Submitted by ... on <date>" line, same approach as the Access Denied fix. */
body.page-node-49140 .submitted,
body.node-type-employer-landing-page .submitted,
body.node-type-employer-landing-page article.node > header:empty {
  display: none !important;
}
/* "Why List Your Job" cards: inline SVG fallback when the icon file is missing. */
.benefit-icon .benefit-icon-svg {
  display: block;
  width: 28px;
  height: 28px;
  color: #3f9c35;
}
.benefit-icon img { max-width: 34px; max-height: 34px; }
/* Theme cart rule "table thead tr th:nth-child(4){display:none}" hid the 4th
   header (Match label on top-matches, Fit on the applicants list). */
.wc-sc-matches-table thead tr th:nth-child(4),
body.page-node-applicants #block-system-main table thead tr th:nth-child(4),
body.page-node-top-matches #block-system-main table thead tr th:nth-child(4) {
  display: table-cell !important;
}

/* STAGE tmtw14 (Lee t1469u): saved-box buttons wrap and fit inside the box on phones. */
.wc-fit-saved-next,
.wc-fit-saved-steps,
.wc-fit-saved-steps li {
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
}
.wc-fit-saved-next a.btn.wc-fit-saved-btn {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  overflow-wrap: break-word;
  word-wrap: break-word;
  height: auto;
  line-height: 1.3;
  text-align: center;
}
@media (max-width: 480px) {
  .wc-fit-saved-next { padding: 14px 12px 12px; }
  .wc-fit-saved-steps { padding-left: 18px; }
  .wc-fit-saved-next a.btn.wc-fit-saved-btn { display: block; width: 100%; margin: 0 0 6px; padding-left: 10px; padding-right: 10px; }
}

/* STAGE tmtw14 (Lee t1470u): work-value explainer in the label, under the name, above the select. */
.wc-fit-form .wc-fit-twa .form-type-select > label .wc-fit-twa-explain {
  display: block;
  margin: 2px 0 4px;
  color: #5a6570;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}
@media (max-width: 400px) {
  .wc-fit-form .wc-fit-twa .form-type-select > label .wc-fit-twa-explain { font-size: 12px; line-height: 1.35; }
}
