/* ==========================================================================
   PrintAssist - Clean, Minimal Light-Blue & White Design System
   HP-Inspired Official Setup Portal Theme
   ========================================================================== */

:root {
  /* Official Brand Royal Blue (Exact Color from Attachment: #0d2ea0) */
  --royal-blue: #0d2ea0;
  --royal-blue-hover: #0a2582;
  --royal-blue-dark: #071b61;
  --royal-blue-light: #edf2fc;
  --royal-blue-subtle: #f4f7fe;
  --royal-blue-border: #b3c7f5;

  /* HP/Brand Support Colors */
  --hp-blue: #0d2ea0;
  --hp-blue-hover: #0a2582;
  --hp-blue-light: #edf2fc;
  --hp-blue-subtle: #f4f7fe;
  --hp-blue-border: #b3c7f5;
  --hp-navy: #0b2545;

  /* Base Backgrounds */
  --bg-main: #f8fbfe;
  --bg-surface: #ffffff;
  --bg-subtle: #f0f7ff;
  --bg-hover: #eaf4fd;
  
  /* Primary Accents */
  --primary: #007db8;
  --primary-hover: #006394;
  --primary-light: #e6f3fa;
  --primary-ring: rgba(0, 125, 184, 0.22);
  --accent-cyan: #0ea5e9;
  
  /* Text & Neutrals */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverted: #ffffff;
  
  /* Borders */
  --border-subtle: #e2e8f0;
  --border-focus: #38bdf8;
  --border-card: #dbeaf6;
  
  /* Status Colors */
  --success: #10b981;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #ef4444;
  --danger-bg: #fef2f2;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px -2px rgba(0, 125, 184, 0.08), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 30px -4px rgba(0, 125, 184, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 32px -4px rgba(0, 114, 206, 0.1), 0 2px 8px rgba(0, 0, 0, 0.03);
  
  /* Radius & Transitions */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition-fast: 0.16s ease;
  --transition-smooth: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Outfit', 'Inter', -apple-system, sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   HEADER & NAVIGATION (Clean White Official Style)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid #d8e8f5;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0, 114, 206, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.brand-logo:hover {
  opacity: 0.92;
}

.brand-logo-img {
  height: 42px;
  width: auto;
  max-width: 250px;
  display: block;
}

.footer-logo-img {
  height: 36px;
  width: auto;
  max-width: 230px;
  display: block;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--hp-blue) 0%, #0096d6 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 125, 184, 0.25);
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--hp-blue);
  background: var(--hp-blue-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--hp-blue-subtle);
  border: 1px solid var(--hp-blue-border);
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.indicator-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.15); }
  100% { box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4); }
}

.btn-header-action {
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--hp-blue-border);
  background: #ffffff;
  color: var(--hp-blue);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-header-action:hover {
  background: var(--hp-blue-light);
  border-color: var(--hp-blue);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   HERO & MULTI-STEP ASSISTANT (Official Brand Royal Blue Full-Width Section)
   ========================================================================== */

.hero-wizard-section {
  width: 100%;
  position: relative;
  transition: background-color 0.3s ease;
}

/* --------------------------------------------------------------------------
   STATE 1: INITIAL PRINTER MODEL ENTRY (Full Viewport Width #0d2ea0)
   -------------------------------------------------------------------------- */

.hero-wizard-section.is-step-model {
  background: var(--royal-blue);
  padding: 56px 0 72px;
  border-bottom: 3px solid var(--royal-blue-dark);
}

.hero-wizard-section.is-step-model .wizard-outer-container {
  width: 100%;
  max-width: 100%;
  padding: 0 24px;
  margin: 0 auto;
}

.hero-wizard-section.is-step-model .wizard-card-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.hero-wizard-section.is-step-model .wizard-progress-header {
  display: none !important;
}

.hero-wizard-section.is-step-model .wizard-stage-container {
  padding: 0;
  min-height: auto;
  text-align: center;
}

/* Step 1 Centered Typography */
.hero-wizard-section.is-step-model .wizard-title {
  font-family: var(--font-heading);
  font-size: 2.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin: 0 auto 12px;
  text-align: center;
  max-width: 900px;
}

.hero-wizard-section.is-step-model .wizard-subtitle {
  font-size: 1.15rem;
  color: #dbe7ff;
  text-align: center;
  max-width: 780px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

/* Step 1 Centered Input Box */
.hero-wizard-section.is-step-model .step1-content-box {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-wizard-section.is-step-model .input-group-hero {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin: 0 auto 24px;
}

.hero-wizard-section.is-step-model .input-icon-prefix {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--royal-blue);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-wizard-section.is-step-model .model-input-field {
  width: 100%;
  height: 68px;
  padding: 0 150px 0 58px;
  font-size: 1.18rem;
  font-family: var(--font-sans);
  color: #0f172a;
  background: #ffffff;
  border: none;
  border-radius: 14px;
  outline: none;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.28);
  transition: all var(--transition-fast);
}

.hero-wizard-section.is-step-model .model-input-field:focus {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-wizard-section.is-step-model .model-input-field::placeholder {
  color: #7b8fa3;
  font-weight: 400;
}

.hero-wizard-section.is-step-model .btn-input-action {
  position: absolute;
  right: 8px;
  top: 8px;
  bottom: 8px;
  padding: 0 34px;
  background: var(--royal-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(13, 46, 160, 0.35);
}

.hero-wizard-section.is-step-model .btn-input-action:hover {
  background: var(--royal-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(13, 46, 160, 0.45);
}

.hero-wizard-section.is-step-model .btn-input-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Step 1 Centered Model Help Banner (Glassmorphic White on Blue) */
.hero-wizard-section.is-step-model .model-help-container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.hero-wizard-section.is-step-model .model-help-banner {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 22px 28px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.hero-wizard-section.is-step-model .help-text-content {
  text-align: center;
  width: 100%;
}

.hero-wizard-section.is-step-model .help-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.hero-wizard-section.is-step-model .help-desc-text {
  font-size: 0.94rem;
  color: #f0f5ff;
  line-height: 1.55;
  margin: 0 auto 14px;
  max-width: 720px;
  text-align: center;
}

.hero-wizard-section.is-step-model .examples-badge-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-wizard-section.is-step-model .examples-caption {
  font-size: 0.88rem;
  color: #dbe7ff;
  font-weight: 600;
  margin-right: 4px;
}

.hero-wizard-section.is-step-model .example-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-wizard-section.is-step-model .example-badge:hover {
  background: #ffffff;
  color: var(--royal-blue);
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-wizard-section.is-step-model .unknown-model-toggle {
  text-align: center;
  margin-top: 18px;
}

.hero-wizard-section.is-step-model .link-subtle {
  font-size: 0.94rem;
  color: #dbe7ff;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
  background: none;
  border: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.hero-wizard-section.is-step-model .link-subtle:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   STATE 2: WIZARD STEPS ACTIVE (Steps 2 through 7)
   -------------------------------------------------------------------------- */

.hero-wizard-section.is-step-wizard {
  background: #f4f8fc;
  padding: 0 0 64px;
  border-bottom: 1px solid #d0e5f5;
}

/* Full-Width Royal Blue Bar displaying selected printer model */
.active-model-bar {
  width: 100%;
  background: var(--royal-blue);
  color: #ffffff;
  padding: 14px 24px;
  border-bottom: 2px solid var(--royal-blue-dark);
  box-shadow: 0 2px 10px rgba(13, 46, 160, 0.2);
}

.active-model-bar-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.active-model-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
}

.active-model-label {
  color: #c9dcff;
  font-weight: 500;
}

.active-model-name {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.06rem;
}

.btn-change-model {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
}

.btn-change-model:hover {
  background: #ffffff;
  color: var(--royal-blue);
}

.hero-wizard-section.is-step-wizard .wizard-outer-container {
  max-width: 1060px;
  margin: 28px auto 0;
  padding: 0 20px;
}

.hero-wizard-section.is-step-wizard .wizard-card-wrapper {
  max-width: 1060px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #cde4f7;
  box-shadow: 0 10px 32px -4px rgba(0, 114, 206, 0.1), 0 2px 8px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

.hero-wizard-section.is-step-wizard .wizard-progress-header {
  display: flex !important;
  padding: 16px 32px;
  border-bottom: 1px solid #e2effa;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}

.hero-wizard-section.is-step-wizard .wizard-stage-container {
  padding: 40px 44px 48px;
  position: relative;
  min-height: 440px;
}

.wizard-step {
  display: none;
  animation: fadeInStep 0.28s ease forwards;
}

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

@keyframes fadeInStep {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wizard Typography for Steps 2 to 7 */
.hero-wizard-section.is-step-wizard .wizard-title {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 700;
  color: var(--hp-navy);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  text-align: center;
}

.hero-wizard-section.is-step-wizard .wizard-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 740px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.progress-counter-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-wizard-back {
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-wizard-back:hover {
  background: var(--bg-subtle);
  color: var(--text-primary);
  border-color: var(--border-focus);
}

.step-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--royal-blue);
  letter-spacing: 0.01em;
}

.wizard-progress-track {
  width: 160px;
  height: 8px;
  background: #e2effa;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.wizard-progress-bar {
  height: 100%;
  width: 15%;
  background: linear-gradient(90deg, var(--royal-blue) 0%, #0ea5e9 100%);
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

/* ==========================================================================
   STEP 2: TYPE OF ASSISTANCE (Interactive Cards Grid)
   ========================================================================== */

.issue-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
}

.select-card {
  background: #ffffff;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  user-select: none;
}

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

.select-card.selected {
  border-color: var(--hp-blue);
  background: var(--hp-blue-light);
  box-shadow: 0 0 0 2px var(--hp-blue);
}

.select-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--hp-blue-subtle);
  color: var(--hp-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.select-card:hover .select-card-icon {
  background: #ffffff;
  color: var(--hp-blue-hover);
}

.select-card-content {
  flex-grow: 1;
}

.select-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.select-card-highlight {
  border-color: #93c5fd;
  background: #fafdff;
}

/* ==========================================================================
   STEP 3: DEVICE SELECTION
   ========================================================================== */

.device-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}

.device-card {
  background: #ffffff;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.device-card:hover {
  border-color: var(--hp-blue);
  background: var(--hp-blue-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.device-icon-wrapper {
  width: 50px;
  height: 50px;
  background: var(--hp-blue-light);
  border-radius: 50%;
  color: var(--hp-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.device-card:hover .device-icon-wrapper {
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.device-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   STEP: ASSEMBLY & POWER CHECKS (Setup Branch)
   ========================================================================== */

.binary-options-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 580px;
  margin: 0 auto;
}

.binary-option-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.binary-option-btn:hover {
  border-color: var(--hp-blue);
  background: var(--hp-blue-subtle);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.binary-text-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.binary-text-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.binary-arrow {
  color: var(--hp-blue);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Assembly Help Box */
.help-action-box {
  background: #f0f7fe;
  border: 1.5px solid #bcd9f2;
  border-radius: var(--radius-md);
  padding: 26px;
  max-width: 600px;
  margin: 22px auto 0;
  text-align: center;
}

.help-action-box h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.help-action-box p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.action-buttons-pair {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   CONTACT FORM STEP
   ========================================================================== */

.contact-card-box {
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  padding: 10px 0;
}

.contact-form-group {
  margin-bottom: 20px;
  text-align: left;
}

.contact-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-input {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  font-size: 1rem;
  font-family: var(--font-sans);
  border: 1.5px solid #c2def5;
  border-radius: var(--radius-md);
  outline: none;
  transition: all var(--transition-fast);
}

.contact-input:focus {
  border-color: var(--hp-blue);
  box-shadow: 0 0 0 4px var(--primary-ring);
}

.contact-input.input-error {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.field-error-msg {
  display: none;
  font-size: 0.82rem;
  color: var(--danger);
  margin-top: 5px;
}

.field-error-msg.visible {
  display: block;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.privacy-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Buttons */
.btn-primary {
  width: 100%;
  height: 52px;
  background: var(--hp-blue);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 3px 10px rgba(0, 125, 184, 0.25);
}

.btn-primary:hover {
  background: var(--hp-blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(0, 125, 184, 0.35);
}

.btn-secondary {
  height: 46px;
  padding: 0 22px;
  background: #ffffff;
  color: var(--hp-blue);
  border: 1.5px solid #bcd9f2;
  font-size: 0.94rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--hp-blue-light);
  border-color: var(--hp-blue);
}

/* ==========================================================================
   AUTHENTIC LIVE HARDWARE & NETWORK DIAGNOSTIC SCANNER
   ========================================================================== */

.diagnostics-container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

/* Live Client Environment Telemetry Badge */
.telemetry-host-badge {
  background: #f1f8fe;
  border: 1px solid #cce4f7;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  text-align: left;
}

.telemetry-col {
  display: flex;
  flex-direction: column;
}

.telemetry-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hp-blue);
}

.telemetry-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--hp-navy);
}

/* Sonar Radar Container */
.radar-scan-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}

.radar-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #e0f2fe 0%, #bae6fd 60%, #7dd3fc 100%);
  border: 2px solid #0284c7;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(2, 132, 199, 0.25);
  flex-shrink: 0;
}

.radar-grid-line-h, .radar-grid-line-v {
  position: absolute;
  background: rgba(2, 132, 199, 0.3);
}

.radar-grid-line-h {
  width: 100%;
  height: 1px;
  top: 50%;
  left: 0;
}

.radar-grid-line-v {
  height: 100%;
  width: 1px;
  left: 50%;
  top: 0;
}

.radar-sweep-beam {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: conic-gradient(from 0deg, rgba(2, 132, 199, 0.45) 0deg, rgba(2, 132, 199, 0) 65deg);
  border-radius: 50%;
  animation: radarRotate 2.2s linear infinite;
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-target-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  top: 35%;
  left: 65%;
  box-shadow: 0 0 8px #ef4444;
  animation: radarBlink 1.4s ease-in-out infinite;
}

@keyframes radarBlink {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.4); }
}

.radar-info-box {
  text-align: left;
  flex: 1;
  min-width: 240px;
}

.radar-live-status {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hp-navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.radar-stat-pill {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.radar-stat-pill strong {
  color: var(--hp-blue);
}

/* Progress Track Instrument Panel */
.diag-loader-wrap {
  margin-bottom: 22px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.diag-loader-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.diag-loader-title {
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
}

.diag-bar-track {
  width: 100%;
  height: 12px;
  background: #e2effa;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid #c8e2f5;
  margin-bottom: 0;
  position: relative;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.08);
}

.diag-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #006699 0%, #007db8 50%, #00a4e4 100%);
  border-radius: var(--radius-full);
  position: relative;
  overflow: hidden;
  /* Snappy, precise mechanical step like real software diagnostics */
  transition: width 0.12s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Active scanning shimmer beam moving across the progress bar */
.diag-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.45) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 80px 100%;
  animation: diagBarShimmer 1.2s infinite linear;
}

@keyframes diagBarShimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

.diag-percentage {
  font-size: 1rem;
  font-weight: 800;
  color: var(--hp-blue);
  font-family: 'Consolas', 'Courier New', monospace;
  background: #e6f0fa;
  padding: 3px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #c8e2f5;
  letter-spacing: 0.5px;
}

/* Live Terminal / Telemetry Console */
.telemetry-console-card {
  background: #0b1526;
  border-radius: var(--radius-md);
  border: 1px solid #1e293b;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  text-align: left;
  margin-bottom: 24px;
}

.console-header-bar {
  background: #132238;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.console-title-text {
  font-family: monospace;
  font-size: 0.78rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.console-lights {
  display: flex;
  gap: 6px;
}

.console-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.console-light.red { background: #ef4444; }
.console-light.yellow { background: #f59e0b; }
.console-light.green { background: #10b981; }

.console-log-body {
  height: 140px;
  overflow-y: auto;
  padding: 12px 16px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #38bdf8;
}

.log-line {
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.log-time { color: #64748b; margin-right: 6px; }
.log-warn { color: #f59e0b; font-weight: 600; }
.log-err { color: #f87171; font-weight: 600; }
.log-ok { color: #34d399; }

/* Status Checklist */
.diag-checklist {
  list-style: none;
  text-align: left;
  background: #ffffff;
  border: 1px solid #cce4f7;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 24px;
}

.diag-check-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f7fd;
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.diag-check-item:last-child {
  border-bottom: none;
}

.diag-item-status {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  background: var(--hp-blue-subtle);
  color: var(--text-muted);
  border: 1px solid #c8e2f5;
  flex-shrink: 0;
}

.diag-check-item.in-progress {
  color: var(--hp-blue);
  font-weight: 600;
}

.diag-check-item.in-progress .diag-item-status {
  border-color: var(--hp-blue);
  color: var(--hp-blue);
  background: var(--hp-blue-light);
  animation: spin 1.2s linear infinite;
}

.diag-check-item.completed {
  color: var(--text-primary);
}

.diag-check-item.completed .diag-item-status {
  background: var(--success-bg);
  border-color: var(--success);
  color: var(--success);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   AUTHENTIC TECHNICAL DIAGNOSTIC REPORT (Official Outcome)
   ========================================================================== */

.outcome-container {
  width: 100%;
  max-width: 740px;
  margin: 0 auto;
}

.report-card-official {
  background: #ffffff;
  border: 1.5px solid #fed7aa;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(217, 119, 6, 0.08);
  overflow: hidden;
  margin-bottom: 24px;
  text-align: left;
}

.report-header-strip {
  background: #fff7ed;
  border-bottom: 1px solid #ffedd5;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.report-ref-badge {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #c2410c;
  background: #ffedd5;
  padding: 3px 8px;
  border-radius: 4px;
}

.report-time-stamp {
  font-size: 0.8rem;
  color: #7c2d12;
}

.report-body-content {
  padding: 22px;
}

.report-alert-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9a3412;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
}

.report-device-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.88rem;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.report-finding-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.report-finding-icon {
  color: #d97706;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.expert-cta-card {
  background: linear-gradient(180deg, #f0f7fd 0%, #e2effa 100%);
  border: 1.5px solid #bcd9f2;
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}

.expert-cta-card h4 {
  font-size: 1.25rem;
  color: var(--hp-navy);
  margin-bottom: 8px;
}

.expert-cta-card p {
  font-size: 0.96rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
}

.expert-action-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-chat-expert {
  padding: 14px 28px;
  background: #007db8;
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0, 125, 184, 0.25);
}

.btn-chat-expert:hover {
  background: #006394;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 125, 184, 0.35);
}

.btn-callback-expert {
  padding: 14px 28px;
  background: #ffffff;
  color: #007db8;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid #bcd9f2;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-callback-expert:hover {
  background: #f0f7fe;
  border-color: #007db8;
}

/* ==========================================================================
   INFORMATIONAL SECTIONS (Below the Wizard)
   ========================================================================== */

.info-sections-wrapper {
  padding: 70px 0 90px;
  background: #ffffff;
}

.section-header-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--hp-blue);
  background: var(--hp-blue-light);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--hp-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Guide Grids */
.guide-grid-2col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 26px;
  margin-bottom: 50px;
}

.guide-grid-3col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
  margin-bottom: 50px;
}

.guide-card {
  background: var(--bg-main);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.guide-card:hover {
  background: #ffffff;
  border-color: #b9daf2;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.guide-icon-pill {
  width: 46px;
  height: 46px;
  background: var(--hp-blue-light);
  color: var(--hp-blue);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.guide-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.guide-card-body {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.guide-step-list {
  list-style: none;
  margin-top: 14px;
  counter-reset: step-counter;
}

.guide-step-list li {
  padding: 6px 0 6px 26px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.guide-step-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 6px;
  width: 20px;
  height: 20px;
  background: var(--hp-blue-subtle);
  border: 1px solid #b9daf2;
  color: var(--hp-blue);
  font-size: 0.74rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offline-card-highlight {
  border-left: 4px solid var(--hp-blue);
}

.safety-alert-card {
  background: linear-gradient(90deg, #f0f8fd 0%, #e1effa 100%);
  border: 1.5px solid #9dc8ea;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 46px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.safety-icon {
  color: var(--hp-blue);
  flex-shrink: 0;
  margin-top: 2px;
}

.safety-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.safety-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* FAQ Accordion */
.faq-accordion-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  background: #ffffff;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item:hover {
  border-color: #b9daf2;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  gap: 16px;
}

.faq-chevron {
  color: var(--hp-blue);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   MODAL DIALOGS
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 37, 69, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
  animation: fadeIn 0.2s ease forwards;
}

.modal-dialog {
  width: 100%;
  max-width: 460px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid #cce4f7;
  box-shadow: 0 20px 45px -10px rgba(0, 114, 206, 0.2);
  overflow: hidden;
  position: relative;
  animation: scaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.modal-header {
  padding: 20px 26px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eef6fd;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--hp-navy);
}

.btn-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
}

.btn-modal-close:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 26px;
}

.modal-success-state {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.success-icon-badge {
  width: 60px;
  height: 60px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

/* ==========================================================================
   FOOTER (100% Google Ads Compliant & Independent Trust Architecture)
   ========================================================================== */

.site-footer {
  background: #2C3038;
  border-top: 1px solid #3d434f;
  padding: 52px 0 30px;
  font-size: 0.88rem;
  color: #94a3b8;
}

.footer-main-grid {
  display: grid;
  grid-template-columns: 2.2fr 1.3fr 1.3fr 1.2fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 28px;
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
}

.footer-brand-desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-top: 10px;
  margin-bottom: 14px;
}

.footer-contact-details {
  font-size: 0.84rem;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 7px;
}

.footer-contact-item strong {
  color: #f1f5f9;
}

.footer-contact-item span {
  color: #cbd5e1;
}

.footer-contact-item svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #60a5fa;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.footer-nav-list a:hover {
  color: #60a5fa;
  transform: translateX(2px);
}

.footer-trust-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-trust-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.81rem;
  color: #e2e8f0;
  font-weight: 500;
}

.footer-trust-badge svg {
  color: #34d399;
  flex-shrink: 0;
}

/* Prominent Google Ads Compliance & Third-Party Disclosure Box */
.footer-compliance-box {
  background: #22262e;
  border: 1px solid #3d434f;
  border-left: 5px solid #38bdf8;
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 26px;
  font-size: 0.83rem;
  line-height: 1.68;
  color: #cbd5e1;
}

.compliance-box-header {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.98rem;
}

.compliance-box-header svg {
  color: #38bdf8;
  flex-shrink: 0;
}

.compliance-box-body p {
  margin-bottom: 10px;
}

.compliance-box-body p:last-child {
  margin-bottom: 0;
}

.compliance-box-body strong {
  color: #ffffff;
}

/* Bottom Bar */
.footer-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.81rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-legal-inline {
  display: flex;
  gap: 14px;
  list-style: none;
  flex-wrap: wrap;
}

.footer-legal-inline a {
  color: #cbd5e1;
  text-decoration: underline;
  text-decoration-color: #4b5563;
  transition: color var(--transition-fast);
  cursor: pointer;
}

.footer-legal-inline a:hover {
  color: #60a5fa;
}

/* Legal Policy Modal */
.legal-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.legal-modal-backdrop.is-open {
  display: flex;
}

.legal-modal-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.25);
  animation: modalScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.legal-modal-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--hp-navy);
}

.legal-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  font-size: 0.91rem;
  line-height: 1.75;
  color: #334155;
}

.legal-modal-body h3 {
  color: var(--hp-navy);
  font-size: 1.05rem;
  margin: 20px 0 8px;
}

.legal-modal-body h3:first-child {
  margin-top: 0;
}

.legal-modal-body ul {
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-modal-body p {
  margin-bottom: 12px;
}

.legal-modal-footer {
  padding: 14px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Floating Bottom Cookie Consent Notice */
.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 41, 66, 0.97);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 14px 24px;
  z-index: 1500;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.cookie-consent-banner.is-hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-consent-banner a {
  color: #93c5fd;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.83rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-cookie-accept:hover {
  background: #1d4ed8;
}

.btn-cookie-decline {
  background: transparent;
  color: #cbd5e1;
  border: 1px solid #64748b;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.83rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cookie-decline:hover {
  color: #ffffff;
  border-color: #cbd5e1;
}

/* ==========================================================================
   RESPONSIVE OPTIMIZATIONS
   ========================================================================== */

@media (max-width: 960px) {
  .wizard-stage-container {
    padding: 32px 28px 40px;
  }
  .radar-scan-wrapper {
    flex-direction: column;
    text-align: center;
  }
  .radar-info-box {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .hero-wizard-section {
    padding: 24px 0 40px;
  }
  .wizard-stage-container {
    padding: 24px 18px 32px;
  }
  .wizard-title {
    font-size: 1.6rem;
  }
  .wizard-subtitle {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }
  .hero-wizard-section.is-step-model .input-group-hero,
  .input-group-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
  }
  .hero-wizard-section.is-step-model .model-input-field,
  .model-input-field {
    height: 54px;
    padding: 0 16px 0 48px;
    font-size: 1.02rem;
    width: 100%;
    border-radius: 12px;
  }
  .hero-wizard-section.is-step-model .input-icon-prefix,
  .input-icon-prefix {
    position: absolute;
    left: 16px;
    top: 27px;
    transform: translateY(-50%);
  }
  .hero-wizard-section.is-step-model .btn-input-action,
  .btn-input-action {
    position: static;
    width: 100%;
    height: 50px;
    margin-top: 12px;
    justify-content: center;
    border-radius: 12px;
    padding: 0 20px;
    font-size: 1.05rem;
    font-weight: 700;
    background: #ffffff;
    color: var(--royal-blue);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
    transition: all var(--transition-fast);
  }
  .hero-wizard-section.is-step-model .btn-input-action:hover {
    background: #f0f7ff;
    color: var(--royal-blue-hover);
    transform: translateY(-1px);
  }
  .hero-wizard-section.is-step-model .btn-input-action:disabled {
    background: rgba(255, 255, 255, 0.22);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: none;
    opacity: 0.85;
    cursor: not-allowed;
    transform: none;
  }
  .issue-cards-grid {
    grid-template-columns: 1fr;
  }
  .device-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-grid-2col, .guide-grid-3col {
    grid-template-columns: 1fr;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .header-actions .live-indicator {
    display: none;
  }
}

@media (max-width: 640px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-banner-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .device-cards-grid {
    grid-template-columns: 1fr;
  }
  .nav-container {
    height: 60px;
  }
  .brand-logo-img {
    height: 32px;
    max-width: 195px;
  }
  .wizard-progress-header {
    padding: 14px 18px;
  }
  .wizard-progress-track {
    width: 100px;
  }
}
