/* BSCV Portal - brand: red #FF0000 / #D60000, cyan #31C8E8, ink #111, Poppins */
.bscv {
  --bscv-red: #d60000;
  --bscv-red-hi: #ff0000;
  --bscv-cyan: #31c8e8;
  --bscv-ink: #111;
  --bscv-muted: #667085;
  --bscv-line: #d0d7dd;
  --bscv-soft: #f5f7f8;
  --bscv-ok: #12805c;
  font-family: Poppins, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--bscv-ink);
  line-height: 1.5;
  box-sizing: border-box;
}
.bscv *, .bscv *::before, .bscv *::after { box-sizing: inherit; }
.bscv [hidden] { display: none !important; }
/* The quote popup and photo viewer set display:flex, which beats the browser's [hidden] rule.
   Without this they are open on page load and cover the gallery. */
.bscv-modal[hidden], .bscv-lightbox[hidden] { display: none !important; }
body.bscv-noscroll { overflow: hidden; }

/* ---------- buttons ---------- */
.bscv-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bscv-red); color: #fff !important; border: 2px solid var(--bscv-red);
  border-radius: 8px; padding: 10px 18px; font: 600 14px/1.2 Poppins, system-ui, sans-serif;
  cursor: pointer; text-decoration: none !important; transition: background .15s, transform .15s, border-color .15s;
}
.bscv-btn:hover { background: var(--bscv-red-hi); border-color: var(--bscv-red-hi); }
.bscv-btn:focus-visible, .bscv-filter:focus-visible, .bscv-zoom:focus-visible, .bscv-close:focus-visible { outline: 3px solid var(--bscv-cyan); outline-offset: 2px; }
.bscv-btn[disabled] { opacity: .6; cursor: wait; }
.bscv-btn-lg { padding: 13px 24px; font-size: 15px; }
.bscv-btn-ghost { background: #fff; color: var(--bscv-ink) !important; border-color: var(--bscv-line); }
.bscv-btn-ghost:hover { background: var(--bscv-soft); border-color: var(--bscv-ink); }
.bscv-link { background: none; border: 0; color: var(--bscv-muted); text-decoration: underline; cursor: pointer; font: inherit; padding: 8px; }

/* ---------- gallery ---------- */
.bscv-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.bscv-filter {
  border: 1px solid var(--bscv-line); background: #fff; color: var(--bscv-ink); border-radius: 999px;
  padding: 7px 16px; font: 500 13px/1.2 Poppins, system-ui, sans-serif; cursor: pointer; transition: all .15s;
}
.bscv-filter:hover { border-color: var(--bscv-cyan); }
.bscv-filter.is-active { background: var(--bscv-ink); border-color: var(--bscv-ink); color: #fff; }

.bscv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.bscv-card {
  margin: 0; background: #fff; border: 1px solid var(--bscv-line); border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(17, 17, 17, .04);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bscv-card:hover { transform: translateY(-2px); border-color: var(--bscv-cyan); box-shadow: 0 8px 18px rgba(17, 17, 17, .08); }
.bscv-zoom { display: block; padding: 0; margin: 0; border: 0; background: var(--bscv-soft); cursor: zoom-in; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; }
.bscv-zoom img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.bscv-card:hover .bscv-zoom img { transform: scale(1.04); }
.bscv-card figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bscv-label { font-weight: 600; font-size: 15px; }
.bscv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bscv-chip { font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--bscv-muted); background: var(--bscv-soft); border-radius: 999px; padding: 2px 10px; }
.bscv-card .bscv-quote-btn { margin-top: auto; width: 100%; }
.bscv-empty { color: var(--bscv-muted); padding: 24px 0; }

/* ---------- lightbox + modal ---------- */
.bscv-lightbox {
  position: fixed; inset: 0; z-index: 99998; background: rgba(0, 0, 0, .88);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.bscv-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.bscv-close {
  position: absolute; top: 10px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer;
}
.bscv-lightbox .bscv-close:hover { background: rgba(255, 255, 255, .3); }
.bscv-modal {
  position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .6);
  display: flex; align-items: flex-start; justify-content: center; padding: 20px 14px; overflow-y: auto;
}
.bscv-modal-box { position: relative; background: #fff; border-radius: 14px; width: 100%; max-width: 560px; padding: 26px 24px 24px; margin: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.bscv-modal .bscv-close { color: var(--bscv-ink); background: var(--bscv-soft); }
.bscv-modal h3 { margin: 0 0 14px; font-size: 22px; }
.bscv-ref { display: flex; gap: 12px; align-items: center; background: var(--bscv-soft); border-radius: 10px; padding: 8px; margin-bottom: 14px; font-size: 13px; }
.bscv-ref img { width: 72px; height: 56px; object-fit: cover; border-radius: 6px; }

/* ---------- forms ---------- */
.bscv-page { max-width: 920px; margin: 0 auto; padding: 8px 0 24px; }
.bscv-form { display: flex; flex-direction: column; gap: 14px; }
.bscv-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; }
.bscv-form input[type=text], .bscv-form input[type=tel], .bscv-form input[type=email], .bscv-form input[type=password], .bscv-form textarea, .bscv-form input[type=file] {
  width: 100%; border: 1px solid var(--bscv-line); border-radius: 8px; padding: 11px 12px;
  font: 400 15px/1.4 Poppins, system-ui, sans-serif; color: var(--bscv-ink); background: #fff;
}
.bscv-form input:focus, .bscv-form textarea:focus { outline: 2px solid var(--bscv-cyan); border-color: var(--bscv-cyan); }
.bscv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bscv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bscv-error { margin: 0; padding: 10px 12px; border-radius: 8px; background: #fdecec; color: #9b1c1c; font-size: 14px; }
.bscv-note, .bscv-meta { margin: 0; font-size: 13px; color: var(--bscv-muted); }
.bscv-ok { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #e7f6ef; color: var(--bscv-ok); font-weight: 600; font-size: 14px; }
.bscv-wait { background: #fff8e1; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 10px 0 0; }

.bscv-done { text-align: center; padding: 6px 0; }
.bscv-done h3 { margin: 8px 0; }
.bscv-tick { width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; background: var(--bscv-ok); color: #fff; font-size: 28px; line-height: 52px; }
.bscv-qno { font-size: 18px; letter-spacing: .02em; color: var(--bscv-red); }
.bscv-account-box { text-align: left; background: var(--bscv-soft); border-radius: 12px; padding: 16px; margin-top: 16px; }
.bscv-account-box h4 { margin: 0 0 4px; font-size: 16px; }
.bscv-account-box > p { margin: 0 0 12px; font-size: 13px; color: var(--bscv-muted); }
.bscv-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }

/* ---------- account ---------- */
.bscv-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.bscv-panel { border: 1px solid var(--bscv-line); border-radius: 12px; padding: 20px; background: #fff; }
.bscv-panel h3, .bscv-panel h4 { margin-top: 0; }
.bscv-callout { background: #f0fbfe; border-color: var(--bscv-cyan); margin-bottom: 20px; }
.bscv-list { margin: 0 0 14px; padding-left: 18px; font-size: 14px; }
.bscv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.bscv-head h3 { margin: 0; }
.bscv-h { margin: 28px 0 12px; font-size: 20px; }

.bscv-quote-card { border: 1px solid var(--bscv-line); border-radius: 12px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.bscv-quote-card summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 14px 16px; cursor: pointer; list-style: none;
}
.bscv-quote-card summary::-webkit-details-marker { display: none; }
.bscv-quote-card[open] summary { background: var(--bscv-soft); border-bottom: 1px solid var(--bscv-line); }
.bscv-qn { font-weight: 700; font-size: 14px; }
.bscv-qv { color: var(--bscv-muted); font-size: 14px; flex: 1 1 140px; }
.bscv-qt { font-weight: 700; }
.bscv-qbody { padding: 16px; }
.bscv-qbody p { margin: 0 0 10px; }
.bscv-refs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.bscv-refs img { height: 96px; width: auto; max-width: 100%; border-radius: 8px; border: 1px solid var(--bscv-line); }

.bscv-badge { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: #e9edf0; color: #344054; white-space: nowrap; }
.bscv-s-requested { background: #fff4d6; color: #8a5a00; }
.bscv-s-quoted { background: #dff6fc; color: #0a6a82; }
.bscv-s-accepted, .bscv-o-completed, .bscv-o-ready { background: #e7f6ef; color: var(--bscv-ok); }
.bscv-s-declined, .bscv-s-expired, .bscv-o-cancelled { background: #fdecec; color: #9b1c1c; }
.bscv-o-in-progress, .bscv-o-confirmed { background: #dff6fc; color: #0a6a82; }

.bscv-table-wrap { overflow-x: auto; margin: 12px 0; }
.bscv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bscv-table th, .bscv-table td { padding: 9px 10px; border-bottom: 1px solid #e7ecef; text-align: left; }
.bscv-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--bscv-muted); }
.bscv-table .n { text-align: right; white-space: nowrap; }
.bscv-table tfoot td { border-bottom: 0; }
.bscv-grand td { font-weight: 700; font-size: 16px; border-top: 2px solid var(--bscv-ink); }

.bscv-order { border: 1px solid var(--bscv-line); border-radius: 12px; padding: 16px; margin-bottom: 12px; background: #fff; }
.bscv-order-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.bscv-order-top > div { display: flex; flex-direction: column; }
.bscv-steps { list-style: none; display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 6px; margin: 16px 0 12px; padding: 0; counter-reset: s; }
.bscv-steps li { position: relative; text-align: center; font-size: 11px; color: var(--bscv-muted); padding-top: 26px; counter-increment: s; }
.bscv-steps li::before {
  content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 22px; height: 22px;
  border-radius: 50%; background: #e9edf0; color: #344054; font-weight: 700; font-size: 12px; line-height: 22px;
}
.bscv-steps li::after { content: ""; position: absolute; top: 10px; left: calc(50% + 14px); right: calc(-50% + 14px); height: 2px; background: #e9edf0; }
.bscv-steps li:last-child::after { display: none; }
.bscv-steps li.is-done::before { background: var(--bscv-ok); color: #fff; content: "\2713"; }
.bscv-steps li.is-done::after { background: var(--bscv-ok); }
.bscv-steps li.is-current { color: var(--bscv-ink); font-weight: 600; }
.bscv-steps li.is-current::before { background: var(--bscv-red); color: #fff; }
.bscv-settings { margin-top: 28px; }
.bscv-settings summary { cursor: pointer; font-weight: 600; margin-bottom: 12px; }

@media (max-width: 600px) {
  .bscv-row { grid-template-columns: 1fr; }
  .bscv-grid { grid-template-columns: 1fr; }
  .bscv-modal-box { padding: 22px 16px 18px; }
  .bscv-steps li { font-size: 10px; }
  .bscv-head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .bscv * { transition: none !important; }
}

/* ---------- messages + tracking ---------- */
.bscv-gap { margin: 0 0 14px; }
.bscv-msgs { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.bscv-msg { max-width: 85%; padding: 10px 12px; border-radius: 12px; background: var(--bscv-soft); }
.bscv-msg p { margin: 4px 0 0; font-size: 14px; }
.bscv-msg-who { font-size: 11px; color: var(--bscv-muted); font-weight: 600; }
.bscv-msg.is-me { align-self: flex-end; background: #dff6fc; }
.bscv-msg.is-team { align-self: flex-start; }
.bscv-newmsg { margin-top: 12px; }
.bscv-newmsg summary { cursor: pointer; font-weight: 600; }
.bscv-newmsg form { margin-top: 12px; }
.bscv-thread .bscv-qv { font-style: italic; }
.bscv-track-result { margin: 18px 0; }
.bscv-track-result:empty { display: none; }
.bscv-track-quote { margin-bottom: 12px; }
