:root {
      --bg: #f6f9fd;
      --bg-2: #FBF7F1;
      --surface: rgba(255,255,255,0.96);
      --patient-search-surface: rgba(255,255,255,0.82);
      --search-surface: linear-gradient(180deg, #ffffff 0%, #FBF7F1 100%);
      --search-outline: #c4d6ec;

      --text: #0f172a;
      --muted: #5b6b80;
      --line: #dbe5f0;
      --primary: #2f2f2f;
      --primary-dark: #1d4ed8;
      --accent: #f97316;
      --accent-soft: #fff7ed;
      --danger: #b91c1c;

      --shadow-sm: 0 10px 24px rgba(15, 23, 42, 0.05);
      --shadow-md: 0 18px 46px rgba(15, 23, 42, 0.08);
      --search-shadow: 0 24px 56px rgba(47,47,47,0.12);

      --radius-xl: 30px;
      --radius-lg: 22px;

      --container: 1180px;
      --control-font-size: 1rem;
      --label-font-size: 1rem;
      --search-gap: clamp(10px, 1.25vw, 15px);
      --filter-gap: clamp(8px, 1vw, 10px);
    }

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

    html {
      scroll-behavior: smooth;
      font-size: 18px;
    }

    body {
      margin: 0;
      font-family: Inter, Arial, sans-serif;
      color: var(--text);
      line-height: 1.6;
      background: #FBF7F1;
    }

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

    a {
      color: inherit;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
    }

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

    .glass-card {
      background: var(--surface);
      border: 1px solid rgba(219,229,240,0.92);
      box-shadow: var(--shadow-md);
      backdrop-filter: blur(14px);
    }

    /* Shared surface for the search panel and For patients card. */
    .patient-choice-card {
      background: var(--patient-search-surface);
    }

    .site-header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255,255,255,0.84);
      backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(219,229,240,0.88);
    }

    .header-inner {
      min-height: 82px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      white-space: nowrap;
    }

    .brand-mark {
      width: 48px;
      height: 48px;
      border-radius: 16px;
      background: linear-gradient(135deg, #2f2f2f 0%, #7aa8ff 100%);
      color: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 24px;
      box-shadow: 0 12px 28px rgba(47,47,47,0.24);
    }

    .brand-copy {
      display: grid;
      gap: 2px;
    }

    .brand-name {
      font-weight: 900;
      letter-spacing: -0.03em;
      font-size: 1.25rem;
      line-height: 1;
    }

    .brand-name .dotcom {
      color: var(--accent);
    }

    .brand-tag {
      color: #64748b;
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.03em;
      text-transform: uppercase;
    }

    .nav-toggle {
      display: none;
      width: 48px;
      height: 48px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.96);
      cursor: pointer;
      position: relative;
    }

    .nav-toggle span,
    .nav-toggle::before,
    .nav-toggle::after {
      content: "";
      position: absolute;
      left: 13px;
      width: 22px;
      height: 2px;
      background: #0f172a;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .nav-toggle span {
      top: 23px;
    }

    .nav-toggle::before {
      top: 16px;
    }

    .nav-toggle::after {
      top: 30px;
    }

    .nav-toggle.active span {
      opacity: 0;
    }

    .nav-toggle.active::before {
      transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active::after {
      transform: translateY(-7px) rotate(-45deg);
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 18px;
      flex: 1;
      justify-content: flex-end;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 24px;
      flex-wrap: wrap;
    }

    .nav-links a {
      text-decoration: none;
      color: #334155;
      font-weight: 700;
      font-size: 0.97rem;
    }

    .nav-links a:hover,
    .nav-links a:focus-visible {
      color: var(--primary);
    }

    .nav-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 48px;
      padding: 0 20px;
      border-radius: 999px;
      text-decoration: none;
      background: var(--accent-soft);
      color: #c2410c;
      font-weight: 800;
      border: 1px solid #fed7aa;
      box-shadow: 0 10px 22px rgba(249,115,22,0.08);
    }

    .nav-cta:hover,
    .nav-cta:focus-visible {
      background: #ffedd5;
    }

    .hero {
      padding: 34px 0 18px;
    }

    .hero-inner {
      position: relative;
      z-index: 1;
    }

    .hero-copy {
      max-width: 820px;
      margin: 0 auto;
      text-align: center;
    }

    h1 {
      margin: 0;
      font-size: clamp(2.2rem, 4vw, 3.5rem);
      line-height: 1.03;
      letter-spacing: -0.055em;
    }

    .section-card,
    .footer-card,
    .blog-card {
      border-radius: var(--radius-xl);
    }

    .search-card {
      position: relative;
      z-index: 40;
      width: 100%;
      max-width: none;
      margin: 28px auto 0;
      padding: 24px;
      overflow: visible;
      border-radius: var(--radius-lg);
      border: 1px solid var(--search-outline);
      background: var(--patient-search-surface);
      -webkit-backdrop-filter: blur(14px);
      backdrop-filter: blur(14px);
      box-shadow: var(--search-shadow);
    }

    

    .search-window-message {
      width: 100%;
      max-width: 980px;
      margin: 0 auto 18px;
      padding: 14px 12px 10px;
      border-radius: 999px;
      border: 1px solid #d7d3cc;
      background: rgba(239,246,255,0.65);
      color: #3b3b3b;
      font-size: 1.15rem;
      font-weight: 800;
      line-height: 1.35;
      text-align: center;
    }

    .search-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.75fr) minmax(220px, 0.85fr) max-content;
      gap: var(--search-gap);
      align-items: end;
    }

    .location-fields {
      display: grid;
      grid-template-columns: minmax(82px, 0.8fr) minmax(130px, 2fr) minmax(150px, 1.2fr);
      gap: var(--search-gap);
      align-items: end;
    }

    .current-location-row {
      display: flex;
      align-items: center;
      margin-top: -10px;
      margin-bottom: 8px;
      padding-left: 3px;
      line-height: 1.1;
    }

    .field {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }

    .field label,
    .filters-label {
      display: block;
      margin-bottom: 2px;
      padding-left: 3px;
      color: #1e40af;
      font-size: var(--label-font-size);
      font-weight: 900;
      line-height: 1.1;
      letter-spacing: 0;
      text-transform: none;
    }

    .field input,
    .field select,
    .filter-input,
    .filter-select,
    .practice-input,
    .insurance-trigger {
      width: 100%;
      min-height: 56px;
      padding: 0 16px;
      border-radius: 15px;
      border: 1px solid #c9c5be;
      background: #fff;
      color: var(--text);
      font-size: var(--control-font-size);
      transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    }

    .field input.hero-input,
    .field select.hero-input,
    .practice-input,
    .practice-form .primary-btn {
      min-height: 46px;
      height: 46px;
    }

    .search-grid .field input.hero-input,
    .search-grid .field select.hero-input {
      border-radius: 10px;
    }

    .field select.hero-input {
      padding-top: 0;
      padding-bottom: 0;
    }

    #zipCode,
    #city {
      color: #334155;
    }

    #zipCode::placeholder,
    #city::placeholder,
    #lastName::placeholder,
    .field input::placeholder,
    .filter-input::placeholder {
      color: #334155;
      opacity: 1;
      font-size: var(--control-font-size);
    }

    select#state,
    select[name="specialty_id"] {
      appearance: none;
      -webkit-appearance: none;
      overflow: hidden;
      border-radius: 10px;
      background-color: #fff;
      background-clip: padding-box;
      background-image:
        linear-gradient(45deg, transparent 50%, #475569 50%),
        linear-gradient(135deg, #475569 50%, transparent 50%);
      background-position:
        calc(100% - 18px) 50%,
        calc(100% - 13px) 50%;
      background-size: 5px 5px, 5px 5px;
      background-repeat: no-repeat;
      padding-right: 34px;
    }

    .primary-btn,
    .secondary-btn,
    .chip-btn,
    .insurance-trigger,
    .listing-secondary-link,
    .resource-card,
    .patient-shortcut-card {
      transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    }

    .primary-btn:hover,
    .secondary-btn:hover,
    .chip-btn:hover,
    .listing-secondary-link:hover,
    .resource-card:hover,
    .patient-shortcut-card:hover {
      transform: translateY(-1px);
    }

    .primary-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 56px;
      padding: 0 20px;
      border: 0;
      border-radius: 15px;
      cursor: pointer;
      font-weight: 900;
      font-size: var(--control-font-size);
      color: #fff;
      text-decoration: none;
      background: linear-gradient(135deg, var(--primary) 0%, #4a4a4a 100%);
      box-shadow: 0 16px 32px rgba(47,47,47,0.22);
    }

    .primary-btn:hover {
      background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    }

    .primary-btn.hero-btn {
      min-height: 46px;
      height: 46px;
      padding: 0 clamp(22px, 3vw, 40px);
      border-radius: 999px;
      align-self: end;
      white-space: nowrap;
    }

    .secondary-btn,
    .chip-btn,
    .filter-input,
    .filter-select,
    .insurance-trigger,
    .filter-service-field select.hero-input {
      min-height: 40px;
      height: 40px;
      border-radius: 999px;
      font-size: var(--control-font-size);
      line-height: 1;
      white-space: nowrap;
    }

    .secondary-btn {
      padding: 0 12px;
      border: 1px solid #d4e1f5;
      background: rgba(255,255,255,0.96);
      color: #3b3b3b;
      cursor: pointer;
      font-weight: 700;
    }

    .chip-btn {
      padding: 0 14px;
      border: 1px solid #c9c5be;
      background: rgba(255,255,255,0.95);
      color: #334155;
      cursor: pointer;
      font-weight: 500;
      text-align: center;
    }

    .chip-btn.active {
      background: #FBF7F1;
      border-color: #9dc3ff;
      color: #1d4ed8;
      box-shadow: 0 10px 22px rgba(47,47,47,0.10);
    }

    .filter-input {
      padding: 0 14px;
      text-align: center;
    }

    .filter-input::placeholder {
      text-align: center;
    }

    .filters-shell {
      position: relative;
      z-index: 60;
      margin-top: 18px;
      padding-top: 18px;
      overflow: visible;
      border-top: 1px solid #d7d3cc;
    }

    .filters-summary {
      display: grid;
      grid-template-columns: auto minmax(0, 1fr);
      align-items: start;
      gap: 12px;
    }

    .filters-label {
      margin: 10px 0 0;
      line-height: 1;
    }

    .filter-panel {
      display: block;
      min-width: 0;
      position: relative;
      z-index: 70;
      overflow: visible;
    }

    .filter-controls-row {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      align-items: center;
      gap: var(--filter-gap);
      width: 100%;
      position: relative;
      z-index: 70;
      overflow: visible;
    }

    .chip-btn,
    .secondary-btn,
    .filter-service-field,
    .filter-input,
    .filter-select,
    .insurance-wrap,
    .dentist-name-wrap {
      width: 100%;
      min-width: 0;
      flex: none;
    }

    .filter-service-field {
      position: relative;
    }

    .filter-service-field::after,
    .insurance-trigger::after {
      content: "\25BE";
      position: absolute;
      right: 16px;
      top: 50%;
      transform: translateY(-50%);
      color: #475569;
      font-size: 0.9rem;
      pointer-events: none;
    }

    .filter-service-field select.hero-input {
      width: 100%;
      padding: 0 38px;
      text-align: center;
      text-align-last: center;
      appearance: none;
      -webkit-appearance: none;
      background-color: #fff;
      background-clip: padding-box;
    }

    .filter-service-field select.hero-input option {
      text-align: left;
    }

    .insurance-wrap {
      position: relative;
      z-index: 300;
      overflow: visible;
    }

    .insurance-trigger {
      position: relative;
      z-index: 310;
      width: 100%;
      padding: 0 38px;
      cursor: pointer;
      font-weight: 500;
      text-align: center;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .insurance-wrap.open .insurance-trigger {
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(47,47,47,0.12);
    }

    .insurance-menu {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      z-index: 9999;
      display: none;
      width: 100%;
      min-width: min(260px, calc(100vw - 32px));
      padding: 10px;
      border: 1px solid #c9c5be;
      border-radius: 16px;
      background: #fff;
      box-shadow: 0 18px 38px rgba(15,23,42,0.12);
    }

    .insurance-wrap.open .insurance-menu {
      display: block;
    }

    .insurance-option {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 6px;
      color: #334155;
      font-size: 0.96rem;
      cursor: pointer;
    }

    .insurance-option input {
      width: 16px;
      height: 16px;
      margin: 0;
      accent-color: var(--primary);
    }

    .dentist-name-wrap {
      min-width: 0;
    }

    .dentist-name-wrap .filter-input {
      width: 100%;
      min-width: 0;
    }

    .field input:focus,
    .field select:focus,
    .filter-input:focus,
    .filter-select:focus,
    .primary-btn:focus,
    .secondary-btn:focus,
    .practice-input:focus,
    .chip-btn:focus,
    .insurance-trigger:focus,
    .listing-secondary-link:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 4px rgba(47,47,47,0.12);
    }

    .section {
      padding: 18px 0;
    }

    .section-card {
      padding: 30px;
    }

    .section-top {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
      margin-bottom: 18px;
    }

    .section-top.flush {
      margin-bottom: 0;
    }

    .section-title {
      margin: 0 0 8px;
      letter-spacing: -0.04em;
      font-size: 1.8rem;
      line-height: 1.15;
    }

    .section-copy,
    .feature-copy,
    .blog-excerpt,
    .patient-shortcut-copy,
    .decision-list li {
      margin: 0;
      color: var(--muted);
      line-height: 1.7;
      font-size: 1rem;
    }

    .section-copy {
      max-width: 56ch;
    }

    .section-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid #d7d3cc;
      background: #f8fafc;
      color: #3b3b3b;
      font-size: 0.88rem;
      font-weight: 800;
    }

    .split-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
      gap: 24px;
      align-items: start;
    }

    .practice-stack {
      display: grid;
      gap: 18px;
    }

    .feature-card,
    .patient-shortcut-card {
      padding: 26px;
      border-radius: 22px;
      border: 1px solid #d7d3cc;
      background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(249,252,255,0.98) 100%);
      box-shadow: var(--shadow-sm);
    }

    .feature-card h3,
    .listing-result-title,
    .patient-shortcut-title {
      margin: 0 0 8px;
      font-size: 1.12rem;
      letter-spacing: -0.02em;
      line-height: 1.3;
    }

    .patient-shortcut-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      margin-top: 18px;
    }

    .patient-shortcut-card {
      display: block;
      text-decoration: none;
    }

    .patient-shortcut-card:hover,
    .patient-shortcut-card:focus-visible {
      border-color: #a6c9ff;
      box-shadow: 0 16px 34px rgba(15,23,42,0.09);
    }

    .decision-list {
      display: grid;
      gap: 10px;
      margin: 16px 0 0;
      padding-left: 20px;
    }

    .practice-list {
      display: grid;
      gap: 10px;
      margin: 18px 0 6px;
    }

    .practice-list-item {
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid #d8e4f4;
      background: #fff;
      color: #5b5b5b;
      font-size: 0.95rem;
      line-height: 1.55;
    }

    .practice-list-item strong {
      color: #173a66;
    }

    .practice-form {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 12px;
      margin-top: 16px;
      align-items: end;
    }

    .microcopy {
      margin-top: 10px;
      color: #64748b;
      font-size: 0.94rem;
      line-height: 1.6;
    }

    .field-error {
      display: none;
      margin-top: 8px;
      color: var(--danger);
      font-size: 0.92rem;
      line-height: 1.5;
    }

    .field-error.show {
      display: block;
    }

    .location-field {
      position: relative;
    }

    .location-field .location-status {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 8px);
      z-index: 500;
      margin-top: 0;
      padding: 10px 12px;
      border-radius: 12px;
      border: 1px solid #d7e2f0;
      background: rgba(255,255,255,0.98);
      box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10);
    }

    .location-status {
      display: none;
      margin-top: 8px;
      color: #64748b;
      font-size: 0.92rem;
      line-height: 1.5;
    }

    .location-status.show {
      display: block;
    }

    .listing-result {
      display: none;
      margin-top: 18px;
      padding: 18px;
      border-radius: 18px;
      border: 1px solid #d7d3cc;
      background: #fff;
      box-shadow: var(--shadow-sm);
    }

    .listing-result.show {
      display: block;
    }

    .listing-result.success {
      background: linear-gradient(180deg, #ffffff 0%, #f4fbf8 100%);
      border-color: #b7e4d2;
    }

    .listing-result.info {
      background: linear-gradient(180deg, #ffffff 0%, #FBF7F1 100%);
      border-color: #d7d3cc;
    }

    .listing-result-copy {
      margin: 0;
      color: var(--muted);
      font-size: 0.98rem;
      line-height: 1.7;
    }

    .listing-result-actions {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 14px;
    }

    .listing-secondary-link {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0 16px;
      border-radius: 999px;
      border: 1px solid #d7d3cc;
      background: #FBF7F1;
      color: #1d4ed8;
      text-decoration: none;
      font-weight: 800;
      cursor: pointer;
      box-shadow: none;
    }

    .blog-card {
      padding: 30px;
    }

    .feature-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
      gap: 26px;
      align-items: stretch;
    }

    .feature-layout > div:first-child {
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .feature-image-wrap {
      width: 100%;
      height: 100%;
      min-height: 260px;
      overflow: hidden;
      border-radius: 22px;
      border: 1px solid #d7d3cc;
      background: #FBF7F1;
      box-shadow: var(--shadow-sm);
    }

    .feature-image-wrap img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .blog-author {
      margin-top: 8px;
      color: #4a4a4a;
      font-size: 0.98rem;
      font-weight: 700;
      line-height: 1.6;
    }

    .eyebrow-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 16px;
      color: var(--primary);
      text-decoration: none;
      font-weight: 900;
      font-size: 1rem;
    }

    .eyebrow-link:hover,
    .eyebrow-link:focus-visible {
      color: var(--primary-dark);
    }

    .site-footer {
      padding: 18px 0 30px;
    }

    .footer-card {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 20px;
      flex-wrap: wrap;
      padding: 20px 24px;
    }

    .footer-copy {
      color: #64748b;
      font-size: 0.94rem;
      line-height: 1.5;
      text-align: center;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0,0,0,0);
      white-space: nowrap;
      border: 0;
    }

    .current-location-inline {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 0;
      margin: 0;
      border: 0;
      background: transparent;
      color: #1d4ed8;
      font-weight: 400;
      font-size: var(--label-font-size);
      letter-spacing: 0;
      text-transform: none;
      text-decoration: underline;
      text-underline-offset: 2px;
      cursor: pointer;
      box-shadow: none;
      line-height: 1.1;
    }

    .current-location-inline:hover,
    .current-location-inline:focus {
      color: var(--primary-dark);
      background: transparent;
      outline: none;
      box-shadow: none;
    }

    .current-location-icon {
      display: inline-flex;
      width: 16px;
      height: 16px;
      flex: 0 0 16px;
    }

    .current-location-icon svg {
      display: block;
      width: 100%;
      height: 100%;
      fill: currentColor;
    }

    .current-location-inline[disabled] {
      opacity: 0.65;
      cursor: not-allowed;
    }

    @media (max-width: 1080px) {
      .split-grid,
      .feature-layout {
        grid-template-columns: 1fr;
      }

      .search-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        align-items: stretch;
      }

      .location-fields {
        grid-template-columns: minmax(82px, 0.8fr) minmax(130px, 2fr) minmax(150px, 1.2fr);
        gap: 14px;
      }

      .search-grid > .field,
      .primary-btn.hero-btn {
        width: 100%;
      }

      .filter-controls-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

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

      .feature-image-wrap {
        min-height: 320px;
      }
    }

    @media (max-width: 860px) {
      .nav-toggle {
        display: inline-block;
      }

      .header-inner {
        min-height: 78px;
        flex-wrap: wrap;
        padding: 10px 0;
      }

      .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 0 0 18px;
      }

      .nav.open {
        display: flex;
      }

      .nav-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
      }

      .location-group,
      .search-grid > .field,
      .primary-btn.hero-btn {
        width: 100%;
        flex: none;
      }

      .primary-btn.hero-btn {
        padding: 0 16px;
      }

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

    @media (max-width: 680px) {
      html {
        font-size: 19px;
      }

      .container {
        width: min(var(--container), calc(100% - 14px));
      }

      .hero {
        padding-top: 22px;
      }

      .search-card {
        padding: 8px 16px 20px;
      }

      .current-location-row {
        /* Leave a balanced inset above Current location without clipping the label. */
        margin-top: -16px;
      }

      /* Match the divider-to-Filters label gap to the Current location top inset. */
      .filters-shell {
        padding-top: 12px;
      }

      .filters-label {
        margin-top: 4px;
      }

      .search-window-message {
        border-radius: 18px;
        font-size: 1rem;
      }

      .location-fields,
      .filter-controls-row {
        grid-template-columns: 1fr;
      }

      .section-card,
      .blog-card,
      .footer-card {
        padding: 20px 16px;
      }

      .patient-shortcut-grid {
        grid-template-columns: 1fr;
      }

      .section-top {
        align-items: flex-start;
        flex-direction: column;
      }

      .filters-summary {
        align-items: flex-start;
        grid-template-columns: 1fr;
      }

      .filter-panel,
      .filter-controls-row {
        width: 100%;
      }

      .filter-input,
      .filter-select,
      .secondary-btn,
      .chip-btn,
      .filter-service-field,
      .practice-form .primary-btn,
      .insurance-wrap,
      .dentist-name-wrap,
      .listing-result-actions .primary-btn,
      .listing-result-actions .listing-secondary-link {
        width: 100%;
      }

      .dentist-name-wrap {
        max-width: none;
      }

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


/* Always-visible Professional Center callout. */
.listing-result-static {
    display: block;
}

/* Dynamic latest-blog image layout */
#latest-blog .feature-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 30px;
  align-items: center;
}

#latest-blog .latest-blog-copy {
  min-width: 0;
}

/* Avoid an isolated short final line in the homepage excerpt. */
#latest-blog .blog-excerpt {
  text-wrap: pretty;
}


#latest-blog .feature-image-wrap {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

#latest-blog .feature-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  background: #FBF7F1;
}

#latest-blog .feature-layout.blog-image-landscape {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
}

#latest-blog .feature-layout.blog-image-portrait {
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
}

#latest-blog .feature-layout.blog-image-portrait .feature-image-wrap {
  width: min(100%, 360px);
  justify-self: end;
}

#latest-blog .feature-layout.blog-image-square {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}

#latest-blog .feature-layout.blog-no-image {
  grid-template-columns: 1fr;
}

@media (max-width: 1080px) {
  #latest-blog .feature-layout,
  #latest-blog .feature-layout.blog-image-landscape,
  #latest-blog .feature-layout.blog-image-portrait,
  #latest-blog .feature-layout.blog-image-square {
    grid-template-columns: 1fr;
  }

  #latest-blog .feature-layout.blog-image-portrait .feature-image-wrap {
    width: min(100%, 420px);
    justify-self: center;
  }

  #latest-blog .feature-image-wrap {
    max-width: 720px;
    justify-self: center;
  }
}

@media (max-width: 680px) {
  #latest-blog .feature-image-wrap,
  #latest-blog .feature-layout.blog-image-portrait .feature-image-wrap {
    width: 100%;
    max-width: 100%;
  }
}



/* ===== Homepage restart refinements — 2026-08-16 ===== */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700;800&family=Lora:ital,wght@0,500;0,600;1,500&display=swap');

/* 1. Warm paper background used on the revised homepage. */
html,
body,
.site-shell,
.page-content {
  background: #FBF7F1 !important;
}

/* 2. Remove the blue top accent/shadow from the dentist search window. */


/* 3. Intro copy now lives directly under the H1. */
.hero-subtitle {
  max-width: 900px;
  margin: 4px auto 0;
  color: #5b554d;
  font-family: 'Figtree', Arial, sans-serif !important;
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

/* 4. Lora display type + Figtree functional type. */
body,
button,
input,
select,
textarea,
.search-card,
.filter-controls-row,
.hero-subtitle,
.section-copy,
.feature-copy,
.blog-excerpt,
.blog-author,
.filters-label,
.field label,
.current-location-inline {
  font-family: 'Figtree', Arial, sans-serif !important;
}

#homepage-title,
.section-title,
#latest-blog .section-title,
.section-card h2,
.feature-card h3,
.patient-shortcut-title,
.listing-result h3,
.brand-name {
  font-family: 'Lora', Georgia, serif !important;
  font-weight: 600 !important;
}

#homepage-title {
  font-size: clamp(2rem, 4vw, 2.8rem) !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}

/* 5. All pill-like search/filter controls use the ZIP field shape.
      Widths and heights are intentionally left unchanged. */
.primary-btn.hero-btn,
.secondary-btn,
.chip-btn,
.filter-input,
.filter-select,
.insurance-trigger,
.filter-service-field select.hero-input,
#clearFilters {
  border-radius: 10px !important;
}

/* 6. Match the orange used by the .com logo accent. */
.primary-btn.hero-btn,
#clearFilters {
  background: var(--accent) !important;
  border-color: var(--accent) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(249,115,22,0.16) !important;
}

.primary-btn.hero-btn:hover,
.primary-btn.hero-btn:focus,
#clearFilters:hover,
#clearFilters:focus {
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #fff !important;
}

.current-location-inline,
.current-location-inline:hover,
.current-location-inline:focus,
.filters-label {
  color: var(--accent) !important;
}

.filters-label {
  font-weight: 400 !important;
}

/* Neutralize blue focus rings on the controls touched above. */
.filter-input:focus,
.filter-select:focus,
.chip-btn:focus,
.insurance-trigger:focus,
.primary-btn.hero-btn:focus,
#clearFilters:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(249,115,22,0.12) !important;
}

.insurance-wrap.open .insurance-trigger {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px rgba(249,115,22,0.12) !important;
}


/* Homepage follow-up refinements */

/* Search window border; background is defined with the shared patient-search surface above. */
.search-card {
    border-color: #2f2f2f !important;
}

/* Match Virtual consultation + Insurance text color to the regular form controls. */
.chip-btn,
.insurance-trigger {
    color: var(--text) !important;
}

/* Force text inside ZIP, City, State and Specialty controls to render identically. */
#zipCode,
#city,
#state,
select[name="specialty_id"] {
    font-family: 'Figtree', Arial, sans-serif !important;
    font-size: var(--control-font-size) !important;
    font-weight: 400 !important;
    color: var(--text) !important;
}

/*
 * Latest blog image: 50% of the original desktop image-column width.
 * Original column = 0.88fr, so new image column = 0.44fr.
 * The text column receives the freed width and extends to the image.
 */
#latest-blog .feature-layout {
    grid-template-columns: minmax(0, 1.56fr) minmax(150px, 0.44fr) !important;
    gap: 24px !important;
}

#latest-blog .latest-blog-copy {
    max-width: none !important;
    min-width: 0;
}

#latest-blog .feature-image-wrap {
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
}

@media (max-width: 1080px) {
    #latest-blog .feature-layout {
        grid-template-columns: 1fr !important;
    }

    #latest-blog .feature-image-wrap {
        width: 50% !important;
        max-width: 360px !important;
        justify-self: center !important;
    }
}

@media (max-width: 680px) {
    #latest-blog .feature-image-wrap {
        width: 50% !important;
        max-width: 50% !important;
    }
}


/* Neutral card borders: lighter than the search-window outline (#2f2f2f). */
.section-card,
.feature-card,
.mini-card,
.patient-shortcut-card,
.patient-sponsored-card,
.blog-card,
#latest-blog .feature-card {
    border-color: #9a9a9a !important;
}

/* Remove glass treatment from the footer. */
.site-footer,
footer,
.footer-inner,
.footer-shell {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.site-footer::before,
.site-footer::after,
footer::before,
footer::after {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* Footer: full-width content, no inner container box. */
.site-footer .footer-card {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Latest blog image: 75% of the original image-column width. */
#latest-blog .feature-layout {
    grid-template-columns: minmax(0, 1.34fr) minmax(225px, 0.66fr) !important;
    gap: 24px !important;
}

#latest-blog .latest-blog-copy {
    max-width: none !important;
}

#latest-blog .feature-image-wrap {
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
}

@media (max-width: 1080px) {
    #latest-blog .feature-layout {
        grid-template-columns: 1fr !important;
    }

    #latest-blog .feature-image-wrap {
        width: 75% !important;
        max-width: 540px !important;
        justify-self: center !important;
    }
}

@media (max-width: 680px) {
    #latest-blog .feature-image-wrap {
        width: 75% !important;
        max-width: 75% !important;
    }
}

/* Filters label weight matches Current location. */
.filters-label {
    font-weight: 700 !important;
}

/* Muted orange palette below the header. */
.page-content {
    --muted-orange: #c96f4a;
    --muted-orange-dark: #ad5d3d;
}

/* Primary action buttons */
.page-content .primary-btn,
.page-content .primary-btn.hero-btn,
.page-content #clearFilters {
    background: var(--muted-orange) !important;
    border-color: var(--muted-orange) !important;
    color: #fff !important;
}

.page-content .primary-btn:hover,
.page-content .primary-btn:focus,
.page-content .primary-btn.hero-btn:hover,
.page-content .primary-btn.hero-btn:focus,
.page-content #clearFilters:hover,
.page-content #clearFilters:focus {
    background: var(--muted-orange-dark) !important;
    border-color: var(--muted-orange-dark) !important;
}

/* Orange text/accent links and labels below header */
.page-content .current-location-inline,
.page-content .eyebrow-link,
.page-content .patient-sponsored-cta,
.page-content .section-badge {
    color: var(--muted-orange) !important;
}

.page-content .patient-sponsored-cta {
    border-bottom-color: var(--muted-orange) !important;
}


/* Popular patient searches: blend buttons into page background with muted-orange outlines. */
/* Popular patient searches heading: match For dentists card typography exactly. */
.patient-shortcut-title {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
}


/* Popular patient searches: match For patients text scale. */
#resources .feature-card h3 {
    font-size: 1.8rem !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
}

#resources .feature-card .feature-copy {
    font-size: 1rem !important;
    line-height: 1.55 !important;
}.patient-shortcut-card:hover,
.patient-shortcut-card:active,
.patient-shortcut-card:focus,
.patient-shortcut-card:focus-visible {
    background: #FBF7F1 !important;
    border-color: #c96f4a !important;
    box-shadow: 0 0 0 1px #c96f4a !important;
    outline: none !important;
}

/* Clean neutral homepage/search backgrounds after legacy blue cleanup */
html, body, .site-shell, .page-content, .hero, .hero-inner, .hero .container {
    background: #FBF7F1 !important;
    background-image: none !important;
}


/* Popular patient searches cards — permanent page-background fill, softer orange interaction border */
.patient-shortcut-card,
.patient-shortcut-card:visited {
    background: #FBF7F1 !important;
    background-image: none !important;
    border: 1px solid #9a9a9a !important;
    box-shadow: none !important;
}

.patient-shortcut-card:hover,
.patient-shortcut-card:active,
.patient-shortcut-card:focus,
.patient-shortcut-card:focus-visible {
    background: #FBF7F1 !important;
    background-image: none !important;
    border-color: #d99a7a !important;
    box-shadow: 0 0 0 1px #d99a7a !important;
    outline: none !important;
}


/* Normalize Filters: color to the same muted orange used by homepage actions/links. */
.filters-label {
    color: #c96f4a !important;
}


/* Sponsored card taken from the supplied reference design */
#sponsored-dental-insurance {
    padding: 0 0 64px;
}
#sponsored-dental-insurance .sponsor-mini {
    max-width: 920px;
    margin: 0 auto;
}
.mini-card {
    border-radius: 14px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
}
.mini-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    border-radius: 6px;
    padding: 4px 9px;
}
.mini-card strong {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    font-size: 1.08rem;
    margin-top: 12px;
}
.mini-card p {
    font-size: 0.88rem;
    margin-top: 6px;
    line-height: 1.5;
}
.mini-cta {
    display: inline-block;
    margin-top: 14px;
    font-weight: 700;
    font-size: 0.85rem;
    align-self: flex-start;
}
.mini-card.sponsor-mini {
    background: #ffffff;
    border: 1px solid #9a9a9a;
}
.sponsor-mini .mini-tag {
    border: 1px solid #c9c5be;
    color: #8A8377;
}
.sponsor-mini p {
    color: #5B554D;
}
.sponsor-mini .mini-cta {
    color: #ad5d3d;
    border-bottom: 2px solid #d99a7a;
    padding-bottom: 2px;
}


/* For dentists — listing-interest card */
.dentist-listing-check-card {
    max-width: 920px;
    margin: 0 auto;
}

.dentist-listing-check-card .section-copy {
    max-width: 640px;
}

.dentist-listing-check-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: 24px;
}

.dentist-listing-phone-field label {
    display: block;
    margin-bottom: 6px;
    font-size: var(--label-font-size);
    font-weight: 700;
    color: var(--text);
}

.dentist-listing-check-form .practice-input {
    width: 100%;
    min-height: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid #9a9a9a;
    background: #fff;
    color: var(--text);
    font-family: 'Figtree', Arial, sans-serif;
    font-size: var(--control-font-size);
    padding: 0 14px;
}

.dentist-listing-check-button {
    min-width: 170px;
    white-space: nowrap;
}

.dentist-listing-result {
    margin-top: 18px;
}

.dentist-listing-result.show {
    display: block;
    border-color: #c9c5be;
    background: #fff;
}

.dentist-listing-result .listing-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.dentist-listing-result .listing-result-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    font-family: 'Figtree', Arial, sans-serif;
    font-weight: 700;
    text-decoration: none;
}

.dentist-listing-result .listing-result-actions a:first-child {
    background: #c96f4a;
    border: 1px solid #c96f4a;
    color: #fff;
}

.dentist-listing-result .listing-result-actions a + a {
    background: #fff;
    border: 1px solid #9a9a9a;
    color: var(--text);
}

@media (max-width: 700px) {
    .dentist-listing-check-form {
        grid-template-columns: 1fr;
    }

    .dentist-listing-check-button {
        width: 100%;
    }
}


/* Layout only: keep the restored For dentists card and place Sponsored to its right. */
.dentist-sponsor-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.dentist-sponsor-grid > .dentist-listing-check-card,
.dentist-sponsor-grid > .sponsor-mini {
    max-width: none;
    width: 100%;
    margin: 0;
    height: 100%;
}

@media (max-width: 800px) {
    .dentist-sponsor-grid {
        grid-template-columns: 1fr;
    }
}


/* Sponsored card: match For dentists badge and typography. */
.sponsor-mini .sponsor-section-badge {
    align-self: flex-start;
    font-family: 'Figtree', Arial, sans-serif !important;
}

.sponsor-mini p,
.sponsor-mini .mini-cta {
    font-family: 'Figtree', Arial, sans-serif !important;
}




/* Exact For dentists ↔ Sponsored alignment */
.dentist-sponsor-grid {
    align-items: stretch;
}

.dentist-sponsor-grid > .dentist-listing-check-card,
.dentist-sponsor-grid > .sponsor-mini {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Match badge position/spacing */
.sponsor-mini .sponsor-section-badge {
    margin-bottom: 12px !important;
}

/* Exact same title class/spacing as For dentists */
.sponsor-mini .sponsor-title {
    margin: 0 0 8px !important;
}

/* Align body-copy start and typography */
.sponsor-mini p {
    margin: 0 !important;
    font-family: 'Figtree', Arial, sans-serif !important;
    font-size: 1rem !important;
    line-height: 1.55 !important;
    color: var(--muted) !important;
}

/* Keep CTA below without disturbing title/text alignment */
.sponsor-mini .mini-cta {
    margin-top: 18px !important;
    align-self: flex-start;
}


/* Sponsored card is an exact clone of the For dentists card shell. */
.sponsor-clone-card .sponsor-clone-action {
    margin-top: 24px;
}
.sponsor-clone-card .sponsor-clone-action a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Covers the visible select text if a styled select layer is used. */
.search-card .field select,
.search-card .select-wrap select,
.search-card .select2-selection__rendered {
    color: #241F1A !important;
    -webkit-text-fill-color: #241F1A !important;
}


/* Search labels: ZIP code, City, State and Specialty use black text. */
.search-card label[for="zipCode"],
.search-card label[for="city"],
.search-card label[for="state"],
.search-card label[for="service"],
.search-card label[for="specialty_id"] {
    color: #241F1A !important;
}

/* Filters: all visible control names match the Last Name field exactly. */
.filter-controls-row .hero-input,
.filter-controls-row .chip-btn,
.filter-controls-row .insurance-trigger,
.filter-controls-row .filter-input {
    font-family: 'Figtree', Arial, sans-serif !important;
    font-size: var(--control-font-size) !important;
    font-weight: 400 !important;
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
}

/* Explicitly cover the two button controls that were previously missed. */
.filter-controls-row .chip-btn,
.filter-controls-row .insurance-trigger {
    line-height: 1 !important;
}


/* Current location text + icon: same size as Filters: */
.current-location-inline,
.current-location-inline .current-location-text {
    font-family: 'Figtree', Arial, sans-serif !important;
    font-size: var(--label-font-size) !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
}

.current-location-inline .current-location-icon,
.current-location-inline .current-location-icon svg {
    width: var(--label-font-size) !important;
    height: var(--label-font-size) !important;
}


/* Find dentists + Clear filters: match Last Name field typography. */
.search-card .primary-btn.hero-btn,
.search-card #clearFilters {
    font-family: 'Figtree', Arial, sans-serif !important;
    font-size: var(--control-font-size) !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

/* Find dentists + Clear filters — same size as Last Name, bold */
.search-card .primary-btn.hero-btn,
.search-card #clearFilters {
    font-weight: 700 !important;
}


/* Keep the top pill spacing identical on the two patient cards */
.patient-choice-card,
.practice-stack > .feature-card {
  padding-top: 24px;
}


/* Equalize the For patients card height with Popular patient searches */
.patient-choice-card {
  padding-bottom: 20px;
}


/* Shorter Latest from our blog pill */
#latest-blog .section-badge {
  width: fit-content;
  padding-left: 10px;
  padding-right: 10px;
}


/* Restore approved homepage search dropdown arrow size: 18px, uniform */
.search-card select.hero-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px 18px;
}

.search-card .insurance-trigger {
  padding-right: 44px;
  position: relative;
}

.search-card .insurance-trigger::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;
  pointer-events: none;
}


/* FINAL homepage search chevron normalization:
   State, Specialty, Service and Insurance all use one identical 18px SVG. */
.search-card .filter-service-field::after {
  content: none !important;
  display: none !important;
}

.search-card select#state.hero-input,
.search-card select[name="specialty_id"].hero-input,
.search-card .filter-service-field select#service.hero-input {
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 18px 18px !important;
  padding-right: 44px !important;
}

.search-card #insuranceButton.insurance-trigger::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  transform: translateY(-50%) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
  pointer-events: none !important;
}


/* Practice lookup: validation grows only the dentist card.
   Button remains aligned with the phone input; sponsored card stays independent. */
.dentist-listing-check-form {
  align-items: start !important;
}

.dentist-listing-phone-field {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dentist-listing-phone-field .field-error[hidden] {
  display: none !important;
}

.dentist-listing-phone-field .field-error:not([hidden]) {
  display: block !important;
  position: static !important;
  margin-top: 8px !important;
}

.dentist-listing-check-button {
  align-self: start !important;
  margin-top: 0 !important;
}

.dentist-sponsor-grid {
  align-items: start !important;
}

.dentist-sponsor-grid > .dentist-listing-check-card,
.dentist-sponsor-grid > .sponsor-clone-card {
  height: auto !important;
  align-self: start !important;
}


/* Make Check my listing button approximately 50% wider */
.dentist-listing-check-button {
  padding-left: 36px !important;
  padding-right: 36px !important;
}

/* Virtual consultation active state: match Routine checkup interaction */
.filter-controls-row .chip-btn.active,
.filter-controls-row .chip-btn[aria-pressed="true"] {
    background: #FBF7F1 !important;
    background-image: none !important;
    border-color: #d99a7a !important;
    box-shadow: 0 0 0 1px #d99a7a !important;
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
}

/* Insurance dropdown: slightly more visible checkboxes */
.insurance-menu input[type="checkbox"] {
    width: 17px !important;
    height: 17px !important;
    border: 1.5px solid #7a7a7a !important;
    opacity: 1 !important;
    accent-color: #c96f4a;
}

/* EXPERIMENT: selected homepage action buttons in Professional Center peach.
   Remove this block to revert only this experiment. */
.primary-btn.hero-btn,
#clearFilters,
#practiceLookupButton,
.sponsor-clone-action .dentist-listing-check-button {
    background: #e7b091 !important;
    background-image: none !important;
    border-color: #d18b67 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.primary-btn.hero-btn:hover,
.primary-btn.hero-btn:focus,
#clearFilters:hover,
#clearFilters:focus,
#practiceLookupButton:hover,
#practiceLookupButton:focus,
.sponsor-clone-action .dentist-listing-check-button:hover,
.sponsor-clone-action .dentist-listing-check-button:focus {
    background: #d99a7a !important;
    border-color: #c98563 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* FIX: force the requested peach styling on Find dentists and Clear filters */
#patientSearchForm .primary-btn.hero-btn,
#patientSearchForm button.primary-btn.hero-btn,
#clearFilters.secondary-btn,
#patientSearchForm #clearFilters {
    background: #e7b091 !important;
    background-image: none !important;
    border: 1px solid #d18b67 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
}

#patientSearchForm .primary-btn.hero-btn:hover,
#patientSearchForm .primary-btn.hero-btn:focus,
#patientSearchForm .primary-btn.hero-btn:active,
#clearFilters.secondary-btn:hover,
#clearFilters.secondary-btn:focus,
#clearFilters.secondary-btn:active,
#patientSearchForm #clearFilters:hover,
#patientSearchForm #clearFilters:focus,
#patientSearchForm #clearFilters:active {
    background: #d99a7a !important;
    background-image: none !important;
    border-color: #c98563 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    box-shadow: none !important;
}





/* Homepage search architecture: Services/Procedures is primary; filters are four controls. */
@media (min-width: 769px) {
  #patientSearchForm .filter-controls-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  #patientSearchForm #clearFilters {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

/* Parking filter + primary Services/Procedures field alignment */
@media (min-width: 769px) {
  #patientSearchForm .filter-controls-row {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }
}



#patientSearchForm #service,
#patientSearchForm #state {
    font-family: 'Figtree', Arial, sans-serif !important;
    font-size: var(--control-font-size) !important;
    font-weight: 400 !important;
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
}





/* Open Services/Procedures + Insurance lists: same typography and real page background. */
.service-select-wrap {
    position: relative;
    width: 100%;
}

.service-native-select {
    display: none !important;
}

.service-trigger {
    position: relative;
    width: 100%;
    min-height: 46px;
    height: 46px;
    padding: 0 44px 0 16px !important;
    border: 1px solid #c9c5be !important;
    border-radius: 10px !important;
    background-color: #ffffff !important;
    color: var(--text) !important;
    font-family: 'Figtree', Arial, sans-serif !important;
    font-size: var(--control-font-size) !important;
    font-weight: 400 !important;
    text-align: center;
    cursor: pointer;
}

.service-trigger::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    pointer-events: none;
}

.service-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 10000;
    display: none;
    width: 100%;
    max-height: 360px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #c9c5be;
    border-radius: 16px;
    background: #FBF7F1;
    box-shadow: 0 18px 38px rgba(15,23,42,0.12);
}

.service-select-wrap.open .service-menu {
    display: block;
}

.service-option {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #334155;
    text-align: left;
    cursor: pointer;
    font-family: 'Figtree', Arial, sans-serif !important;
        font-size: 1rem !important;
        font-weight: 400 !important;
        line-height: 1.35 !important;
}

.service-option:hover,
.service-option:focus {
    background: rgba(255,255,255,0.55);
    outline: none;
}

#insuranceMenu {
    background: #FBF7F1 !important;
}

#insuranceMenu .insurance-option,
#insuranceMenu .insurance-option span {
    font-family: 'Figtree', Arial, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
}

/* Keep the spacing below For dentists equal to the section spacing above it. */
#for-practices {
    margin-bottom: 18px !important;
}

/* Footer: use the same vertical spacing as the For dentists -> divider gap. */
.site-footer {
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}

.site-footer .footer-card {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Current location: visually equalize the gap above/below the underlined control. */
#patientSearchForm .current-location-row {
    margin-bottom: 12px !important;
}

/* Current-location icon: black, slightly larger, bottom-aligned to the underline. */
#patientSearchForm .current-location-inline {
    align-items: flex-end !important;
}

#patientSearchForm .current-location-icon {
    display: inline-flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    width: 20px !important;
    height: 20px !important;
    color: #000000 !important;
    margin-bottom: -1px !important;
}

#patientSearchForm .current-location-icon svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    fill: currentColor !important;
}


/* Homepage patient cards: use one explicit internal top-spacing model on both cards. */
#resources .patient-resource-card {
  box-sizing: border-box !important;
  padding-top: 24px !important;
}

#resources .patient-resource-card > .patient-resource-card-head {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

#resources .patient-resource-card-head > :first-child,
#resources .patient-resource-card-head > :first-child > :first-child {
  margin-top: 0 !important;
}

#resources .patient-resource-card .section-badge {
  margin-top: 0 !important;
}


/* Homepage patient cards v4: both cards now use the exact same header wrapper. */
#resources .patient-resource-card > .section-top.flush.patient-resource-card-head {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

#resources .patient-resource-card > .section-top.flush.patient-resource-card-head > div {
  margin: 0 !important;
  padding: 0 !important;
}

#resources .patient-resource-card > .section-top.flush.patient-resource-card-head .section-badge {
  margin-top: 0 !important;
}

/* Homepage patient cards v5: force the exact same outer top inset on both cards. */
#resources > .container.split-grid > .patient-choice-card.patient-resource-card,
#resources > .container.split-grid > .practice-stack > .patient-search-card.patient-resource-card {
  box-sizing: border-box !important;
  padding-top: 24px !important;
}

#resources > .container.split-grid > .patient-choice-card.patient-resource-card > .patient-resource-card-head,
#resources > .container.split-grid > .practice-stack > .patient-search-card.patient-resource-card > .patient-resource-card-head {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Homepage patient cards v7: final optical alignment correction. */
#resources > .container.split-grid > .patient-search-card.patient-resource-card {
  padding-top: 22px !important;
}

/* Homepage patient cards v10: add 3px to the bottom of the left card. */
#resources > .container.split-grid > .patient-choice-card.patient-resource-card {
  padding-bottom: 23px !important;
}


/* V18-047 — mobile/tablet engaged homepage search position */
@media (max-width: 1024px) {
  body.home-search-engaged {
    scroll-behavior: auto !important;
  }

  body.home-search-engaged .site-header {
    position: relative !important;
    top: auto !important;
    z-index: 1000 !important;
  }

  body.home-search-engaged .hero {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.home-search-engaged .hero-inner {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.home-search-engaged .hero-copy {
    display: none !important;
  }

  body.home-search-engaged .search-card {
    margin-top: 0 !important;
  }
}

/* V24-001: match homepage action button corner shape to search buttons. */
.page-content #practiceLookupButton,
.page-content .sponsor-clone-action .dentist-listing-check-button {
    border-radius: 10px !important;
}

/* V24-002: equal desktop action widths; share remaining filter-row space evenly. */
@media (min-width: 1081px) {
  #patientSearchForm .primary-btn.hero-btn {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    box-sizing: border-box;
  }
  #patientSearchForm .filter-controls-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) 180px !important;
    gap: var(--filter-gap);
  }
  #patientSearchForm #clearFilters {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    box-sizing: border-box;
  }
}

/* V24-003: match the two lower homepage CTA font sizes to Find dentists. */
.page-content #practiceLookupButton,
.page-content .sponsor-clone-action .dentist-listing-check-button {
  font-size: var(--control-font-size) !important;
}

/* V24-004: keep search actions identical to Check my listing CTA colors. */
body .page-content #patientSearchForm button.primary-btn.hero-btn,
body .page-content #patientSearchForm button#clearFilters.secondary-btn {
  background: #e7b091 !important;
  background-image: none !important;
  border-color: #d18b67 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
body .page-content #patientSearchForm button.primary-btn.hero-btn:hover,
body .page-content #patientSearchForm button.primary-btn.hero-btn:focus,
body .page-content #patientSearchForm button#clearFilters.secondary-btn:hover,
body .page-content #patientSearchForm button#clearFilters.secondary-btn:focus {
  background: #d99a7a !important;
  background-image: none !important;
  border-color: #c98563 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* V24-005: subtle glossy sheen on the page background only. */
html,
body,
.site-shell,
.page-content,
.hero,
.hero-inner,
.hero .container {
  background-color: #FBF7F1 !important;
  background-image: radial-gradient(ellipse 75% 42% at 50% 0%, rgba(255,255,255,.95) 0%, rgba(255,255,255,.28) 58%, rgba(255,255,255,0) 100%), linear-gradient(135deg, #fffdf9 0%, #f7eee3 48%, #fffaf3 100%) !important;
}

/* V24_008: make patient search shortcuts identifiable as tappable on mobile. */
.patient-shortcut-card,
.patient-shortcut-card:visited {
    border-color: #d8aa94 !important;
    cursor: pointer;
}
.patient-shortcut-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.patient-shortcut-title::after {
    content: "\2192";
    flex: 0 0 auto;
    color: #c96f4a;
    font-family: Arial, sans-serif;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1;
}
@media (hover: none) {
    .patient-shortcut-card:active {
        transform: translateY(1px);
        border-color: #c96f4a !important;
        background: #f8eee6 !important;
    }
}
@media (max-width: 767px) {
    .patient-shortcut-card { padding: 21px 22px; }
}

/* Stage 017: align the two homepage patient resource cards.
   Both cards are direct children of #resources .split-grid in the current markup. */
@media (min-width: 769px) {
  #resources > .container.split-grid {
    align-items: stretch;
  }
  #resources > .container.split-grid > .patient-choice-card.patient-resource-card,
  #resources > .container.split-grid > .patient-search-card.patient-resource-card {
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
  }
}
#resources > .container.split-grid > .patient-choice-card.patient-resource-card,
#resources > .container.split-grid > .patient-search-card.patient-resource-card {
  padding-top: 24px !important;
}
#resources .patient-resource-card > .patient-resource-card-head .section-badge {
  display: inline-flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  min-height: 34px;
  padding: 8px 12px !important;
  margin-top: 0 !important;
  line-height: 1.2 !important;
  font-size: 0.88rem !important;
}



/* Latest blog: full-width headline; landscape image begins alongside article excerpt. */
#latest-blog .latest-blog-title {
  max-width: none;
  margin-bottom: 20px;
}
#latest-blog .feature-layout {
  align-items: start !important;
}
#latest-blog .feature-image-wrap {
  align-self: start;
}

/* Stage34 003: mobile-only service menu takes up layout space when expanded.
   The Find dentists action, all filters and Clear filters follow below it. */
@media (max-width: 860px) {
  #patientSearchForm .service-select-wrap.open .service-menu {
    position: static;
    top: auto;
    left: auto;
    margin-top: 8px;
    width: 100%;
  }
}

/* Desktop: keep ZIP, City and State in the first grid row even when an
   error is shown. The error occupies only the invalid field's column. */
@media (min-width: 861px) {
  #patientSearchForm .location-fields > .field:has(#zipCode) { grid-column: 1; grid-row: 1; }
  #patientSearchForm .location-fields > .field:has(#city) { grid-column: 2; grid-row: 1; }
  #patientSearchForm .location-fields > .field:has(#state) { grid-column: 3; grid-row: 1; }
  /* Keep the error outside the grid tracks: a second grid row changes the
     location group's height and makes the adjacent search controls drop. */
  #patientSearchForm .location-fields {
    position: relative;
  }
  #patientSearchForm .location-fields > #locationError {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    grid-row: auto;
    grid-column: auto;
  }
  /* Reserve space below the unchanged, aligned first row. */
  #patientSearchForm .search-grid:has(#locationError.show) {
    padding-bottom: 38px;
  }
  /* All desktop location errors begin at the ZIP field's left edge.
     The mobile error position remains field-specific and unchanged. */
}

/* Location validation is plain text below the invalid field, not a card. */
#patientSearchForm .location-fields > #locationError {
  position: static;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--danger);
  font-size: 0.92rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: normal;
}
/* Keep the desktop error out of grid flow after the shared text styling. */
@media (min-width: 861px) {
  #patientSearchForm .location-fields > #locationError {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
  }
}
@media (max-width: 860px) {
  /* This breakpoint also covers tablet-sized mobile layouts. */
  #patientSearchForm .location-fields {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  #patientSearchForm .location-fields > .field,
  #patientSearchForm .location-fields > #locationError {
    flex: 0 0 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  /* Reduce only the gap above the error; retain spacing below it. */
  #patientSearchForm .location-fields > #locationError.show {
    margin-top: -9px;
  }
  #patientSearchForm .location-fields > #locationError:not(.show) {
    display: none;
  }
}

/* Stage34-018: mobile-only filter heading action and bottom search submit. */
.mobile-clear-filters,
.mobile-bottom-search { display: none !important; }

@media (max-width: 680px) {
  #patientSearchForm .filters-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }
  /* Mobile: compact divider-to-Filters spacing. */
  #patientSearchForm .filters-shell {
    padding-top: 4px;
  }
  /* Compact Filters heading-to-controls spacing. */
  #patientSearchForm .filters-summary {
    row-gap: 4px;
  }
  #patientSearchForm .filters-heading-row .filters-label {
    margin: 0;
  }
  #patientSearchForm .mobile-clear-filters {
    display: inline-block !important;
    appearance: none;
    border: 0;
    padding: 4px 0;
    background: transparent !important;
    color: #c96f4a !important;
    font-family: 'Figtree', Arial, sans-serif !important;
    font-size: var(--label-font-size) !important;
    font-weight: 700 !important;
    line-height: 1.1;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }
  #patientSearchForm #clearFilters { display: none !important; }
  #patientSearchForm .mobile-bottom-search {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    box-sizing: border-box;
  }
  /* The lower submit replaces the original search action on mobile only. */
  #patientSearchForm .search-grid > .hero-btn { display: none !important; }
}

/* Stage34-027: desktop Clear filters is a text link, not an action button.
   The separate mobile Clear filters control and its styling are unchanged. */
@media (min-width: 681px) {
  #patientSearchForm a#clearFilters.desktop-clear-filters-link,
  #patientSearchForm a#clearFilters.desktop-clear-filters-link:hover,
  #patientSearchForm a#clearFilters.desktop-clear-filters-link:focus {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    color: #c96f4a !important;
    -webkit-text-fill-color: #c96f4a !important;
    font-family: 'Figtree', Arial, sans-serif !important;
    font-size: var(--label-font-size) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    cursor: pointer;
  }
  #patientSearchForm a#clearFilters.desktop-clear-filters-link:hover,
  #patientSearchForm a#clearFilters.desktop-clear-filters-link:focus-visible {
    color: #a95230 !important;
    -webkit-text-fill-color: #a95230 !important;
  }
}

/* Last name: use the same selected appearance as active filter chips. */
.filter-controls-row .dentist-name-wrap .filter-input:not(:placeholder-shown) {
    background: #FBF7F1 !important;
    background-image: none !important;
    border-color: #d99a7a !important;
    box-shadow: 0 0 0 1px #d99a7a !important;
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
}

/* Stage39: consistent populated-field treatment across the search form. */
#patientSearchForm .hero-input.has-search-value,
#patientSearchForm .filter-input.has-search-value,
#patientSearchForm .insurance-trigger.has-search-value,
#patientSearchForm .service-trigger.has-search-value {
    background: #FBF7F1 !important;
    background-image: none !important;
    border-color: #d99a7a !important;
    box-shadow: 0 0 0 1px #d99a7a !important;
    color: var(--text) !important;
    -webkit-text-fill-color: var(--text) !important;
}
