/* ==========================================================================
   BROTHER PRINTER SUPPORT PORTAL STYLESHEET
   Matching official Brother support aesthetics (#00246E)
   ========================================================================== */

:root {
  --brother-navy: #001838;
  --brother-blue: #00246E;
  --brother-accent: #0056b3;
  --brother-light-blue: #e8f0fe;
  --brother-bg: #f5f7fa;
  --brother-card-bg: #ffffff;
  --brother-border: #dde3eb;
  --brother-text: #1d252c;
  --brother-muted: #5e6d7a;
  --brother-error: #c92a2a;
  --brother-error-bg: #fff5f5;
  --brother-warning: #e67700;
  --brother-radius: 8px;
  --brother-shadow: 0 8px 30px rgba(0, 24, 56, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--brother-text);
  background-color: var(--brother-bg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* CONTAINERS & UTILITY */
.brother-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

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

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* 1. TOP PROMO STRIP */
.brother-promo-strip {
  background-color: var(--brother-navy);
  color: #dbe4ef;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 8px 20px;
  letter-spacing: 0.3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* 2. MAIN HEADER */
.brother-header {
  background-color: var(--brother-blue);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.brother-header-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brother-nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brother-logo-link {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.brother-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brother-main-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brother-main-menu .menu-link {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 4px;
  position: relative;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.brother-main-menu .menu-link:hover,
.brother-main-menu .menu-link.active {
  opacity: 1;
  text-decoration: none;
}

.brother-main-menu .menu-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
}

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

.brother-return-link {
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brother-return-link:hover {
  background: rgba(255, 255, 255, 0.22);
  text-decoration: none;
}

.brother-live-support-btn {
  background: #ffffff;
  color: var(--brother-blue);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.brother-live-support-btn:hover {
  background: #f0f4f9;
  transform: translateY(-1px);
}

/* 3. SUB-NAV STRIP */
.brother-subnav {
  background-color: #ffffff;
  border-bottom: 1px solid var(--brother-border);
  padding: 12px 0;
}

.subnav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.subnav-links a {
  color: var(--brother-muted);
  font-size: 13px;
  font-weight: 600;
}

.subnav-links a:hover {
  color: var(--brother-blue);
}

/* 4. MAIN CONTENT & HERO CARD */
.brother-main-content {
  flex: 1;
  padding: 48px 0 80px;
}

.brother-hero-card-section {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.brother-setup-card {
  background: var(--brother-card-bg);
  width: 100%;
  max-width: 860px;
  padding: 48px 40px;
  border-radius: 12px;
  border: 1px solid var(--brother-border);
  box-shadow: var(--brother-shadow);
  text-align: center;
}

.brother-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brother-accent);
  margin-bottom: 10px;
}

.brother-main-title {
  font-family: 'Roboto Slab', serif;
  font-size: 34px;
  font-weight: 700;
  color: #111a24;
  margin-bottom: 12px;
  line-height: 1.25;
}

.brother-subtitle {
  font-size: 15px;
  color: var(--brother-muted);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* SEARCH FORM */
.brother-search-form {
  position: relative;
  max-width: 680px;
  margin: 0 auto 20px;
}

.brother-input-wrap {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #ccd6e0;
  border-radius: 8px;
  padding: 4px 6px 4px 18px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.brother-input-wrap:focus-within {
  border-color: var(--brother-blue);
  box-shadow: 0 0 0 4px rgba(0, 36, 110, 0.12);
}

.brother-search-icon {
  color: #7b8c9d;
  font-size: 16px;
  margin-right: 12px;
}

.brother-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: var(--brother-text);
  padding: 10px 0;
  background: transparent;
}

.brother-input-wrap input::placeholder {
  color: #92a1af;
}

.brother-btn-search {
  background-color: var(--brother-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.brother-btn-search:hover {
  background-color: var(--brother-navy);
}

/* Auto-suggestions dropdown */
.brother-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #d4dde6;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  z-index: 50;
  max-height: 260px;
  overflow-y: auto;
  text-align: left;
}

.suggestion-item {
  padding: 12px 18px;
  font-size: 14px;
  color: var(--brother-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f3f6;
  transition: background 0.15s ease;
}

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

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

.suggestion-item strong {
  color: var(--brother-blue);
}

.brother-help-link-wrap {
  margin-top: 14px;
}

.brother-where-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brother-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* 5. DRIVER FAQS ACCORDION SECTION */
.brother-faqs-section {
  max-width: 860px;
  margin: 0 auto 60px;
}

.brother-faqs-header {
  text-align: center;
  margin-bottom: 24px;
}

.brother-faqs-header h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 26px;
  font-weight: 700;
  color: #111a24;
  margin-bottom: 6px;
}

.brother-faqs-header p {
  font-size: 14px;
  color: var(--brother-muted);
}

.brother-faqs-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--brother-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-card.open {
  border-color: #b8cde6;
  box-shadow: 0 4px 14px rgba(0, 36, 110, 0.05);
}

.faq-toggle {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  background: #ffffff;
  color: #1a2530;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.15s ease;
}

.faq-toggle:hover {
  background-color: #fafbfc;
}

.faq-arrow {
  font-size: 13px;
  color: #7b8c9d;
  transition: transform 0.25s ease;
}

.faq-card.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--brother-blue);
}

.faq-body {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: #4b5866;
  line-height: 1.65;
  border-top: 1px solid #f1f4f8;
  background-color: #fafbfd;
}

.faq-card.open .faq-body {
  display: block;
}

/* 6. YOU MIGHT ALSO NEED SECTION */
.brother-also-need-section {
  max-width: 1040px;
  margin: 0 auto;
}

.also-need-header {
  text-align: center;
  margin-bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.also-need-header h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 28px;
  font-weight: 700;
  color: #111a24;
}

.btn-support-center {
  background-color: var(--brother-blue);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 20px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn-support-center:hover {
  background-color: var(--brother-navy);
  transform: translateY(-1px);
}

.also-need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--brother-border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 36, 110, 0.09);
  border-color: #b5cbe4;
}

.service-img-box {
  height: 170px;
  background: #eef3f9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-real-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-svg-art {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #ffffff;
}

.repair-art {
  background: linear-gradient(135deg, #1b3a5b 0%, #00246E 100%);
  font-size: 44px;
}

.recycle-art {
  background: linear-gradient(135deg, #1a4d3e 0%, #0c6b4b 100%);
  font-size: 44px;
}

.art-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.18);
  padding: 4px 12px;
  border-radius: 12px;
}

.service-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #121c26;
  margin-bottom: 8px;
}

.service-card-body p {
  font-size: 13px;
  color: var(--brother-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.service-arrow-btn {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f4f9;
  color: var(--brother-blue);
  font-size: 20px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  line-height: 1;
}

.service-card:hover .service-arrow-btn {
  background: var(--brother-blue);
  color: #ffffff;
  transform: translateX(2px);
}

/* 7. ROYAL BLUE FOOTER (#00246E) */
.brother-footer {
  background-color: var(--brother-blue);
  color: #ffffff;
  padding: 60px 0 32px;
  margin-top: auto;
}

.brother-footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.3px;
}

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

.footer-col ul li a {
  color: #c9d8ea;
  font-size: 13px;
  transition: color 0.15s ease;
}

.footer-col ul li a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.brother-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #b0c4de;
  line-height: 1.7;
}

.brother-bottom-disclaimer {
  font-size: 11px;
  color: #8fa8c6;
  margin-top: 6px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   MODAL WIZARD & DIAGNOSTIC SYSTEM
   ========================================================================== */
.brother-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 18, 48, 0.65);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.25s ease;
}

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

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

.brother-modal-card {
  background: #ffffff;
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  animation: slideUpModal 0.25s ease;
}

@keyframes slideUpModal {
  from { transform: translateY(16px); }
  to { transform: translateY(0); }
}

.brother-modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 28px;
  color: #8b9baa;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.brother-modal-close:hover {
  background-color: #f1f4f8;
  color: #1a2530;
}

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

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

.brother-step-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--brother-accent);
  background: var(--brother-light-blue);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.brother-wizard-step h2 {
  font-family: 'Roboto Slab', serif;
  font-size: 24px;
  font-weight: 700;
  color: #121c26;
  margin-bottom: 6px;
}

.brother-step-sub {
  font-size: 14px;
  color: var(--brother-muted);
  margin-bottom: 24px;
}

.brother-selected-pill {
  background: #f0f5fc;
  border: 1px solid #c9dbee;
  border-radius: 6px;
  padding: 10px 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #314253;
}

.brother-selected-pill strong {
  color: var(--brother-blue);
  font-weight: 700;
}

.brother-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 10px;
}

.brother-card-btn {
  background: #ffffff;
  border: 2px solid #e1e7ee;
  border-radius: 10px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--brother-text);
  transition: all 0.2s ease;
  cursor: pointer;
  text-align: center;
}

.brother-card-btn i {
  font-size: 26px;
  color: var(--brother-blue);
  transition: transform 0.2s ease;
}

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

.brother-card-btn:hover i {
  transform: scale(1.1);
}

/* SCANNING SPINNER & PROGRESS */
.brother-scan-spinner-wrap {
  text-align: center;
  padding: 30px 10px 10px;
}

.brother-scan-spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border: 4px solid #e3eaf2;
  border-top-color: var(--brother-blue);
  border-radius: 50%;
  animation: brotherSpin 0.8s linear infinite;
}

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

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

.brother-scan-bar-track {
  width: 100%;
  max-width: 440px;
  height: 8px;
  background: #e6edf5;
  border-radius: 4px;
  overflow: hidden;
  margin: 0 auto 16px;
}

.brother-scan-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #00246E 0%, #0070f3 100%);
  transition: width 0.15s ease;
}

.brother-scan-status-text {
  font-size: 13px;
  color: var(--brother-muted);
  font-weight: 500;
}

/* ERROR REPORT */
.brother-error-banner {
  background: #fff5f5;
  border: 1px solid #ffc9c9;
  border-radius: 8px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.brother-error-banner i {
  font-size: 32px;
  color: var(--brother-error);
  flex-shrink: 0;
}

.brother-err-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--brother-error);
  background: #ffe3e3;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
}

.brother-error-banner h3 {
  font-size: 16px;
  font-weight: 700;
  color: #921d1d;
  margin: 0;
}

.brother-warning-callout {
  background: #fff9db;
  border-left: 4px solid var(--brother-warning);
  padding: 12px 16px;
  font-size: 13px;
  color: #664d03;
  margin-bottom: 20px;
  border-radius: 0 6px 6px 0;
}

.brother-report-table {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.brother-report-table div {
  font-size: 13px;
  color: #4a5568;
}

.brother-report-table div strong {
  color: #1a202c;
  margin-left: 4px;
}

.brother-actions-row {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.brother-btn-live-chat {
  background-color: var(--brother-blue);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 36, 110, 0.25);
}

.brother-btn-live-chat:hover {
  background-color: var(--brother-navy);
  transform: translateY(-1px);
}

.brother-btn-restart {
  background: #ffffff;
  color: #4a5568;
  border: 1px solid #cbd5e1;
  font-size: 14px;
  font-weight: 600;
  padding: 14px 20px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.brother-btn-restart:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* WHERE TO FIND GUIDE */
.brother-where-guide {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: #334155;
  line-height: 1.6;
  margin-top: 14px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 900px) {
  .brother-main-menu {
    display: none;
  }

  .also-need-grid {
    grid-template-columns: 1fr;
  }

  .brother-footer-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .brother-setup-card {
    padding: 32px 20px;
  }

  .brother-main-title {
    font-size: 26px;
  }

  .brother-input-wrap {
    flex-direction: column;
    padding: 12px;
    gap: 10px;
  }

  .brother-input-wrap input {
    width: 100%;
  }

  .brother-btn-search {
    width: 100%;
  }

  .brother-selection-grid {
    grid-template-columns: 1fr;
  }

  .brother-report-table {
    grid-template-columns: 1fr;
  }

  .brother-actions-row {
    flex-direction: column;
  }

  .brother-footer-cols {
    grid-template-columns: 1fr;
  }
}
