/* =========================================================
   Sticker quote: styled to sit natively inside Scan-Stick.
   Reuses the site tokens from style.css (--coral green, Gotham,
   Space Mono, --line, --tag-clip, --ease).
   ========================================================= */

.quote-body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
/* make the hidden attribute win even over flex/grid display rules */
[hidden] { display: none !important; }

/* ---------- Header ---------- */
.quote-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.quote-header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem clamp(1.1rem, 4vw, 2.4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.quote-header .brand-logo { height: 1.5rem; width: auto; display: block; }
.quote-back {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  text-decoration: none;
  white-space: nowrap;
}
.quote-back:hover { color: var(--coral); }

/* ---------- Layout ---------- */
.quote-main { padding: clamp(2.2rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 6rem); }
.quote-main .container { max-width: 66rem; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.4rem); }

.quote-intro-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}
.quote-intro { max-width: 42ch; }
.quote-stickers {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
}
.quote-stickers-pair {
  display: flex;
  align-items: flex-start;
}
.quote-sticker {
  position: relative;                  /* so z-index controls the overlap order */
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.quote-sticker img {
  width: clamp(120px, 14vw, 165px);
  height: auto;
}
.quote-sticker figcaption {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(38, 40, 43, 0.5);
}
/* the top pair — slightly random, angled, overlapping */
.quote-sticker--die   { transform: rotate(-6deg); z-index: 3; }
.quote-sticker--die img { width: clamp(152px, 17vw, 205px); }
.quote-sticker--round { margin-left: -1.4rem; margin-top: 1.8rem; transform: rotate(5deg); z-index: 2; }
/* the rectangle — shrunk, turned on its side, sitting under the pair */
.quote-sticker--rect { transform: translateX(-80px) rotate(-3deg); }
.rect-frame { position: relative; width: 311px; height: 118px; }
.rect-frame img { position: absolute; left: 50%; top: 50%; width: auto; height: 311px; transform: translate(-50%, -50%) rotate(90deg); }
@media (max-width: 52em) {
  .quote-stickers { display: none; }   /* decorative — hidden where there's no room beside the heading */
}
.section-index {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0 0 0.9rem;
}
.quote-title {
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.quote-standfirst {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6;
  color: rgba(38, 40, 43, 0.72);
  margin: 0;
  max-width: 52ch;
}

/* ---------- Form grid ---------- */
.quote-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.1rem, 2.5vw, 1.6rem);
  align-items: stretch;         /* both panels match the taller column's height */
}
@media (min-width: 60em) {
  .quote-cols { grid-template-columns: 1fr 1fr; }   /* equal-width columns */
}

.quote-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.3rem, 3vw, 2rem);
}
.panel-h {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 1.4rem;
}
.panel-no {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--coral);
  letter-spacing: 0.06em;
}

/* ---------- Fields ---------- */
.q-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 30em) { .q-grid { grid-template-columns: 1fr; } }

.q-field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.15rem; }
.q-field label {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(38, 40, 43, 0.6);
}
.req { color: #cc3322; margin-left: 0.1em; font-weight: 700; }
.q-hint { text-transform: none; letter-spacing: 0; color: rgba(38, 40, 43, 0.4); }

.q-field select,
.q-field input,
.q-field textarea {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  border-radius: 9px;
  padding: 0.78rem 0.9rem;
  width: 100%;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.q-field textarea { resize: vertical; line-height: 1.5; }
.q-field select,
.q-field input { height: 3rem; }
.q-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2326282B' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
.q-field select:focus,
.q-field input:focus,
.q-field textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(73, 159, 56, 0.16);
}
.q-field input:invalid:not(:placeholder-shown) { border-color: #c2402e; }

.q-dims { display: flex; align-items: center; gap: 0.6rem; }
.q-dims input { width: 100%; }
.q-x { font-family: var(--mono); color: rgba(38, 40, 43, 0.4); }
.q-unit { font-family: var(--mono); font-size: 0.8rem; color: rgba(38, 40, 43, 0.45); }

.q-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.q-preset {
  font-family: var(--mono);
  font-size: 0.74rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  border-radius: 100px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.q-preset:hover { background: var(--charcoal); color: var(--paper); }

/* ---------- Estimate ---------- */
.q-estimate {
  margin-top: 1.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.q-price-row { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.q-price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.q-per { font-family: var(--mono); font-size: 0.85rem; color: rgba(38, 40, 43, 0.6); margin-top: 0.35rem; }
.q-exvat { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(38, 40, 43, 0.5); margin-top: 0.4rem; }
.q-save {
  background: var(--coral);
  color: var(--white);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.35rem 0.7rem;
  border-radius: 100px;
}
.q-breakdown {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 30em) { .q-breakdown { grid-template-columns: 1fr; } }
.q-breakdown div { background: var(--white); padding: 0.8rem 0.9rem; }
.bd-l { display: block; font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(38, 40, 43, 0.5); margin-bottom: 0.35rem; }
.bd-v { font-family: var(--mono); font-size: 0.9rem; font-weight: 700; }

.q-disclaimer {
  margin-top: 1.1rem;
  margin-bottom: 1.4rem;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(38, 40, 43, 0.7);
  background: rgba(73, 159, 56, 0.1);
  border-left: 3px solid var(--coral);
  padding: 0.85rem 1rem;
  border-radius: 0 8px 8px 0;
}
.q-disclaimer strong { color: var(--ink); display: block; margin-bottom: 0.25rem; }

/* ---------- Volume tiers (kept, tucked away) ---------- */
.q-tiers { margin-top: 1.3rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.q-tiers summary {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(38, 40, 43, 0.6);
  cursor: pointer;
}
.q-tiers table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 0.8rem; margin-top: 0.9rem; }
.q-tiers th, .q-tiers td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
.q-tiers th { color: rgba(38, 40, 43, 0.5); font-weight: 700; text-transform: uppercase; font-size: 0.62rem; letter-spacing: 0.05em; }
.q-tiers tr.match td { color: var(--coral); font-weight: 700; }

/* ---------- Lead time + submit ---------- */
.q-lead {
  margin: 1.3rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(38, 40, 43, 0.75);
}

.q-submit {
  width: 100%;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--coral);
  border: 0;
  border-radius: 100px;
  padding: 1.05rem 1.6rem;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.q-submit:hover { background: var(--coral-deep); transform: translateY(-1px); }
.q-submit:disabled { opacity: 0.6; cursor: default; transform: none; }
.q-submit-sub { display: block; margin-top: 0.3rem; letter-spacing: 0.06em; }
.q-smallprint { font-size: 0.74rem; line-height: 1.5; color: rgba(38, 40, 43, 0.5); margin: 0.9rem 0 0; text-align: center; }

.hp { position: absolute; left: -9999px; }

/* ---------- Success ---------- */
.quote-success { padding: clamp(2rem, 6vw, 4rem) 0; }
.quote-success-inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(2rem, 5vw, 3.2rem);
}
.quote-success .tick {
  width: 3rem; height: 3rem; margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  background: var(--coral); color: var(--white);
  border-radius: 50%; font-size: 1.4rem; font-weight: 700;
}
.quote-success h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); margin: 0 0 0.9rem; letter-spacing: -0.01em; }
.quote-success p { color: rgba(38, 40, 43, 0.72); line-height: 1.6; margin: 0 auto 0.9rem; max-width: 46ch; }
.quote-success .btn {
  display: inline-flex; align-items: center; margin-top: 1rem;
  background: var(--charcoal); color: var(--white); text-decoration: none;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.05rem 1.6rem; clip-path: var(--tag-clip);
}
.quote-success .btn:hover { background: var(--coral); }
.quote-success-actions { display: flex; gap: 1.2rem; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }
.quote-success-actions .btn { margin-top: 0; }
.quote-success-back { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--charcoal); text-decoration: none; }
.quote-success-back:hover { color: var(--coral); }
.quote-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.4rem;
  background: var(--coral);
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1.15rem 2.1rem;
  clip-path: var(--tag-clip);
  transition: background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.quote-upload-btn:hover { background: var(--coral-deep); transform: translateY(-1px); }
.quote-upload-btn { margin-bottom: 1.4rem; }
.quote-upload-note { font-size: 0.78rem; line-height: 1.5; color: rgba(38, 40, 43, 0.55); margin: 1.6rem auto 0; max-width: 44ch; }
.quote-success .quote-success-back { display: inline-block; margin-top: 1.8rem; }

/* ---------- Footer ---------- */
.quote-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 0.8rem;
  color: rgba(38, 40, 43, 0.55);
}
.quote-footer .container { max-width: 66rem; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.4rem); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.quote-footer p { margin: 0; }
.quote-footer a { color: var(--charcoal); }

@media (prefers-reduced-motion: reduce) {
  .q-submit, .q-preset, .q-field select, .q-field input, .q-field textarea { transition: none; }
}
