/* ══ ENQUIRY PAGE STYLES ══════════════════════════════════════════════
   Uses site-wide .wrap for all container widths + responsive padding.
   .wrap { max-width:1560px; margin:0 auto; padding:100px 64px }
   @media(max-width:1200px) { .wrap { padding:80px 24px } }
   @media(max-width:768px)  { .wrap { padding:60px 18px } }
══════════════════════════════════════════════════════════════════════ */

/* ── Site-wide wrap ─────────────────────────────────── */
.wrap {
  max-width: 1560px;
  margin: 0 auto;
  padding: 100px 64px;
}
@media(max-width:1200px) {
  .wrap { padding: 80px 24px; }
}
@media(max-width:768px) {
  .wrap { padding: 60px 18px; }
}

/* ── Page wrapper ─────────────────────────────────────── */
.enq-page {
  background: var(--white);
  min-height: 100vh;
}

/* ── Page hero ────────────────────────────────────────── */
.enq-page-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.enq-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
/* hero .wrap gets reduced vertical padding */
.enq-page-hero .wrap {
  padding-top: 64px;
  padding-bottom: 52px;
}
.enq-page-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
  position: relative;
}
.enq-page-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  color: #fff;
  line-height: .96;
  letter-spacing: -.02em;
  margin-bottom: 18px;
  position: relative;
}
.enq-page-sub {
  font-size: 16px;
  line-height: 1.72;
  color: rgba(255,255,255,.55);
  font-weight: 300;
  max-width: 520px;
  position: relative;
}

/* ── Products section ─────────────────────────────────── */
.enq-products-section { background: var(--white); }
/* products .wrap: less bottom padding, form section handles its own top */
.enq-products-section .wrap {
  padding-bottom: 0;
}

.enq-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 24px;
}
.enq-section-title {
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
}
.enq-item-count {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 12px;
}
.enq-clear-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 7px 14px;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.enq-clear-btn:hover { color: #EF4444; border-color: #FCA5A5; background: #FEF2F2; }

/* ── Empty state ──────────────────────────────────────── */
.enq-empty-state {
  text-align: center;
  padding: 80px 40px;
  border: 2px dashed var(--border);
  border-radius: 8px;
  margin-bottom: 0;
  color: var(--muted);
}
.enq-empty-state svg { margin: 0 auto 20px; opacity: .3; }
.enq-empty-state h3 {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 10px;
}
.enq-empty-state p { font-size: 15px; line-height: 1.7; margin-bottom: 28px; }
.enq-browse-btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 2px;
  transition: background .18s;
}
.enq-browse-btn:hover { background: var(--red); }

/* ── Product table ────────────────────────────────────── */
.enq-table-wrap {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.enq-table {
  width: 100%;
  border-collapse: collapse;
}
.enq-table thead tr { background: var(--navy); }
.enq-table thead th {
  padding: 13px 18px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
}
.enq-table thead th.col-qty,
.enq-table thead th.col-price,
.enq-table td.col-qty,
.enq-table td.col-price { text-align: center; }
.enq-table thead th.col-remove { width: 48px; }
.enq-table thead th.col-subtotal,
.enq-table td.col-subtotal { text-align: right; }

/* Grand total row */
.enq-total-row td { padding: 16px 18px; background: var(--off); border-top: 2px solid var(--border); }
.enq-total-label {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.enq-total-value {
  text-align: right;
  font-family: 'Barlow', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--navy);
  white-space: nowrap;
}

.enq-row { transition: background .15s; }
.enq-row:hover { background: var(--off); }
.enq-row td {
  padding: 18px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.enq-row:last-child td { border-bottom: none; }

.enq-product-cell { display: flex; align-items: center; gap: 16px; }
.enq-thumb-link { flex-shrink: 0; }
.enq-thumb {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
  transition: transform .25s;
}
.enq-thumb-link:hover .enq-thumb { transform: scale(1.04); }
.enq-cat {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 4px;
}
.enq-product-name {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.3;
  transition: color .18s;
}
.enq-product-name:hover { color: var(--blue); }
.enq-sku { font-size: 12px; color: var(--muted); font-family: monospace; }

/* Qty controls */
.enq-qty-wrap {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.enq-qty-btn {
  width: 34px; height: 36px;
  background: var(--off);
  border: none;
  font-size: 18px;
  color: var(--navy);
  cursor: pointer;
  transition: background .18s, color .18s;
  display: flex; align-items: center; justify-content: center;
}
.enq-qty-btn:hover { background: var(--blue); color: #fff; }
.enq-qty-input {
  width: 52px; height: 36px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  -moz-appearance: textfield;
}
.enq-qty-input::-webkit-outer-spin-button,
.enq-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.enq-qty-input:focus { outline: none; }

.enq-price {
  font-family: 'Barlow', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
}
.enq-price-poa { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .06em; }

.enq-remove-btn {
  width: 32px; height: 32px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s, border-color .18s;
  margin: 0 auto;
}
.enq-remove-btn:hover { background: #FEE2E2; border-color: #FCA5A5; }
.enq-remove-btn svg { stroke: #EF4444; }

.enq-table-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  padding: 14px 18px;
  background: var(--off);
  border-top: 1px solid var(--border);
}
.enq-table-note svg { flex-shrink: 0; stroke: var(--muted); }

/* ── Form section ─────────────────────────────────────── */
.enq-form-section {
  /*border-top: 1px solid var(--border);*/
  background: var(--white);
}
/* form box full width, max readable width centred */
.enq-form-box {
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px 52px;
  max-width: 860px;
  margin: 0 auto;
}

/* ── CF7 field overrides ──────────────────────────────── */
.enq-form-box .wpcf7-form p { margin-bottom: 18px; }
.enq-form-box .wpcf7-form label {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.enq-form-box .wpcf7-form input[type="text"],
.enq-form-box .wpcf7-form input[type="email"],
.enq-form-box .wpcf7-form input[type="tel"],
.enq-form-box .wpcf7-form input[type="number"],
.enq-form-box .wpcf7-form select,
.enq-form-box .wpcf7-form textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  appearance: none;
  transition: border-color .18s;
  box-sizing: border-box;
}
.enq-form-box .wpcf7-form input:focus,
.enq-form-box .wpcf7-form select:focus,
.enq-form-box .wpcf7-form textarea:focus { border-color: var(--blue); }
.enq-form-box .wpcf7-form textarea { min-height: 130px; resize: vertical; }

/* product data is injected server-side — no hidden field in the form */

/* Submit button */
.enq-form-box .wpcf7-form input[type="submit"],
.enq-form-box .wpcf7-submit {
  width: 100%;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 15px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .18s;
  letter-spacing: .02em;
  font-family: 'Inter', sans-serif;
}
.enq-form-box .wpcf7-form input[type="submit"]:hover,
.enq-form-box .wpcf7-submit:hover { background: var(--red); }

/* CF7 validation messages */
.enq-form-box .wpcf7-response-output {
  margin-top: 16px !important;
  padding: 12px 16px !important;
  border-radius: 3px !important;
  font-size: 14px !important;
}
.enq-form-box .wpcf7-not-valid-tip {
  font-size: 12px;
  color: var(--red);
}

/* No CF7 notice */
.enq-no-cf7 {
  background: #FEF9EC;
  border: 1px solid #F6CC63;
  border-radius: 4px;
  padding: 24px;
  font-size: 14px;
  color: #7A5C0A;
  line-height: 1.7;
  max-width: 860px;
  margin: 0 auto;
}

/* ── Mobile: collapse table to cards ─────────────────── */
@media(max-width:768px) {
  .enq-page-hero .wrap { padding-top: 48px; padding-bottom: 40px; }
  .enq-table, .enq-table thead, .enq-table tbody,
  .enq-table th, .enq-table td, .enq-table tr { display: block; }
  .enq-table thead { display: none; }
  .enq-row { border-bottom: 1px solid var(--border); padding: 16px 0; }
  .enq-row td { border: none; padding: 4px 0; }
  .enq-product-cell { margin-bottom: 10px; }
  .col-sku::before   { content: 'SKU: ';   font-size:11px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.08em; }
  .col-qty::before   { content: 'Qty: ';   font-size:11px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.08em; }
  .col-price::before    { content: 'Price: ';    font-size:11px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.08em; }
  .col-subtotal::before { content: 'Subtotal: '; font-size:11px; color:var(--muted); font-weight:600; text-transform:uppercase; letter-spacing:.08em; }
  .enq-total-row { display: block; padding: 16px 0; }
  .enq-total-row td { display: inline-block; border-top: none; background: none; padding: 0; }
  .enq-total-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 4px; }
  .enq-total-value { font-size: 20px; }
  .enq-remove-btn { margin: 0; }
  .enq-form-box { padding: 28px 20px; }
}/* ── Mobile ─────────────────────────────────────────── */
@media(max-width:768px) {
  .enq-page-hero .wrap { padding-top: 40px; padding-bottom: 32px; }
  .enq-page-title { font-size: 32px; }
  .enq-section-head { flex-direction: row; align-items: center; margin-bottom: 20px; }

  /* Hide desktop table, show as cards */
  .enq-table-wrap { border: none; }
  .enq-table thead { display: none; }
  .enq-table, .enq-table tbody { display: block; width: 100%; }

  /* Each row = card */
  .enq-row {
    display: block !important;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 16px;
    position: relative;
  }
  .enq-row td {
    display: block !important;
    border: none;
    padding: 0;
  }

  /* Product: image left, info right */
  .col-product { margin-bottom: 14px; }
  .enq-product-cell { display: flex; align-items: center; gap: 12px; }
  .enq-thumb { width: 60px; height: 60px; flex-shrink: 0; }
  .enq-product-name { font-size: 14px; line-height: 1.3; }
  .enq-cat { font-size: 9px; margin-bottom: 3px; }

  /* Hide SKU */
  .col-sku { display: none !important; }

  /* Controls row: qty left, price + subtotal right */
  .col-qty, .col-price, .col-subtotal {
    display: inline-block !important;
    vertical-align: middle;
  }
  .col-qty { margin-right: 16px; }

  /* Price & subtotal inline labels */
  .col-price { margin-right: 12px; }
  .col-price::before {
    content: 'Price: ';
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
  .col-subtotal::before {
    content: 'Total: ';
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
  .col-price .enq-price { font-size: 14px; }
  .col-subtotal .enq-price { font-size: 15px; font-weight: 800; color: var(--navy); }

  /* Remove: absolute top-right */
  .col-remove {
    position: absolute !important;
    top: 14px;
    right: 14px;
    display: block !important;
    padding: 0 !important;
  }
  .enq-remove-btn {
    width: 28px; height: 28px;
    border: none;
    background: none;
    border-radius: 4px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .enq-remove-btn:hover { background: #FEE2E2; }
  .enq-remove-btn::before { display: none; }
  .enq-remove-btn svg { stroke: #EF4444; width: 15px; height: 15px; }

  /* Total row */
  .enq-total-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: var(--off);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 4px;
    margin-bottom: 0;
  }
  .enq-total-row td { display: none !important; }
  .enq-total-row td.enq-total-label,
  .enq-total-row td.enq-total-value {
    display: block !important;
  }
  .enq-total-spacer { display: none !important; }
  .enq-total-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .enq-total-value { font-size: 22px; }

  /* Table note */
  .enq-table-note { border-radius: 0 0 8px 8px; }

  /* Form section */
  .enq-form-section .wrap { padding-top: 36px; padding-bottom: 48px; }
  .enq-form-box { padding: 24px 16px; }
}

@media(max-width:480px) {
  .enq-page-title { font-size: 28px; }
  .enq-section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .col-price, .col-subtotal { display: block !important; margin-top: 8px; margin-right: 0; }
  .col-qty { display: block !important; margin-bottom: 8px; }
}