:root {
  --background: #f7f9ff;
  --surface: #ffffff;
  --surface-low: #f1f4f9;
  --surface-high: #e5e8ee;
  --surface-highest: #e0e3e8;
  --primary: #003f87;
  --primary-container: #0056b3;
  --secondary: #006a6a;
  --secondary-container: #90efef;
  --on-secondary-container: #006e6e;
  --text: #181c20;
  --text-muted: #424752;
  --outline: #727784;
  --outline-variant: #c2c6d4;
  --inverse: #2d3135;
  --white: #ffffff;
  --shadow-sm: 0 4px 16px rgba(24, 28, 32, 0.06);
  --shadow-md: 0 10px 28px rgba(24, 28, 32, 0.10);
  --shadow-lg: 0 20px 50px rgba(24, 28, 32, 0.20);
  --container: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  background: var(--background);
  color: var(--text);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button,
label,
a {
  -webkit-tap-highlight-color: transparent;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  line-height: 1;
}

.container {
  width: min(calc(100% - 80px), var(--container));
  margin-inline: auto;
}

.section {
  padding-block: 48px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 80px;
  background: rgba(247, 249, 255, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(24, 28, 32, 0.08);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-icon {
  font-size: 38px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 38px;
  margin-left: auto;
}

.main-nav a,
.search-link,
.footer-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover,
.search-link:hover,
.footer-nav a:hover {
  color: var(--primary);
}

.main-nav .active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  padding-block: 4px;
}

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

.search-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
}

.search-link:hover {
  background: rgba(0, 63, 135, 0.06);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 24px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, filter 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  color: var(--white);
  background: var(--primary);
}

.button-primary:hover {
  filter: brightness(1.12);
  box-shadow: var(--shadow-md);
}

.button-outline {
  color: var(--primary);
  background: transparent;
  border: 2px solid var(--primary);
}

.button-outline:hover {
  background: rgba(0, 63, 135, 0.05);
}

.button-secondary {
  color: var(--white);
  background: var(--secondary);
}

.button-secondary:hover {
  filter: brightness(1.1);
}

.button-secondary-outline {
  color: var(--secondary);
  border: 2px solid var(--secondary);
  background: transparent;
}

.button-secondary-outline:hover {
  background: rgba(0, 106, 106, 0.06);
}

.button-light-outline {
  color: var(--white);
  border: 2px solid var(--white);
  background: transparent;
}

.button-light-outline:hover {
  background: rgba(255, 255, 255, 0.10);
}

.button-pill {
  border-radius: 999px;
  padding: 16px 30px;
  font-size: 18px;
  white-space: nowrap;
}

.button-large {
  min-height: 64px;
  border-radius: 12px;
  font-size: 20px;
  font-weight: 600;
}

.compact-button {
  margin-top: 28px;
}

main {
  padding-top: 80px;
}

.hero-brands {
  padding-top: 52px;
}

.section-intro {
  margin-bottom: 44px;
}

.centered {
  text-align: center;
}

.section-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.section-intro p,
.section-heading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.55;
}

.section-intro p {
  max-width: 700px;
  margin-inline: auto;
}

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

.brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px;
  border: 1px solid rgba(194, 198, 212, 0.40);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.brand-card-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(0, 63, 135, 0.05);
  transition: background 0.2s ease;
}

.brand-card:hover .brand-card-icon {
  background: rgba(0, 63, 135, 0.10);
}

.brand-card-icon .material-symbols-outlined {
  font-size: 40px;
}

.brand-card strong {
  font-size: 24px;
  line-height: 1.3;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

.lookup-card {
  display: flex;
  gap: 64px;
  padding: 40px;
  border: 1px solid rgba(194, 198, 212, 0.50);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.lookup-form-area {
  flex: 3 1 0;
}

.section-heading {
  margin-bottom: 38px;
}

.section-heading h2,
.trust-copy h2 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.driver-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 14px;
  font-weight: 500;
}

.field input,
.chat-input-row input {
  width: 100%;
  border: 1px solid var(--outline-variant);
  outline: 0;
  color: var(--text);
  background: rgba(241, 244, 249, 0.35);
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field input {
  min-height: 58px;
  padding: 14px 18px;
  border-radius: 12px;
}

.field input:focus,
.chat-input-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 63, 135, 0.12);
  background: var(--surface);
}

.field-help {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 600;
}

.field-help:hover {
  text-decoration: underline;
}

.field-help .material-symbols-outlined {
  font-size: 16px;
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.form-actions .button {
  flex: 1 1 0;
}

.model-help {
  flex: 2 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(194, 198, 212, 0.40);
  padding-left: 64px;
}

.model-image-wrap {
  padding: 24px;
  margin-bottom: 22px;
  border-radius: 16px;
  background: var(--surface-low);
}

.model-image-wrap img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.model-help h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.3;
}

.model-help p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.verified-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  color: var(--secondary);
  font-size: 14px;
}

.support-banner {
  margin-block: 48px;
  padding-block: 76px;
  color: var(--white);
  background: var(--primary);
}

.support-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.support-copy {
  max-width: 740px;
}

.support-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.support-copy p {
  margin: 0;
  font-size: 18px;
  line-height: 1.65;
  opacity: 0.92;
}

.support-actions {
  display: flex;
  gap: 16px;
}

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

.support-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  border: 1px solid rgba(194, 198, 212, 0.40);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.support-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.support-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 12px;
  color: var(--secondary);
  background: rgba(0, 106, 106, 0.10);
}

.support-icon .material-symbols-outlined {
  font-size: 30px;
}

.support-card h3 {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 24px;
}

.support-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 24px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.text-link .material-symbols-outlined {
  font-size: 17px;
}

.callback-button {
  width: 100%;
  margin-top: 24px;
}

.trust-section {
  padding-top: 44px;
  padding-bottom: 72px;
}

.trust-stack {
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 80px;
}

.trust-row.reverse {
  flex-direction: row-reverse;
}

.trust-media,
.trust-copy {
  flex: 1 1 0;
}

.trust-media {
  position: relative;
}

.trust-media::before {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
  border-radius: 24px;
}

.media-blue::before {
  background: rgba(0, 63, 135, 0.05);
  transform: rotate(-2deg);
}

.media-teal::before {
  background: rgba(0, 106, 106, 0.05);
  transform: rotate(2deg);
}

.trust-media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.trust-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.feature-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: var(--surface-low);
  font-size: 14px;
  font-weight: 500;
}

.feature-pill .material-symbols-outlined {
  color: var(--secondary);
}

.compatibility-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 22px;
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--surface-high);
  font-size: 14px;
}

.tag-teal {
  color: var(--on-secondary-container);
  background: var(--secondary-container);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid rgba(194, 198, 212, 0.50);
  background: var(--surface);
}

.footer-inner {
  min-height: 164px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-block: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-logo {
  font-size: 24px;
}

.footer-logo .brand-icon {
  font-size: 28px;
}

.footer-brand p {
  margin: 0;
  color: var(--text-muted);
}

.footer-brand small {
  margin-top: 4px;
  color: var(--outline);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 20px 42px;
}

.footer-nav .footer-highlight {
  color: var(--primary);
  font-weight: 700;
}

.chat-toggle {
  position: fixed;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.chat-fab {
  position: fixed;
  right: 40px;
  bottom: 40px;
  z-index: 80;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--primary);
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.chat-fab:hover {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.chat-fab > .material-symbols-outlined {
  font-size: 32px;
}

.chat-tooltip {
  position: absolute;
  right: 80px;
  min-width: max-content;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  color: #eef1f6;
  background: var(--inverse);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chat-fab:hover .chat-tooltip {
  opacity: 1;
  transform: translateX(0);
}

.chat-widget {
  position: fixed;
  right: 40px;
  bottom: 112px;
  z-index: 75;
  width: 400px;
  overflow: hidden;
  border: 1px solid rgba(194, 198, 212, 0.50);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(30px);
  transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s ease;
}

.chat-toggle:checked ~ .chat-widget {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.chat-toggle:checked ~ .chat-fab > .material-symbols-outlined {
  transform: rotate(90deg);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: var(--white);
  background: var(--primary);
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.20);
}

.chat-agent strong,
.chat-agent small {
  display: block;
}

.chat-agent strong {
  font-size: 14px;
}

.chat-agent small {
  margin-top: 2px;
  font-size: 12px;
  opacity: 0.8;
}

.chat-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.10);
}

.chat-messages {
  height: 320px;
  overflow-y: auto;
  padding: 24px;
  background: rgba(241, 244, 249, 0.35);
}

.message {
  max-width: 92%;
  padding: 15px 16px;
  border: 1px solid rgba(194, 198, 212, 0.22);
  border-radius: 16px;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
}

.incoming {
  border-top-left-radius: 2px;
  background: var(--surface-highest);
}

.chat-input-row {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border-top: 1px solid rgba(194, 198, 212, 0.40);
}

.chat-input-row input {
  min-width: 0;
  flex: 1 1 auto;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--surface);
}

.chat-input-row button {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: var(--primary);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.chat-input-row button:hover {
  filter: brightness(1.1);
}

@media (max-width: 1100px) {
  .main-nav {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .lookup-card,
  .trust-row,
  .trust-row.reverse,
  .support-banner-inner {
    flex-direction: column;
  }

  .lookup-card {
    gap: 44px;
  }

  .model-help {
    width: 100%;
    border-left: 0;
    border-top: 1px solid rgba(194, 198, 212, 0.40);
    padding-top: 42px;
    padding-left: 0;
  }

  .support-banner-inner,
  .support-copy {
    text-align: center;
  }

  .support-actions {
    justify-content: center;
  }

  .trust-row,
  .trust-row.reverse {
    gap: 50px;
  }

  .trust-media,
  .trust-copy {
    width: 100%;
  }
}

@media (max-width: 820px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .site-header {
    height: 72px;
  }

  main {
    padding-top: 72px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    font-size: 20px;
  }

  .brand-icon {
    font-size: 32px;
  }

  .search-link {
    display: none;
  }

  .header-download {
    padding-inline: 16px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lookup-card {
    padding: 28px;
  }

  .driver-form {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .form-actions {
    flex-direction: column;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .support-actions {
    flex-direction: column;
    width: min(100%, 360px);
  }

  .support-actions .button {
    width: 100%;
  }

  .feature-pills {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .chat-fab {
    right: 18px;
    bottom: 18px;
  }

  .chat-widget {
    right: 16px;
    bottom: 94px;
    width: calc(100% - 32px);
  }
}

@media (max-width: 560px) {
  .section {
    padding-block: 36px;
  }

  .header-download {
    font-size: 12px;
    padding: 10px 12px;
  }

  .brand span:last-child {
    max-width: 120px;
    line-height: 1.1;
  }

  .hero-brands {
    padding-top: 36px;
  }

  .section-intro h1 {
    font-size: 34px;
  }

  .section-intro p,
  .section-heading p,
  .trust-copy p,
  .support-copy p {
    font-size: 16px;
  }

  .brand-grid {
    gap: 14px;
  }

  .brand-card {
    padding: 22px 16px;
  }

  .brand-card strong {
    font-size: 20px;
  }

  .lookup-card {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .button-large {
    min-height: 58px;
    font-size: 16px;
  }

  .model-image-wrap {
    padding: 16px;
  }

  .support-banner {
    padding-block: 56px;
  }

  .support-copy h2 {
    font-size: 34px;
  }

  .button-pill {
    font-size: 16px;
  }

  .support-card {
    padding: 26px 22px;
  }

  .trust-stack {
    gap: 70px;
  }

  .trust-media img {
    height: 300px;
  }

  .compatibility-tags {
    flex-direction: column;
    align-items: flex-start;
  }

  .tag {
    width: 100%;
    justify-content: center;
  }

  .chat-tooltip {
    display: none;
  }
  
}

/* =========================================
   DRIVER DOWNLOAD MODAL
   Added without changing the existing page design.
========================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  padding: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.48);
  z-index: 99999;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  position: relative;
  width: 450px;
  height: 710px;
  max-width: 100%;
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 7px;
  background: #ffffff;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.modal-header {
  height: 58px;
  min-height: 58px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #dedede;
}

.modal-header h2 {
  margin: 0;
  color: #252525;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
}

.modal-close-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #888888;
  font-size: 31px;
  line-height: 1;
  font-weight: 300;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #333333;
}

.modal-body {
  position: relative;
  flex: 1;
  width: 100%;
  overflow-y: auto;
  background: #ffffff;
}

.modal-step {
  display: none;
  min-height: 100%;
}

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

.popup-blue-button {
  border: 0;
  border-radius: 5px;
  background: #0a73f9;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  transition: background 0.18s ease, transform 0.18s ease;
}

.popup-blue-button:hover {
  background: #0567e6;
}

.popup-blue-button:active {
  transform: translateY(1px);
}

.popup-circle-arrow {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.88);
  color: #0a73f9;
  font-size: 15px;
  line-height: 1;
}


/* STEP 1 */

.popup-start-screen {
  padding-top: 86px;
  text-align: center;
}

.popup-start-button {
  min-width: 110px;
  height: 34px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
}

.popup-start-caption {
  margin: 10px 0 0;
  color: #111111;
  font-size: 14px;
  line-height: 1.4;
}

.popup-printer-art {
  width: 330px;
  max-width: 85%;
  margin: 28px auto 0;
  color: #626262;
}

.popup-printer-art svg {
  display: block;
  width: 100%;
  height: auto;
}


/* STEP 2 */

#modalStep2 {
  padding: 15px 25px 35px;
}

.popup-form-panel {
  width: 100%;
  padding: 24px 34px 35px;
  background: #f7f7f7;
}

.popup-form-panel h3 {
  margin: 0 0 24px;
  color: #252525;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
  text-align: left;
}

.popup-field {
  margin-bottom: 14px;
}

.popup-field label {
  display: block;
  margin: 0 0 5px;
  color: #333333;
  font-size: 14px;
  line-height: 1.3;
}

.popup-field input {
  width: 100%;
  height: 35px;
  padding: 0 10px;
  border: 1px solid #cfd5db;
  border-radius: 5px;
  outline: 0;
  background: #ffffff;
  color: #222222;
  font-size: 14px;
}

.popup-field input:focus {
  border-color: #0a73f9;
  box-shadow: 0 0 0 2px rgba(10, 115, 249, 0.10);
}

.popup-inline-error {
  display: none;
  margin: -2px 0 11px;
  color: #c62828;
  font-size: 12px;
  line-height: 1.4;
}

.popup-inline-error.visible {
  display: block;
}

.popup-download-button {
  width: 243px;
  max-width: 100%;
  height: 28px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}


/* STEP 3 */

.popup-loading-center {
  min-height: 620px;
  display: grid;
  place-items: center;
}


/* SPINNERS */

.popup-spinner {
  display: inline-block;
  border-radius: 50%;
  animation: printerPopupSpin 0.75s linear infinite;
}

.popup-spinner-teal {
  width: 36px;
  height: 36px;
  border: 3px solid transparent;
  border-top-color: #07bcae;
  border-right-color: #07bcae;
}

.popup-spinner-grey {
  width: 28px;
  height: 28px;
  border: 4px solid #d1d1d1;
  border-top-color: #838383;
}

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


/* STEP 4 */

.popup-connection-screen {
  padding: 18px 36px 40px;
}

.popup-section-copy {
  margin: 0;
  color: #5b5b5b;
  font-size: 14px;
  line-height: 1.5;
}

.popup-thin-line {
  height: 1px;
  margin: 14px 0;
  background: #cfcfcf;
}

.connection-row {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.connection-info {
  min-width: 0;
  flex: 1;
  text-align: center;
}

.connection-art {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #707070;
}

.connection-art .material-symbols-outlined {
  font-size: 38px;
}

.connection-art .wifi-wave {
  margin: 0 2px;
  color: #06aedd;
  font-size: 26px;
}

.connection-line {
  width: 38px;
  height: 1px;
  margin: 0 4px;
  border-top: 2px solid #8b8b8b;
  transform: rotate(-8deg);
}

.connection-info p {
  margin: 3px 0 0;
  color: #666666;
  font-size: 14px;
}

.connection-info strong {
  color: #545454;
}

.connection-start-btn {
  min-width: 110px;
  height: 35px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
}


/* STEP 5 */

.popup-search-screen {
  padding: 18px 36px 40px;
  text-align: center;
}

.popup-search-screen .popup-section-copy {
  text-align: left;
}

.popup-please-wait {
  display: block;
  margin-top: 22px;
  color: #696969;
  font-size: 13px;
}

.mini-connection-art {
  margin: 10px auto 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #666666;
}

.mini-connection-art .material-symbols-outlined {
  font-size: 34px;
}

.mini-connection-art .mini-wave {
  color: #07addb;
  font-size: 23px;
}

.search-status-line {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #747474;
  font-size: 14px;
}

.popup-large-spinner {
  display: block;
  margin: 88px auto 0;
}


/* STEP 6 */

.popup-failed-screen {
  padding: 18px 36px 42px;
  text-align: center;
}

.popup-failed-screen .popup-section-copy {
  text-align: left;
}

.failure-art {
  margin-top: 25px;
}

.popup-failed-screen h3 {
  margin: 4px 0 2px;
  color: #111111;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

.failure-options {
  overflow: hidden;
  width: 100%;
  margin-top: 0;
  border: 1px solid #d3d9df;
  border-radius: 5px;
  background: #ffffff;
}

.failure-options > div {
  min-height: 36px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  color: #111111;
  font-size: 14px;
}

.failure-options > div + div {
  border-top: 1px solid #d3d9df;
}

.popup-text-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #006cff;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.failure-actions {
  margin-top: 18px;
  display: flex;
  justify-content: space-around;
  gap: 20px;
}

.popup-small-action {
  min-width: 67px;
  min-height: 30px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 600;
}

.support-choice-panel {
  display: none;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid #d7dde4;
  border-radius: 6px;
  background: #f8f9fb;
}

.support-choice-panel.active {
  display: block;
}

.support-choice-panel p {
  margin: 0 0 11px;
  color: #4d4d4d;
  font-size: 13px;
}

.support-choice-buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.popup-support-button {
  min-height: 38px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 0;
  border-radius: 5px;
  background: #0a73f9;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.popup-support-button:hover {
  background: #0567e6;
}

.popup-support-button .material-symbols-outlined {
  font-size: 17px;
}


/* MOBILE */

@media (max-width: 600px) {
  .modal-overlay {
    padding: 0;
  }

  .modal-card {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .modal-header {
    height: 58px;
    min-height: 58px;
  }

  .modal-header h2 {
    font-size: 17px;
  }

  .popup-start-screen {
    padding-top: 70px;
  }

  #modalStep2 {
    padding: 15px 18px 30px;
  }

  .popup-form-panel {
    padding: 22px 20px 30px;
  }

  .popup-connection-screen,
  .popup-search-screen,
  .popup-failed-screen {
    padding-left: 22px;
    padding-right: 22px;
  }

  .connection-row {
    gap: 10px;
  }

  .connection-start-btn {
    min-width: 102px;
  }

  .failure-actions {
    justify-content: center;
  }
}



/* Defensive visibility rules.
   Native [hidden] prevents inactive modal screens from rendering even if
   another cached stylesheet is temporarily used. */
.modal-overlay[hidden],
.modal-step[hidden] {
  display: none !important;
}
