:root {
      --bg-main: #f4f7ff;
      --bg-alt: #f7fbf9;
      --bg-dark: #0f1b2d;
      --primary: #1f88ff;
      --primary-soft: #e2efff;
      --accent: #27c28a;
      --accent-soft: #e9fbf4;
      --text-main: #1b2433;
      --text-muted: #6f7a8f;
      --border: #dde3f0;
      --radius-lg: 12px;
      --radius-md: 8px;
      --shadow-soft: 0 10px 30px rgba(15, 27, 45, 0.06);
    }

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

    body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--text-main);
      background: #ffffff;
      line-height: 1.5;
    }

    p {
        font-size: 16px;
    }

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

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

    .page {
      min-height: 100vh;
      display: flex;
      flex-direction: column;
    }

    /* Layout helpers */
    .container {
      width: 100%;
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 16px;
    }

    .section {
      padding: 56px 0;
    }

    .section--alt {
      background: var(--bg-main);
    }

    .section--soft {
      background: var(--bg-alt);
    }

    .section__title {
      font-size: 1.6rem;
      font-weight: 700;
      text-align: center;
      margin-bottom: 12px;
    }

    .section__subtitle {
      text-align: center;
      color: var(--text-muted);
      max-width: 580px;
      margin: 0 auto 32px;
      font-size: 18px;
    }

    /* Header */
    .site-header {
      border-bottom: 1px solid var(--border);
      background: #ffffff;
    }

    .site-header__inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 0;
      gap: 16px;
    }

    .logo {
      font-weight: 700;
      font-size: 1rem;
      color: var(--primary);
      white-space: nowrap;
    }

    .logo span {
      color: var(--text-main);
      font-weight: 500;
    }

    .nav {
      display: flex;
      gap: 20px;
      font-size: 0.9rem;
      color: var(--text-muted);
      flex-wrap: wrap;
      justify-content: center;
    }

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

    .header-phone {
      display: flex;
      align-items: center;
      gap: 8px;
      font-size: 0.85rem;
      white-space: nowrap;
    }

    .header-phone__label {
      color: var(--text-muted);
    }

    .header-phone__number {
      padding: 3px 10px 6px;
      border-radius: 999px;
      background: var(--primary);
      color: #ffffff;
      font-weight: 600;
      font-size: 0.85rem;
    }

    /* Buttons */
    .btn-row {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin-top: 16px;
    }

    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 10px 18px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        box-shadow 0.15s ease;
      background: #ffffff;
      color: var(--text-main);
    }

    .btn--primary {
      background: var(--accent);
      color: #ffffff;
      border-color: var(--accent);
      box-shadow: 0 8px 18px rgba(39, 194, 138, 0.25);
    }

    .btn--primary:hover {
      background: #1fa874;
      border-color: #1fa874;
    }

    .btn--outline {
      border-color: var(--border);
      background: #ffffff;
    }

    .btn--outline:hover {
      border-color: var(--primary);
      color: var(--primary);
    }

    .btn--ghost {
      background: var(--primary-soft);
      color: var(--primary);
      border-color: transparent;
    }

    .btn--ghost:hover {
      background: #d5e6ff;
    }

    /* Hero */
    .med-section-hero {
      margin-top: 20px;
    }
    .hero {
      background: var(--bg-main);
      padding: 56px 0 40px;
      text-align: center;
    }

    .hero__title {
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .hero__subtitle {
      font-size: 1.25rem;
      color: var(--text-muted);
      max-width: 800px;
      margin: 0 auto 24px;
    }

    .hero-card {
      background: #ffffff;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-soft);
      padding: 20px 24px;
      max-width: 500px;
      margin: 0 auto 18px;
    }

    .hero-card__label {
      font-size: 1rem;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
      margin-bottom: 8px;
    }

    .hero-card__number {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 1.3rem;
      padding: 8px 18px;
      border-radius: 999px;
      background: var(--primary);
      color: #ffffff;
      margin-bottom: 6px;
    }

    .hero-card__number i {
        font-size: 16px;
        margin-right: 5px
    }

    .hero-card__note {
      font-size: 1rem;
      color: var(--text-muted);
      margin-top: 4px;
    }

    /* Chat section */
    .chat-wrapper {
      max-width: 760px;
      margin: 0 auto;
    }

    .chat-card {
      margin-top: 16px;
      background: #ffffff;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-soft);
      padding: 0;
      border: 1px solid var(--border);
      overflow: hidden;
    }

    .chatbot {
      display: flex;
      flex-direction: column;
      height: 500px;
    }

    .chatbox {
      flex: 1;
      overflow-y: auto;
      padding: 20px;
      list-style: none;
      margin: 0;
      background: #f8f9fa;
    }

    .chatbox .chat {
      display: flex;
      margin-bottom: 16px;
      animation: fadeIn 0.3s ease-in;
    }

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

    .chatbox .chat.incoming {
      justify-content: flex-start;
    }

    .chatbox .chat.outgoing {
      justify-content: flex-end;
    }

    .chatbox .chat p {
      padding: 12px 16px;
      border-radius: 12px;
      max-width: 75%;
      word-wrap: break-word;
      font-size: 0.95rem;
      line-height: 1.5;
      margin: 0;
    }

    .chatbox .chat.incoming p {
      background: #ffffff;
      color: var(--text-main);
      border: 1px solid var(--border);
      border-bottom-left-radius: 4px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    }

    /* Markdown formatting in chat messages */
    .chatbox .chat p strong {
      font-weight: 600;
      color: var(--primary);
    }

    .chatbox .chat p em {
      font-style: italic;
    }

    .chatbox .chat p a {
      color: var(--primary);
      text-decoration: underline;
      font-weight: 500;
      transition: all 0.2s ease;
    }

    .chatbox .chat p a:hover {
      color: #005bb5;
      text-decoration: none;
    }

    .chatbox .chat.outgoing p a {
      color: #ffffff;
      text-decoration: underline;
    }

    .chatbox .chat.outgoing p a:hover {
      color: #e6f2ff;
    }

    .chatbox .chat p ol {
      margin: 8px 0;
      padding-left: 20px;
      list-style-type: decimal;
    }

    .chatbox .chat p ol li {
      margin: 4px 0;
      line-height: 1.6;
    }

    .chatbox .chat p br {
      display: block;
      content: "";
      margin: 4px 0;
    }

    .chatbox .chat.outgoing p {
      background: var(--primary);
      color: #ffffff;
      border-bottom-right-radius: 4px;
      box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }

    .chat-input {
      display: flex;
      gap: 10px;
      padding: 16px;
      background: #ffffff;
      border-top: 1px solid var(--border);
      align-items: center;
    }

    .chat-input textarea {
      flex: 1;
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 10px 16px;
      font-size: 0.95rem;
      font-family: inherit;
      resize: none;
      outline: none;
      max-height: 100px;
      min-height: 44px;
      line-height: 1.5;
    }

    .chat-input textarea:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    }

    .chat-input span {
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--primary);
      color: #ffffff;
      border-radius: 50%;
      cursor: pointer;
      font-size: 20px;
      transition: all 0.2s ease;
      flex-shrink: 0;
    }

    .chat-input span:hover {
      background: #005bb5;
      transform: scale(1.05);
    }

    .chat-input span:active {
      transform: scale(0.95);
    }

    /* Scrollbar styling for chatbox */
    .chatbox::-webkit-scrollbar {
      width: 6px;
    }

    .chatbox::-webkit-scrollbar-track {
      background: transparent;
    }

    .chatbox::-webkit-scrollbar-thumb {
      background: #cbd5e0;
      border-radius: 10px;
    }

    .chatbox::-webkit-scrollbar-thumb:hover {
      background: #a0aec0;
    }

    .chat-placeholder {
      border-radius: var(--radius-md);
      border: 1px dashed var(--border);
      padding: 32px 20px;
      text-align: center;
      color: var(--text-muted);
      font-size: 0.9rem;
    }

    .chat-placeholder strong {
      display: block;
      font-size: 0.95rem;
      margin-bottom: 4px;
      color: var(--text-main);
    }

    /* Local office section */
    .office-card {
      margin: 0 auto;
      margin-top: 10px;
      max-width: 420px;
      background: #ffffff;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-soft);
      padding: 20px 18px 18px;
      border: 1px solid var(--border);
    }

    .office-card__label i {
        font-size: 16px;
    }

    .office-form {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 10px;
    }

    .input {
      border-radius: 999px;
      border: 1px solid var(--border);
      padding: 10px 14px;
      font-size: 0.9rem;
      outline: none;
      width: 100%;
    }

    .input:focus {
      border-color: var(--primary);
    }

    /* Office Results */
    .office-results {
      margin-top: 16px;
      padding-top: 16px;
      border-top: 1px solid var(--border);
    }

    .office-result-item {
      background: #f8f9fa;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 14px;
      margin-bottom: 12px;
      transition: all 0.2s ease;
    }

    .office-result-item:hover {
      border-color: var(--primary);
      box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

    .office-result-item:last-child {
      margin-bottom: 0;
    }

    .office-name {
      font-weight: 600;
      color: var(--text-main);
      font-size: 0.95rem;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .office-name i {
      color: var(--primary);
      font-size: 14px;
    }

    .office-address {
      color: var(--text-muted);
      font-size: 0.85rem;
      line-height: 1.5;
      margin-bottom: 8px;
    }

    .office-distance {
      display: inline-block;
      background: var(--primary);
      color: #ffffff;
      padding: 3px 10px;
      border-radius: 12px;
      font-size: 0.75rem;
      font-weight: 500;
      margin-bottom: 8px;
    }

    .office-actions {
      display: flex;
      gap: 8px;
      margin-top: 10px;
    }

    .office-btn {
      flex: 1;
      padding: 8px 12px;
      border-radius: 6px;
      font-size: 0.8rem;
      text-decoration: none;
      text-align: center;
      transition: all 0.2s ease;
      border: 1px solid var(--border);
      background: #ffffff;
      color: var(--text-main);
      cursor: pointer;
    }

    .office-btn:hover {
      background: var(--primary);
      color: #ffffff;
      border-color: var(--primary);
    }

    .office-btn i {
      margin-right: 4px;
      font-size: 12px;
    }

    /* Medical support section */
    .med-card {
      max-width: 720px;
      margin: 0 auto;
      background: #ffffff;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-soft);
      padding: 24px 22px 20px;
      text-align: center;
      border: 1px solid var(--border);
    }

    .med-icon i {
      width: 70px;
      height: 70px;
      font-size: 40px;
      border-radius: 999px;
      margin: 0 auto 12px;
      display: flex;
      padding: 20px;
      align-items: center;
      justify-content: center;
      color: var(--accent);
    }

    .med-pill i {
        font-size: 26px;
        margin-bottom: 10px;
        color: var(--accent);
    }

    .med-title {
      font-weight: 600;
      margin-bottom: 6px;
      font-size: 1.6rem;
    }

    .med-text {
      font-size: 1rem;
      color: var(--text-muted);
      margin-bottom: 16px;
    }

    .med-columns {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 16px;
      margin-bottom: 16px;
    }

    .med-pill {
      min-width: 140px;
      padding: 20px;
      border-radius: 10px;
      border: 1px solid var(--border);
      font-size: 1rem;
      color: var(--text-muted);
    }

    .med-pill strong {
      display: block;
      color: var(--text-main);
      font-size: 1.25rem;
    }

    /* Resources grid */
    .resource-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      justify-content: center;
    }

    .resource-card {
      flex: 1 1 220px;
      max-width: 260px;
      background: #ffffff;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-soft);
      border: 1px solid var(--border);
      padding: 18px 16px 14px;
      text-align: left;
    }

    .resource-icon {
      width: 32px;
      height: 32px;
      border-radius: 999px;
      background: var(--primary-soft);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 16px;
      margin-bottom: 10px;
      color: var(--primary);
    }

    .resource-title {
      font-size: 1.25rem;
      font-weight: 600;
      margin-bottom: 4px;
    }

    .resource-text {
      font-size: 1rem;
      color: var(--text-muted);
      margin-bottom: 12px;
    }

    .resource-card .btn {
      width: 100%;
      justify-content: center;
      padding: 7px 18px 10px;
    }

    /* Phone numbers */
    .phones-wrap {
      max-width: 760px;
      margin: 0 auto;
    }

    .phone-card {
      background: #ffffff;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-soft);
      border: 1px solid var(--border);
      padding: 16px;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      flex-wrap: wrap;
    }

    .phone-card__info {
      font-size: 0.86rem;
    }

    .phone-card__title {
      font-weight: 600;
      margin-bottom: 2px;
      font-size: 1.25rem;
    }

    .phone-card__meta {
      color: var(--text-muted);
      font-size: 1rem;
    }

    .phone-tag {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: var(--primary-soft);
      color: var(--primary);
      border-radius: 999px;
      font-size: 0.7rem;
      padding: 3px 8px;
      margin-left: 6px;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }

    .phone-card__number {
      display: inline-flex;
      align-items: center;
      padding: 8px 14px;
      border-radius: 999px;
      background: #ffffff;
      border: 1px solid var(--primary);
      color: var(--primary);
      font-weight: 600;
      font-size: 0.85rem;
    }

    /* Help before calling */
    .mini-grid {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 16px;
      margin-top: 18px;
    }

    .mini-card {
      flex: 1 1 240px;
      max-width: 260px;
      background: #ffffff;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
      padding: 18px 16px 14px;
      text-align: center;
      font-size: 0.85rem;
    }

    .mini-card__icon i {
      font-size: 32px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 8px;
      color: var(--primary);
      margin-bottom: 10px;
    }

    .mini-card__title {
      font-weight: 600;
      margin-bottom: 4px;
      font-size: 1.25rem;
    }

    .mini-card .btn {
      margin-top: 10px;
      width: 100%;
      justify-content: center;
      font-size: 1rem;
    }

    /* SSA services */
    .ssa-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      justify-content: center;
      margin-top: 20px;
    }

    .ssa-card {
      flex: 1 1 100%;
      max-width: 48%;
      background: #ffffff;
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-soft);
      border: 1px solid var(--border);
      padding: 18px 16px 14px;
      font-size: 0.84rem;
    }

    .ssa-card__title {
      font-weight: 600;
      margin-bottom: 4px;
      font-size: 1.25rem;;
    }

    .ssa-card__text {
      color: var(--text-muted);
      margin-bottom: 10px;
    }

    .ssa-card .btn {
      width: 100%;
      justify-content: center;
      font-size: 1rem;
    }

    /* Important info */
    .info-grid {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      justify-content: center;
      margin-top: 16px;
    }

    .info-card {
      flex: 1 1 260px;
      max-width: 500px;
      background: #ffffff;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-soft);
      padding: 18px 16px 14px;
      font-size: 0.82rem;
    }

    .info-card__title {
      font-weight: 600;
      margin-bottom: 8px;
      font-size: 1.25rem;
    }

    .info-list {
      padding-left: 20px;
      color: var(--text-muted);
    }

    .info-list  li {
        font-size: 1rem;
    }

    .info-list li + li {
      margin-top: 4px;
    }

    /* Footer */
    .site-footer {
      margin-top: auto;
      background: var(--bg-dark);
      color: #aab3c7;
      font-size: 0.78rem;
      padding: 28px 0 20px;
    }

    .footer-top {
      display: flex;
      flex-wrap: wrap;
      gap: 24px;
      justify-content: space-between;
      margin-bottom: 20px;
    }

    .footer-col {
      flex: 1 1 180px;
      min-width: 180px;
    }

    .footer-title {
      color: #ffffff;
      font-weight: 600;
      margin-bottom: 6px;
      font-size: 0.86rem;
    }

    .footer-list {
      list-style: none;
    }

    .footer-list li + li {
      margin-top: 4px;
    }

    .footer-list a:hover {
      color: #ffffff;
    }

    .footer-logo {
      font-weight: 700;
      font-size: 0.9rem;
      margin-bottom: 4px;
      color: #ffffff;
    }

    .footer-bottom {
      border-top: 1px solid #202b3e;
      padding-top: 10px;
      text-align: center;
    }

    .footer-phone {
      margin-top: 8px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .footer-phone span {
      padding: 4px 10px;
      border-radius: 999px;
      background: #ffffff;
      color: var(--primary);
      font-weight: 600;
    }

    /* Responsive tweaks */
    @media (max-width: 768px) {
      .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
      }

      .header-phone {
        align-self: stretch;
        justify-content: space-between;
      }

      .phone-card {
        align-items: flex-start;
      }

      .phone-card__number {
        width: 100%;
        justify-content: center;
      }
      .ssa-card {
        max-width: 100%;
      }
    }