/* ==========================================================================
   HP Printer Setup - Official-Style Layout & Theming
   Matching https://printerassistsnow.online/hp/hp.html
   ========================================================================== */

:root {
  --hp-blue: #0096D6;
  --hp-blue-dark: #0077AD;
  --hp-blue-hero: #0084c7;
  --hp-navy-btn: #093b5d;
  --hp-navy-btn-hover: #062b44;
  --text-dark: #1e293b;
  --text-muted: #526477;
  --bg-gray: #f8fafc;
  --border-color: #dbe3eb;
  --white: #ffffff;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Roboto Slab', Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--hp-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
}

/* ==========================================================================
   HP Top Navigation Bar
   ========================================================================== */
.hp-nav-bar {
  background: var(--white);
  border-bottom: 1px solid #e5eaf0;
  position: sticky;
  top: 0;
  z-index: 99;
}

.hp-nav-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hp-nav-left {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hp-logo-link {
  display: flex;
  align-items: center;
}

.hp-nav-logo {
  max-height: 38px;
  width: auto;
  object-fit: contain;
}

.hp-product-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hp-category-link {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hp-category-link:hover {
  color: var(--hp-blue);
  text-decoration: none;
}

.hp-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hp-back-home {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hp-back-home:hover {
  color: var(--hp-blue);
  text-decoration: none;
}

.hp-chat-trigger-btn {
  background: #eaf3fd;
  color: var(--hp-blue);
  border: 1px solid #bfdbfe;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.hp-chat-trigger-btn:hover {
  background: var(--hp-blue);
  color: var(--white);
  border-color: var(--hp-blue);
}

/* ==========================================================================
   HP Hero Section
   ========================================================================== */
.hp-hero {
  position: relative;
  background: linear-gradient(110deg, #02669e 0%, #008cd0 55%, #009be4 100%);
  color: var(--white);
  padding: 60px 24px 75px;
  overflow: hidden;
}

.hp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("../Images/backgroundimage.jpg");
  background-size: cover;
  background-position: center center;
  opacity: 0.12;
  pointer-events: none;
}

.hp-hero-inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hp-hero-title {
  font-family: var(--font-family);
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.hp-hero-sub {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 26px;
  max-width: 580px;
}

/* Search Input & Button */
.hp-search-form {
  position: relative;
  max-width: 580px;
  margin-bottom: 16px;
}

.hp-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
}

.hp-input-group input {
  flex: 1;
  height: 48px;
  border: 1px solid #ffffff;
  border-radius: 6px;
  padding: 0 16px;
  font-size: 14.5px;
  outline: none;
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hp-input-group input:focus {
  border-color: #cbd5e1;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.hp-btn-next {
  height: 48px;
  padding: 0 28px;
  background: var(--hp-navy-btn);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hp-btn-next:hover {
  background: var(--hp-navy-btn-hover);
  transform: translateY(-1px);
}

/* Auto Suggestions */
.hp-suggestions {
  position: absolute;
  top: 54px;
  left: 0;
  right: 100px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: var(--shadow);
  z-index: 10;
  max-height: 200px;
  overflow-y: auto;
}

.hp-sugg-item {
  padding: 10px 14px;
  font-size: 13.5px;
  color: #334155;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}

.hp-sugg-item:hover {
  background: #f0f9ff;
  color: var(--hp-blue);
}

/* Help Links */
.hp-help-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
}

.hp-help-links a {
  color: #ffffff;
  text-decoration: underline;
  width: fit-content;
}

.hp-help-links a:hover {
  color: #e0f2fe;
}

/* Right Device Graphic Matching Screenshot */
.hp-device-graphic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hp-printer-frame {
  max-width: 380px;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.hp-printer-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
}

.hp-smart-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: #0f2b48;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hp-smart-badge i {
  color: var(--hp-blue);
  font-size: 14px;
}

/* ==========================================================================
   HP Body Section Below Hero
   ========================================================================== */
.hp-body-section {
  background: var(--white);
  padding: 50px 24px 60px;
  flex: 1;
}

.hp-body-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.hp-instructions {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: 24px;
  max-width: 820px;
}

.hp-support-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hp-support-callout i {
  color: var(--hp-blue);
  font-size: 18px;
}

.hp-support-callout a {
  font-weight: 600;
}

.hp-locale {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  border-top: 1px solid #f1f5f9;
  padding-top: 20px;
}

.locale-flag {
  font-size: 16px;
}

.hp-locale a {
  color: #475569;
  text-decoration: underline;
}

/* ==========================================================================
   Setup & Diagnostic Modal
   ========================================================================== */
.hp-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.hp-modal-backdrop.open {
  display: flex;
}

.hp-modal-card {
  background: var(--white);
  border-radius: 14px;
  max-width: 600px;
  width: 100%;
  padding: 30px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.hp-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
}

.hp-modal-close:hover {
  color: #1e293b;
}

.hp-step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--hp-blue);
  background: #e0f2fe;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.hp-modal-card h2 {
  font-size: 24px;
  color: #1e293b;
  margin-bottom: 6px;
}

.hp-step-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.hp-selected-model-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 13.5px;
}

.hp-selected-model-pill strong {
  color: var(--hp-blue);
}

.hp-grid-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.hp-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.hp-select-card {
  padding: 18px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #1e293b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.hp-select-card i {
  font-size: 26px;
  color: var(--hp-blue);
}

.hp-select-card:hover {
  border-color: var(--hp-blue);
  background: #f0f9ff;
  transform: translateY(-2px);
}

.hp-wizard-step {
  display: none;
}

.hp-wizard-step.active {
  display: block;
}

/* Diagnostic Scan Box */
.hp-scan-box {
  text-align: center;
  padding: 24px 0;
}

.hp-scan-spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #e0f2fe;
  border-top-color: var(--hp-blue);
  border-radius: 50%;
  animation: hpSpin 1s linear infinite;
  margin: 0 auto 16px;
}

@keyframes hpSpin {
  to { transform: rotate(360deg); }
}

.hp-scan-percent {
  font-size: 28px;
  font-weight: 800;
  color: var(--hp-blue);
  margin-bottom: 12px;
}

.hp-scan-track {
  max-width: 420px;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto 14px;
}

.hp-scan-bar {
  height: 100%;
  width: 0%;
  background: var(--hp-blue);
  transition: width 0.2s linear;
}

.hp-scan-status-text {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

/* Error Banner */
.hp-error-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  margin-bottom: 14px;
}

.hp-error-banner i {
  font-size: 28px;
  color: #dc2626;
  flex-shrink: 0;
}

.hp-err-tag {
  font-size: 11px;
  font-weight: 800;
  color: #dc2626;
  background: #fee2e2;
  padding: 2px 8px;
  border-radius: 4px;
}

.hp-error-banner h3 {
  font-size: 16px;
  color: #991b1b;
  margin-top: 4px;
}

.hp-warning-box {
  background: #fff5f5;
  border-left: 3px solid #dc2626;
  padding: 12px 14px;
  border-radius: 0 6px 6px 0;
  font-size: 13.5px;
  color: #7f1d1d;
  margin-bottom: 18px;
}

.hp-report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
  font-size: 13.5px;
  margin-bottom: 24px;
}

.hp-report-grid span {
  color: #64748b;
}

.hp-report-grid strong {
  color: #0f172a;
}

.hp-modal-actions {
  display: flex;
  gap: 12px;
}

.hp-btn-live-chat {
  flex: 2;
  background: var(--hp-blue);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease;
}

.hp-btn-live-chat:hover {
  background: var(--hp-blue-dark);
}

.hp-btn-restart {
  flex: 1;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.hp-btn-restart:hover {
  background: #e2e8f0;
}

/* Where's Product Name List */
.hp-where-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
  text-align: left;
}

.hp-where-list li {
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
  padding-left: 20px;
  position: relative;
}

.hp-where-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--hp-blue);
  font-weight: 800;
}

/* ==========================================================================
   HP Footer
   ========================================================================== */
.hp-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 24px 20px;
  text-align: center;
  font-size: 13px;
  margin-top: auto;
}

.hp-footer-inner {
  max-width: 1220px;
  margin: 0 auto;
}

.hp-disclaimer {
  font-size: 12px;
  color: #64748b;
  margin-top: 6px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hp-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hp-hero-sub {
    margin: 0 auto 26px;
  }
  .hp-search-form {
    margin: 0 auto 16px;
  }
  .hp-help-links {
    align-items: center;
  }
  .hp-device-graphic {
    margin-top: 20px;
  }
  .hp-product-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  .hp-hero-title {
    font-size: 28px;
  }
  .hp-input-group {
    flex-direction: column;
  }
  .hp-btn-next {
    width: 100%;
  }
  .hp-selection-grid {
    grid-template-columns: 1fr;
  }
  .hp-modal-actions {
    flex-direction: column;
  }
}
