  :root {
    color-scheme: light;
    --navy: #101B3D;
    --navy-soft: #1B2A54;
    --bg-header: #FFFFFF;
    --bg-footer: #EDEFF6;
    --bg-page: #FFFFFF;
    --blue: #3579C1;
    --btn-blue: #3579C1;
    --btn-blue-hover: #2B67A4;
    --text-gray: #5C6373;
    --border: #E4E6ED;
    --panel-bg: #FFFFFF;
    --bg-card: #F8F9FC;
    --hover-bg: #F1F3FA;
    --accent-soft: #E8EDFC;
    --chip-bg: #EEF0F6;
    --chip-strong: #DCE1F0;
    --muted: #5C667A;
    --muted-2: #6B7488;
    --scrollbar-thumb: #D7D9E2;
    --shadow-color: rgba(16, 27, 61, 0.14);
    --btn-shadow: 0 4px 16px rgba(16, 27, 61, 0.18);
    --btn-shadow-hover: 0 6px 20px rgba(16, 27, 61, 0.22);
    --focus-ring: #0B2E52;
  }

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

  html, body { height: 100%; }

  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--navy);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
  }

  main { flex: 1; }

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

  /* ---------- Header ---------- */
  header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .logo img { display: block; }

  .logo-text {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--navy);
  }

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

  .lang-toggle {
    display: inline-flex;
    align-items: center;
  }

  .lang-toggle button {
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--navy);
    padding: 5px 14px;
    border-radius: 999px;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
  }

  .lang-toggle button:hover {
    background: var(--btn-blue);
    border-color: var(--btn-blue);
    color: #fff;
  }

  .lang-toggle button:active {
    background: var(--btn-blue-hover);
    border-color: var(--btn-blue-hover);
    color: #fff;
  }

  .lang-toggle button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
  }

  .menu-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-radius: 6px;
    transition: background .15s ease;
  }

  .menu-btn:hover,
  .menu-btn:focus-visible {
    background: var(--hover-bg);
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }

  .menu-btn span {
    width: 26px;
    height: 2.5px;
    background: var(--navy);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

  .menu-wrap {
    position: relative;
  }

  .menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(240px, 80vw);
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 16px 40px var(--shadow-color);
    padding: 8px;
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
  }

  .menu-panel.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 11px 12px;
    border-radius: 9px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--navy-soft);
    transition: background .12s ease;
  }

  .menu-item:hover,
  .menu-item:focus-visible { background: var(--hover-bg); }

  .menu-item svg { flex-shrink: 0; stroke: var(--blue); }

  /* ---------- Page Sections ---------- */
  .page {
    display: none;
    animation: fadeIn 0.4s ease;
  }

  .page.active {
    display: block;
  }

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

  /* ---------- Content section ---------- */
  .content {
    max-width: 720px;
    margin: 0 auto;
    padding: 56px 24px 80px;
    text-align: center;
  }

  .content h1 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
  }

  .content p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-gray);
    margin-bottom: 24px;
  }

  .content p:last-of-type { margin-bottom: 40px; }

  /* Urgent notice / legal-style alert copy on the index page */
  .content .alert-box {
    text-align: left;
    background: var(--accent-soft);
    border: 1px solid var(--blue);
    border-left: 4px solid var(--blue);
    border-radius: 10px;
    padding: 18px 20px;
    margin-bottom: 22px;
  }
  .content .alert-box strong {
    display: block;
    font-size: 17px;
    color: var(--navy);
    margin-bottom: 8px;
  }
  .content .alert-box p {
    margin-bottom: 0;
    font-size: 15px;
  }
  .content .section-head {
    text-align: left;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin: 20px 0 6px;
  }
  /* Body copy that follows a section head: keep left-aligned for consistency. */
  .content .section-head + p {
    text-align: left;
  }
  .content .urgent-note {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #b03a2e;
    margin: 24px auto 16px;
    max-width: 520px;
  }

  /* ---------- City picker ---------- */
  .city-picker {
    position: relative;
    display: inline-block;
    margin-bottom: 28px;
  }

  .city-trigger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--btn-blue);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border: none;
    border-radius: 999px;
    padding: 16px 30px 16px 26px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    box-shadow: var(--btn-shadow);
  }

  .city-trigger:hover {
    background: var(--btn-blue-hover);
    transform: translateY(-1px);
    box-shadow: var(--btn-shadow-hover);
  }
  .city-trigger:active {
    background: var(--btn-blue);
    transform: none;
    box-shadow: var(--btn-shadow);
  }
  .city-trigger:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; }

  .city-trigger .chevron { transition: transform .2s ease; flex-shrink: 0; }
  .city-picker.open .city-trigger .chevron { transform: rotate(180deg); }

  .city-trigger .selected-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .city-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    width: min(340px, 88vw);
    max-height: min(60vh, 380px);
    display: flex;
    flex-direction: column;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 40px var(--shadow-color);
    padding: 12px;
    text-align: left;
    z-index: 20;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
  }

  .city-picker.open .city-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  .city-search-wrap {
    position: relative;
    margin-bottom: 10px;
  }

  .city-search {
    width: 100%;
    padding: 10px 34px 10px 14px;
    font-family: inherit;
    font-size: 14px;
    color: var(--navy);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
  }

  .city-search::placeholder { color: var(--muted); }
  .city-search:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--accent-soft); }

  .city-search-clear {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: var(--muted);
    transition: color .15s ease, background .15s ease;
  }

  .city-search-clear:hover {
    color: var(--navy);
    background: var(--hover-bg);
  }

  .city-search-clear:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
  }

  .city-count {
    padding: 0 4px 8px;
    font-size: 12.5px;
    color: var(--muted);
  }

  .city-list {
    flex: 1 1 auto;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
  }

  .city-list::-webkit-scrollbar { width: 6px; }
  .city-list::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 6px; }
  .city-list::-webkit-scrollbar-track { background: transparent; }

  .city-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 9px 10px;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--navy-soft);
    transition: background .12s ease;
  }

  .city-row:hover,
  .city-row:focus-visible,
  .city-row.active { background: var(--hover-bg); }
  .city-row[aria-selected="true"] { background: var(--accent-soft); color: var(--blue); font-weight: 700; }
  .city-row.active[aria-selected="true"] { background: var(--accent-soft); }

  .city-logo-wrap {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--chip-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s ease, transform .15s ease;
  }

  .city-logo-wrap img {
    transition: transform .18s ease;
  }

  .city-row:hover .city-logo-wrap,
  .city-row.active .city-logo-wrap,
  .city-row[aria-selected="true"] .city-logo-wrap {
    background: var(--accent-soft);
  }

  .city-row:hover .city-logo-wrap img,
  .city-row.active .city-logo-wrap img,
  .city-row[aria-selected="true"] .city-logo-wrap img {
    transform: scale(1.08);
  }

  .city-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .city-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--navy);
    background: var(--chip-strong);
  }

  .city-empty {
    padding: 18px 10px;
    text-align: center;
    font-size: 13.5px;
    color: var(--muted);
    display: none;
  }

  .city-notfound {
    max-width: 400px;
    margin: 0 auto 28px;
    padding: 18px 20px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy-soft);
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
  }

  /* ---------- Popular Cities ---------- */
  .popular-label {
    display: block;
    margin-bottom: 12px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
  }

  .popular-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .popular-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: all .15s ease;
  }

  .popular-chip:hover {
    background: var(--accent-soft);
    border-color: var(--blue);
    color: var(--blue);
  }

  .popular-chip:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }

  .popular-chip.selected {
    background: var(--accent-soft);
    border-color: var(--blue);
    color: var(--blue);
  }

  .popular-cities {
    margin-bottom: 32px;
  }

  /* ---------- List stagger (rows + chips) ---------- */
  @keyframes itemIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .city-row.anim,
  .popular-chip.anim {
    animation: itemIn 0.22s ease-out backwards;
  }

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

  /* ---------- Continue Button ---------- */
  .continue-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 auto;
    background: var(--btn-blue);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 999px;
    padding: 18px 48px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    box-shadow: var(--btn-shadow);
    animation: slideIn 0.25s ease both;
  }

  .continue-btn.show {
    display: inline-flex;
  }

  .continue-btn:hover {
    background: var(--btn-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
  }

  .continue-btn:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
  }

  .continue-btn svg {
    transition: transform .2s ease;
  }

  .continue-btn:hover svg {
    transform: translateX(4px);
  }

  /* ---------- Second Page Content ---------- */
  .city-content {
    text-align: center;
    padding-top: 32px;
  }

  .city-hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 176px;
    height: 88px;
    margin: 0 auto 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
  }

  .city-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }

  .city-hero-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.03em;
    color: var(--blue);
    background: var(--accent-soft);
  }

  .city-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 44px;
  }

  .info-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto 40px;
    width: 100%;
  }

  .info-card {
    width: 100%;
    max-width: 560px;
    min-width: 0;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .info-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--navy);
  }

  .info-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-gray);
    margin: 0;
  }

  .tax-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tax-lines li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    font-size: 15px;
    color: var(--text-gray);
    border-bottom: 1px dashed var(--border);
    padding-bottom: 10px;
  }

  .tax-lines li > span {
    min-width: 0;
  }

  .tax-lines li > span:last-child {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .tax-lines li em {
    font-style: normal;
    font-size: 13px;
    color: var(--muted-2);
  }

  .tax-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-top: 6px;
    font-size: 17px;
    font-weight: 800;
    color: var(--navy);
  }

  .tax-total span:last-child {
    color: var(--blue);
  }

  .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 12px 24px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    transition: all .15s ease;
  }

  .back-btn:hover {
    background: var(--hover-bg);
    border-color: var(--navy);
  }

  .back-btn:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
  }

  .back-btn svg {
    transition: transform .2s ease;
  }

  .back-btn:hover svg {
    transform: translateX(-4px);
  }

  /* ---------- Contact Us Button ---------- */
  .contact-us-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--btn-blue);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 999px;
    padding: 16px 36px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    box-shadow: var(--btn-shadow);
  }

  .contact-us-btn:hover {
    background: var(--btn-blue-hover);
    transform: translateY(-2px);
    box-shadow: var(--btn-shadow-hover);
  }

  .contact-us-btn:focus-visible {
    outline: 2px solid #fff;
    box-shadow: 0 0 0 4px var(--focus-ring);
    outline-offset: 0;
  }

  /* ---------- Floating Contact Us Button ---------- */
  .contact-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 299;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--btn-blue);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 999px;
    padding: 15px 24px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease, opacity .15s ease;
    box-shadow: 0 8px 24px rgba(53, 121, 193, 0.35);
    animation: contact-bounce 2.6s ease-in-out 1s infinite;
  }

  .contact-fab svg {
    flex-shrink: 0;
    animation: contact-icon-wiggle 2.6s ease-in-out 1s infinite;
  }

  .contact-fab:hover {
    background: var(--btn-blue-hover);
    animation: none;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(53, 121, 193, 0.4);
  }

  .contact-fab:hover svg {
    animation: none;
  }

  .contact-fab:focus-visible {
    outline: 2px solid #fff;
    box-shadow: 0 0 0 4px var(--focus-ring);
    outline-offset: 0;
  }

  .contact-fab.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    animation: none;
  }

  .contact-fab.hidden svg {
    animation: none;
  }

  /* Bounce the button periodically to draw attention */
  @keyframes contact-bounce {
    0%, 45%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    58% { transform: translateY(0); }
    63% { transform: translateY(-4px); }
    70% { transform: translateY(0); }
  }

  /* Wiggle the chat icon in sync with the bounce */
  @keyframes contact-icon-wiggle {
    0%, 48%, 100% { transform: rotate(0); }
    52% { transform: rotate(-12deg); }
    60% { transform: rotate(12deg); }
    68% { transform: rotate(-8deg); }
    76% { transform: rotate(0); }
  }

  /* ---------- Chat Widget ---------- */
  .chat-widget {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: min(360px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 48px var(--shadow-color);
    z-index: 300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(16px) scale(0.98);
    transform-origin: bottom right;
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }

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

  .chat-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 12px 46px 12px;
    background: var(--btn-blue);
    color: #fff;
    font-family: inherit;
    position: relative;
    text-align: center;
  }

  .chat-header:first-child > span:first-of-type {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
  }

  .chat-header-status {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.85;
  }

  .chat-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
  }

  .chat-close:hover { opacity: 0.8; }
  .chat-close:focus-visible { outline: 2px solid #fff; box-shadow: 0 0 0 4px var(--focus-ring); outline-offset: 0; }

  .chat-messages {
    flex: 1 1 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: min(420px, calc(100vh - 260px));
    max-height: min(420px, calc(100dvh - 260px));
    min-height: 120px;
  }

  .chat-msg {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  .chat-msg.bot {
    align-self: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--navy);
    border-bottom-left-radius: 4px;
  }

  .chat-msg.bot.agent {
    border-color: var(--blue);
    background: var(--accent-soft);
  }

  .chat-msg.bot.agent {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  /* Typing indicator (three bouncing dots) — feels like a live agent. */
  .chat-msg.typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 14px;
  }
  .typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--muted);
    animation: typingBounce 1.2s infinite ease-in-out;
  }
  .typing-dot:nth-child(2) { animation-delay: 0.15s; }
  .typing-dot:nth-child(3) { animation-delay: 0.3s; }
  @keyframes typingBounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-4px); opacity: 1; }
  }

  .chat-msg-agent-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--focus-ring);
  }

  .chat-msg-body {
    white-space: pre-wrap;
    word-wrap: break-word;
  }

  .chat-msg.user {
    align-self: flex-end;
    background: var(--btn-blue);
    color: #fff;
    border-bottom-right-radius: 4px;
  }

  .chat-input {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid var(--border);
    max-height: 60vh;
    overflow-y: auto;
    flex-shrink: 0;
  }

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

  .chat-field span {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
  }

  .chat-field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
  }

  .phone-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-card);
    transition: border-color .15s ease, box-shadow .15s ease;
    max-width: 100%;
    overflow: hidden;
  }

  .phone-input:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }

  .phone-prefix {
    flex-shrink: 0;
    padding: 0 0 0 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    border-right: 1px solid var(--border);
    line-height: 38px;
  }

  .phone-input input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 16px; /* >=16px prevents iOS auto-zoom */
    color: var(--navy);
    outline: none;
  }

  .phone-input input::placeholder { color: var(--muted); }

  .chat-notice {
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--muted);
    margin: 0;
  }

  .chat-notice a {
    color: var(--blue);
    text-decoration: underline;
  }

  .chat-field input,
  .chat-field textarea {
    font-family: inherit;
    font-size: 16px; /* >=16px prevents iOS auto-zoom */
    color: var(--navy);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100%;
    resize: vertical;
  }

  .chat-field textarea {
    min-height: 72px;
  }

  .chat-field input::placeholder,
  .chat-field textarea::placeholder { color: var(--muted); }

  .chat-field input:focus,
  .chat-field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }

  .chat-send {
    flex-shrink: 0;
    width: 100%;
    padding: 12px 16px;
    background: var(--btn-blue);
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s ease;
  }

  .chat-send:hover { background: var(--btn-blue-hover); }
  .chat-send:focus-visible { outline: 2px solid #fff; box-shadow: 0 0 0 4px var(--focus-ring); outline-offset: 0; }
  .chat-send:disabled { opacity: 0.55; cursor: not-allowed; }
  .chat-send:disabled:hover { background: var(--btn-blue); }

  .chat-form-error {
    font-size: 13px;
    color: #c0392b;
    margin: 0;
  }

  /* ---------- Chat composer (after lead form) ---------- */
  .chat-composer[hidden] {
    display: none !important;
  }

  .chat-composer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
  }

  .chat-message-input {
    flex: 1;
    font-family: inherit;
    font-size: 16px; /* >=16px prevents iOS auto-zoom */
    color: var(--navy);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
  }

  .chat-message-input::placeholder { color: var(--muted); }

  .chat-message-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--accent-soft);
  }

  .chat-message-send {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--btn-blue);
    color: #fff;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
  }

  .chat-message-send:hover { background: var(--btn-blue-hover); transform: translateY(-1px); }
  .chat-message-send:focus-visible { outline: 2px solid #fff; box-shadow: 0 0 0 4px var(--focus-ring); outline-offset: 0; }

  /* ---------- Bank select ---------- */
  .bank-select {
    position: relative;
  }

  .bank-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    font-family: inherit;
    font-size: 14px;
    color: var(--navy);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
  }

  .bank-trigger:hover { border-color: var(--blue); }
  .bank-trigger:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }

  .bank-trigger-content {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .bank-trigger-logo {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .bank-trigger-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bank-chevron {
    flex-shrink: 0;
    color: var(--muted);
    transition: transform .2s ease;
  }

  .bank-select.open .bank-chevron { transform: rotate(180deg); }

  .bank-panel {
    position: absolute;
    left: 0;
    right: 0;
    /* Open upward by default: the bank field sits in the lower half of the
       widget, so the panel expands into the message area and isn't clipped. */
    top: auto;
    bottom: calc(100% + 6px);
    z-index: 20;
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 32px var(--shadow-color);
    overflow: hidden;
  }

  .bank-select.open-down .bank-panel {
    top: calc(100% + 6px);
    bottom: auto;
  }

  .bank-list {
    max-height: 220px;
    overflow-y: auto;
    padding: 6px;
  }

  .bank-list::-webkit-scrollbar { width: 6px; }
  .bank-list::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 6px; }
  .bank-list::-webkit-scrollbar-track { background: transparent; }

  .bank-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    background: none;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
    transition: background .12s ease;
  }

  .bank-option:hover,
  .bank-option:focus-visible { background: var(--hover-bg); }
  .bank-option[aria-selected="true"] { background: var(--accent-soft); color: var(--blue); font-weight: 700; }

  .bank-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
  }

  .bank-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }

  .bank-option-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bank-empty {
    margin: 0;
    padding: 12px;
    font-size: 13px;
    color: var(--muted);
  }

  /* ---------- Footer ---------- */
  footer {
    background: var(--bg-footer);
    border-top: 1px solid var(--border);
    padding: 32px 24px 20px;
  }

  .footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
  }

  .footer-brand { max-width: 420px; }

  .footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .footer-logo img { display: block; width: 14px; height: 28px; }

  .footer-logo span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--navy);
  }

  .footer-brand p {
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text-gray);
  }

  .footer-contact h2 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 10px;
  }

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

  .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: var(--navy-soft);
    font-weight: 500;
  }

  .contact-item svg { flex-shrink: 0; width: 15px; height: 15px; color: var(--blue); }

  .contact-item a:hover { color: var(--blue); }

  .footer-bottom {
    max-width: 1100px;
    margin: 22px auto 0;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .copyright {
    font-size: 13px;
    color: var(--muted-2);
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
  }

  .footer-links a {
    font-size: 13px;
    color: var(--muted-2);
    transition: color .15s ease;
  }

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

  /* ---------- Tablet (wide phone / small tablet) ---------- */
  @media (max-width: 900px) {
    .footer-inner { flex-direction: column; gap: 28px; }
    .footer-brand { max-width: 100%; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .info-card { max-width: 560px; width: 100%; }
  }

  @media (max-width: 560px) {
    .content { padding: 40px 20px 56px; }
    .city-content { padding-top: 20px; }
    .content h1 { font-size: 28px; }
    .city-title { margin-bottom: 36px; }
    .city-hero-logo { width: 156px; height: 76px; }
    .city-hero-logo img { width: 100%; height: 100%; }
    .city-hero-fallback { width: 56px; height: 56px; font-size: 22px; }
    .info-cards { gap: 16px; margin-bottom: 32px; grid-template-columns: 1fr; }
    .info-card { padding: 24px; }
    footer { padding: 28px 20px 18px; }
    .footer-inner { flex-direction: column; gap: 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .chat-widget {
      right: 0;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      height: 100dvh;
      max-height: 100vh;
      max-height: 100dvh;
      border-radius: 0;
      border-left: none;
      border-right: none;
      border-bottom: none;
      overflow-y: auto;
    }
    .chat-header {
      padding: calc(14px + env(safe-area-inset-top)) 40px 14px;
      flex-shrink: 0;
      position: sticky;
      top: 0;
      z-index: 2;
      background: var(--btn-blue);
    }
    .chat-messages {
      flex: 0 1 auto;
      max-height: none;
      min-height: 0;
      overflow-y: auto;
      padding-bottom: 6px;
    }
    .chat-input {
      padding-top: 10px;
    }
    /* In the chat phase (form hidden) let messages grow and pin the composer to
       the bottom; in the form phase keep them collapsed so fields + Send stay
       near the top and reachable when the keyboard opens. */
    .chat-widget.chat-convo .chat-messages {
      flex: 1 1 auto;
    }
    .chat-input, .chat-composer {
      max-height: none;
      flex-shrink: 0;
    }
    /* The lead form owns the space below the greeting so it isn't pushed off
       screen; on a short/viewport-shrunk screen the widget scrolls so the Send
       button and privacy notice stay reachable (also when the keyboard opens). */
    .chat-input {
      min-height: 0;
      overflow-y: auto;
    }
    /* Keep the composer/send button clear of the iPhone home indicator. */
    .chat-composer {
      padding-bottom: calc(12px + env(safe-area-inset-bottom));
    }
    .contact-fab { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); }
    .contact-us-btn { width: 100%; }
    .back-btn { margin-bottom: 12px; }
    .continue-btn { width: 100%; padding: 16px 24px; }
    .header-inner { gap: 12px; }
    .logo-text { font-size: 20px; }
    .header-right { gap: 8px; }
    .lang-toggle button { padding: 5px 10px; font-size: 12px; }
    .city-panel { width: calc(100vw - 40px); }
  }

  /* ---------- Reduced motion ---------- */
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }

    .city-row.anim,
    .popular-chip.anim {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }

    .continue-btn {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }