/* ============================================================
   SP Global Styles — Steel Pallet Racks B2B Theme
   ============================================================ */

/* --- CSS Variables & Design Tokens --- */
:root {
  --blue:    #1a202c;
  --blue2:   #1f2937;
  --accent:  #f0a500;
  --accent2: #e8920a;
  --text:    #1e2937;
  --muted:   #5a6a80;
  --white:   #ffffff;
  --soft:    #f4f6f9;
  --border:  #dce3ec;
  --radius:  16px;
  --radius-sm: 10px;
  --shadow:  0 12px 32px rgba(0,48,135,.08);
  --shadow-card: 0 6px 20px rgba(0,48,135,.07);
  --tr: .25s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-size-adjust: from-font;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; transition: color .2s; }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Divider ---------- */
.divider {
    border: none;
    border-top: 2px solid #e4e8ef;
    margin-block: 48px;
}

/* ---------- Typography Helpers ---------- */
.lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #4a5568;
    max-width: 680px;
}

.section-tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #e8920a;
    margin-bottom: 10px;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    line-height: 1.25;
    color: #1b3d6e;
    margin-bottom: 12px;
}

.section-sub {
    font-size: 1rem;
    color: #5a6a82;
    max-width: 620px;
    line-height: 1.7;
}

/* --- Header --- */
.sp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--blue);          /* Slate Dark */
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 12px rgba(26,32,44,0.18);
}

.sp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.sp-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  max-width: 320px;
}

.sp-header__logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sp-header__logo-svg {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
  transition: transform var(--tr);
}

.sp-header__logo:hover .sp-header__logo-svg {
  transform: scale(1.05) rotate(1deg);
}

.sp-header__logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sp-header__logo-title {
  font-size: 1.05rem;
  font-weight: 850;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.sp-header__logo-subtitle {
  font-size: 0.62rem;
  font-weight: 700;
  color: #f0a500;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
}

/* Nav */
.sp-nav {
  display: flex;
  align-items: center;
}

.sp-nav__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sp-nav__item {
  position: relative;
}

.sp-nav__item a {
  display: block;
  padding: 8px 16px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.sp-nav__item a:hover,
.sp-nav__item.is-active > a {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

/* Multi-level Dropdown Menu Styling */
.menu-item-has-children > a {
  padding-right: 28px !important;
  position: relative;
}

.menu-item-has-children > a::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(255,255,255,0.7);
  transition: transform 0.2s;
}

.menu-item-has-children:hover > a::after {
  transform: translateY(-50%) rotate(180deg);
  border-top-color: #fff;
}

/* Floating Sub-Menu Card */
.sp-nav__list .sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1100;
  min-width: 240px;
  background: var(--blue); /* Slate */
  border: 2px solid var(--accent); /* Gold */
  border-radius: 6px;
  padding: 8px 0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  
  /* Smooth opacity & transform transition */
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
}

/* Show Sub-Menu on Hover */
.sp-nav__item:hover > .sub-menu,
.sp-nav__item.sfHover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

/* Sub-Menu Items */
.sp-nav__list .sub-menu li {
  width: 100%;
  position: relative;
}

.sp-nav__list .sub-menu a {
  display: block;
  padding: 10px 20px !important;
  color: rgba(255,255,255,0.9);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 0;
  background: transparent !important;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.sp-nav__list .sub-menu a:hover,
.sp-nav__list .sub-menu li.is-active > a {
  background: rgba(255,255,255,0.08) !important;
  color: #fff;
  padding-left: 24px !important; /* Premium indent micro-animation */
}

/* Second-level nested sub-menus (3rd tier) */
.sp-nav__list .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  transform: translateX(12px);
}

.sp-nav__list .sub-menu li:hover > .sub-menu {
  transform: translateX(0);
}

/* CTA Button */
.sp-nav__item--cta a.btn.btn-primary {
  background: #f0a500;
  color: var(--blue);
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 6px;
  border: none;
  transition: background 0.2s, transform 0.15s;
}

.sp-nav__item--cta a.btn.btn-primary:hover {
  background: #ffc107;
  transform: translateY(-1px);
}

/* --- Hamburger Toggle (mobile) --- */
.sp-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.sp-nav__toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hamburger → X when open */
.sp-nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.sp-nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.sp-nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* --- Mobile breakpoint --- */
@media (max-width: 768px) {
  .sp-nav__toggle { display: flex; }

  .sp-nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--blue);
    border-top: 2px solid var(--accent);
    padding: 16px 24px 20px;
    display: none;                /* JS toggles to flex */
    flex-direction: column;
    align-items: flex-start;
  }

  .sp-nav.is-open { display: flex; }

  .sp-nav__list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 4px;
  }

  .sp-nav__item { width: 100%; }

  .sp-nav__item a {
    width: 100%;
    padding: 12px 8px;
    font-size: 1rem;
  }

  .sp-nav__item--cta a.btn.btn-primary {
    width: 100%;
    text-align: center;
  }

  /* Mobile Dropdown Rules */
  .sp-nav__list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    display: none;
    transform: none !important;
    min-width: 100%;
    background: rgba(0,0,0,0.15);
    border: none;
    border-left: 2px solid rgba(255,255,255,0.2);
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 4px 12px;
    margin-top: 4px;
    margin-bottom: 4px;
  }

  .sp-nav__item.menu-item-has-children:hover > .sub-menu,
  .sp-nav__item.is-open-mobile > .sub-menu {
    display: block;
  }

  .menu-item-has-children > a::after {
    right: 16px;
  }
}

/* --- Shared Button Styles --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s, border-color 0.2s;
}

.btn-primary {
  background: #f0a500;
  color: var(--blue);
  border: 2px solid transparent;
  padding: 12px 28px;
}

.btn-primary:hover {
  background: #ffc107;
  transform: translateY(-2px);
}

.btn-outline-w {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
  padding: 12px 28px;
}

.btn-outline-w:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

/* --- Footer (basic industrial) --- */
.sp-footer {
  background: #0d1117;          /* Slate Dark Footer */
  color: rgba(255,255,255,0.75);
  padding: 80px 0 30px;
  font-size: 0.9rem;
  border-top: 4px solid var(--accent);
}

.sp-footer a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.25s ease, transform 0.2s ease;
}

.sp-footer a:hover {
  color: #f0a500;
}

.sp-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 48px;
}

.sp-footer__col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sp-footer__col--brand .sp-footer__logo {
  display: flex;
  margin-bottom: 8px;
}

.sp-footer__tagline {
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.sp-footer__heading {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-bottom: 8px;
}

.sp-footer__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: #f0a500;
}

.sp-footer__links,
.sp-footer__contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-footer__links a {
  display: inline-block;
}
.sp-footer__links a:hover {
  transform: translateX(4px);
}

.sp-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.7);
  line-height: 1.4;
}

.sp-footer__contact svg {
  color: #f0a500;
  flex-shrink: 0;
  margin-top: 3px;
}

.sp-footer__col--cta p {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
}

.sp-footer__col--cta .btn.btn-primary {
  align-self: flex-start;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(240, 165, 0, 0.2);
}

.sp-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 56px;
  padding-top: 24px;
  color: rgba(255,255,255,0.45);
  font-size: 0.85rem;
}

.sp-footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.sp-footer__copy a {
  color: rgba(255,255,255,0.6);
  font-weight: 600;
}
.sp-footer__copy a:hover {
  color: #f0a500;
}

.sp-footer__legal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.sp-footer__legal a {
  color: rgba(255,255,255,0.45);
}
.sp-footer__legal a:hover {
  color: #f0a500;
}

@media (max-width: 992px) {
  .sp-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .sp-footer {
    padding: 60px 0 30px;
  }
  .sp-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .sp-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .sp-footer__legal {
    justify-content: center;
  }
}

/* ============================================================
   SHARED COMPONENTS — Categories & Products Grid System
   ============================================================ */

/* --- Button Extensions --- */
.btn-white {
  background: var(--white);
  color: var(--blue);
  border: 2px solid transparent;
  padding: 12px 28px;
}
.btn-white:hover {
  background: var(--soft);
  color: var(--blue2);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  padding: 12px 28px;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Category Sections & Headers --- */
.cat-section {
  padding: clamp(60px, 8vw, 100px) 0;
  background: var(--white);
}
.cat-section.alt {
  background: var(--soft);
}
.cat-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
}
.cat-label-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 48, 135, 0.08);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* --- Categories Grid & Cards --- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr);
}
.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(0,48,135,.14);
}
.cat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .55s ease;
}
.cat-card:hover .cat-bg {
  transform: scale(1.06);
}
.cat-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,24,70,.92) 0%,
    rgba(0,24,70,.52) 50%,
    rgba(0,24,70,.12) 100%
  );
  transition: opacity var(--tr);
}
.cat-card:hover .cat-overlay {
  opacity: .88;
}
.cat-body {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 24px 22px;
  color: var(--white);
}
.cat-icon {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.3));
}
.cat-body h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.25;
}
.cat-body p {
  color: rgba(255,255,255,.82);
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.cat-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--tr), transform var(--tr);
}
.cat-link:hover {
  background: #d99200;
  color: #fff;
  transform: translateX(2px);
}

/* --- Products Grid & Cards --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,48,135,.18);
  box-shadow: 0 16px 36px rgba(0,48,135,.11);
}
.prod-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--soft);
}
.prod-img a {
  display: block;
  width: 100%;
  height: 100%;
}
.prod-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.product-card:hover .prod-img img {
  transform: scale(1.06);
}
.prod-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  z-index: 2;
}
.prod-body {
  padding: 18px 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.prod-body h4 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.3;
}
.prod-body p {
  flex: 1;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}
.prod-link {
  display: inline-flex;
  align-items: center;
  color: var(--accent2);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  transition: color var(--tr), letter-spacing var(--tr);
}
.prod-link:hover {
  color: var(--blue);
  letter-spacing: .02em;
}

/* --- Responsive Media Queries for Grids --- */
@media (max-width: 1024px) {
  .cat-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}

@media (max-width: 768px) {
  .cat-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cat-header .btn {
    align-self: flex-start;
  }
}

@media (max-width: 576px) {
  .cat-grid,
  .products-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* ============================================================
   B2B SYSTEM FORM STYLES (GLOBAL CONTACT FORM 7 RESETS)
   ============================================================ */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Form Grid */
.sp-b2b-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.sp-b2b-form-field {
    width: 100%;
}

.sp-b2b-form-field.full-width {
    grid-column: span 2;
}

/* Resilient to CF7 autop wrap */
.sp-b2b-form-field p {
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.sp-b2b-form-field p br {
    display: none !important;
}

/* Global Labels styling */
.wpcf7-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #475569; /* Soft slate dark */
    margin-bottom: 0px;
    width: 100%;
    text-transform: none;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
}

.sp-b2b-form-field:focus-within label {
    color: #f0a500 !important;
}

/* Global Inputs reset */
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7-form select,
.wpcf7-form textarea {
    display: block;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background-color: #f8fafc;
    color: #0f172a;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    box-sizing: border-box;
    outline: none;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Hover & Focus states (Light theme default) */
.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):hover,
.wpcf7-form select:hover,
.wpcf7-form textarea:hover {
    border-color: #94a3b8;
    background-color: #f1f5f9;
}

.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: #f0a500;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.15);
}

/* Global Submit wrap */
.sp-b2b-form-submit-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
}

.sp-b2b-form-submit-wrap p {
    margin: 0 !important;
    width: 100%;
}

/* Submit button styling */
.wpcf7-form input[type="submit"],
.wpcf7-form .wpcf7-submit {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    padding: 14px 32px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #f0a500 0%, #e8920a 100%);
    color: #000000 !important;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 20px rgba(240, 165, 0, 0.2);
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form .wpcf7-submit:hover {
    background: linear-gradient(135deg, #ffc107 0%, #f0a500 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(240, 165, 0, 0.3);
}

.wpcf7-form input[type="submit"]:active,
.wpcf7-form .wpcf7-submit:active {
    transform: translateY(0);
    box-shadow: 0 6px 15px rgba(240, 165, 0, 0.2);
}

/* ── Light B2B background container overrides (PDP & Solutions) ── */
.spr-quote-form,
.sp-pdp-inquiry__box,
.sp-solution-inquiry__box {
    background: #ffffff !important;
    border: 1px solid #edf2f7 !important;
    border-radius: 16px !important;
    padding: 3rem !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    position: relative;
    overflow: hidden;
}

.spr-quote-form::before,
.sp-pdp-inquiry__box::before,
.sp-solution-inquiry__box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #f0a500 !important;
}

.spr-quote-form h3,
.sp-pdp-inquiry__box h3,
.sp-solution-inquiry__box h3 {
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    text-align: center !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0 !important;
    margin-bottom: 2.2rem !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

/* Labels under light theme */
.spr-quote-form .wpcf7-form label,
.sp-pdp-inquiry .wpcf7-form label,
.sp-solution-inquiry__box .wpcf7-form label {
    color: #475569 !important;
}

/* Inputs under light theme */
.spr-quote-form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.spr-quote-form .wpcf7-form textarea,
.sp-pdp-inquiry .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.sp-pdp-inquiry .wpcf7-form textarea,
.sp-solution-inquiry__box .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.sp-solution-inquiry__box .wpcf7-form textarea {
    background-color: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

.spr-quote-form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):hover,
.spr-quote-form .wpcf7-form textarea:hover,
.sp-pdp-inquiry .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):hover,
.sp-pdp-inquiry .wpcf7-form textarea:hover,
.sp-solution-inquiry__box .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):hover,
.sp-solution-inquiry__box .wpcf7-form textarea:hover {
    border-color: #94a3b8 !important;
    background-color: #f1f5f9 !important;
}

.spr-quote-form .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.spr-quote-form .wpcf7-form textarea:focus,
.sp-pdp-inquiry .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.sp-pdp-inquiry .wpcf7-form textarea:focus,
.sp-solution-inquiry__box .wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]):focus,
.sp-solution-inquiry__box .wpcf7-form textarea:focus {
    border-color: #f0a500 !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.15) !important;
}

.spr-quote-form ::placeholder,
.sp-pdp-inquiry ::placeholder,
.sp-solution-inquiry__box ::placeholder {
    color: #94a3b8 !important;
}

/* Submit under light theme */
.spr-quote-form .wpcf7-submit,
.sp-pdp-inquiry .wpcf7-submit,
.sp-solution-inquiry__box .wpcf7-submit {
    box-shadow: 0 8px 20px rgba(240, 165, 0, 0.2) !important;
}

/* Response messaging */
.wpcf7-response-output {
    font-size: 14px;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 15px;
    box-sizing: border-box;
    text-align: center;
}

.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .sp-b2b-form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .sp-b2b-form-field.full-width {
        grid-column: span 1;
    }
    
    .spr-quote-form,
    .sp-pdp-inquiry__box,
    .sp-solution-inquiry__box {
        padding: 2rem !important;
    }
}

