/* ==========================================================
   DT PROPERTY IMPROVEMENTS
   Colour visualiser (colours.html)
   Loads after site.css and inner.css
   ========================================================== */

/* the hero shows straight away on this page (quicker to load) */
.js .vz-hero .hero-title .line > span, .js .vz-hero .hero-fade { transform: none; opacity: 1; transition: none; }

.vz { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 8vw, 6rem); background: var(--ink); }

/* ===== Step 1: choose a photo ===== */
.vz-start { max-width: 860px; margin: 0 auto; }
.vz-drop {
  position: relative; display: grid; justify-items: center; gap: 0.9rem; text-align: center; cursor: pointer;
  padding: clamp(2.4rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  border: 1px dashed rgba(255, 255, 255, 0.3); background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, background-color 0.3s;
}
.vz-drop:hover, .vz-drop.is-over { border-color: var(--red-hot); background: rgba(211, 19, 27, 0.06); }
.vz-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vz-drop:focus-within { outline: 2px solid var(--red); outline-offset: 4px; }
.vz-drop-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); color: var(--red-hot); }
.vz-drop-title { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.05; }
.vz-drop-title em { color: var(--red-hot); }
.vz-drop-sub { color: var(--muted); max-width: 30rem; }
.vz-drop-btn { margin-top: 0.6rem; pointer-events: none; }

.vz-samples { margin-top: 2.2rem; }
.vz-samples-title { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 1rem; text-align: center; }
.vz-sample-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.8rem; }
.vz-sample {
  position: relative; padding: 0; border: 1px solid var(--line); background: #111; cursor: pointer; overflow: hidden; color: #fff;
  aspect-ratio: 4 / 3; transition: border-color 0.3s;
}
.vz-sample img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease), opacity 0.3s; opacity: 0.8; }
.vz-sample span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 0.6rem 0.55rem; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}
.vz-sample:hover { border-color: var(--red-hot); }
.vz-sample:hover img { transform: scale(1.05); opacity: 1; }
.vz-private { margin-top: 1.6rem; text-align: center; color: var(--muted); font-size: 0.88rem; }

/* ===== Step 2: editor ===== */
.vz-app { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: clamp(1.5rem, 3vw, 2.6rem); align-items: start; }
.vz-app[hidden] { display: none; }

.vz-stage { position: relative; background: #0a0a0a; border: 1px solid var(--line); line-height: 0; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.vz-stage canvas { display: block; width: 100%; height: auto; }
.vz-overlay { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.vz-stage.is-brush .vz-overlay { cursor: none; }
.vz-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); pointer-events: none; }
.vz-before canvas { width: 100%; height: 100%; }
.vz-compare { position: absolute; inset: 0; --pos: 50%; z-index: 5; line-height: 1.65; }
.vz-compare .ba-handle { left: var(--pos); }
.vz-compare .ba-range { touch-action: pan-y; }

.vz-busy {
  position: absolute; inset: 0; z-index: 8; display: grid; place-content: center; justify-items: center; gap: 1rem; text-align: center; padding: 1.5rem;
  background: rgba(7, 7, 7, 0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); line-height: 1.5;
}
.vz-busy p { font-size: 0.95rem; max-width: 22rem; }
.vz-spinner { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--red-hot); animation: vz-spin 0.9s linear infinite; }
@keyframes vz-spin { to { transform: rotate(360deg); } }
.vz-bar { width: min(240px, 70vw); height: 3px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.vz-bar i { display: block; height: 100%; width: 0; background: var(--red-hot); transition: width 0.3s; }

.vz-hint { margin: 0.9rem 0 0; color: var(--muted); font-size: 0.92rem; min-height: 1.5em; }
.vz-hint strong { color: #fff; font-weight: 600; }

.vz-tools, .vz-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin-top: 1rem; }
.vz-actions { padding-top: 1rem; border-top: 1px solid var(--line); }
.vz-seg { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.22); }
.vz-seg-btn {
  padding: 0.75rem 1rem; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75); background: transparent; border: 0; cursor: pointer; transition: background-color 0.3s, color 0.3s;
}
.vz-seg-btn + .vz-seg-btn { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.vz-seg-btn:hover { color: #fff; }
.vz-seg-btn.is-on { background: var(--red); color: #fff; }
.vz-seg-btn[data-mode="remove"].is-on { background: #fff; color: var(--text); }
.vz-tool-extra { display: inline-flex; gap: 0.6rem; }
.vz-mini {
  padding: 0.75rem 1rem; font: 600 0.68rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; background: transparent; border: 1px solid rgba(255, 255, 255, 0.22); cursor: pointer; transition: border-color 0.3s, background-color 0.3s;
}
.vz-mini:hover:not(:disabled) { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.vz-mini:disabled { opacity: 0.35; cursor: default; }
.vz-mini[aria-pressed="true"]#vzCompareBtn { background: var(--red); border-color: var(--red); }
.vz-mini-quiet { color: var(--muted); }
.vz-slider { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.vz-slider[hidden] { display: none; }
.vz-slider input { width: 120px; accent-color: var(--red); }

/* ===== Side panel ===== */
.vz-panel { position: sticky; top: 6.2rem; display: grid; gap: 1rem; }
.vz-block { background: var(--black); border: 1px solid var(--line); padding: 1.3rem; }
.vz-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.6rem; }
.vz-block h2 { font-size: 1.9rem; line-height: 1; }
.vz-block h2 em { color: var(--red-hot); }
.vz-small { font-size: 0.84rem; color: var(--muted); line-height: 1.55; }
.vz-link { background: none; border: 0; padding: 0; cursor: pointer; color: var(--red-hot); font: 600 0.7rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; }
.vz-link:hover { color: #fff; }

.vz-areas { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.vz-area {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 0.8rem; align-items: center;
  padding: 0.6rem 0.7rem; border: 1px solid var(--line); cursor: pointer; transition: border-color 0.3s, background-color 0.3s;
}
.vz-area:hover { border-color: rgba(255, 255, 255, 0.4); }
.vz-area.is-on { border-color: var(--red-hot); background: rgba(211, 19, 27, 0.08); }
.vz-area-sw { width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.25); background: repeating-linear-gradient(45deg, #222 0 6px, #2c2c2c 6px 12px); }
.vz-area-name { font-weight: 600; font-size: 0.92rem; line-height: 1.3; }
.vz-area-col { display: block; font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vz-area-del { background: none; border: 0; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0.2rem 0.4rem; }
.vz-area-del:hover { color: var(--red-hot); }

.vz-brands { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0 1.1rem; }
.vz-brand {
  padding: 0.6rem 0.75rem; font: 600 0.64rem/1 var(--sans); letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75); background: transparent; border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer; transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.vz-brand:hover { color: #fff; border-color: #fff; }
.vz-brand.is-on { background: var(--red); border-color: var(--red); color: #fff; }
.vz-search { margin-bottom: 1rem; }
.vz-search input::-webkit-search-cancel-button { filter: invert(1); }

.vz-popular:empty { display: none; }
.vz-popular { margin-bottom: 0.9rem; }
.vz-popular p { font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 0.5rem; }

.vz-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 0.45rem; max-height: 340px; overflow-y: auto; padding-right: 0.2rem; scrollbar-width: thin; scrollbar-color: #444 transparent; }
.vz-popular .vz-swatches { max-height: none; overflow: visible; }
.vz-sw {
  display: grid; grid-template-rows: 46px auto; padding: 0; border: 1px solid rgba(255, 255, 255, 0.14); background: #121212; cursor: pointer; text-align: left; color: #fff;
  transition: border-color 0.2s, transform 0.2s;
}
.vz-sw i { display: block; }
.vz-sw span { display: block; padding: 0.35rem 0.4rem 0.4rem; font-size: 0.62rem; line-height: 1.25; color: rgba(255, 255, 255, 0.78); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vz-sw span b { display: block; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; }
.vz-sw:hover { border-color: #fff; transform: translateY(-2px); }
.vz-sw.is-on { border-color: var(--red-hot); box-shadow: 0 0 0 1px var(--red-hot); }
.vz-more { margin-top: 0.9rem; }
.vz-note { margin-top: 0.9rem; }
.vz-empty { grid-column: 1 / -1; color: var(--muted); font-size: 0.88rem; padding: 0.6rem 0; line-height: 1.5; }

.vz-cta { border-top: 2px solid var(--red); }
.vz-cta p { margin: 0.6rem 0 1.1rem; }
.vz-quote-btn { width: 100%; }

/* ===== How it works ===== */
.vz-how { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.vz-steps { list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
.vz-steps li { border-top: 1px solid var(--line-dark); padding-top: 1.4rem; }
.vz-steps span { font-family: var(--serif); font-size: 2.4rem; color: var(--red); line-height: 1; }
.vz-steps h3 { font-size: 1.9rem; margin: 0.8rem 0 0.6rem; }
.vz-steps p { color: var(--text-muted); }

/* ===== Quote sheet ===== */
.vz-sheet { align-items: start; overflow-y: auto; }
.vz-sheet[hidden] { display: none; }
.modal[hidden] { display: none; }
.vz-sheet-box { position: relative; width: min(100%, 620px); margin: 2rem auto; }
.vz-sheet-box h3 { font-size: 2.3rem; }
.vz-close { position: absolute; top: 0.8rem; right: 1rem; background: none; border: 0; color: var(--muted); font-size: 2rem; line-height: 1; cursor: pointer; }
.vz-close:hover { color: #fff; }
.vz-sheet-preview { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 1rem; align-items: start; margin: 1rem 0 1.6rem; }
.vz-sheet-preview img { width: 100%; border: 1px solid var(--line); display: block; }
.vz-sheet-preview ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; font-size: 0.88rem; }
.vz-sheet-preview li { display: flex; gap: 0.6rem; align-items: center; line-height: 1.35; }
.vz-sheet-preview li i { flex: none; width: 18px; height: 18px; border: 1px solid rgba(255, 255, 255, 0.3); }

.vz-choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.vz-choices legend { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--muted); margin-bottom: 0.6rem; padding: 0; }
.vz-choices label { position: relative; cursor: pointer; }
.vz-choices input { position: absolute; opacity: 0; pointer-events: none; }
.vz-choices span {
  display: inline-block; padding: 0.65rem 0.85rem; font-size: 0.82rem; border: 1px solid rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.vz-choices label:hover span { border-color: #fff; color: #fff; }
.vz-choices input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.vz-choices input:focus-visible + span { outline: 2px solid var(--red-hot); outline-offset: 2px; }

/* ===== Tablet ===== */
@media (max-width: 1060px) {
  .vz-app { grid-template-columns: minmax(0, 1fr); }
  .vz-panel { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vz-panel .vz-block:nth-child(2) { grid-row: span 2; }
}

/* ===== Phone ===== */
@media (max-width: 680px) {
  .vz { padding-top: 1.5rem; }
  .vz-sample-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vz-panel { grid-template-columns: minmax(0, 1fr); }
  .vz-panel .vz-block:nth-child(2) { grid-row: auto; }
  .vz-tools, .vz-actions { gap: 0.5rem; }
  .vz-seg-btn, .vz-mini { padding: 0.75rem 0.8rem; }
  .vz-swatches { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); max-height: 300px; }
  .vz-steps { grid-template-columns: minmax(0, 1fr); }
  .vz-sheet-preview { grid-template-columns: 110px minmax(0, 1fr); }
  .vz-sheet-box { margin: 0.5rem auto; padding: 1.6rem 1.25rem; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
}

/* ===== Accuracy tips ===== */
.vz-hint-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.6rem 1.2rem; flex-wrap: wrap; }
.vz-hint-row .vz-hint { flex: 1 1 18rem; margin-bottom: 0; }
.vz-tips-btn {
  flex: none; margin-top: 0.85rem; padding: 0.5rem 0.9rem; border: 1px solid rgba(255, 74, 81, 0.6); background: transparent;
  color: var(--red-hot); font: 600 0.68rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
.vz-tips-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.vz-tips-box { width: min(100%, 36rem); max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; }
.vz-tips-box h3 em { color: var(--red-hot); }
.vz-tips { margin: 1.2rem 0 0; padding-left: 1.3rem; display: grid; gap: 0.7rem; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.vz-tips strong { color: #fff; font-weight: 600; }
.vz-tips li::marker { color: var(--red-hot); font-family: var(--serif); }
.vz-tips-note { margin: 1.2rem 0 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
