.logo.logo-image {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  order: 1;
}

.logo.logo-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: clamp(44px, 4.4vw, 62px);
  object-fit: contain;
}

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

.topbar .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.menu {
  order: 3;
  margin-left: auto;
}

.header-actions {
  order: 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #c6d7ea;
  background: #ffffff;
  color: #10304f;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 6px 10px;
}

.header-auth-link:hover {
  background: #f1f7ff;
  text-decoration: none;
}

.header-auth-link.is-authenticated {
  background: #eef6ff;
  border-color: #9fc2ea;
}

.header-auth-link.is-logout {
  background: #fff4f4;
  border-color: #efcaca;
  color: #8b1c1c;
}

.auth-shell {
  max-width: 620px;
  margin: 22px auto;
}

.auth-card {
  border: 1px solid #d6e3f1;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 30px rgba(10, 38, 69, 0.08);
}

.auth-card h1 {
  margin-bottom: 6px;
}

.auth-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.auth-form input,
.auth-form select,
.auth-form textarea {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #c8d8ea;
  padding: 8px 11px;
  font-size: 0.95rem;
}

.auth-btn-primary {
  border: 1px solid #0c4f88;
  border-radius: 10px;
  min-height: 42px;
  background: linear-gradient(180deg, #1268b0 0%, #0d548f 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.auth-btn-primary:hover {
  opacity: 0.94;
}

.auth-btn-secondary {
  border-color: #d2dfea;
  background: #fff;
  color: #17385a;
}

.auth-social-wrap {
  margin: 10px 0 0 0;
}

.auth-fb-btn {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #1b53bd;
  background: #1877f2;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.auth-fb-btn:hover {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}

.auth-fb-btn.is-disabled {
  background: #8aa6cf;
  border-color: #7898c6;
}

.auth-links {
  margin-top: 10px;
  font-size: 0.93rem;
}

.auth-social-note {
  margin-top: 10px;
  font-size: 0.88rem;
}

.auth-errors {
  color: #a52222;
  margin: 8px 0;
}

.auth-ok {
  color: #166534;
}

.auth-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-kv p {
  margin: 4px 0;
}

.lang-switch {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-top: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.lang-switch a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 2px 6px;
  border-radius: 6px;
}

.lang-switch .lang-sep {
  opacity: .7;
  font-weight: 600;
}

.lang-switch a:hover {
  text-decoration: underline;
}

.header-search {
  position: relative;
}

.header-search-toggle,
.header-search-gps,
.header-search-submit {
  border: 1px solid #d5e0ed;
  background: #fff;
  color: #12202f;
  border-radius: 8px;
  min-height: 34px;
  min-width: 34px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}

.header-search-toggle:hover,
.header-search-gps:hover,
.header-search-submit:hover {
  background: #f3f7fc;
}

.header-search-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 80;
  min-width: 280px;
  background: #fff;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(18, 32, 47, 0.12);
}

.header-search-form {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
}

.header-search-form input[type="text"] {
  border: 1px solid #c8d5e4;
  border-radius: 8px;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.92rem;
}

.header-search-msg {
  margin: 6px 2px 0 2px;
  font-size: 12px;
}

.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;
}

@media (max-width: 980px) {
  .logo.logo-image img {
    height: 46px;
  }
}

@media (max-width: 640px) {
  .topbar .wrap {
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
  }

  .menu {
    order: 3;
    flex: 0 0 100%;
    margin-left: 0;
    margin-top: 4px;
    margin-bottom: 0;
  }

  .logo.logo-image {
    order: 1;
    flex: 0 0 auto;
  }

  .header-actions {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    gap: 6px;
  }

  .lang-switch {
    justify-content: flex-end;
    margin-top: 0;
    font-size: 17px;
    gap: 10px;
  }

  .logo.logo-image img {
    height: 42px;
  }

  .header-search-panel {
    right: 0;
    left: auto;
    min-width: min(320px, 92vw);
  }
}

.quote-shell {
  display: grid;
  gap: 14px;
}

body.quote-modal-open {
  overflow: hidden;
}

.quote-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(20, 90, 199, 0.12), rgba(20, 90, 199, 0)),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.quote-hero h1 {
  margin-bottom: 6px;
}

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

.quote-package-card {
  width: 100%;
  border: 1px solid #d5e0ed;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 132px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.quote-package-card:hover {
  border-color: #93b5df;
  box-shadow: 0 6px 20px rgba(16, 42, 67, 0.08);
  transform: translateY(-1px);
}

.quote-package-card.is-active {
  border-color: #145ac7;
  box-shadow: 0 0 0 2px rgba(20, 90, 199, 0.12);
}

.quote-package-title {
  font-weight: 700;
  color: #0e2438;
  font-size: 0.97rem;
  line-height: 1.32;
}

.quote-package-text {
  color: #4a5d72;
  font-size: 0.87rem;
  line-height: 1.42;
}

.quote-package-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ccd9e8;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #123459;
  background: #f5f9ff;
  width: fit-content;
}

.quote-package-card.is-active .quote-package-cta {
  border-color: #145ac7;
  color: #ffffff;
  background: #145ac7;
}

.quote-form {
  display: grid;
  gap: 12px;
}

.quote-form-head {
  display: grid;
  gap: 6px;
}

.quote-form-head label {
  font-weight: 600;
  color: #243b53;
}

.quote-template-select {
  border: 1px solid #c8d5e4;
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.95rem;
}

.quote-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  border: 1px solid #c8d5e4;
  border-radius: 10px;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 0.95rem;
  font-family: inherit;
}

.quote-form textarea {
  min-height: 108px;
  resize: vertical;
}

.quote-template-fields {
  display: grid;
  gap: 8px;
  background: #fbfdff;
}

.quote-template-fields label {
  font-weight: 600;
  color: #2d465f;
}

.quote-captcha-row {
  display: grid;
  grid-template-columns: minmax(170px, 260px);
}

.quote-submit-btn {
  border: 1px solid #145ac7;
  border-radius: 10px;
  background: #145ac7;
  color: #fff;
  min-height: 42px;
  padding: 9px 14px;
  font-size: 0.96rem;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
}

.quote-submit-btn:hover {
  opacity: 0.92;
}

.quote-form-open-wrap {
  margin: 2px 0 4px 0;
}

.quote-open-btn {
  border: 1px solid #145ac7;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a67df 0%, #145ac7 100%);
  color: #ffffff;
  min-height: 42px;
  padding: 9px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

.quote-open-btn:hover {
  opacity: .93;
}

.quote-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
}

.quote-modal[hidden] {
  display: none !important;
}

.quote-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 35, 0.55);
  backdrop-filter: blur(2px);
}

.quote-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 14px;
  box-shadow: 0 14px 42px rgba(6, 24, 44, 0.26);
}

.quote-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.quote-modal-head h2 {
  margin: 0;
  font-size: 1.2rem;
}

.quote-modal-close {
  border: 1px solid #d2deec;
  border-radius: 10px;
  background: #fff;
  color: #20364f;
  min-width: 38px;
  min-height: 38px;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.quote-modal-close:hover {
  background: #f3f8ff;
}

.quote-modal-subtitle {
  margin-top: 0;
  margin-bottom: 10px;
}

.top10-category-block {
  margin-bottom: 12px;
}

.top10-category-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.top10-category-list li {
  display: grid;
  gap: 4px;
}

.top10-row-main a {
  font-weight: 600;
}

.top10-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
}

.top10-make-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #145ac7;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a67df 0%, #145ac7 100%);
  color: #fff;
  min-height: 34px;
  padding: 6px 12px;
  font-weight: 600;
  text-decoration: none;
}

.top10-make-quote-btn:hover {
  opacity: .92;
  color: #fff;
}

.dentists-top10-block {
  margin: 12px 0;
}

.dentists-top-cities {
  margin: 10px 0 12px 0;
}

.dentists-city-chips a.is-active {
  background: #145ac7;
  border-color: #145ac7;
  color: #fff;
}

.dentists-top10-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dentists-top10-card {
  border: 1px solid #dbe7f4;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.dentists-top10-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .86rem;
  color: #0b4a6f;
  background: #e6f2fb;
  margin-bottom: 6px;
}

.dentists-top10-card h3 {
  margin: 0 0 8px 0;
  font-size: 1.02rem;
}

.dentists-top10-meta {
  margin: 0 0 6px 0;
}

.dentists-top10-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0 0;
}

.dentists-top10-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #145ac7;
  border-radius: 10px;
  min-height: 34px;
  padding: 6px 12px;
  font-weight: 600;
  background: #fff;
  color: #145ac7;
  text-decoration: none;
}

.dentists-top10-view-btn:hover {
  background: #f3f8ff;
  text-decoration: none;
}

.dentists-top10-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d12d2d;
  border-radius: 10px;
  min-height: 34px;
  padding: 6px 12px;
  font-weight: 700;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  text-decoration: none;
}

.dentists-top10-quote-btn:hover {
  opacity: .92;
  color: #fff;
  text-decoration: none;
}

@media (max-width: 860px) {
  .dentists-top10-grid {
    grid-template-columns: 1fr;
  }
}

.biz-quote-inline {
  margin-top: 14px;
}

.biz-quote-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.biz-quote-open-btn {
  border: 1px solid #d12d2d;
  border-radius: 10px;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.biz-quote-open-btn:hover {
  opacity: .92;
}

.biz-book-open-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0d5c96;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a7ec8 0%, #0f66ac 100%);
  color: #fff;
  min-height: 38px;
  padding: 7px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.biz-book-open-btn:hover {
  opacity: .92;
  color: #fff;
  text-decoration: none;
}

.biz-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 125;
  display: grid;
  place-items: center;
  padding: 14px;
}

.biz-quote-modal[hidden] {
  display: none !important;
}

.biz-quote-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 20, 35, 0.58);
  backdrop-filter: blur(2px);
}

.biz-quote-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 28px);
  overflow: auto;
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(6, 24, 44, 0.28);
}

.biz-quote-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.biz-quote-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.biz-quote-close {
  border: 1px solid #d2deec;
  border-radius: 10px;
  background: #fff;
  color: #20364f;
  min-width: 36px;
  min-height: 36px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.biz-quote-close:hover {
  background: #f3f8ff;
}

.biz-quote-form {
  display: grid;
  gap: 8px;
}

.biz-quote-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.biz-quote-form input,
.biz-quote-form select,
.biz-quote-form textarea {
  border: 1px solid #c8d5e4;
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 10px;
  font-size: 0.94rem;
  font-family: inherit;
}

.biz-quote-form textarea {
  min-height: 92px;
  resize: vertical;
}

.biz-quote-form label {
  font-weight: 600;
  color: #2d465f;
}

.biz-quote-captcha {
  display: grid;
  grid-template-columns: auto minmax(84px, 120px);
  gap: 8px;
  align-items: center;
}

.biz-quote-submit {
  border: 1px solid #d12d2d;
  border-radius: 10px;
  background: #dc2626;
  color: #fff;
  min-height: 40px;
  padding: 8px 14px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}

.biz-quote-submit:hover {
  opacity: .92;
}

.review-lead-section {
  border: 1px solid #dbe7f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.review-empty-state {
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 10px;
}

.review-proof-card {
  border: 1px solid #e3edf8;
  border-radius: 12px;
}

.review-lead-layout {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px;
}

.review-lead-copy {
  border: 1px solid #dce8f5;
  border-radius: 12px;
  background: #f3f8ff;
  padding: 12px;
}

.review-trust-chips {
  margin-top: 8px;
}

.review-sla-pill {
  margin-top: 10px;
  background: #fff;
  border: 1px solid #d7e5f4;
  border-radius: 999px;
  padding: 6px 10px;
  display: inline-flex;
}

.review-lead-form-card {
  border: 1px solid #d6e4f3;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.review-form-title {
  margin: 0 0 8px 0;
}

.review-lead-form {
  display: grid;
  gap: 8px;
}

.review-lead-form input,
.review-lead-form select,
.review-lead-form textarea {
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #c9d9ea;
  padding: 8px 10px;
}

.review-lead-form textarea {
  min-height: 96px;
}

.review-lead-submit {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #d13030;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.review-lead-submit:hover {
  opacity: 0.93;
}

.listing-community-share {
  margin-top: 12px;
  border: 1px solid #dbe7f4;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.listing-community-share h2 {
  margin-bottom: 4px;
}

.listing-community-share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.listing-community-facebook {
  border-color: #1b53bd;
  background: #1877f2;
  color: #fff;
}

.listing-community-facebook:hover {
  color: #fff;
}

.listing-community-copy {
  border: 1px solid #c6d7ea;
  background: #fff;
  color: #12385d;
}

.listing-community-copy-msg {
  margin: 6px 0 0 0;
  font-size: 0.88rem;
}

.pilot-growth-page .pilot-growth-intro {
  margin-bottom: 12px;
}

.pilot-growth-page .pilot-growth-profile-form {
  border: 1px solid #d7e4f2;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.pilot-growth-page .pilot-growth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pilot-growth-page .pilot-growth-grid .full {
  grid-column: 1 / -1;
}

.pilot-growth-page .pilot-growth-profile-form input,
.pilot-growth-page .pilot-growth-profile-form select,
.pilot-growth-page .pilot-growth-profile-form textarea {
  min-height: 38px;
  border: 1px solid #c8d8ea;
  border-radius: 10px;
  padding: 8px 10px;
}

.pilot-growth-page .pilot-growth-profile-form textarea {
  min-height: 84px;
}

.pilot-growth-page .pilot-growth-flag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pilot-growth-page .pilot-growth-save {
  margin-top: 6px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid #0f5b9c;
  background: linear-gradient(180deg, #1b73c0 0%, #0f5b9c 100%);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.pilot-growth-page .qa-form {
  display: grid;
  gap: 6px;
}

@media (max-width: 980px) {
  .quote-package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .quote-package-grid {
    grid-template-columns: 1fr;
  }

  .quote-contact-grid {
    grid-template-columns: 1fr;
  }

  .quote-captcha-row {
    grid-template-columns: 1fr;
  }

  .quote-submit-btn {
    width: 100%;
  }

  .quote-open-btn {
    width: 100%;
  }

  .quote-modal {
    padding: 10px;
  }

  .quote-modal-dialog {
    max-height: calc(100vh - 20px);
  }

  .biz-quote-grid {
    grid-template-columns: 1fr;
  }

  .biz-quote-captcha {
    grid-template-columns: 1fr;
  }

  .biz-quote-submit {
    width: 100%;
  }

  .review-lead-layout {
    grid-template-columns: 1fr;
  }

  .pilot-growth-page .pilot-growth-grid {
    grid-template-columns: 1fr;
  }
}
