/* Public site forms — same field language as the admin panel
   (shadcn-style: 6px radius, zinc borders, clean labels, focus rings),
   with the brand red kept for submit buttons. Loaded after the theme CSS. */

/* ---- text inputs, selects, textareas (contact + CF7 mailing list) ---- */
.form_contact .form-control,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.side-content form input[type="text"],
.side-content form input[type="email"],
.side-content form input[type="tel"] {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  box-shadow: none;
  font-family: 'Open Sans', sans-serif, Arial;
  font-size: 14px;
  color: #18181b;
  line-height: normal;
  transition: border-color .15s, box-shadow .15s;
}
.form_contact textarea.form-control,
.wpcf7-form textarea {
  height: auto;
  min-height: 140px;
  padding: 10px 12px;
  resize: vertical;
}
.form_contact .form-control:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: #c7081b;
  box-shadow: 0 0 0 1px #c7081b;
}
.form_contact .form-control::placeholder,
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: #71717a;
}

/* ---- labels (CF7 wraps fields in <label>text<br><input></label>) ---- */
.wpcf7-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #27272a;
  margin-bottom: 14px;
  line-height: 1.5;
}
.wpcf7-form label .wpcf7-form-control-wrap {
  display: block;
  margin-top: 6px;
  font-weight: 400;
}
.wpcf7-form p { margin-bottom: 0; }

/* ---- submit buttons ---- */
.form_contact input[type="submit"],
.submit_contact_form,
.wpcf7-form input[type="submit"],
.side-content form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 22px;
  background: #c7081b;
  background-image: none;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-family: 'Open Sans', sans-serif, Arial;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  text-shadow: none;
  box-shadow: none;
  transition: background-color .15s;
}
.form_contact input[type="submit"]:hover,
.submit_contact_form:hover,
.wpcf7-form input[type="submit"]:hover,
.side-content form input[type="submit"]:hover {
  background: #a30716;
  background-image: none;
}
.form_contact input[type="submit"]:focus-visible,
.wpcf7-form input[type="submit"]:focus-visible {
  outline: 2px solid #c7081b;
  outline-offset: 2px;
}

/* ---- response / validation messages ---- */
.wpcf7-response-output {
  border-radius: 6px !important;
  border: 1px solid #e4e4e7 !important;
  padding: 10px 12px !important;
  font-size: 13.5px;
  margin: 14px 0 0 !important;
}
.wpcf7-not-valid-tip {
  font-size: 12.5px;
  color: #dc2626;
  margin-top: 4px;
}
.contact_result { font-size: 13.5px; }

/* ================================================================
   Stock-list filter dropdowns (tom-select)

   The theme skins .ts-control with a grey gradient pill and a 4px CSS
   triangle. Those rules are `body .ts-control{...}`, so every override here
   needs a `body` prefix to win on specificity. Same field language as the
   forms above: white field, zinc border, 6px radius, brand-red focus ring.
   ================================================================ */

/* ---- the closed field ---- */
body .my-dropdown .ts-wrapper .ts-control {
  min-height: 38px;
  padding: 7px 30px 7px 12px !important;
  background: #fff;
  background-image: none;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  box-shadow: none;
  font-family: 'Open Sans', sans-serif, Arial;
  font-size: 14px;
  color: #18181b;
  transition: border-color .15s, box-shadow .15s;
}
body .my-dropdown .ts-wrapper.single .ts-control { border: 1px solid #e4e4e7; }
body .my-dropdown .ts-wrapper:hover .ts-control { border-color: #d4d4d8; }
body .my-dropdown .ts-wrapper.focus .ts-control,
body .my-dropdown .ts-wrapper.dropdown-active .ts-control {
  background: #fff;
  background-image: none;
  border-color: #c7081b;
  box-shadow: 0 0 0 1px #c7081b;
}

/* ---- chevron: replace the theme's triangle with a caret ---- */
body .my-dropdown .ts-wrapper .ts-control:after,
body .my-dropdown .ts-wrapper.single .ts-control:after {
  content: "";
  position: absolute;
  top: 50%;
  right: 12px;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border: 0;
  border-right: 1.5px solid #71717a;
  border-bottom: 1.5px solid #71717a;
  transform: rotate(45deg);
  transition: transform .15s, border-color .15s;
}
body .my-dropdown .ts-wrapper.dropdown-active .ts-control:after {
  margin-top: -2px;
  transform: rotate(225deg);
  border-color: #c7081b;
}

/* Keep the control a single line. tom-select puts a real search input inside
   .ts-control; left in flow it wraps onto a second row, so opening a filter
   turns it into a two-line textbox/select hybrid with a blinking caret. Park it
   off-screen instead: it still holds focus, so type-to-search keeps working —
   type "kom" with Make open and the list filters. (The theme does the same via
   its .input-hidden rule; that class isn't always applied, so anchor on
   .ts-control and give it the positioning context the theme rule assumes.) */
/* Scoped to .listing_filter — the stock-list filters — on purpose. The home
   page's "Search our inventory" widget uses .css-dropdowns, where tom-select
   renders NO .item div and shows the label via the input's placeholder instead.
   Hiding the input there blanks every box. */
body .my-dropdown .ts-wrapper .ts-control { position: relative; }
body .my-dropdown .ts-wrapper.listing_filter .ts-control > input {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
}

/* an applied filter reads as selected, not as placeholder text */
body .my-dropdown .ts-control .item { line-height: 22px; }
body .my-dropdown.has-value .ts-wrapper .ts-control {
  border-color: #c7081b;
  font-weight: 600;
}

/* ---- the open panel ---- */
body .my-dropdown .ts-dropdown {
  margin-top: 4px;
  border: 1px solid #e4e4e7;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(24, 24, 27, .12);
  overflow: hidden;
  font-family: 'Open Sans', sans-serif, Arial;
  font-size: 14px;
}
body .my-dropdown .ts-dropdown .ts-dropdown-content { max-height: 280px; }
body .my-dropdown .ts-dropdown .option {
  padding: 8px 12px;
  color: #27272a;
  cursor: pointer;
}
body .my-dropdown .ts-dropdown .active { background: #f4f4f5; color: #18181b; }
body .my-dropdown .ts-dropdown .selected,
body .my-dropdown .ts-dropdown .active.selected {
  background: #c7081b;
  color: #fff;
}
body .my-dropdown .ts-dropdown .no-results { padding: 8px 12px; color: #71717a; }

/* ---- sidebar variant: full-width stacked fields ---- */
body .dropdowns.select-form .my-dropdown { margin-bottom: 10px; }
body .dropdowns.select-form .my-dropdown .ts-wrapper { width: 100%; }
body .dropdowns.select-form .my-dropdown .ts-control { width: 100%; }

/* ---- "Reset Search Filters" ---- */
body .side-widget .reset_widget_filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  background: #c7081b;
  border: 0;
  border-radius: 6px;
  color: #fff;
  font-family: 'Open Sans', sans-serif, Arial;
  font-size: 14px;
  font-weight: 600;
  line-height: normal;
  cursor: pointer;
  transition: background-color .15s, opacity .15s;
}
body .side-widget .reset_widget_filter:hover { background: #a30716; color: #fff; }
body .side-widget .reset_widget_filter:focus-visible {
  outline: 2px solid #c7081b;
  outline-offset: 2px;
}
body .side-widget .reset_widget_filter[disabled] {
  background: #e4e4e7;
  color: #71717a;
  cursor: default;
}

/* ---- generated landing pages (programmatic SEO) ---- */
.seo-landing { padding-bottom: 10px; }
.seo-landing .seo-h1 { font-size: 30px; font-weight: 700; margin: 0 0 14px; }
.seo-landing .seo-h2 { font-size: 20px; font-weight: 700; margin: 26px 0 10px; }
.seo-landing .seo-intro { font-size: 16px; line-height: 1.75; }
.seo-landing p { line-height: 1.8; margin-bottom: 12px; }
.seo-landing .seo-count { font-size: 14px; font-weight: 400; color: #71717a; }

.seo-faq { margin: 0; }
.seo-faq dt { font-weight: 700; margin-top: 14px; }
.seo-faq dd { margin: 4px 0 0; line-height: 1.8; }

.seo-related { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.seo-related li { margin: 0; }
.seo-related a {
  display: inline-block; padding: 6px 12px; border: 1px solid #e4e4e7; border-radius: 4px;
  font-size: 13.5px; line-height: 1.4; color: #27272a; text-decoration: none;
  transition: border-color .15s, color .15s;
}
.seo-related a:hover { border-color: #c7081b; color: #c7081b; }

.seo-cta { margin: 30px 0 10px; padding: 24px; background: #f4f4f5; border-top: 3px solid #c7081b; }
.seo-cta h2 { margin: 0 0 8px; font-size: 20px; font-weight: 700; }
.seo-cta p { margin-bottom: 16px; }
.seo-cta .form-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.seo-cta .form-links li { margin: 0; }
.seo-morelink { font-weight: 600; }

/* H1 + lede on generated landing pages. The theme hides the banner heading
   (#secondary-banner h1{display:none}), so these are the visible ones. */
.seo-landing .seo-lede {
  font-size: 17px;
  line-height: 1.7;
  color: #52525b;
  margin: 0 0 14px;
  max-width: 62em;
}

/* ================================================================
   Modern hero for our own pages (.sb-hero)

   The theme hides the banner heading site-wide
   (#secondary-banner h1{display:none} in wp-inline.css) and renders the band as
   a washed-out photo. Opting in with .sb-hero un-hides the heading and swaps
   the photo for a flat brand band with the H1, a lede and CTAs — without
   touching the captured WordPress pages, which don't carry the class.
   ================================================================ */
body #secondary-banner.sb-hero {
  /* The gradient must be !important to beat the component's inline
     background-image (the theme's washed-out photo). Don't reintroduce a
     `background:` shorthand here — it resets background-color to transparent
     and the !important image above wins, leaving a white band with white text. */
  background-image: linear-gradient(165deg, #d2101f 0%, #c7081b 45%, #9e0615 100%) !important;
  background-color: #c7081b;
  border-bottom: none;
  /* The theme pins the banner to height:302px with overflow:hidden. Let the
     hero grow with its content instead. */
  height: auto;
  min-height: 302px;
  overflow: visible;
  padding: 64px 0 62px;
  text-shadow: none;
}
body #secondary-banner.sb-hero .title-column { text-align: center; }

body #secondary-banner.sb-hero .main-heading {
  display: block;                      /* the whole point: un-hide it */
  margin: 0 auto 14px;
  max-width: 20em;
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
body #secondary-banner.sb-hero .sb-sub {
  margin: 0 auto;
  max-width: 46em;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .9);
}

body #secondary-banner.sb-hero .sb-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
body #secondary-banner.sb-hero .sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
body #secondary-banner.sb-hero .sb-btn-primary {
  background: #fff;
  color: #a30716;
  border: 1px solid #fff;
}
body #secondary-banner.sb-hero .sb-btn-primary:hover { background: #18181b; border-color: #18181b; color: #fff; }
body #secondary-banner.sb-hero .sb-btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .55);
}
body #secondary-banner.sb-hero .sb-btn-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }

@media (max-width: 767px) {
  body #secondary-banner.sb-hero { padding: 150px 0 44px; min-height: 0; }
  body #secondary-banner.sb-hero .sb-btn { width: 100%; }
}

/* the body copy that follows a hero doesn't need to restate the title */
.seo-landing .seo-intro { font-size: 16.5px; line-height: 1.8; color: #3f3f46; }

/* ---- floating WhatsApp bubble (all public pages) ---- */
.wa-bubble {
  position: fixed;
  right: 20px;
  bottom: 20px;               /* clears the theme's .back_to_top arrow */
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  transition: transform .15s, background-color .15s;
}
.wa-bubble svg { width: 32px; height: 32px; fill: #fff; }
.wa-bubble:hover { background: #1eb855; transform: translateY(-2px); }
.wa-bubble:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 767px) {
  .wa-bubble { right: 14px; bottom: 76px; width: 50px; height: 50px; }
  .wa-bubble svg { width: 29px; height: 29px; }
}
