/* cae-website-redesign-theme-site-overlay-fix-jcinquiry-cae: assets/css/fix-jcinquiry-cae.css */
/* Just Cut, For Farmers: Inquiry Form page (/programs-places/just-cut/for-farmers/inquiry-form/) and the For Farmers
 * tab row's third tab (ClickUp 869ew7upy, Kate 2026-10-11 21:12Z: "Put the Sell to Us form on its own page in the FOR
 * FARMERS section with new tab: Inquiry Form"). Enqueued on both routes (functions.php).
 *
 * 1. Tab row (both pages). The compiled row is capped at 281 wide (two drawn tabs); a third tab needs the cap released.
 *    The third tab (.cae-jcf-tablink) is a plain page link: its wrapper is outside the For Farmers tab switch's
 *    [class*="forfarmers-tabs-generic__actions"] selector, so fix-jcfarmers-cae.js never intercepts it. Its idle and
 *    current grounds are the switch's own (white / granite, mint green / white). */
body.cae-page--cae-programs-services-justcut-forfarmers [class*="forfarmers-tabs-generic__row-figma-generic-row-5563-263857"],
body.cae-page--cae-programs-services-justcut-forfarmers-inquiryform [class*="forfarmers-tabs-generic__row-figma-generic-row-5563-263857"] {
  width: auto !important;
  max-width: none !important;
  flex-wrap: wrap;
  justify-content: center;
}
/* The band lane in style.css pins the tab section itself to min(281px, 100%) !important; three tabs need ~460, and ~640 since
 * the third tab reads "Become a Supplier Form" (Kate 869ew7upy 2026-10-18 13:49Z; 600 wrapped it to a second line at 1440/1024). */
body.cae-page--cae-programs-services-justcut-forfarmers .wp-site-blocks .wp-block-post-content > .alignfull[class*="forfarmers-tabs-generic"]:not([class*="__"]),
body.cae-page--cae-programs-services-justcut-forfarmers-inquiryform .wp-site-blocks .wp-block-post-content > .alignfull[class*="forfarmers-tabs-generic"]:not([class*="__"]) {
  width: min(800px, 100%) !important;
}
body.cae-page--cae-programs-services-justcut-forfarmers .cae-jcf-tablink a.wp-block-button__link.wp-block-button__link,
body.cae-page--cae-programs-services-justcut-forfarmers-inquiryform [class*="forfarmers-tabs-generic__actions"] a.wp-block-button__link.wp-block-button__link {
  background-color: #fff;
  color: var(--wp--preset--color--primary-granite-gray, #767769);
}
body.cae-page--cae-programs-services-justcut-forfarmers-inquiryform .cae-jcf-tablink a.wp-block-button__link.wp-block-button__link[aria-current] {
  background-color: rgb(131, 179, 144);
  color: #fff;
}

/* 2. The FOR FARMERS title bar, as on For Farmers (fix-jcfarmers-cae.css, which is gated to that page). */
body.cae-page--cae-programs-services-justcut-forfarmers-inquiryform .wp-site-blocks .wp-block-post-content > .cae-jcf-titlebar.cae-jcf-titlebar {
  background: var(--wp--preset--color--magenta, #B22C79) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 24px 24px 20px !important;
}
body.cae-page--cae-programs-services-justcut-forfarmers-inquiryform .cae-jcf-titlebar__title {
  margin: 0 !important;
  color: #fff;
  font-family: 'Acumin Pro Condensed';
  font-weight: 900;
  font-size: 48px;
  line-height: var(--wp--custom--line-heights--h-2-acumin-black);
  text-align: center;
  text-transform: uppercase;
}
body.cae-page--cae-programs-services-justcut-forfarmers-inquiryform .wp-site-blocks .wp-block-post-content > [class*="forfarmers-tabs-generic"].alignfull {
  margin-top: 40px !important;
}

/* 3. The form section: the Community Room Inquiry Form anatomy (fix-commroom-cae.css section 10 + Kate's handoff
 *    Part A/D values): cream card 1072 wide, 48 / 40 padding, 32 gap, in a photo frame 56 / 64 outside it (here the
 *    client doc's BACKGROUND PHOTO for this form, I0000.Cp15CXNXY4, with its published caption), centred uppercase brick
 *    heading, the white holder (44 / 24 / 24, soft shadow), First | Last, Email | Phone, Subject | Farm/Business side by
 *    side, Message full width, the butter-yellow Submit pill. forms-cae.css paints labels and controls. */
body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq.cae-jcinq {
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  padding: 116px 120px 112px;
}
body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1072px;
  padding: 48px 40px;
  background-color: var(--wp--preset--color--light-cream);
}
body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card::before {
  content: "";
  position: absolute;
  inset: -56px -64px;
  z-index: -1;
  pointer-events: none;
  background: url('../../images/client-final/justcut/forfarmers/jcf-sell-to-us-ground-I0000.Cp15CXNXY4.webp?ver=1623721533') center / cover no-repeat #f5f5f5;
}
/* The card's own cream ground repainted above the frame (the Community Room form's ::after, fix-commroom-cae.css). */
body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: inherit;
}
body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card > * {
  margin-block: 0 !important;
}
body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) h1.cae-jcinq__heading {
  margin: 0;
  font-size: var(--wp--preset--font-size--h-2-acumin-black);
  line-height: var(--wp--custom--line-heights--h-2-acumin-black);
  font-weight: var(--wp--custom--font-weights--h-2-acumin-black);
  font-family: var(--wp--preset--font-family--acumin-pro-condensed);
  color: #b15533 !important;
  text-align: center !important;
  text-transform: uppercase;
}
/* Kate 869ew7upy, 2026-10-18 12:31Z: the Sell to Us form title in Just Cut magenta. Scoped to the Sell to Us page only
 * (seat 10-18: the Buy from Us form belongs to lane jcforms-1018, which applies the same token). The one shared token is
 * the theme preset --wp--preset--color--magenta (theme.json "magenta", #B22C79 = rgb(178, 44, 121), the landing's colour). */
/* Kate 869ew7v50, 2026-10-18 13:00Z: "change form title to magenta" - the Buy from Us title joins this rule, same token. */
body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) h1.cae-jcinq__heading {
  color: var(--wp--preset--color--magenta) !important;
}
body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__intro {
  margin: 0;
  font-size: var(--wp--preset--font-size--p-1-pro-regular);
  line-height: var(--wp--custom--line-heights--p-1-pro-regular);
  font-weight: var(--wp--custom--font-weights--p-1-pro-regular);
  font-family: var(--wp--preset--font-family--acumin-pro);
  color: var(--wp--preset--color--primary-granite-gray);
  text-align: center;
}
body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__divider {
  width: 100%;
  margin: 0;
  border: 0;
  border-block-start: 1px solid #c7c6c6;
  opacity: 1;
}
/* The photo frame (the card's ::before, inset -56 / -64) takes the site photo idiom (photo-credit-cae.js/.css, ClickUp
 * 869ew7upy): the card is the [data-cae-photo="feature"] wrapper, so the credit pill (from photo-credits.json for the frame's
 * file) and the "?" caption button sit at the FRAME's bottom-right corner - the feature family's 16 / 10 from the frame
 * edges, i.e. those offsets minus the frame overhang. */
body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card[data-cae-photo] {
  --cae-photo-r: -48px;
  --cae-photo-b: -46px;
}
/* The fields sit one level down (holder, rows), so the flow form's child-scoped resets are restated at any depth. */
.jcinq-form .jcinq-form__holder {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
  padding: 44px 24px 24px;
  background: #fff;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
}
.jcinq-form .site-form__field {
  position: static;
  width: auto;
  height: auto;
  max-width: none;
}
.jcinq-form .site-form__field > .site-form__control {
  height: auto;
}
.jcinq-form .jcinq-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
.jcinq-form .jcinq-form__actions {
  display: flex;
  justify-content: center !important;
  width: 100%;
  margin: 8px 0 0;
}
.jcinq-form .jcinq-form__submit > .wp-block-button__link.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 51px;
  box-sizing: border-box;
  padding-inline: 24px;
  border-radius: 40px;
  background-color: var(--wp--preset--color--primary-butter-yellow);
  color: var(--wp--preset--color--white);
  font-size: var(--wp--preset--font-size--p-2-regular-acumin-pro-cond);
  line-height: var(--wp--custom--line-heights--p-2-regular-acumin-pro-cond);
  font-weight: var(--wp--custom--font-weights--p-2-regular-acumin-pro-cond);
  font-family: var(--wp--preset--font-family--acumin-pro-condensed);
}
@media (max-width: 1023.98px) {
  body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq.cae-jcinq {
    padding: 92px 20px 64px;
  }
  body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card::before {
    inset: -32px -16px;
  }
  body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card[data-cae-photo] {
    --cae-photo-r: 0px;
    --cae-photo-b: -22px;
  }
}
/* Below 1024 the open caption hangs DOWNWARD, under the credit pill, the program-landing banners' phone form
 * (banner-caption-cae.css section 7, 869ew7q6e). Upward from the "?" at the card's bottom-right it lay over the form:
 * at 390 it covered the Submit pill (95 x 35 of its 96 x 44 presented px, ticket 1amzwvg9nhd), and below ~740 the
 * centred Submit runs under its 304-px box. Hanging under the photo frame it covers no field at any width. */
@media (max-width: 1023.98px) {
  body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card[data-cae-photo] > .cae-photo__cap {
    bottom: auto;
    top: calc(100% - var(--cae-photo-b) + 12px);
  }
  body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card[data-cae-photo] > .cae-photo__cap::after {
    top: auto;
    bottom: 100%;
    border-top: 0;
    border-bottom: 7px solid #fff;
  }
}
@media (max-width: 781.98px) {
  body:is(.cae-page--cae-programs-services-justcut-forfarmers-inquiryform, .cae-page--cae-programs-services-justcut-forbuyer-inquiryform) .cae-jcinq__card {
    padding: 32px 20px;
  }
  .jcinq-form .jcinq-form__row {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* 4. Buy from Us: "What Products Are You Interested In?" multi-select dropdown (Kate Shawver, ClickUp 869ew7vj9,
 * 2026-10-18 12:59Z). The toggle is a form control drawn exactly as the site's select (forms-cae.css
 * .site-form__control--select: white, 1px #c7c6c6, the dropdown chevron at right 16px); the list opens below it in
 * flow as the site's checkbox rows (forms-cae.css choice rows) in a white panel that scrolls past ~6 rows. Behaviour:
 * forms-lowering.js multiselect(). Without script the toggle stays hidden and the list shows open. */
.jcinq-form .jcinq-ms {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jcinq-form .jcinq-ms > .site-form__label {
  margin: 0;
}
.jcinq-form .jcinq-ms .site-form__optional {
  font-weight: 400;
}
.jcinq-form .jcinq-ms__toggle {
  position: relative;
  text-align: left;
  cursor: pointer;
  min-height: 58px;
}
.jcinq-form .jcinq-ms__toggle[hidden] {
  display: none;
}
.jcinq-form .jcinq-ms__summary {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.jcinq-form .jcinq-ms.is-open .jcinq-ms__toggle {
  border-color: var(--wp--preset--color--primary-mint-green, #83b390);
}
.jcinq-form .jcinq-ms__panel {
  box-sizing: border-box;
  max-height: 320px;
  overflow-y: auto;
  padding: 16px;
  background: #fff;
  border: 1px solid #c7c6c6;
  border-radius: var(--form-r, 4px);
}
.jcinq-form .jcinq-ms__panel[hidden] {
  display: none;
}
.jcinq-form .jcinq-ms__panel .site-form__choice-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jcinq-form .jcinq-ms__panel .site-form__other--inline {
  margin-block: 0;
}
/* 5. Become a Supplier form: "Reason for Inquiry" (Kate Shawver, ClickUp 869ew7upy, 2026-10-18 13:48Z) takes Subject's
 * place in its row. The cell stacks the select and the "Other" row it opens (forms-lowering.js reveals()), so the
 * free-text box sits directly under the select at every width, 24 px apart like every row of the holder. */
.jcinq-form .jcinq-form__cell {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.jcinq-form .jcinq-form__cell > .site-form__field[hidden] {
  display: none;
}
/* 6. Buyer Inquiry Form tab (Kate Shawver, ClickUp 869ew7v50, 2026-10-18 13:52Z: "Chnage tab name and submen link to Buyer
 * Inquiry Form"). The current tab on this page wears the strip's current-tab box, which the compiled literals size to the
 * drawn "Our Services" label (131 px); the longer label clipped inside it. On this page the current tab sizes to its label
 * (the same 12/24 padding), as the idle tabs of the strip already do. */
body.cae-page--cae-programs-services-justcut-forbuyer-inquiryform [class*="forbuyer-tabs-generic__actions"] .wp-block-button__link[aria-current="page"] {
  width: auto;
  white-space: nowrap;
}
