/* ============================================================
   Inner pages — shared components
   Used by products.html, product-detail.html, contact.html.
   Built on the shared typography tokens (--fs-*, --fw-*, --lh-*)
   and shared site components (.site-nav, .site-footer, .btn,
   .reach-card CTA, .logo-strip). Page/section layout only.
   ============================================================ */

:root {
  --pg-ink: #0f172a;
  --pg-muted: #64748b;
  --pg-blue: #103fd5;
  --pg-gold: #c5a059;
  --pg-card-cream: #fdf9f2;
  --pg-chip-bg: #e7ecfb;
  --pg-chip-ink: #071a59;
}

/* ---------- Page hero (dark, centered, breadcrumb) ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(380px, 44vw, 460px);
  padding: clamp(110px, 12vw, 132px) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
  color: #fff;
}

.page-hero-media {
  position: absolute;
  inset: 0;
  background-color: #0d131d;
  background-image:
    linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 66%),
    linear-gradient(90deg, rgba(13, 19, 29, 0.5), rgba(13, 19, 29, 0.5)),
    url("../images/hero-incense-commons-web.jpg");
  background-position: center;
  background-size: cover;
}

.products-page .page-hero-media {
  background-image:
    linear-gradient(0deg, rgba(4, 12, 24, 0.72) 0%, rgba(4, 12, 24, 0.08) 70%),
    linear-gradient(90deg, rgba(4, 12, 24, 0.46), rgba(4, 12, 24, 0.46)),
    url("../images/hero-products-range-photo.png");
  background-position: center 56%;
}

.contact-page .page-hero-media {
  background-image:
    linear-gradient(0deg, rgba(4, 12, 24, 0.72) 0%, rgba(4, 12, 24, 0.08) 70%),
    linear-gradient(90deg, rgba(4, 12, 24, 0.54), rgba(4, 12, 24, 0.42)),
    url("../images/contact-banner.png");
  background-position: center 43%;
}

.page-hero .container-xxl {
  position: relative;
  z-index: 1;
}

.page-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.page-hero-content h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3.4vw, 3.4rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.page-hero-sub {
  margin: 0;
  max-width: 706px;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
  opacity: 0.8;
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-body);
}

.page-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 160ms ease;
}

.page-breadcrumb a:hover {
  color: #fff;
}

.page-breadcrumb span[aria-hidden] {
  color: rgba(255, 255, 255, 0.3);
  font-size: var(--fs-body-sm);
}

.page-breadcrumb [aria-current] {
  color: var(--pg-gold);
}

/* ---------- Shared blue / outline pill buttons ---------- */
.pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 52px;
  padding: 10px 30px;
  border: 1px solid var(--pg-blue);
  border-radius: 500px;
  background: var(--pg-blue);
  color: #fff;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
  letter-spacing: 0.32px;
  /* No text-transform here — button copy is deliberately authored in title
     case with short connecting words (to, a, of...) lowercase, and
     `capitalize` would force-capitalize every word regardless, undoing
     that (e.g. "Continue to Enquiry" rendering as "Continue To Enquiry"). */
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.pill-btn:hover {
  background: #0038a7;
  border-color: #0038a7;
  color: #fff;
}

.pill-btn:active {
  transform: scale(0.98);
}

.pill-btn--outline {
  background: transparent;
  border-color: #000;
  color: #000;
}

.pill-btn--outline:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: #000;
  color: #000;
}

.pill-btn--white {
  background: #fff;
  border-color: #fff;
  color: #000;
}

.pill-btn--white:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.88);
  color: #000;
}

/* ---------- Pill button icons (View / Add to Inquiry differentiation) ---------- */
.pill-btn .btn-icon {
  flex-shrink: 0;
}

.pill-btn .icon-added {
  display: none;
}

.pill-btn[aria-pressed="true"] .icon-add {
  display: none;
}

.pill-btn[aria-pressed="true"] .icon-added {
  display: inline-flex;
}

/* ---------- Category filter pills (products hero) ---------- */
.filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  max-width: 100%;
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 8px 18px;
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 100px;
  background: transparent;
  color: #fff;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.filter-pill:hover {
  border-color: rgba(226, 232, 240, 0.55);
}

.filter-pill.is-active {
  background: var(--pg-blue);
  border-color: transparent;
}

.filter-pill--dim {
  background: rgba(0, 0, 0, 0.4);
}

.filter-pill img {
  width: 24px;
  height: 24px;
}

/* ---------- Product listing ---------- */
.products-section {
  padding: clamp(48px, 5.5vw, 76px) 0;
  background: #fff;
}

.products-section .container-xxl {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
}

.products-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.products-header h2 {
  margin: 0;
  color: #1a1c18;
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
}

.products-header p {
  max-width: 821px;
  margin: 0;
  color: #4d576b;
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
}

/* Featured banner */
.featured-banner {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 442px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(13, 19, 29, 0.92) 0%, rgba(13, 19, 29, 0.7) 35%, rgba(13, 19, 29, 0) 62%),
    url("../images/products/featured-banner.png") center / cover no-repeat;
}

.featured-banner-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 620px;
  padding: 48px clamp(2rem, 4.2vw, 80px);
}

.featured-banner-copy h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.75rem, 2.1vw, 2.5rem);
  line-height: 1.15;
}

.featured-banner-copy p {
  max-width: 490px;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-light);
  line-height: var(--lh-relaxed);
}

.featured-banner-tools {
  position: absolute;
  right: 30px;
  bottom: 40px;
  display: flex;
  align-items: center;
  gap: 50px;
}

.featured-banner-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: rgba(26, 28, 24, 0.3);
  color: #fff;
  cursor: pointer;
  transition: background-color 180ms ease;
}

.featured-banner-btn:hover {
  background: rgba(26, 28, 24, 0.55);
}

.featured-banner-dots {
  display: flex;
  gap: 8px;
}

.featured-banner-dots span {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: #fff;
  opacity: 0.5;
}

.featured-banner-dots span.is-active {
  opacity: 1;
}

/* Product cards grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: var(--pg-card-cream);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 320ms ease;
}

@supports (content-visibility: auto) {
  .product-card {
    content-visibility: auto;
    contain-intrinsic-size: 420px 520px;
  }
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(13, 19, 29, 0.08);
}

.product-card-image img {
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-card:hover .product-card-image img {
  transform: scale(1.04);
}

.product-card-image {
  position: relative;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
}

.product-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-chip {
  position: absolute;
  left: 15px;
  top: 15px;
  padding: 6px 10px;
  border-radius: 40px;
  background: var(--pg-chip-bg);
  color: var(--pg-chip-ink);
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  white-space: nowrap;
}

.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 40px;
  background: #e7ecfb;
  color: #071a59;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
  white-space: nowrap;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
}

.product-card-body h3 {
  margin: 0;
  color: #1a1c18;
  font-size: 1.0625rem;
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
}

.product-card-body .pill-btn {
  margin-top: auto;
}

/* ---------- Product detail ---------- */
.pd-section {
  padding: 128px 0 clamp(72px, 8vw, 116px);
  background: #fff;
}

.pd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: clamp(28px, 4vw, 52px);
  color: #7a8798;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
}

.pd-breadcrumb a {
  color: var(--sp-navy);
  transition: color 160ms ease;
}

.pd-breadcrumb a:hover {
  color: var(--sp-blue);
}

.pd-breadcrumb [aria-current] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pd-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}

.pd-main-image {
  position: relative;
  aspect-ratio: 1.08 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sp-soft);
}

.pd-main-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 180ms ease, transform 240ms ease;
}

.pd-main-image img.is-changing {
  opacity: 0;
  transform: scale(0.99);
}

.pd-thumbnails {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 88px;
  justify-content: start;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
  padding: 2px 2px 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

.pd-thumbnail {
  width: 88px;
  aspect-ratio: 1 / 1;
  padding: 3px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fdf9f2;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.pd-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  object-fit: cover;
}

.pd-thumbnail:hover {
  opacity: 0.82;
}

.pd-thumbnail[aria-pressed="true"] {
  border-color: var(--sp-blue);
  box-shadow: 0 0 0 2px rgba(16, 63, 213, 0.1);
}

.pd-thumbnail:focus-visible {
  outline: 2px solid var(--sp-blue);
  outline-offset: 2px;
}

.pd-main-image .product-chip {
  font-size: var(--fs-body-sm);
}

.pd-product-badges {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: calc(100% - 150px);
}

.pd-product-badges .product-badge {
  position: static;
}

.pd-info {
  display: flex;
  flex-direction: column;
  gap: clamp(22px, 2.5vw, 34px);
  padding-top: clamp(4px, 1vw, 16px);
}

.pd-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pd-heading .product-brand {
  color: var(--sp-blue);
  font-size: var(--fs-body-sm);
}

.pd-info h1 {
  margin: 0;
  max-width: 12ch;
  color: var(--sp-navy);
  font-size: clamp(2.5rem, 4vw, 4.5rem);
  font-weight: var(--fw-regular);
  line-height: 1.02;
  letter-spacing: var(--ls-tight);
}

.pd-desc {
  margin: 0;
  max-width: 58ch;
  color: #526177;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
}

.pd-key-specifications {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

.pd-key-specifications h2 {
  margin: 0;
  color: #1e293b;
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: normal;
}

.pd-key-spec-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pd-key-spec-list > li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  color: rgba(0, 0, 0, 0.8);
  font-size: var(--fs-body);
  line-height: 1.6;
}

.pd-key-spec-list > li::before {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #efefef url("../icons/spec-check.svg") center / 10px 10px no-repeat;
  content: "";
}

.pd-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pd-actions .pill-btn {
  width: 100%;
  min-height: 54px;
  padding-inline: 18px;
  font-size: var(--fs-body-sm);
  letter-spacing: 0;
  white-space: nowrap;
}

.pd-actions [data-inquiry-product][aria-pressed="true"] {
  border-color: var(--sp-navy);
  background: var(--sp-navy);
}

.pd-enquiry-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: #657389;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-normal);
}

.pd-enquiry-note > span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #edf2ff;
  color: var(--sp-blue);
}

.pd-buyer-info {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 132px);
  margin-top: clamp(72px, 9vw, 136px);
  padding-top: clamp(40px, 5vw, 72px);
  border-top: 1px solid #dfe3e8;
}

.pd-buyer-info > header {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pd-buyer-info h2 {
  margin: 0;
  max-width: 12ch;
  color: var(--sp-navy);
  font-size: var(--fs-h1);
  line-height: 1.3;
}

.pd-buyer-info > header p {
  margin: 0;
  max-width: 42ch;
  color: #66748a;
  line-height: var(--lh-relaxed);
}

.pd-tabs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pd-tab-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pd-tab {
  position: relative;
  padding: 0 12px 14px;
  border: 0;
  background: none;
  color: #7a8798;
  font-size: var(--fs-body-sm);
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease;
}

.pd-tab:hover {
  color: #4d576b;
}

.pd-tab:focus-visible {
  outline: 0;
  background: rgba(16, 63, 213, 0.07);
}

.pd-tab.is-active {
  color: var(--sp-navy);
}

.pd-tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% / 3);
  height: 2px;
  background: var(--sp-blue);
  pointer-events: none;
  transform-origin: left center;
}

.pd-tab-panels {
  position: relative;
  min-height: 3.5rem;
}

.pd-tab-panel {
  margin: 0;
  max-width: 68ch;
  color: #526177;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
}

/* Related products band */
.related-section {
  padding: clamp(72px, 8vw, 116px) 0;
  background: var(--sp-soft);
}

.related-section .container-xxl {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 64px);
}

.related-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 40px;
  align-items: end;
}

.related-heading h2 {
  margin: 0;
  max-width: 14ch;
  color: var(--sp-navy);
  font-size: var(--fs-h1);
  line-height: 1.3;
}

.related-heading p {
  margin: 0;
  max-width: 52ch;
  color: #66748a;
  line-height: var(--lh-relaxed);
}

.product-detail-page .pd-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.product-detail-page .related-section .product-card {
  min-width: 0;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #fdf9f2;
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.product-detail-page .related-section .product-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
}

.product-detail-page .related-section .product-card-body {
  gap: 22px;
  padding: 22px 16px 16px;
  border-radius: 8px;
  background: #fff;
}

.product-detail-page .related-section .product-card-body h3 {
  color: var(--sp-navy);
  font-size: var(--fs-h5);
  line-height: var(--lh-snug);
}

.product-detail-page .related-section .product-card-actions .pill-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 0;
  padding: 9px 12px;
  font-size: var(--fs-body-sm);
  letter-spacing: 0;
  white-space: nowrap;
}

.product-detail-page .related-section .product-view-btn {
  border-color: rgba(0, 35, 93, 0.24);
  background: #fff;
  color: var(--sp-navy);
}

.product-detail-page .related-section .product-view-btn:hover {
  border-color: var(--sp-navy);
  background: var(--sp-navy);
  color: #fff;
}

/* ---------- Contact ---------- */
.contact-section {
  position: relative;
  padding: clamp(64px, 7.5vw, 104px) 0;
  background: #fff;
  overflow: hidden;
}

.contact-orbit {
  position: absolute;
  left: clamp(-120px, -7vw, -64px);
  bottom: clamp(-140px, -8vw, -72px);
  width: clamp(440px, 54vw, 765px);
  height: auto;
  opacity: 1;
  pointer-events: none;
  user-select: none;
}

.contact-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
  gap: clamp(2.5rem, 4.2vw, 80px);
  align-items: start;
}

.contact-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-intro h2 {
  margin: 0;
  color: #000;
  font-size: var(--fs-h1);
  line-height: 1.3;
}

.contact-intro > p {
  margin: 0;
  color: var(--pg-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
}

.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-radius: 16px;
}

.contact-card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 28px;
  background: #2563eb;
  color: #fff;
}

.contact-card h3 {
  margin: 0 0 8px;
  color: #000;
  font-size: 1.25rem;
  line-height: 1.4;
}

.contact-card p {
  margin: 0;
  color: var(--pg-muted);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
}

.contact-form-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(1.75rem, 3.4vw, 64px);
  scroll-margin-top: 112px;
  border-radius: 24px;
  background: #f8fafc;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.contact-field label {
  color: #000;
  font-size: var(--fs-body-lg);
  font-weight: var(--fw-medium);
  line-height: var(--lh-relaxed);
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  appearance: none;
}

.contact-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(100, 116, 139, 0.4);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: rgba(16, 63, 213, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 63, 213, 0.08);
}

.contact-field .iti {
  --iti-border-color: #dbe2ea;
  --iti-dialcode-color: #0f172a;
  --iti-dropdown-bg: #fff;
  --iti-hover-color: #f1f5f9;
  --iti-icon-color: #64748b;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  width: 100%;
}

.contact-field .iti__country-container {
  position: relative;
  inset: auto;
  grid-column: 1;
  padding: 0;
}

.contact-field .iti__selected-country {
  width: 100%;
  min-height: 58px;
  justify-content: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.contact-field .iti__selected-country-primary {
  width: auto;
  flex: 0 0 auto;
  justify-content: center;
  padding: 0;
}

.contact-field .iti .iti__selected-dial-code {
  flex: 0 0 auto;
  margin-left: 0;
}

.contact-field .iti--allow-dropdown .iti__country-container button.iti__selected-country:hover {
  background: #f8fafc;
}

.contact-field .iti--allow-dropdown .iti__country-container .iti__selected-country-primary:hover,
.contact-field .iti--allow-dropdown .iti__country-container .iti__selected-country:has(+ .iti__dropdown-content:hover) .iti__selected-country-primary {
  background: transparent;
}

.contact-field .iti__selected-country:focus-visible {
  border-color: rgba(16, 63, 213, 0.45);
  box-shadow: 0 0 0 3px rgba(16, 63, 213, 0.08);
  outline: none;
}

.contact-field .iti input.iti__tel-input {
  grid-column: 2;
  padding: 16px !important;
}

.contact-field .iti__dropdown-content {
  width: min(340px, calc(100vw - 48px));
  margin-top: 8px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.contact-field .iti__search-input {
  padding: 12px 36px;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  outline: none;
}

.contact-field .iti__country {
  padding: 10px 12px;
}

.contact-field textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form-card .pill-btn {
  align-self: flex-start;
  margin-top: 8px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .pd-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .pd-layout {
    gap: 44px;
  }

  .pd-main-image {
    aspect-ratio: 16 / 10;
  }

  .pd-info h1 {
    max-width: 16ch;
  }

  .pd-buyer-info {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pd-buyer-info h2 {
    max-width: 16ch;
  }

  .product-detail-page .pd-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-banner-tools {
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 767.98px) {
  .products-page .page-hero-media {
    background-position: center 58%;
  }

  .contact-page .page-hero-media {
    background-position: 62% center;
  }

  .products-section,
  .related-section {
    padding: 64px 0;
  }

  .contact-section {
    padding: 72px 0;
  }

  .contact-orbit {
    left: -150px;
    bottom: -80px;
    width: 520px;
  }

  .contact-form-card {
    scroll-margin-top: 88px;
  }

  .contact-field .iti {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 8px;
  }

  .pd-section {
    padding: 104px 0 72px;
  }

  .pd-breadcrumb {
    margin-bottom: 28px;
  }

  .pd-main-image {
    aspect-ratio: 1 / 1;
  }

  .pd-info h1 {
    max-width: 13ch;
    font-size: clamp(2.4rem, 11vw, 3.5rem);
  }

  .pd-desc,
  .pd-tab-panel {
    font-size: var(--fs-body);
  }

  .pd-buyer-info {
    margin-top: 72px;
    padding-top: 44px;
  }

  .pd-tab-list {
    grid-template-columns: 1fr;
    border-bottom: 0;
  }

  .pd-tab {
    padding: 12px 0;
  }

  .related-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-detail-page .pd-related-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .featured-banner {
    min-height: 380px;
  }

  .featured-banner-copy {
    padding: 32px 24px;
  }

  .pd-tab-list {
    gap: 0;
  }

  .filter-pill {
    font-size: var(--fs-body);
    padding: 8px 18px;
  }
}

@media (max-width: 575.98px) {
  .pd-actions {
    grid-template-columns: 1fr;
  }
}

/* ---------- Products catalogue ---------- */
.products-page .products-hero .page-hero-content {
  max-width: 860px;
}

.products-page .products-hero .pill-btn {
  margin-top: 8px;
}

.category-directory,
.products-catalogue,
.trade-proof {
  padding: clamp(72px, 8vw, 120px) 0;
  scroll-margin-top: 88px;
}

.category-directory {
  background: var(--sp-white);
}

.products-catalogue {
  background: #fff;
}

.trade-proof {
  background: #fff;
}

.catalogue-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: end;
}

.catalogue-section-heading h2 {
  max-width: 17ch;
  margin: 0;
  color: var(--sp-navy);
  font-size: var(--fs-h1);
  font-weight: var(--fw-regular);
  line-height: 1.3;
}

.catalogue-section-heading p {
  max-width: 62ch;
  margin: 0;
  color: #526177;
  font-size: var(--fs-body-lg);
  line-height: var(--lh-relaxed);
}

.category-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 24px);
  margin-top: clamp(48px, 6vw, 80px);
}

.category-index-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: var(--sp-navy);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease;
}

.category-index-card:hover {
  transform: translateY(-4px);
  background: #061a3c;
}

.category-index-card:focus-visible {
  outline: 3px solid var(--sp-blue-bright);
  outline-offset: 3px;
}

.category-index-card[aria-pressed="true"] {
  background: var(--sp-blue);
}

.category-index-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.category-index-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 92px;
  padding: 18px 20px;
}

.category-index-copy strong {
  font-size: var(--fs-h5);
  font-weight: var(--fw-regular);
  line-height: var(--lh-snug);
}

.category-index-copy small {
  color: #c2cce0;
  font-size: var(--fs-body-xs);
  line-height: var(--lh-normal);
}

.products-catalogue .container-xxl {
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 5vw, 64px);
}

.catalogue-toolbar {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(280px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: var(--sp-soft);
}

.catalogue-category-select,
.catalogue-search {
  min-width: 0;
  min-height: 52px;
  border: 1px solid var(--sp-line);
  border-radius: 6px;
  background-color: #fff;
}

.catalogue-category-select {
  width: 100%;
  padding: 0 42px 0 16px;
  color: var(--sp-navy);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2309224c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.catalogue-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  color: #67758b;
}

.catalogue-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sp-ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
}

.catalogue-search input::placeholder {
  color: #718096;
}

.catalogue-category-select:focus-visible,
.catalogue-search:focus-within {
  border-color: var(--sp-blue);
  box-shadow: 0 0 0 3px rgba(8, 63, 189, 0.12);
  outline: 0;
}

.catalogue-result-count {
  min-width: 132px;
  margin: 0;
  padding: 0 12px;
  color: #5c6a7e;
  font-size: var(--fs-body-sm);
  text-align: right;
}

.products-page .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.products-page .product-card {
  min-width: 0;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #fdf9f2;
  content-visibility: visible;
  contain-intrinsic-size: auto;
}

.products-page .product-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
}

.products-page .product-card-body {
  gap: 22px;
  padding: 22px 16px 16px;
  border-radius: 8px;
  background: #fff;
}

.product-card-heading {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.products-page .product-card-body h3 {
  color: var(--sp-navy);
  font-size: var(--fs-h5);
  line-height: var(--lh-snug);
}

.product-brand {
  margin: 0;
  color: #66748a;
  font-size: var(--fs-body-xs);
  font-weight: var(--fw-medium);
  line-height: var(--lh-normal);
}

.product-trade-specs {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #ded5c7;
}

.product-trade-specs > div {
  display: grid;
  grid-template-columns: minmax(86px, 0.7fr) minmax(0, 1.3fr);
  gap: 14px;
}

.product-trade-specs dt,
.product-trade-specs dd {
  margin: 0;
  font-size: var(--fs-body-xs);
  line-height: var(--lh-normal);
}

.product-trade-specs dt {
  color: #7c8798;
  font-weight: var(--fw-regular);
}

.product-trade-specs dd {
  color: #35445b;
}

.product-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 10px;
  width: 100%;
  margin-top: auto;
}

.products-page .product-card-actions .pill-btn {
  width: 100%;
  min-height: 48px;
  margin-top: 0;
  padding: 9px 12px;
  font-size: var(--fs-body-sm);
  letter-spacing: 0;
  white-space: nowrap;
}

.products-page .product-view-btn {
  border-color: rgba(0, 35, 93, 0.28);
  background: #fff;
  color: var(--sp-navy);
}

.products-page .product-view-btn:hover {
  border-color: var(--sp-navy);
  background: var(--sp-navy);
  color: #fff;
}

.products-page .product-inquiry-btn[aria-pressed="true"] {
  border-color: var(--sp-navy);
  background: var(--sp-navy);
}

@media (max-width: 380px) {
  .product-card-actions {
    grid-template-columns: 1fr;
  }
}

.product-empty {
  width: 100%;
  margin: 0;
  padding: 48px 24px;
  border-radius: 8px;
  background: var(--sp-soft);
  color: #526177;
  text-align: center;
}

.catalogue-view-more {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 36px;
}

.catalogue-view-more-btn {
  min-height: 52px;
  padding: 0 32px;
  border: 1.5px solid var(--sp-navy);
  border-radius: 1000px;
  background: transparent;
  color: var(--sp-navy);
  font-family: var(--font-sans);
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.catalogue-view-more-btn:hover {
  background: var(--sp-navy);
  color: #fff;
}

.trade-proof-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: end;
}

.trade-proof .catalogue-section-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.trade-proof-points {
  display: grid;
  gap: 0;
}

.trade-proof-points p {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--sp-line);
  color: var(--sp-navy);
  font-size: var(--fs-body-lg);
  line-height: var(--lh-snug);
}

.trade-proof-points p:last-child {
  border-bottom: 1px solid var(--sp-line);
}

.trade-proof .logo-strip {
  width: 100%;
  margin-top: clamp(48px, 6vw, 80px);
  overflow: hidden;
}

.inquiry-tray {
  position: fixed;
  z-index: 1080;
  left: 50%;
  bottom: 20px;
  width: min(900px, calc(100% - 32px));
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: var(--sp-navy);
  box-shadow: 0 16px 44px rgba(4, 18, 43, 0.2);
  transform: translateX(-50%);
}

.inquiry-tray:has(.inquiry-tray-toggle[aria-expanded="false"]) {
  border-radius: 1000px;
}

.inquiry-tray-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: var(--sp-navy);
}

.inquiry-tray-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
}

.inquiry-tray-toggle strong {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--sp-blue-bright);
  font-weight: var(--fw-medium);
}

.inquiry-toggle-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d6deec;
  font-size: var(--fs-body-sm);
  white-space: nowrap;
}

.inquiry-toggle-action svg {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.inquiry-tray-toggle[aria-expanded="true"] .inquiry-toggle-action svg {
  transform: rotate(180deg);
}

.inquiry-tray-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.inquiry-tray-heading button:focus-visible,
.inquiry-item-remove:focus-visible {
  outline: 2px solid var(--sp-blue);
  outline-offset: 2px;
}

.inquiry-continue {
  min-height: 46px;
  padding: 8px 24px;
  border-color: #fff;
  background: #fff;
  color: var(--sp-blue);
  font-size: var(--fs-body-sm);
  letter-spacing: 0;
}

.inquiry-continue:hover {
  border-color: #fff;
  background: #fff;
  color: var(--sp-navy);
}

.inquiry-tray-panel {
  max-height: min(52vh, 430px);
  padding: 0 20px 14px;
  overflow-y: auto;
  border-top: 0;
  background: #fff;
  color: var(--sp-navy);
}

.inquiry-tray-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0 12px;
  background: #fff;
}

.inquiry-tray-heading h2 {
  margin: 0;
  color: var(--sp-navy);
  font-size: var(--fs-h5);
  line-height: var(--lh-snug);
}

.inquiry-tray-heading button,
.inquiry-item-remove {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #b42318;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.inquiry-tray-heading button:hover,
.inquiry-item-remove:hover {
  border-color: #f6c7c2;
  background: #fef3f2;
  color: #912018;
}

.inquiry-tray-heading button svg,
.inquiry-item-remove svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* "Delete All Items" expands out from the circular icon on hover/focus, so
   the destructive action reads clearly before it's taken instead of only
   being a bare icon. Per-row remove buttons (.inquiry-item-remove) share
   the base circular styling above but are deliberately left out of this
   expansion — only the clear-all action is significant enough to warrant it. */
.inquiry-tray-heading button.inquiry-clear {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 36px;
  flex: 0 0 auto;
  gap: 8px;
  padding: 0 9px;
  overflow: hidden;
  white-space: nowrap;
  /* A fixed radius (not 50%) so it reads as a proper stadium/pill once it
     widens on hover — 50% of a wide-short box renders as a squashed oval
     instead, since the horizontal and vertical radii are computed from
     each axis independently. 18px = half the button's own height. */
  border-radius: 18px;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, width 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.inquiry-clear-label {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-medium);
  opacity: 0;
  transition: opacity 120ms ease;
}

.inquiry-tray-heading button.inquiry-clear:hover,
.inquiry-tray-heading button.inquiry-clear:focus-visible {
  /* Matches the label's actual measured content width (icon + gap + text +
     padding) — the earlier guessed 178px left visible slack on the right
     since flex-start alignment doesn't absorb unused space evenly. */
  width: 150px;
}

.inquiry-clear:hover .inquiry-clear-label,
.inquiry-clear:focus-visible .inquiry-clear-label {
  opacity: 1;
  transition: opacity 160ms ease 80ms;
}

.inquiry-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.inquiry-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid #e0e5ec;
}

.inquiry-item-product {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.inquiry-item-thumbnail {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  overflow: hidden;
  border: 1px solid #e0e5ec;
  border-radius: 6px;
  background: #fff;
}

.inquiry-item-thumbnail img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
}

.inquiry-item-thumbnail.is-empty {
  background: #f6f2ea;
}

.inquiry-item-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.inquiry-item-name strong {
  color: var(--sp-navy);
  font-weight: var(--fw-regular);
  overflow-wrap: anywhere;
}

.inquiry-item-name small {
  color: #758297;
  font-size: var(--fs-body-xs);
}

.products-page.has-inquiry-tray,
.product-detail-page.has-inquiry-tray {
  padding-bottom: 104px;
}

@media (max-width: 991.98px) {
  .catalogue-section-heading,
  .trade-proof-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .category-index-grid,
  .products-page .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalogue-toolbar {
    grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  }

  .catalogue-result-count {
    grid-column: 1 / -1;
    min-width: 0;
    padding: 2px 4px 0;
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .category-directory,
  .products-catalogue,
  .trade-proof {
    padding: 72px 0;
  }

  .catalogue-section-heading h2 {
    font-size: var(--fs-h1);
    line-height: 1.3;
  }

  .catalogue-section-heading p {
    font-size: var(--fs-body);
  }

  .category-index-grid {
    gap: 12px;
    margin-top: 40px;
  }

  .category-index-copy {
    min-height: 88px;
    padding: 14px;
  }

  .category-index-copy strong {
    font-size: var(--fs-body);
  }

  .catalogue-toolbar {
    grid-template-columns: 1fr;
  }

  .catalogue-result-count {
    grid-column: auto;
  }

  .products-page .product-grid {
    grid-template-columns: 1fr;
  }

  .products-page .product-card {
    width: 100%;
  }

  .trade-proof-points p {
    font-size: var(--fs-body);
  }

  .inquiry-tray {
    bottom: 12px;
    width: calc(100% - 24px);
    border-radius: 14px;
  }

  .inquiry-tray:has(.inquiry-tray-toggle[aria-expanded="false"]) {
    border-radius: 20px;
  }

  .inquiry-tray-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .inquiry-tray-toggle {
    width: 100%;
  }

  .inquiry-continue {
    width: 100%;
  }

  .inquiry-tray-panel {
    padding: 4px 16px 18px;
  }

  .inquiry-list-item {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .inquiry-item-product {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
  }

  .inquiry-item-thumbnail {
    width: 48px;
    height: 48px;
  }

  .inquiry-item-remove {
    grid-column: 2 / 3;
    grid-row: 1;
  }

  .products-page.has-inquiry-tray,
  .product-detail-page.has-inquiry-tray {
    padding-bottom: 152px;
  }
}

/* Contact form submission status (added for the WordPress conversion —
   the static build's form never actually submitted anywhere). */
.contact-form-status {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  margin-bottom: 4px;
}

.contact-form-status--success {
  background: rgba(11, 87, 255, 0.1);
  color: var(--sp-blue);
  border: 1px solid rgba(11, 87, 255, 0.25);
}

.contact-form-status--error {
  background: rgba(200, 40, 40, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(185, 28, 28, 0.25);
}

/* ---------- 404 / Page Not Found ---------- */
.error-404-code {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: var(--fw-regular);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  color: var(--pg-gold);
  opacity: 0.9;
}

.error-404-actions {
  padding: clamp(56px, 6.5vw, 88px) 0;
  background: #fff;
  text-align: center;
}

.error-404-actions .container-xxl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.error-404 .page-hero-media {
  background-image: none;
  background-color: #0d131d;
}

/* ---------- WPForms contact form: pixel-match .contact-field / .pill-btn ----------
   WPForms' own theme settings couldn't hit these values exactly (visible
   borders, bold labels, undersized button), so these are forced overrides
   matching the retired custom form's computed styles exactly. */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form select,
#contact-form textarea {
  padding: 16px !important;
  border: 1px solid transparent !important;
  color: #0f172a !important;
  font-size: var(--fs-body) !important;
  line-height: var(--lh-relaxed) !important;
}

/* WPForms' Phone field renders intl-tel-input in "inline dropdown" mode,
   where the 47px-wide flag/country button is absolutely positioned over
   the input's left edge rather than sitting in its own grid column like
   the original design. Push the input's text past it. */
#contact-form .iti input[type="tel"] {
  padding-left: 60px !important;
}

/* WPForms forces a fixed height (--wpforms-field-size-input-height: 43px),
   which with box-sizing: border-box left almost no room for the 16px
   padding + 24px line-height above. The original .contact-field inputs had
   no explicit height at all, so let each field size itself naturally. */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form select {
  height: auto !important;
}

#contact-form textarea {
  height: auto !important;
  min-height: 160px !important;
  resize: vertical !important;
  scrollbar-width: thin !important;
  scrollbar-color: rgba(100, 116, 139, 0.35) transparent !important;
}

#contact-form textarea::-webkit-scrollbar {
  width: 6px;
}

#contact-form textarea::-webkit-scrollbar-track {
  background: transparent;
}

#contact-form textarea::-webkit-scrollbar-thumb {
  background-color: rgba(100, 116, 139, 0.35);
  border-radius: 3px;
}

#contact-form select {
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: auto !important;
}

#contact-form input[type="text"]::placeholder,
#contact-form input[type="email"]::placeholder,
#contact-form input[type="tel"]::placeholder,
#contact-form textarea::placeholder {
  color: rgba(100, 116, 139, 0.4) !important;
}

#contact-form label {
  color: #000 !important;
  font-size: var(--fs-body-lg) !important;
  font-weight: var(--fw-medium) !important;
  line-height: var(--lh-relaxed) !important;
}

#contact-form input[type="text"]:focus,
#contact-form input[type="email"]:focus,
#contact-form input[type="tel"]:focus,
#contact-form select:focus,
#contact-form textarea:focus {
  border-color: rgba(16, 63, 213, 0.45) !important;
  box-shadow: 0 0 0 3px rgba(16, 63, 213, 0.08) !important;
}

#contact-form .wpforms-submit {
  background-color: var(--pg-blue) !important;
  border-radius: 500px !important;
  min-height: 52px !important;
  height: auto !important;
  padding: 10px 30px !important;
  font-size: var(--fs-body) !important;
  font-weight: var(--fw-regular) !important;
  line-height: var(--lh-snug) !important;
  letter-spacing: 0.32px !important;
}

#contact-form .wpforms-submit:hover {
  background-color: #0038a7 !important;
}

/* WPForms' default confirmation message is a hardcoded lime-green box
   (#e0ffc7 background, #b4d39b border). Restyle it to match the site's own
   success/error status design (see .contact-form-status--success, from the
   retired custom form) instead of WPForms' out-of-the-box look. */
#contact-form .wpforms-confirmation-container-full {
  background: rgba(11, 87, 255, 0.08) !important;
  border: 1px solid rgba(11, 87, 255, 0.25) !important;
  border-radius: 10px !important;
  color: var(--sp-blue) !important;
  font-size: var(--fs-body) !important;
  line-height: var(--lh-relaxed) !important;
  padding: 16px !important;
  margin: 0 !important;
}

/* WPForms caps "Medium" size fields at max-width: 60% by default, leaving
   them squeezed into a narrow column instead of filling the card like the
   original .contact-field inputs did (width: 100%). */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form select,
#contact-form textarea,
#contact-form .wpforms-field-row {
  max-width: 100% !important;
  width: 100% !important;
}

/* .contact-form-card is display:flex, and WPForms sets its own
   .wpforms-container to `margin: 24px auto`. Auto side-margins on a flex
   item disable cross-axis stretch, so the container was shrink-wrapping to
   its content's intrinsic width (229px) instead of filling the card. */
#contact-form .wpforms-container {
  width: 100% !important;
  margin: 0 !important;
}

/* WPForms spaces fields apart with 15px top/bottom padding on each
   .wpforms-field (30px total gap) instead of the original's flex
   `gap: 16px` on .contact-form-card. Zero the padding and use a matching
   16px margin-bottom so field spacing lines up with the original design,
   then restore the 8px pill-btn margin-top so the button sits 24px below
   the last field (16px + 8px), exactly as it did before. */
#contact-form .wpforms-field {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin: 0 0 16px !important;
}

/* Adjacent block margins collapse to the larger value, not the sum, so
   the last field's margin-bottom (16px) would otherwise swallow this
   margin-top entirely. Set it to the full desired 24px (16px gap + 8px
   pill-btn offset) so the collapsed result matches the original spacing. */
#contact-form .wpforms-submit-container {
  margin: 24px 0 0 !important;
}
