/* ═══════════════════════════════════════════════════
   Driver Pages — Shared Professional Stylesheet
   Used by: *-driver-setup.html, *-printer-model.html
   ═══════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1e293b;
  background: #f8fafc;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  animation: pageIn .4s ease both;
}
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Nav ── */
.dp-nav {
  background: #d4eeff;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.dp-nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.dp-nav-logo img { height: 38px; width: auto; border-radius: 8px; }
.dp-nav-logo span { font-weight: 800; font-size: 1.2rem; color: #0f172a; letter-spacing: -.3px; }
.dp-nav-links { display: flex; align-items: center; gap: 28px; }
.dp-nav-links a {
  font-weight: 600; font-size: .82rem; color: #374151;
  text-decoration: none; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 0; border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.dp-nav-links a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.dp-nav-right { display: flex; align-items: center; gap: 14px; }
.dp-nav-phone {
  font-weight: 700; color: var(--brand); text-decoration: none; font-size: .88rem;
  display: flex; align-items: center; gap: 6px;
}
.dp-btn-nav {
  background: var(--brand); color: #fff; padding: 9px 22px;
  border-radius: 8px; font-weight: 700; font-size: .82rem;
  text-decoration: none; text-transform: uppercase; letter-spacing: .04em;
  transition: opacity .2s, transform .15s;
}
.dp-btn-nav:hover { opacity: .88; transform: translateY(-1px); }

/* ── Hero ── */
.dp-hero {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-light) 100%);
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}
.dp-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.dp-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 48px; align-items: center; position: relative; z-index: 1;
}
.dp-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.18); backdrop-filter: blur(4px);
  color: #fff; padding: 5px 14px; border-radius: 20px;
  font-size: .75rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 16px;
}
.dp-hero-eyebrow .dot { width: 7px; height: 7px; background: #4ade80; border-radius: 50%; animation: blink 1.4s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.dp-hero h1 {
  font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 900;
  color: #fff; line-height: 1.1; margin-bottom: 14px; letter-spacing: -.02em;
}
.dp-hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.85); margin-bottom: 32px; line-height: 1.6; }

/* Search box */
.dp-search-box {
  background: #fff; border-radius: 16px; padding: 24px 28px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2); margin-bottom: 20px;
}
.dp-search-label {
  display: block; font-size: .8rem; font-weight: 700;
  color: #374151; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.dp-search-row { display: flex; }
.dp-search-row input {
  flex: 1; padding: 14px 18px;
  border: 2px solid #e5e7eb; border-right: none;
  border-radius: 10px 0 0 10px;
  font-size: .97rem; color: #1e293b; background: #f9fafb;
  outline: none; transition: border-color .2s, background .2s;
  font-family: inherit;
}
.dp-search-row input:focus { border-color: var(--brand); background: #fff; }
.dp-search-row button {
  background: var(--brand); color: #fff;
  border: none; padding: 14px 32px;
  border-radius: 0 10px 10px 0;
  font-weight: 800; font-size: 1rem; cursor: pointer;
  letter-spacing: .06em; transition: background .2s;
  white-space: nowrap;
}
.dp-search-row button:hover { background: var(--brand-dark); }
.dp-search-hint { font-size: .78rem; color: #9ca3af; margin-top: 8px; }

/* Mini trust tags */
.dp-mini-trust { display: flex; gap: 16px; flex-wrap: wrap; }
.dp-mini-trust span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; color: rgba(255,255,255,.8); font-weight: 600;
}
.dp-mini-trust .icon { font-size: .9rem; }

/* Hero right image */
.dp-hero-img {
  display: flex; justify-content: center; align-items: center;
  position: relative;
}
.dp-hero-img::before {
  content: '';
  position: absolute; inset: -16px;
  background: rgba(255,255,255,.1); border-radius: 24px;
  backdrop-filter: blur(2px);
}
.dp-hero-img img {
  position: relative; z-index: 1;
  max-width: 100%; max-height: 380px;
  object-fit: contain; border-radius: 16px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.25));
}

/* ── Trust Bar ── */
.dp-trust-bar {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  padding: 20px 40px;
}
.dp-trust-bar-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.dp-trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: .82rem; color: #6b7280; font-weight: 600;
}
.dp-trust-item .ti-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--brand-bg, #f0f9ff);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.dp-trust-item .ti-text strong { display: block; font-size: .92rem; color: #0f172a; }

/* ── OR Expert Help Section ── */
.dp-expert {
  background: #f8fafc; padding: 56px 40px;
  flex: 1;
}
.dp-expert-inner { max-width: 1200px; margin: 0 auto; }
.dp-section-tag {
  display: inline-block; background: var(--brand); color: #fff;
  padding: 3px 14px; border-radius: 20px; font-size: .72rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  margin-bottom: 12px;
}
.dp-expert-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }

/* Steps card */
.dp-steps-card {
  background: #fff; border-radius: 20px; padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06); border: 1px solid #f1f5f9;
}
.dp-steps-card h3 { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin-bottom: 24px; }
.dp-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid #f1f5f9;
}
.dp-step:last-child { border-bottom: none; padding-bottom: 0; }
.dp-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dp-step-body strong { display: block; font-size: .92rem; font-weight: 700; color: #0f172a; margin-bottom: 3px; }
.dp-step-body p { font-size: .82rem; color: #6b7280; line-height: 1.5; }

/* Expert form card */
.dp-form-card {
  background: #fff; border-radius: 20px; padding: 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06); border: 1px solid #f1f5f9;
}
.dp-form-card h3 { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.dp-form-card p.sub { font-size: .83rem; color: #6b7280; margin-bottom: 22px; }
.dp-form-field { margin-bottom: 13px; }
.dp-form-field label {
  display: block; font-size: .78rem; font-weight: 700;
  color: #374151; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px;
}
.dp-form-field input,
.dp-form-field select,
.dp-form-field textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid #e5e7eb; border-radius: 10px;
  font-size: .9rem; color: #1e293b; background: #f9fafb;
  font-family: inherit; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.dp-form-field input:focus,
.dp-form-field select:focus,
.dp-form-field textarea:focus {
  border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px var(--brand-ring, rgba(0,150,214,.12));
}
.dp-submit-btn {
  width: 100%; background: var(--brand); color: #fff;
  padding: 13px; border: none; border-radius: 11px;
  font-weight: 800; font-size: .97rem; cursor: pointer;
  letter-spacing: .02em;
  box-shadow: 0 4px 16px var(--brand-shadow, rgba(0,150,214,.35));
  transition: background .2s, transform .15s, box-shadow .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.dp-submit-btn:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 8px 24px var(--brand-shadow, rgba(0,150,214,.4)); }
.dp-submit-btn:active { transform: translateY(0); }

/* Phone CTA strip */
.dp-phone-strip {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-top: 16px; padding: 12px;
  background: var(--brand-bg, #f0f9ff); border-radius: 10px;
  font-size: .83rem; color: #374151; font-weight: 600;
}
.dp-phone-strip a { color: var(--brand); font-weight: 800; text-decoration: none; }

/* ── RESULT PAGES ── */
/* Back nav */
.dp-back-bar {
  background: #fff; border-bottom: 1px solid #f1f5f9; padding: 12px 40px;
}
.dp-back-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--brand); font-weight: 700; font-size: .85rem;
  text-decoration: none; transition: gap .2s;
}
.dp-back-link:hover { gap: 11px; }

/* Result wrapper */
.dp-result-section { flex: 1; padding: 48px 40px; }
.dp-result-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: start; }

/* Found banner */
.dp-found-banner {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: 20px; padding: 28px 32px; margin-bottom: 28px;
  display: flex; align-items: center; gap: 20px; position: relative; overflow: hidden;
}
.dp-found-banner::after {
  content: '✓'; position: absolute; right: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 6rem; font-weight: 900; color: rgba(255,255,255,.08); line-height: 1;
}
.dp-found-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.2); display: flex; align-items: center;
  justify-content: center; font-size: 1.6rem; flex-shrink: 0;
}
.dp-found-text h2 { font-size: 1.4rem; font-weight: 900; color: #fff; margin-bottom: 4px; }
.dp-found-text p { font-size: .85rem; color: rgba(255,255,255,.8); }
.dp-badge-avail {
  display: inline-flex; align-items: center; gap: 7px;
  background: #dcfce7; color: #15803d;
  padding: 5px 14px; border-radius: 20px; font-size: .76rem;
  font-weight: 700; margin-bottom: 20px;
}
.dp-badge-avail .dot { width: 7px; height: 7px; background: #22c55e; border-radius: 50%; animation: blink 1.4s infinite; }

/* Feature list */
.dp-features {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px; margin-bottom: 24px;
}
.dp-features li {
  display: flex; align-items: center; gap: 8px;
  font-size: .83rem; color: #374151; font-weight: 500;
}
.dp-features li::before { content: '✓'; color: #22c55e; font-weight: 800; font-size: .9rem; flex-shrink: 0; }

/* CTA buttons */
.dp-cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.dp-cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #fff;
  padding: 13px 28px; border-radius: 10px;
  font-weight: 800; font-size: .93rem; text-decoration: none;
  box-shadow: 0 4px 14px var(--brand-shadow, rgba(0,150,214,.35));
  transition: background .2s, transform .15s;
  border: none; cursor: pointer;
}
.dp-cta-primary:hover { background: var(--brand-dark); transform: translateY(-2px); }
.dp-cta-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #0f172a;
  padding: 13px 24px; border-radius: 10px;
  font-weight: 700; font-size: .93rem; text-decoration: none;
  border: 2px solid #e5e7eb; transition: border-color .2s, color .2s;
}
.dp-cta-secondary:hover { border-color: var(--brand); color: var(--brand); }

/* Install form in result page */
.dp-install-card {
  background: #fff; border-radius: 20px; padding: 28px;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  border-top: 4px solid var(--brand);
}
.dp-install-card h3 { font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: 4px; }
.dp-install-card .sub { font-size: .8rem; color: #6b7280; margin-bottom: 18px; }

/* Right image panel */
.dp-result-img-panel {
  display: flex; flex-direction: column; gap: 16px;
  position: sticky; top: 88px;
}
.dp-result-img-panel img {
  width: 100%; border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  object-fit: cover;
}
.dp-model-badge {
  background: #fff; border-radius: 14px; padding: 16px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06); border: 1px solid #f1f5f9;
}
.dp-model-badge .label { font-size: .72rem; font-weight: 700; color: #9ca3af; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.dp-model-badge .value { font-size: 1rem; font-weight: 800; color: var(--brand); }

/* ── NOT FOUND ── */
.dp-notfound-section { flex: 1; display: grid; place-items: center; padding: 48px 40px; }
.dp-notfound-card {
  background: #fff; border-radius: 24px; padding: 56px 48px;
  max-width: 600px; width: 100%; text-align: center;
  box-shadow: 0 12px 48px rgba(0,0,0,.1);
  animation: cardIn .4s ease both;
}
@keyframes cardIn { from { opacity: 0; transform: scale(.96) translateY(12px); } to { opacity: 1; transform: none; } }
.dp-nf-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: #fff3cd; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem; border: 3px solid #fde68a;
}
.dp-notfound-card h1 { font-size: 1.8rem; font-weight: 900; color: #0f172a; margin-bottom: 10px; }
.dp-notfound-card p { font-size: .95rem; color: #6b7280; line-height: 1.75; margin-bottom: 20px; }
.dp-nf-model-chip {
  display: inline-block; background: #fef2f2; border: 1.5px solid #fecaca;
  color: #dc2626; padding: 10px 22px; border-radius: 50px;
  font-weight: 800; font-size: .95rem; margin-bottom: 28px;
}
.dp-nf-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.dp-btn-chat {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff; padding: 14px 32px; border-radius: 50px;
  font-weight: 800; font-size: .95rem; text-decoration: none;
  box-shadow: 0 6px 24px var(--brand-shadow, rgba(0,150,214,.4));
  border: none; cursor: pointer; transition: transform .2s;
}
.dp-btn-chat:hover { transform: translateY(-2px); }
.dp-btn-call-nf {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #374151; padding: 14px 28px;
  border-radius: 50px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 2px solid #e5e7eb;
  transition: border-color .2s, color .2s;
}
.dp-btn-call-nf:hover { border-color: var(--brand); color: var(--brand); }
.dp-nf-tip {
  background: #f8fafc; border-radius: 12px; padding: 16px 20px;
  font-size: .82rem; color: #374151; line-height: 1.65;
  border: 1px solid #e5e7eb; text-align: left; margin-top: 8px;
}
.dp-nf-tip strong { color: #0f172a; }

/* ── Footer ── */
.dp-hero-section { flex: 1; }
.dp-footer { background: #0f172a; padding: 24px 40px; margin-top: auto; }
.dp-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.dp-footer p { color: #cbd5e1; font-size: .82rem; }
.dp-footer a { color: #60a5fa; text-decoration: none; }
.dp-footer a:hover { text-decoration: underline; }
.dp-footer-links { display: flex; gap: 20px; }
.dp-footer-phone { color: #94a3b8; font-size: .79rem; margin-top: 5px; }
.dp-footer-phone a { color: #7dd3fc; font-weight: 700; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .dp-expert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .dp-hero { padding: 48px 24px; }
  .dp-hero-inner { grid-template-columns: 1fr; }
  .dp-hero-img { display: none; }
  .dp-trust-bar { padding: 16px 24px; }
  .dp-trust-bar-inner { gap: 24px; }
  .dp-expert { padding: 40px 24px; }
  .dp-result-section { padding: 32px 24px; }
  .dp-result-inner { grid-template-columns: 1fr; }
  .dp-result-img-panel { display: none; }
  .dp-notfound-card { padding: 40px 28px; }
  .dp-nav { padding: 0 20px; }
  .dp-nav-links { display: none; }
  .dp-back-bar { padding: 12px 24px; }
  .dp-footer { padding: 20px 24px; }
  .dp-footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .dp-features { grid-template-columns: 1fr; }
  .dp-cta-row { flex-direction: column; }
  .dp-mini-trust { gap: 10px; }
  .dp-nf-actions { flex-direction: column; align-items: center; }
}

/* ── Install Animation Modal ── */
.di-overlay {
  position: fixed; inset: 0; background: rgba(10,17,35,.88);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.di-overlay.active { opacity: 1; pointer-events: all; }
.di-modal {
  background: #fff; border-radius: 20px; display: flex; overflow: hidden;
  max-width: 760px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.di-modal-left { flex: 1; padding: 36px 32px; display: flex; flex-direction: column; min-height: 320px; }
.di-modal-right {
  width: 240px; background: #f1f5f9; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.di-modal-right img { max-width: 100%; max-height: 260px; object-fit: contain; }
.di-progress-section { display: flex; flex-direction: column; flex: 1; }
.di-step-tag {
  display: inline-block; background: #dbeafe; color: #1d4ed8;
  padding: 3px 12px; border-radius: 20px; font-size: .72rem;
  font-weight: 700; letter-spacing: .08em; margin-bottom: 14px;
}
.di-title { font-size: 1.25rem; font-weight: 900; color: #0f172a; margin-bottom: 6px; }
.di-sub { font-size: .85rem; color: #6b7280; margin-bottom: 22px; line-height: 1.55; }
.di-progress-wrap { background: #e5e7eb; border-radius: 50px; height: 9px; overflow: hidden; margin-bottom: 8px; }
.di-progress-bar { height: 100%; border-radius: 50px; background: linear-gradient(90deg, #2563eb, #60a5fa); width: 0%; }
.di-progress-label { font-size: .76rem; color: #9ca3af; margin-bottom: 24px; }
.di-steps-list { display: flex; flex-direction: column; gap: 11px; margin-top: auto; }
.di-step-item { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: #cbd5e1; font-weight: 500; }
.di-step-item.done { color: #15803d; }
.di-step-item.active { color: #1d4ed8; font-weight: 700; }
.di-step-item .si-dot { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; flex-shrink: 0; }
.di-step-item.done .si-dot { background: #22c55e; }
.di-step-item.active .si-dot { background: #2563eb; animation: blink 1s infinite; }
.di-error { display: none; flex-direction: column; }
.di-overlay.error-state .di-progress-section { display: none; }
.di-overlay.error-state .di-error { display: flex; }
.di-error-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: #fee2e2; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.di-error-icon svg { width: 30px; height: 30px; }
.di-error h2 { font-size: 1.2rem; font-weight: 900; color: #dc2626; margin-bottom: 8px; }
.di-error p { font-size: .85rem; color: #6b7280; line-height: 1.65; margin-bottom: 10px; }
.di-error-code {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;
  padding: 10px 14px; font-size: .78rem; color: #dc2626;
  font-family: monospace; margin-bottom: 18px; word-break: break-all;
}
.di-error-actions { display: flex; flex-direction: column; gap: 10px; }
.di-error-call {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #dc2626; color: #fff; padding: 13px 20px; border-radius: 10px;
  font-weight: 800; font-size: .9rem; text-decoration: none; text-align: center; transition: background .2s;
}
.di-error-call:hover { background: #b91c1c; }
.di-error-dismiss { background: none; border: none; color: #9ca3af; font-size: .79rem; cursor: pointer; text-decoration: underline; }
@media (max-width: 600px) {
  .di-modal { flex-direction: column; }
  .di-modal-right { width: 100%; height: 140px; }
}

/* ── Form loading state ── */
.dp-form-submitting button[type="submit"] {
  opacity: .7; pointer-events: none;
}
.dp-form-submitting button[type="submit"]::after {
  content: ' ...'; animation: dots 1s infinite;
}
@keyframes dots { 0%{opacity:1} 50%{opacity:.4} 100%{opacity:1} }
