/* ============ Reset & base ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #33424c;
  --navy-dark: #263039;
  --slate: #415462;
  --blue: #009cdb;
  --blue-dark: #0080b8;
  --orange: #b05e0d;
  --orange-dark: #954e0a;
  --text: #333333;
  --text-light: #5a6572;
  --border: #d9dee2;
  --bg-tint: #f3f5f7;
  --footer-bg: #f7f7f7;
  --check: #009cdb;
  --max-width: 1010px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Helvetica Neue", Arial, "Segoe UI", sans-serif;
  color: var(--text);
  line-height: 1.5;
  background: #ffffff;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.chevron {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  vertical-align: middle;
}

/* ============ Top bar ============ */
.topbar {
  background: var(--navy);
  color: #fff;
  position: relative;
  z-index: 50;
}
.topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 24px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.hamburger__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand__logo {
  height: 34px;
  width: auto;
  display: block;
}
.brand__divider {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.3);
}
.brand__name {
  font-size: 12px;
  letter-spacing: 0.5px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-collapse {
  display: flex;
  align-items: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.mainnav {
  display: flex;
  gap: 22px;
  flex: 1;
}
.mainnav__link {
  font-size: 13px;
  padding: 4px 0;
  color: #dfe6ec;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.mainnav__link--active {
  color: #fff;
  border-bottom-color: var(--blue);
}
.mainnav__link:hover { color: #fff; }

.utility {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: #dfe6ec;
  flex-shrink: 0;
}
.utility__item { white-space: nowrap; }
.utility__item:hover { color: #fff; }

.search-btn {
  background: none;
  border: none;
  color: #dfe6ec;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.search-input {
  width: 0;
  opacity: 0;
  border: none;
  border-radius: 3px;
  padding: 4px 6px;
  font-size: 12px;
  transition: width 0.2s ease, opacity 0.2s ease, padding 0.2s ease;
}
.search-btn.is-open .search-input {
  width: 130px;
  opacity: 1;
  padding: 4px 8px;
}
.search-icon { font-size: 13px; }

.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: #fff;
  padding: 9px 18px;
}
.btn--primary:hover { background: var(--orange-dark); }
.btn--pill { border-radius: 3px; }

.account-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.btn--login {
  color: #dfe6ec;
  font-size: 12px;
  font-weight: 600;
  padding: 0;
  background: none;
}
.btn--login:hover { color: #fff; }

.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 40;
}
.nav-scrim.is-open { display: block; }

/* ============ Sub nav ============ */
.subnav {
  background: var(--slate);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.subnav__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 28px;
  padding: 0 24px;
}
.subnav__link {
  color: #dfe6ec;
  font-size: 13px;
  padding: 10px 2px;
  display: inline-block;
  border-bottom: 3px solid transparent;
}
.subnav__link--active {
  color: #fff;
  border-bottom-color: var(--blue);
  font-weight: 600;
}
.subnav__link:hover { color: #fff; }

/* ============ Page layout ============ */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 0;
}

/* ============ Hero ============ */
.hero {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}
.hero__text { flex: 1; min-width: 260px; }
.hero__text h1 {
  font-size: 34px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
}
.hero__image {
  flex: 1;
  min-width: 280px;
}
.hero__image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 2px;
}

.intro {
  font-size: 13px;
  color: var(--text-light);
  max-width: 900px;
  margin-bottom: 40px;
}

/* ============ Generic section ============ */
.section { margin-bottom: 44px; }

.section__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}
.section__title--plain { gap: 0; }
.icon { width: 34px; height: auto; flex-shrink: 0; }

.section__body p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  max-width: 900px;
}
.section__body p:last-child { margin-bottom: 0; }

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 12px;
  max-width: 860px;
}
.checklist li:last-child { margin-bottom: 0; }
.checklist strong { color: var(--text); font-weight: 700; }
.check {
  color: var(--check);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============ Cards (services) ============ */
.cards {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.card {
  flex: 1;
  min-width: 280px;
  border: 1px solid var(--blue);
  border-radius: 3px;
  padding: 20px 22px;
}
.card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text);
}
.checklist--card li { max-width: none; }

/* ============ Stats ============ */
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
  margin-bottom: 44px;
}
.stat {
  flex: 1;
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat__num {
  font-size: 26px;
  font-weight: 700;
  color: var(--blue);
}
.stat__label {
  font-size: 12px;
  color: var(--text-light);
}

/* ============ Trust types ============ */
.trust-types {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.trust-type {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
}
.trust-type__icon {
  width: 30px;
  height: auto;
  margin-bottom: 10px;
}
.trust-type h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.trust-type p {
  font-size: 12px;
  color: var(--text-light);
}

/* ============ Team ============ */
.team {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.team-card {
  flex: 1;
  min-width: 180px;
  text-align: center;
}
.team-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
}
.team-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.team-card p {
  font-size: 12px;
  color: var(--text-light);
}

/* ============ Quote ============ */
.quote {
  background: var(--bg-tint);
  border-left: 4px solid var(--blue);
  padding: 28px 32px;
  margin-bottom: 44px;
}
.quote__text {
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 10px;
  max-width: 800px;
}
.quote__attribution {
  font-size: 12px;
  color: var(--text-light);
}

/* ============ Articles ============ */
.articles {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.article-card {
  flex: 1;
  min-width: 240px;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.article-card:hover { border-color: var(--blue); }
.article-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.article-card__body { padding: 16px; }
.article-card__tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--blue);
}
.article-card h3 {
  font-size: 14px;
  color: var(--text);
  margin: 8px 0 6px;
  line-height: 1.35;
}
.article-card p {
  font-size: 12px;
  color: var(--text-light);
}

/* ============ FAQs ============ */
.faqs__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.faqs__toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.link-btn {
  background: none;
  border: none;
  color: var(--blue);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}
.link-btn:hover { text-decoration: underline; }

.accordion__item {
  border-bottom: 1px solid var(--border);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  text-align: left;
  font-size: 14px;
  color: var(--text);
  padding: 16px 4px;
  cursor: pointer;
}
.accordion__icon {
  color: #fff;
  background: #006e99;
  border-radius: 5px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.accordion__panel p {
  font-size: 13px;
  color: var(--text-light);
  padding: 0 4px 18px 30px;
  max-width: 820px;
}

/* ============ Explore more ============ */
.explore { margin-bottom: 44px; }
.explore__cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.explore__card {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 16px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.explore__card:hover { border-color: var(--blue); color: var(--blue); }
.arrow { font-size: 18px; }

/* ============ CTA ============ */
.cta {
  background: var(--bg-tint);
  border: 1px solid var(--border);
  text-align: center;
  padding: 32px 24px;
  margin-bottom: 40px;
}
.cta h2 {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
}
.cta p {
  font-size: 13px;
  color: var(--text-light);
}
.cta a { color: var(--blue); text-decoration: underline; }

/* ============ Disclaimer ============ */
.disclaimer {
  font-size: 10px;
  line-height: 1.6;
  color: #8a939b;
  margin-bottom: 20px;
}
.disclaimer p { margin-bottom: 10px; }
.disclaimer__code { font-size: 9px; }

.legal-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: 10px;
  color: var(--text-light);
  text-align: center;
}
.legal-band--alt {
  text-align: left;
  border-top: none;
}
.legal-band--alt p { margin-bottom: 8px; }
.legal-band a { color: var(--blue); text-decoration: underline; }

/* ============ Footer ============ */
.footer {
  background: var(--footer-bg);
  margin-top: 20px;
}
.footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 24px;
  position: relative;
}
.footer__social-icons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.footer__social-icons a {
  display: block;
  line-height: 0;
  opacity: 1;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.footer__social-icons a:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}
.footer__social-icons img {
  height: 26px;
  width: auto;
  display: block;
}

.footer__columns {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.footer__col a {
  display: block;
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 10px;
}
.footer__col a:hover { text-decoration: underline; }

.footer__tagline {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-style: italic;
  font-size: 15px;
  color: var(--text-light);
}

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
}
.footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 11px;
  color: var(--text-light);
  max-width: 1280px;
  margin: 0 auto 8px;
}
.footer__bottom-links a { color: var(--text-light); }
.footer__bottom-links a:hover { color: var(--blue); }
.footer__code {
  max-width: 1280px;
  margin: 8px auto 0;
  font-size: 10px;
  color: var(--text-light);
}

/* ============ Page hero banner (secondary pages) ============ */
.page-hero {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 32px;
}
.page-hero__text { flex: 1; min-width: 260px; }
.page-hero__text .eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.page-hero__text h1 {
  font-size: 32px;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 14px;
}
.page-hero__text p {
  font-size: 14px;
  color: var(--text-light);
  max-width: 480px;
}
.page-hero__image { flex: 1; min-width: 280px; }
.page-hero__image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 2px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb .sep { margin: 0 6px; color: var(--border); }

/* ============ Steps (numbered process) ============ */
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  counter-reset: step;
}
.step {
  flex: 1;
  min-width: 220px;
  position: relative;
  padding-top: 12px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.step h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.step p {
  font-size: 12px;
  color: var(--text-light);
}

/* ============ Pricing table ============ */
.pricing-table-wrap {
  overflow-x: auto;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 520px;
}
.pricing-table th,
.pricing-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.pricing-table th {
  background: var(--bg-tint);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-light);
}
.pricing-table td:first-child { font-weight: 600; color: var(--text); }
.pricing-table tr:last-child td { border-bottom: none; }
.pricing-note {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 10px;
}

.pricing-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 24px 0 8px;
}
.pricing-tier {
  flex: 1;
  min-width: 240px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
}
.pricing-tier--featured {
  border-color: var(--blue);
  border-width: 2px;
}
.pricing-tier__name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--blue);
  margin-bottom: 8px;
}
.pricing-tier__rate {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
}
.pricing-tier__rate span {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
}

/* ============ Branch finder ============ */
.branch-search {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  max-width: 480px;
}
.branch-search input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 14px;
  font-size: 13px;
}
.branch-search button {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.branch-search button:hover { background: var(--blue-dark); }

.branches {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
}
.branch-card {
  flex: 1;
  min-width: 260px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
}
.branch-card h3 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}
.branch-card p {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 4px;
}
.branch-card .branch-card__distance {
  display: inline-block;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
}

/* ============ Contact page ============ */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0 44px;
}
.contact-method {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 22px;
  text-align: center;
}
.contact-method__icon { font-size: 24px; margin-bottom: 10px; }
.contact-method h3 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-method p { font-size: 12px; color: var(--text-light); }
.contact-method a { color: var(--blue); font-weight: 600; }

.contact-form {
  max-width: 640px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-form .field--full { grid-column: 1 / -1; }
.contact-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
}
.contact-form textarea { resize: vertical; min-height: 100px; }
.contact-form .btn { margin-top: 4px; }
.form-success {
  display: none;
  background: var(--bg-tint);
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 16px 20px;
  font-size: 13px;
  color: var(--text);
  margin-top: 20px;
}
.form-success.is-visible { display: block; }

/* ============ Chat page ============ */
.chat-widget {
  max-width: 560px;
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(16, 24, 40, 0.08);
  background: #fff;
}
.chat-widget__header {
  background: var(--navy);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-widget__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  flex-shrink: 0;
}
.chat-widget__title { font-size: 13.5px; font-weight: 700; }
.chat-widget__status { font-size: 11.5px; color: #b7c3d1; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.chat-widget__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fbf5f;
  display: inline-block;
  box-shadow: 0 0 0 rgba(63, 191, 95, 0.5);
  animation: chat-pulse 2s infinite;
}
@keyframes chat-pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 191, 95, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(63, 191, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 191, 95, 0); }
}
.chat-widget__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fafbfc;
  min-height: 320px;
  max-height: 480px;
  overflow-y: auto;
}
.chat-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
}
.chat-bubble--them {
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  border-bottom-left-radius: 3px;
  align-self: flex-start;
}
.chat-bubble--me {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 3px;
  align-self: flex-end;
}
.chat-bubble__image {
  max-width: 220px;
  max-height: 220px;
  border-radius: 10px;
  display: block;
  margin-bottom: 6px;
  cursor: pointer;
}
.chat-bubble__time { display: block; font-size: 10px; margin-top: 5px; opacity: 0.65; }
.chat-widget__preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chat-widget__preview img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.chat-widget__preview span { font-size: 12px; color: var(--text-light); flex: 1; }
.chat-widget__preview button {
  background: var(--border);
  border: none;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-light);
}
.chat-widget__preview button:hover { background: #e2e6ea; color: var(--text); }
.chat-widget__input {
  display: flex;
  align-items: center;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chat-widget__input[hidden], .chat-widget__start[hidden], .chat-widget__preview[hidden] { display: none; }
.chat-widget__attach {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.12s ease;
}
.chat-widget__attach:hover { color: var(--blue); }
.chat-widget__attach svg { width: 20px; height: 20px; }
.chat-widget__input input {
  flex: 1;
  border: none;
  padding: 12px 8px;
  font-size: 13px;
}
.chat-widget__input input:focus { outline: none; }
.chat-widget__input button {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 0 20px;
  height: 44px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-widget__input button:hover { background: var(--blue-dark); }
.chat-widget__input input:disabled { background: #f2f3f5; color: var(--text-light); }
.chat-widget__start {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.chat-widget__start input {
  flex: 1 1 160px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 13px;
}
.chat-widget__start button {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0 18px;
  font-weight: 600;
  cursor: pointer;
}
.chat-widget__start button:hover { background: var(--blue-dark); }
.chat-widget__start-error {
  width: 100%;
  color: var(--red, #c0392b);
  font-size: 12px;
}
.chat-hours {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-light);
}

/* ============ Auth pages (login / register) ============ */
.auth-wrap {
  background: var(--bg-tint);
  padding: 48px 24px;
}
.auth-shell {
  max-width: 1010px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(20, 30, 40, 0.06);
  padding: 36px 36px 32px;
  width: 100%;
  max-width: 440px;
}
.auth-shell--wide .auth-card { max-width: 560px; }

.auth-card__logo {
  height: 30px;
  margin-bottom: 20px;
}
.auth-card__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
  display: block;
}
.auth-card h1 {
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}
.auth-card__subtext {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 28px;
}

.auth-aside {
  flex: 1;
  min-width: 260px;
  max-width: 380px;
  padding-top: 12px;
}
.auth-aside h2 {
  font-size: 19px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 16px;
}
.auth-aside .checklist li { max-width: none; margin-bottom: 16px; }
.auth-aside .checklist strong { display: block; margin-bottom: 2px; }
.auth-aside__quote {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
  font-style: italic;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 28px;
}
.stepper__step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  position: relative;
}
.stepper__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.stepper__dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  color: var(--text-light);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.stepper__label {
  font-size: 10px;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.stepper__step--active .stepper__dot { border-color: var(--blue); color: var(--blue); background: #fff; }
.stepper__step--active .stepper__label { color: var(--text); }
.stepper__step--done .stepper__dot { border-color: var(--blue); background: var(--blue); color: #fff; }
.stepper__step--done:not(:last-child)::after { background: var(--blue); }

/* Form fields */
.auth-form .form-field { margin-bottom: 18px; }
.auth-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.auth-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.auth-form input,
.auth-form select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
}
.auth-form input:focus,
.auth-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 156, 219, 0.15);
}
.auth-form input.is-invalid { border-color: #c0392b; }
.field-error {
  display: none;
  font-size: 11px;
  color: #c0392b;
  margin-top: 6px;
}
.field-error.is-visible { display: block; }
.field-hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 6px;
}

.input-group { position: relative; }
.input-group input { padding-right: 42px; }
.input-toggle {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  padding: 8px 10px;
}

/* Password strength */
.password-strength {
  display: flex;
  gap: 4px;
  margin-top: 10px;
}
.password-strength__bar {
  height: 4px;
  flex: 1;
  background: var(--border);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.password-strength__label {
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
  color: var(--text-light);
}

.password-requirements {
  list-style: none;
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.password-requirements li {
  font-size: 11px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.password-requirements li::before {
  content: "\2022";
  color: var(--border);
  font-size: 14px;
}
.password-requirements li.is-met {
  color: var(--text);
}
.password-requirements li.is-met::before {
  content: "\2713";
  color: #2e9e4f;
  font-weight: 700;
}

/* Checkbox rows */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
}
.check-row input { margin-top: 2px; }
.check-row a { color: var(--blue); }
.check-row--space { margin-bottom: 18px; }

/* Buttons */
.btn--block { display: block; width: 100%; text-align: center; }
.btn--secondary {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 18px;
}
.btn--secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-row { display: flex; gap: 12px; margin-top: 24px; }
.btn-row .btn { flex: 1; }
.btn-row--end { justify-content: flex-end; }
.btn-row--end .btn { flex: 0 0 auto; min-width: 160px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 8px;
  vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Alerts */
.auth-alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  background: #fdf2f1;
  border: 1px solid #e6b3ad;
  color: #973b31;
  border-radius: 4px;
  padding: 12px 14px;
  font-size: 12px;
  margin-bottom: 20px;
}
.auth-alert.is-visible { display: flex; }
.auth-alert--success {
  background: #f0f9f2;
  border-color: #a9d9b4;
  color: #256239;
}

.auth-footer-links {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
}
.auth-footer-links a { color: var(--blue); font-weight: 600; }
.auth-footer-links .full { width: 100%; text-align: center; }

/* OTP */
.otp-inputs {
  display: flex;
  gap: 8px;
  margin: 6px 0 16px;
}
.otp-box {
  width: 42px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.otp-box:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 156, 219, 0.15);
}
.otp-resend {
  font-size: 12px;
  color: var(--text-light);
}
.otp-resend button {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}
.otp-resend button[disabled] { color: var(--text-light); cursor: default; }

/* Success state */
.auth-success {
  text-align: center;
  padding: 12px 0 4px;
}
.auth-success__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eaf7ee;
  color: #2e9e4f;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.auth-success h2 {
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
}
.auth-success p {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}
.auth-success .summary {
  text-align: left;
  background: var(--bg-tint);
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 24px;
  font-size: 12px;
}
.auth-success .summary div { display: flex; justify-content: space-between; padding: 5px 0; }
.auth-success .summary span:first-child { color: var(--text-light); }
.auth-success .summary span:last-child { color: var(--text); font-weight: 600; }

.auth-step { display: none; }
.auth-step.is-active { display: block; }

/* Review step */
.review-list { list-style: none; margin-bottom: 20px; }
.review-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.review-list li span:first-child { color: var(--text-light); }
.review-list li span:last-child { color: var(--text); font-weight: 600; text-align: right; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .topbar__inner { gap: 12px; flex-wrap: wrap; }
  .hamburger { display: flex; order: 1; }
  .brand { order: 2; }
  .account-actions { order: 3; margin-left: auto; }

  .nav-collapse {
    order: 10;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }
  .nav-collapse.is-open {
    max-height: 640px;
    opacity: 1;
    margin-top: 14px;
    padding-top: 10px;
    padding-bottom: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .mainnav { flex-direction: column; gap: 0; width: 100%; }
  .mainnav__link {
    width: 100%;
    padding: 12px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid transparent;
    box-sizing: border-box;
  }
  .mainnav__link--active {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--blue);
    padding-left: 10px;
  }

  .utility {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin-top: 6px;
  }
  .utility__item { width: 100%; padding: 12px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .search-btn { width: 100%; padding: 12px 2px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .search-input,
  .search-btn.is-open .search-input {
    width: 100%;
    opacity: 1;
    padding: 6px 10px;
    margin-left: 8px;
  }
}

@media (max-width: 760px) {
  .hero { flex-direction: column; }
  .hero__text h1 { font-size: 26px; }
  .page-hero { flex-direction: column; }
  .page-hero__text h1 { font-size: 24px; }
  .cards { flex-direction: column; }
  .footer__columns { grid-template-columns: repeat(2, 1fr); }
  .footer__tagline { position: static; margin-top: 24px; text-align: left; }
  .subnav__inner { gap: 16px; overflow-x: auto; }
  .contact-form { grid-template-columns: 1fr; }
  .auth-shell { flex-direction: column-reverse; align-items: stretch; }
  .auth-shell .auth-card,
  .auth-shell--wide .auth-card { max-width: none; }
  .auth-aside { max-width: none; }
  .auth-form .form-row { grid-template-columns: 1fr; }
  .stepper__label { display: none; }
  .otp-box { width: 38px; height: 46px; font-size: 18px; }
}

@media (max-width: 420px) {
  .otp-box { width: 32px; height: 42px; font-size: 16px; }
  .otp-inputs { gap: 6px; }
}

@media (max-width: 640px) {
  .account-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .btn--primary.btn--pill {
    text-align: center;
  }
  .btn--login {
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    padding: 7px 14px;
  }
  .brand__divider,
  .brand__name { display: none; }
}

@media (max-width: 480px) {
  .footer__columns { grid-template-columns: 1fr; }
  .page { padding-top: 32px; }
  .hero__text h1 { font-size: 22px; }
}
