/* Customer 3-page quote PDF details form (2026-11-14). Autosafe colours, works on phones. */
:root {
  --qpdf-yellow: #FEC215;
  --qpdf-ink: #231F20;
  --qpdf-muted: #5c5c5c;
  --qpdf-grey: #F3F3F3;
  --qpdf-line: #e5e5e5;
}
.qpdf-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 16, 16, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow: auto;
}
.qpdf-modal[hidden] { display: none !important; }
.qpdf-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  color: var(--qpdf-ink);
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(16, 16, 16, 0.28);
  padding: 28px 32px 24px;
  font-family: Inter, Arial, Helvetica, sans-serif;
}
.qpdf-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--qpdf-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 10px;
}
.qpdf-close:hover { background: var(--qpdf-grey); color: var(--qpdf-ink); }
.qpdf-logo { height: 28px; width: auto; display: block; margin-bottom: 12px; }
.qpdf-box h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.3px;
  padding-right: 36px;
}
.qpdf-lead { margin: 0 0 18px; font-size: 14px; line-height: 1.45; color: var(--qpdf-muted); }
.qpdf-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.qpdf-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 500; color: var(--qpdf-ink); }
.qpdf-form label.full { grid-column: 1 / -1; }
.qpdf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; grid-column: 1 / -1; }
.qpdf-form .opt { color: var(--qpdf-muted); font-weight: 400; }
.qpdf-form input[type="text"],
.qpdf-form input[type="email"],
.qpdf-form input[type="tel"],
.qpdf-form select {
  height: 44px;
  border: 1px solid var(--qpdf-line);
  border-radius: 10px;
  padding: 0 12px;
  font: 500 16px/1 Inter, Arial, Helvetica, sans-serif;
  color: var(--qpdf-ink);
  background: #fff;
  width: 100%;
}
.qpdf-form input:focus,
.qpdf-form select:focus { outline: 2px solid var(--qpdf-yellow); border-color: var(--qpdf-yellow); }
.qpdf-form input.err,
.qpdf-form select.err { border-color: #b00020; }
.qpdf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qpdf-check {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  padding: 10px 12px;
  background: var(--qpdf-grey);
  border-radius: 12px;
  margin: 0;
}
.qpdf-check input { width: 22px; height: 22px; margin-top: 1px; flex: none; accent-color: var(--qpdf-ink); }
/* 2026-11-14 tidy: tick box beside its words (the column rule for labels stacked them), "(optional)" on the label line so Company lines up with Phone */
.qpdf-form label.qpdf-check { flex-direction: row; align-items: center; cursor: pointer; }
.qpdf-form label.qpdf-check input { margin: 0; }
.qpdf-form label > span:first-child { display: block; white-space: nowrap; }
.qpdf-form .opt { display: inline; font-size: inherit; cursor: inherit; }   /* builder.css .opt is a flex row (tick-box options) */
.qpdf-turnstile { grid-column: 1 / -1; display: none; }
.qpdf-turnstile.is-on { display: block; }
.qpdf-actions { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.qpdf-actions .btn.primary {
  height: 48px;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--qpdf-yellow);
  color: var(--qpdf-ink);
  font: 700 15px/1 Inter, Arial, Helvetica, sans-serif;
  cursor: pointer;
  width: 100%;
}
.qpdf-actions .btn.primary:disabled { opacity: .6; cursor: wait; }
.qpdf-fine { margin: 4px 0 0; font-size: 11px; color: var(--qpdf-muted); text-align: center; }
.qpdf-err { grid-column: 1 / -1; color: #b00020; font-size: 13px; margin: 0; display: none; }
.qpdf-err.is-on { display: block; }

@media (max-width: 640px) {
  .qpdf-modal { padding: 0; align-items: stretch; }
  .qpdf-box {
    max-width: none;
    min-height: 100%;
    border-radius: 0;
    padding: 16px 20px 20px;
    box-shadow: none;
  }
  .qpdf-lead { margin-bottom: 12px; }
  .qpdf-form { grid-template-columns: 1fr; gap: 10px; }
  .qpdf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; grid-column: 1 / -1; }
  .qpdf-box h2 { font-size: 22px; }
  .qpdf-check { padding: 8px 12px; }
}
