/* ==========================================================================
   PRINTER DRIVER SUPPORT & SETUP PORTAL STYLESHEET
   Matching official setup functionality (printerassistsnow.online/setup/)
   ========================================================================== */

:root {
  --blue: #0875df;
  --dark: #153b5b;
  --text: #234765;
  --muted: #617b94;
  --border: #dfe7ef;
  --light: #e8f2fc;
  --brand-color: #0875df;
  --brand-dark: #075eb6;
  --shadow-card: 0 7px 18px rgba(20, 50, 75, 0.07);
  --shadow-hover: 0 12px 25px rgba(20, 50, 75, 0.12);
}

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

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

button, input {
  font: inherit;
}

/* TOP NAV BAR */
.setup-site-nav {
  background: #ffffff;
  border-bottom: 1px solid #e5edf5;
  position: sticky;
  top: 0;
  z-index: 99;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.setup-site-nav-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 12px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.setup-nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 800;
  font-size: 16px;
}

.setup-nav-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}

.setup-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.setup-nav-back {
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.setup-nav-back:hover {
  background: #f1f5f9;
  color: var(--blue);
}

.setup-live-help-btn {
  background: var(--light);
  color: var(--blue);
  border: 1px solid #c8def5;
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.setup-live-help-btn:hover {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
}

/* MAIN CONTAINER */
.main-container {
  max-width: 1150px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 25px 60px;
  flex: 1;
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: stepFade 0.3s ease;
}

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

/* HEADINGS */
.main-heading {
  margin-bottom: 40px;
  text-align: center;
}

.main-heading h1 {
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 40px;
  line-height: 1.3;
  color: #103e66;
  margin: 0 0 12px;
  font-weight: 800;
}

.main-heading p {
  font-size: 17px;
  line-height: 1.6;
  color: #526f8b;
  margin: 0;
}

.step-heading {
  text-align: center;
  margin-bottom: 30px;
}

.step-label {
  font-size: 12px;
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.step-heading h2 {
  font-size: 30px;
  color: #153b5b;
  margin: 0 0 10px;
  font-weight: 800;
  line-height: 1.35;
}

.step-heading p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* STEP 1: ISSUE GRID */
.issue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.issue-card {
  min-height: 230px;
  width: 100%;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #ffffff;
  text-align: left;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
}

.issue-card:hover {
  transform: translateY(-4px);
  border-color: #b7d5f5;
  box-shadow: var(--shadow-hover);
}

.issue-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #e7f1fc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 20px;
  margin-bottom: 18px;
}

.issue-card strong {
  font-family: "Roboto Slab", serif;
  font-size: 17px;
  color: #123b60;
  margin-bottom: 8px;
}

.issue-description {
  font-size: 13.5px;
  line-height: 1.6;
  color: #526f8b;
  flex: 1;
}

.issue-choose {
  font-size: 15px;
  color: var(--blue);
  margin-top: 16px;
  font-weight: 700;
}

/* STEP 2: BRAND SELECTION */
.brand-page {
  max-width: 680px;
  margin: 0 auto;
}

.selected-issue {
  min-height: 60px;
  padding: 14px 20px;
  border: 1px solid #b7d7fb;
  background: #e8f3ff;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #173d61;
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 1.6;
}

.selected-issue i {
  font-size: 22px;
  color: #0068d7;
  flex-shrink: 0;
}

.selected-issue strong {
  color: #0068d7;
  font-weight: 700;
}

.brand-heading {
  text-align: center;
  margin: 0 0 24px;
}

.brand-heading h2 {
  font-size: 32px;
  color: #111c2a;
  font-weight: 800;
  margin: 0;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.brand-card {
  height: 140px;
  border: 2px solid #dfe7f0;
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 16px;
}

.brand-card:hover {
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(8, 117, 223, 0.12);
  transform: translateY(-2px);
}

.brand-card img {
  display: block;
  max-width: 160px;
  width: 85%;
  height: 60px;
  object-fit: contain;
}

.other-brand-mark {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  text-align: center;
}

.how-it-works {
  margin-top: 36px;
  background: #f0f6fc;
  border-radius: 16px;
  padding: 24px;
}

.how-it-works h3 {
  margin: 0 0 14px;
  color: #153b5b;
  font-size: 16px;
  font-weight: 800;
}

.how-it-works ol {
  margin: 0;
  padding-left: 20px;
}

.how-it-works li {
  font-size: 14px;
  line-height: 1.8;
  color: #526f8b;
  margin-bottom: 6px;
}

.independent-note {
  text-align: center;
  color: #71869a;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 24px;
}

/* STEP 3: BRAND MODEL PAGE */
.brand-model-page {
  --brand-color: #0875df;
  --brand-dark: #075eb6;
  width: 100vw;
  max-width: none;
  min-height: calc(100vh - 70px);
  margin: -60px 0 -60px;
  margin-left: calc((1150px - 100vw) / 2);
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.brand-nav {
  width: 100%;
  border-bottom: 1px solid #e8edf2;
  background: #ffffff;
}

.brand-nav-inner {
  max-width: 1150px;
  margin: auto;
  min-height: 84px;
  padding: 14px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand-nav-logo {
  display: flex;
  align-items: center;
  min-width: 130px;
  text-decoration: none;
}

.brand-nav-logo img {
  max-width: 180px;
  width: auto;
  height: 52px;
  object-fit: contain;
}

.brand-nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand-nav-links a {
  color: #35485a;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: color 0.15s ease;
}

.brand-nav-links a:hover {
  color: var(--brand-color);
}

.brand-model-content {
  width: 100%;
  max-width: 760px;
  margin: auto;
  padding: 60px 24px 70px;
  text-align: center;
  flex: 1;
}

.brand-model-title {
  font-family: "Roboto Slab", serif;
  font-size: 36px;
  line-height: 1.3;
  color: var(--brand-color);
  font-weight: 800;
  margin: 0 0 36px;
}

.brand-model-content h2 {
  font-size: 22px;
  color: #202d3a;
  font-weight: 800;
  margin: 0 0 20px;
}

.brand-model-form {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.brand-input-wrap input {
  width: 100%;
  height: 56px;
  border: 1px solid #d6dee7;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.brand-input-wrap input:focus {
  border-color: var(--brand-color);
  box-shadow: 0 0 0 3px rgba(8, 117, 223, 0.1);
}

.model-suggestions-box {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #ccd8e6;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  text-align: left;
}

.suggestion-item {
  padding: 10px 16px;
  font-size: 14px;
  color: #2c3e50;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.suggestion-item:hover {
  background: #f0f6ff;
  color: var(--brand-color);
}

.suggestion-item strong {
  font-size: 12px;
  color: var(--brand-color);
}

.brand-get-started {
  width: 100%;
  height: 54px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--brand-color);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s ease;
}

.brand-get-started:hover {
  background: var(--brand-dark);
}

.brand-progress {
  max-width: 580px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.brand-progress-item {
  position: relative;
  color: #8a96a3;
  font-size: 13px;
  font-weight: 700;
  padding-top: 28px;
}

.brand-progress-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 2px solid #cbd4de;
  background: #ffffff;
}

.brand-progress-item.active {
  color: var(--brand-color);
}

.brand-progress-item.active:before {
  border-color: var(--brand-color);
  background: var(--brand-color);
  box-shadow: inset 0 0 0 4px #ffffff;
}

.brand-progress-item:not(:last-child):after {
  content: "";
  position: absolute;
  top: 9px;
  left: calc(50% + 18px);
  width: calc(100% - 24px);
  height: 2px;
  background: #dce3ea;
}

.brand-footer {
  background: #f7f8fa;
  border-top: 4px solid var(--brand-color);
  padding: 24px 20px;
  text-align: center;
  color: #687584;
  font-size: 12px;
  line-height: 1.7;
}

.brand-footer strong {
  color: var(--brand-color);
}

/* STEP 4: DEVICE SELECTION */
.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 650px;
  margin: 30px auto;
}

.device-card {
  min-height: 115px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--dark);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.device-card i {
  display: block;
  color: var(--blue);
  font-size: 26px;
  margin-bottom: 12px;
}

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

/* STEP 5: CONNECTION SELECTION */
.connection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 780px;
  margin: 32px auto;
}

.connection-card {
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--dark);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

.connection-card i {
  display: block;
  font-size: 26px;
  color: var(--blue);
  margin-bottom: 12px;
}

/* STEP 6: SUMMARY */
.summary-box {
  max-width: 680px;
  margin: 25px auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fbff;
  padding: 28px;
}

.summary-box h2 {
  font-size: 22px;
  margin: 0 0 16px;
  color: var(--dark);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #e3ebf2;
  font-size: 14px;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-row span {
  color: var(--muted);
}

.summary-row strong {
  color: var(--dark);
  text-align: right;
}

/* BUTTONS */
.action-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: #075eb6;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-back {
  background: #edf2f7;
  color: #456078;
}

.btn-back:hover {
  background: #e2e8f0;
}

/* STEP 7: PROCESSING & SPINNER */
.processing-box {
  max-width: 680px;
  margin: 40px auto;
  text-align: center;
}

.spinner {
  width: 76px;
  height: 76px;
  border: 6px solid #e8f0f8;
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 24px auto;
  animation: spin 1.1s linear infinite;
}

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

.percent {
  font-size: 32px;
  font-weight: 800;
  color: var(--blue);
  margin: 14px 0;
}

.progress {
  max-width: 480px;
  height: 10px;
  background: #e8eff6;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0875df 0%, #00c6ff 100%);
  transition: width 0.3s linear;
}

.processing-status {
  color: #486783;
  font-size: 15px;
  font-weight: 700;
  margin-top: 20px;
}

.processing-sub {
  color: #7b91a5;
  font-size: 13px;
  margin-top: 8px;
}

/* FINAL ERROR PANEL */
.error-panel {
  max-width: 760px;
  margin: 30px auto;
  padding: 32px;
  border: 1px solid #f0caca;
  border-radius: 16px;
  background: #fffafa;
  box-shadow: 0 4px 20px rgba(168, 32, 32, 0.06);
}

.error-kicker {
  color: #c53d3d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.error-panel h2 {
  color: #a82020;
  font-size: 24px;
  line-height: 1.45;
  margin: 0 0 14px;
}

.error-summary {
  padding: 18px 20px;
  border: 1px solid #f0e2e2;
  background: #ffffff;
  border-radius: 10px;
  margin: 22px 0;
}

.error-summary strong {
  display: block;
  color: #1a202c;
  margin-bottom: 10px;
  font-size: 14px;
}

.error-summary div {
  padding: 6px 0;
  font-size: 13.5px;
  color: #566f84;
}

.error-summary div b {
  color: #1a202c;
}

.support-title {
  font-size: 22px;
  color: #153b5b;
  margin: 18px 0 6px;
}

.support-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.support-link {
  min-height: 85px;
  border: 1px solid #dfe7ef;
  border-radius: 12px;
  background: #ffffff;
  color: #193c59;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.6;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.support-link strong {
  font-size: 16px;
  font-weight: 800;
}

.support-link:hover {
  border-color: var(--blue);
  background: #f5f9ff;
  transform: translateY(-2px);
}

.support-link.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.support-link.primary:hover {
  background: #075eb6;
  border-color: #075eb6;
}

/* RESPONSIVE DESIGN */
@media (max-width: 800px) {
  .main-container { padding: 40px 20px; }
  .main-heading h1 { font-size: 32px; }
  .issue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .brand-model-page {
    margin: -30px 0 -40px;
    margin-left: -20px;
    width: calc(100% + 40px);
  }

  .brand-nav-inner {
    min-height: 70px;
    padding: 10px 16px;
  }

  .brand-nav-logo img {
    height: 44px;
    max-width: 140px;
  }

  .brand-nav-links { gap: 14px; }
  .brand-nav-links a { font-size: 11.5px; }
  .brand-model-content { padding: 45px 18px 55px; }
  .brand-model-title { font-size: 28px; margin-bottom: 28px; }
  .brand-model-content h2 { font-size: 19px; }
  .brand-progress { margin-top: 40px; }
}

@media (max-width: 550px) {
  .main-container { padding: 25px 15px; }
  .main-heading h1 { font-size: 26px; }
  .main-heading p { font-size: 14px; }
  .issue-grid { grid-template-columns: 1fr; gap: 14px; }
  .issue-card { min-height: 200px; }
  .brand-heading h2 { font-size: 24px; }
  .selected-issue { font-size: 12.5px; padding: 12px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand-card { height: 110px; border-radius: 14px; }
  .brand-card img { height: 44px; max-width: 115px; }
  .device-grid { grid-template-columns: 1fr; }
  .connection-grid { grid-template-columns: 1fr; }
  .connection-card { min-height: 80px; }
  .summary-box { padding: 18px; }
  .summary-row { font-size: 12px; }
  .support-actions { grid-template-columns: 1fr; }
  .error-panel { padding: 20px 16px; }
  .error-panel h2 { font-size: 20px; }
}
