/* ==========================================================================
   MWF Header & Footer Plugin — v1.0.0
   Middle World Farms
   ========================================================================== */

:root {
  --mwf-green:        #213b2e;
  --mwf-green-mid:    #2d5240;
  --mwf-gold:         #c8a951;
  --mwf-white:        #ffffff;
  --mwf-header-h:     80px;  /* sticky/scrolled height */
  --mwf-header-h-tall: 260px; /* non-sticky height at page top */
  --mwf-ease:         0.25s ease;
}

/* ── Reset scoped to our elements ───────────────────────────────────────────── */
#mwf-header *, #mwf-footer * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Suppress Divi header/footer (both D4 native and D5 Theme Builder) ──────── */
#main-header,
#top-header,
#et-secondary-nav,
.et-l--header,
#main-footer,
#footer-bottom,
.et-l--footer {
  display: none !important;
}

/* ── Body padding to clear our fixed header ─────────────────────────────────── */
/* Inner pages only — home/front-page get 0 padding because the hero fills the
   viewport and the header overlays it transparently. Scoping with :not() here
   means the child theme never needs to fight this rule with !important. */
body.mwf-custom-header:not(.home):not(.front-page):not(.mwf-has-hero) {
  padding-top: var(--mwf-header-h) !important;
}
.admin-bar body.mwf-custom-header:not(.home):not(.front-page):not(.mwf-has-hero),
body.admin-bar.mwf-custom-header:not(.home):not(.front-page):not(.mwf-has-hero) {
  padding-top: calc(var(--mwf-header-h) + 32px) !important;
}
@media (max-width: 782px) {
  .admin-bar body.mwf-custom-header:not(.home):not(.front-page):not(.mwf-has-hero),
  body.admin-bar.mwf-custom-header:not(.home):not(.front-page):not(.mwf-has-hero) {
    padding-top: calc(var(--mwf-header-h) + 46px) !important;
  }
}



/* ============================================================================
   HEADER
   ============================================================================ */

#mwf-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--mwf-header-h);
  background: var(--mwf-green);
  transition: background 0.6s ease, box-shadow 0.6s ease, height 0.6s ease;
}

/* Home/front-page/hero-pages: tall + transparent before scrolling */
.home #mwf-header:not(.is-scrolled),
.front-page #mwf-header:not(.is-scrolled),
.mwf-has-hero #mwf-header:not(.is-scrolled) {
  height: var(--mwf-header-h-tall);
  background: transparent;
}

/* On the tall hero header, pin logo + nav to 70% down */
.home #mwf-header:not(.is-scrolled) .mwf-header__inner,
.front-page #mwf-header:not(.is-scrolled) .mwf-header__inner,
.mwf-has-hero #mwf-header:not(.is-scrolled) .mwf-header__inner {
  align-items: flex-end;
  padding-bottom: 78px; /* 260px * 30% ≈ 78px from bottom = 70% from top */
  padding-left: 50px;
}

/* Home/front-page/hero-pages: big logo when non-sticky */
.home #mwf-header:not(.is-scrolled) .mwf-header__logo-img,
.front-page #mwf-header:not(.is-scrolled) .mwf-header__logo-img,
.mwf-has-hero #mwf-header:not(.is-scrolled) .mwf-header__logo-img {
  height: 120px !important;
  max-width: 340px;
  filter: none;
}

/* Admin bar pushes header down */
.admin-bar #mwf-header {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar #mwf-header {
    top: 46px;
  }
}

/* Scrolled state: solid green, compact */
#mwf-header.is-scrolled {
  height: var(--mwf-header-h);
  background: var(--mwf-green);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}

/* Sticky: shrink logo and switch to white version */
#mwf-header.is-scrolled .mwf-header__logo-img {
  height: 48px;
  filter: brightness(0) invert(1);
}

/* Mobile: always solid green, compact height — no tall state */
@media (max-width: 980px) {
  #mwf-header {
    height: var(--mwf-header-h);
    background: var(--mwf-green);
  }
  .mwf-header__logo-img {
    height: 48px;
    filter: brightness(0) invert(1);
  }
}

/* ── Inner layout ─────────────────────────────────────────────────────── */
.mwf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Logo ─────────────────────────────────────────────────────────────── */
.mwf-header__logo {
  flex: 0 0 auto;
}
.mwf-header__logo a {
  display: block;
  line-height: 0;
}
.mwf-header__logo-img {
  display: block;
  height: 40px !important;        /* compact default — inner pages + sticky state */
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain;
  transition: height 0.6s ease, filter 0.6s ease;
  filter: brightness(0) invert(1); /* white logo on solid green header */
}
.mwf-logo-text {
  color: var(--mwf-white);
  font-size: 1.3rem;
  font-weight: 700;
}

/* ── Main navigation ──────────────────────────────────────────────────── */
.mwf-header__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
}

/* On mobile: hidden by default, shows as panel */
@media (max-width: 980px) {
  .mwf-header__nav {
    display: none;
    position: absolute;
    top: var(--mwf-header-h);
    left: 0;
    right: 0;
    background: var(--mwf-green);
    padding: 8px 0 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 9998;
  }
  .admin-bar .mwf-header__nav {
    top: calc(var(--mwf-header-h) + 32px);
  }
  @media (max-width: 782px) {
    .admin-bar .mwf-header__nav {
      top: calc(var(--mwf-header-h) + 46px);
    }
  }
  .mwf-header__nav.is-open {
    display: block;
  }
}

/* Menu list */
.mwf-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 980px) {
  .mwf-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
}

/* Menu item */
.mwf-menu-item {
  position: relative;
}

/* Menu link */
.mwf-menu-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 13px;
  color: var(--mwf-white);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: 5px;
  transition: background var(--mwf-ease);
}
.mwf-menu-link:hover,
.mwf-menu-item--current > .mwf-menu-link {
  background: rgba(255, 255, 255, 0.14);
  color: var(--mwf-white);
}
@media (max-width: 980px) {
  .mwf-menu-link {
    padding: 13px 20px;
    border-radius: 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
}

/* Dropdown arrow SVG */
.mwf-menu-arrow {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  transition: transform var(--mwf-ease);
}
.mwf-menu-item--has-children:hover .mwf-menu-arrow,
.mwf-menu-item--has-children.is-open .mwf-menu-arrow {
  transform: rotate(180deg);
}

/* Sub-menu (desktop: absolute dropdown) */
.mwf-menu .sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: #231b2e;
  border-radius: 6px;
  border: 1px solid #c9a84c;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  padding: 4px 0;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--mwf-ease), transform var(--mwf-ease), visibility var(--mwf-ease);
  z-index: 100;
}
.mwf-menu-item--has-children:hover > .sub-menu,
.mwf-menu-item--has-children.is-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mwf-menu .sub-menu .mwf-menu-link {
  padding: 14px 24px;
  font-size: 0.92rem;
  border-radius: 0;
  white-space: normal;
  color: #c9a84c !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}
.mwf-menu .sub-menu li:last-child .mwf-menu-link {
  border-bottom: none;
}
.mwf-menu .sub-menu .mwf-menu-link:hover,
.mwf-menu .sub-menu .mwf-menu-item--current > .mwf-menu-link {
  background: rgba(201, 168, 76, 0.12);
  color: #f0d080 !important;
}
.mwf-menu .sub-menu li:first-child .mwf-menu-link { border-radius: 6px 6px 0 0; }
.mwf-menu .sub-menu li:last-child  .mwf-menu-link { border-radius: 0 0 6px 6px; }

/* Sub-menu (mobile: toggleable below parent) */
@media (max-width: 980px) {
  .mwf-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: #231b2e;
    border: none;
    border-left: 3px solid #c9a84c;
    display: none;
  }
  .mwf-menu-item--has-children.is-open > .sub-menu {
    display: block;
  }
  .mwf-menu .sub-menu .mwf-menu-link {
    padding-left: 36px;
    font-size: 0.92rem;
  }
}

/* ── Actions bar (guarantee + cart + hamburger) ───────────────────────── */
.mwf-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

/* Satisfaction guarantee badge */
.mwf-guarantee-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  background: var(--mwf-gold);
  color: var(--mwf-green);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 40px;
  white-space: nowrap;
  transition: opacity var(--mwf-ease);
}
.mwf-guarantee-btn:hover {
  opacity: 0.85;
}
.mwf-guarantee-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
/* Small screens: icon only */
@media (max-width: 640px) {
  .mwf-guarantee-btn span {
    display: none;
  }
  .mwf-guarantee-btn {
    padding: 9px;
  }
  .mwf-guarantee-btn svg {
    width: 17px;
    height: 17px;
  }
}

/* Delivery map */
#mwf-delivery-map {
  width: 100%;
  height: 520px;
  border-radius: 6px;
  overflow: hidden;
}
.mwf-map-activate {
  background: #213b2e;
  color: #caeaaf;
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  pointer-events: none;
  transition: opacity 0.3s;
}
.leaflet-popup-content-wrapper {
  border-radius: 8px !important;
}

/* Cart button */
.mwf-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--mwf-white);
  text-decoration: none;
  border-radius: 50%;
  transition: background var(--mwf-ease);
}
.mwf-cart-btn:hover {
  background: rgba(255, 255, 255, 0.14);
}
.mwf-cart-btn svg {
  width: 22px;
  height: 22px;
}

/* Cart count badge */
.mwf-cart-count {
  position: absolute;
  top: 1px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  background: var(--mwf-gold);
  color: var(--mwf-green);
  font-size: 0.62rem;
  font-weight: 800;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.mwf-cart-count:empty {
  display: none;
}

/* Hamburger button */
.mwf-hamburger {
  display: none;             /* shown on mobile via media query below */
  flex-direction: column;
  justify-content: space-between;
  width: 36px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  border-radius: 4px;
  transition: background var(--mwf-ease);
}
.mwf-hamburger:hover {
  background: rgba(255, 255, 255, 0.12);
}
@media (max-width: 980px) {
  .mwf-hamburger {
    display: flex;
  }
}

/* The three bars */
.mwf-hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--mwf-white);
  border-radius: 2px;
  transition: transform var(--mwf-ease), opacity var(--mwf-ease);
  transform-origin: center;
}

/* Animate bars → X when open */
.mwf-hamburger[aria-expanded="true"] .mwf-hamburger__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mwf-hamburger[aria-expanded="true"] .mwf-hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mwf-hamburger[aria-expanded="true"] .mwf-hamburger__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}



/* ============================================================================
   FOOTER
   ============================================================================ */

#mwf-footer {
  background: var(--mwf-green);
  color: rgba(255, 255, 255, 0.82);
  padding: 60px 24px 32px;
}

.mwf-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .mwf-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}
@media (max-width: 560px) {
  .mwf-footer__inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* Footer logo */
.mwf-footer__logo-link {
  display: inline-block;
  margin-bottom: 16px;
  line-height: 0;
}
.mwf-footer__logo-img {
  display: block;
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.mwf-logo-text {
  color: var(--mwf-white);
  font-size: 1.3rem;
  font-weight: 700;
}

.mwf-footer__tagline {
  font-size: 0.9rem;
  font-style: italic;
  opacity: 0.65;
  margin-bottom: 12px;
  text-align: center;
}
.mwf-footer__copyright {
  font-size: 0.78rem;
  opacity: 0.5;
  text-align: center;
}

/* Column headings */
.mwf-footer__heading {
  color: var(--mwf-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

/* Contact */
.mwf-footer__address {
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 12px;
  opacity: 0.8;
}
.mwf-footer__email,
.mwf-footer__phone {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 6px;
  transition: color var(--mwf-ease);
}
.mwf-footer__email:hover,
.mwf-footer__phone:hover {
  color: var(--mwf-gold);
}

/* Footer nav */
.mwf-footer__menu {
  list-style: none;
}
.mwf-footer__menu li {
  margin-bottom: 9px;
}
.mwf-footer__menu a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--mwf-ease);
}
.mwf-footer__menu a:hover {
  color: var(--mwf-gold);
}

/* Social icons */
.mwf-footer__social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mwf-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--mwf-white);
  border-radius: 50%;
  text-decoration: none;
  transition: background var(--mwf-ease), color var(--mwf-ease);
}
.mwf-social-link:hover {
  background: var(--mwf-gold);
  color: var(--mwf-green);
}
.mwf-social-link svg {
  width: 18px;
  height: 18px;
}

/* ── xt-woo-floating-cart trigger: plugin handles its own trigger button ── */
/* Nudge the trigger up 100px so it clears the reCAPTCHA badge.
   The plugin positions its container via --xt-woofc-voffset (default 20px).
   Increasing it moves the whole trigger upward. */
:root {
  --xt-woofc-voffset: 120px !important;
}

/* ── White logo on safeguarding form pages (solid dark-green banner) ──────── */
/* These 4 form pages open with a #213b2e cover block directly under the      */
/* transparent header. .mwf-has-hero's filter:none (ID specificity) would     */
/* make the green logo invisible — !important forces white on both states.    */
body.page-id-225253 .mwf-header__logo-img,
body.page-id-225243 .mwf-header__logo-img,
body.page-id-225230 .mwf-header__logo-img,
body.page-id-225220 .mwf-header__logo-img {
  filter: brightness(0) invert(1) !important;
}

/* ==========================================================================
   WPForms — MWF Brand Styling
   Scoped to .wpforms-container so it applies to all MWF forms site-wide.
   ========================================================================== */

/* ── Base container ─────────────────────────────────────────────────────── */
.wpforms-container {
  font-family: inherit;
  color: #213b2e;
}

/* ── Field labels ───────────────────────────────────────────────────────── */
.wpforms-container .wpforms-field-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #213b2e;
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}
.wpforms-container .wpforms-field-description {
  font-size: 0.8rem;
  color: #4a7c59;
  margin-top: 3px;
  line-height: 1.45;
}
.wpforms-container .wpforms-field-sublabel {
  font-size: 0.75rem;
  color: #4a7c59;
  margin-top: 2px;
}
.wpforms-container .wpforms-required-label {
  color: #b84040;
  margin-left: 2px;
}

/* ── Inputs, textareas, selects ─────────────────────────────────────────── */
.wpforms-container input[type="text"],
.wpforms-container input[type="email"],
.wpforms-container input[type="tel"],
.wpforms-container input[type="number"],
.wpforms-container input[type="url"],
.wpforms-container input[type="password"],
.wpforms-container input[type="date"],
.wpforms-container input[type="time"],
.wpforms-container textarea,
.wpforms-container select {
  border: 1.5px solid #a8c8b0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.95rem;
  color: #213b2e;
  background: #ffffff;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.wpforms-container input[type="text"]:focus,
.wpforms-container input[type="email"]:focus,
.wpforms-container input[type="tel"]:focus,
.wpforms-container input[type="number"]:focus,
.wpforms-container input[type="url"]:focus,
.wpforms-container input[type="password"]:focus,
.wpforms-container input[type="date"]:focus,
.wpforms-container input[type="time"]:focus,
.wpforms-container textarea:focus,
.wpforms-container select:focus {
  border-color: #213b2e;
  box-shadow: 0 0 0 3px rgba(33, 59, 46, 0.12);
}
.wpforms-container textarea {
  min-height: 120px;
  resize: vertical;
}
.wpforms-container select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23213b2e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

/* ── Checkboxes & radios ────────────────────────────────────────────────── */
.wpforms-container input[type="checkbox"],
.wpforms-container input[type="radio"] {
  accent-color: #213b2e;
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.wpforms-container .wpforms-field-checkbox label,
.wpforms-container .wpforms-field-radio label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.92rem;
  color: #213b2e;
  cursor: pointer;
  line-height: 1.45;
}

/* ── Dividers ───────────────────────────────────────────────────────────── */
.wpforms-container .wpforms-field-divider {
  border: none;
  border-top: 2px solid #caeaaf;
  margin: 10px 0;
}

/* ── Field spacing ──────────────────────────────────────────────────────── */
.wpforms-container .wpforms-field {
  margin-bottom: 20px;
}

/* ── Validation errors ──────────────────────────────────────────────────── */
.wpforms-container .wpforms-error-container,
.wpforms-container label.wpforms-error {
  font-size: 0.8rem;
  color: #b84040;
  margin-top: 4px;
  display: block;
}
.wpforms-container input.wpforms-error,
.wpforms-container textarea.wpforms-error,
.wpforms-container select.wpforms-error {
  border-color: #b84040 !important;
  box-shadow: 0 0 0 3px rgba(184, 64, 64, 0.1) !important;
}
.wpforms-container .wpforms-error-noscript {
  background: #fdf0f0;
  border: 1px solid #b84040;
  border-radius: 6px;
  padding: 12px 16px;
  color: #b84040;
  font-size: 0.88rem;
  margin-bottom: 16px;
}

/* ── Multi-page: progress indicator ────────────────────────────────────── */
.wpforms-container .wpforms-page-indicator.progress {
  margin-bottom: 24px;
}
.wpforms-container .wpforms-page-indicator-page-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #213b2e;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.wpforms-container .wpforms-page-indicator-page-title-sep {
  color: #a8c8b0;
}
.wpforms-container .wpforms-page-indicator-steps {
  font-size: 0.78rem;
  color: #4a7c59;
}
.wpforms-container .wpforms-page-indicator-steps-current {
  color: #213b2e;
  font-weight: 700;
}
.wpforms-container .wpforms-page-indicator-page-progress-wrap {
  background: #e1ede6;
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
  margin-top: 6px;
}
.wpforms-container .wpforms-page-indicator-page-progress {
  background: linear-gradient(90deg, #213b2e, #386641);
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ── Next / Prev / Submit buttons ───────────────────────────────────────── */
.wpforms-container .wpforms-page-button,
.wpforms-container .wpforms-submit {
  display: inline-block;
  padding: 13px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  line-height: 1;
}
/* Next / Submit — gold CTA */
.wpforms-container .wpforms-page-button.wpforms-page-next,
.wpforms-container .wpforms-submit {
  background: #c8a951;
  color: #213b2e;
  box-shadow: 0 2px 8px rgba(200, 169, 81, 0.35);
}
.wpforms-container .wpforms-page-button.wpforms-page-next:hover,
.wpforms-container .wpforms-submit:hover {
  background: #b8992e;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200, 169, 81, 0.45);
}
/* Prev — ghost green outline */
.wpforms-container .wpforms-page-button.wpforms-page-prev {
  background: transparent;
  color: #213b2e;
  border: 2px solid #213b2e;
  box-shadow: none;
  margin-right: 10px;
}
.wpforms-container .wpforms-page-button.wpforms-page-prev:hover {
  background: #213b2e;
  color: #ffffff;
}
/* Disabled next during validation */
.wpforms-container .wpforms-page-button.wpforms-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.wpforms-container .wpforms-submit-container {
  margin-top: 8px;
}

/* ── Signature field ────────────────────────────────────────────────────── */
.wpforms-container .wpforms-signature-wrap {
  border: 1.5px solid #a8c8b0;
  border-radius: 6px;
  overflow: hidden;
  background: #f8fbf9;
}
.wpforms-container .wpforms-signature-canvas {
  display: block;
  width: 100%;
  cursor: crosshair;
}
.wpforms-container .wpforms-signature-clear {
  font-size: 0.78rem;
  color: #4a7c59;
  cursor: pointer;
  padding: 4px 8px;
  background: none;
  border: none;
  text-decoration: underline;
}
.wpforms-container .wpforms-signature-clear:hover {
  color: #213b2e;
}

/* ── File upload ────────────────────────────────────────────────────────── */
.wpforms-container .wpforms-uploader {
  border: 2px dashed #a8c8b0;
  border-radius: 6px;
  padding: 20px;
  text-align: center;
  background: #f4f9f5;
  color: #4a7c59;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.wpforms-container .wpforms-uploader:hover {
  border-color: #213b2e;
  background: #eaf4ee;
}

/* ── Date / time pickers ────────────────────────────────────────────────── */
.wpforms-container .wpforms-datepicker-clear {
  font-size: 0.78rem;
  color: #4a7c59;
  cursor: pointer;
}
.wpforms-container .ui-datepicker {
  border: 1.5px solid #a8c8b0 !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(33, 59, 46, 0.15) !important;
  font-size: 0.88rem !important;
}
.wpforms-container .ui-datepicker-header {
  background: #213b2e !important;
  color: #ffffff !important;
  border-radius: 6px 6px 0 0 !important;
  border: none !important;
}
.wpforms-container .ui-datepicker-title {
  color: #ffffff !important;
}
.wpforms-container .ui-datepicker td.ui-state-active a,
.wpforms-container .ui-datepicker td a.ui-state-active {
  background: #213b2e !important;
  color: #ffffff !important;
  border-radius: 4px !important;
}
.wpforms-container .ui-datepicker td a:hover {
  background: #caeaaf !important;
  color: #213b2e !important;
}
