:root {
  --green-950: #073e2d;
  --green-900: #09523a;
  --green-800: #0f6848;
  --green-700: #16805a;
  --green-100: #dff3eb;
  --green-50: #f1faf6;
  --gold-600: #d99311;
  --gold-500: #f0ad23;
  --gold-100: #fff2cf;
  --ink-950: #12221c;
  --ink-800: #263a32;
  --ink-600: #5c6f67;
  --ink-500: #76867f;
  --line: #dde7e2;
  --surface: #ffffff;
  --surface-soft: #f6f9f7;
  --danger: #ba3b3b;
  --shadow-sm: 0 8px 24px rgba(12, 64, 45, 0.08);
  --shadow-md: 0 18px 50px rgba(12, 64, 45, 0.13);
  --shadow-lg: 0 30px 80px rgba(5, 45, 31, 0.18);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--surface);
  color: var(--ink-950);
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

body.dialog-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

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

::selection {
  background: var(--gold-100);
  color: var(--green-950);
}

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

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

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  right: 10px;
  transform: translateY(-150%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--green-950);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(240, 173, 35, 0.42);
  outline-offset: 2px;
}

.button-primary {
  background: var(--green-800);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 104, 72, 0.18);
}

.button-primary:hover {
  background: var(--green-900);
  box-shadow: 0 14px 28px rgba(15, 104, 72, 0.24);
}

.button-accent {
  background: var(--gold-500);
  color: #3b2b06;
  box-shadow: 0 10px 22px rgba(217, 147, 17, 0.22);
}

.button-accent:hover {
  background: #f6bb3c;
}

.button-secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--green-900);
}

.button-secondary:hover {
  border-color: #a9c7ba;
  background: var(--green-50);
}

.button-large {
  min-height: 54px;
  padding-inline: 28px;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgba(221, 231, 226, 0.85);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 15px;
  background: var(--green-800);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  box-shadow: 0 9px 21px rgba(15, 104, 72, 0.22);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 900;
}

.brand-copy small {
  color: var(--ink-600);
  font-size: 11px;
  font-weight: 600;
}

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

.desktop-nav a {
  position: relative;
  color: var(--ink-800);
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  width: 0;
  height: 3px;
  border-radius: 4px;
  background: var(--gold-500);
  content: "";
  transition: width 160ms ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.header-action {
  min-height: 43px;
  padding-inline: 17px;
  font-size: 13px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 84px;
  background: linear-gradient(135deg, #f1faf6 0%, #fbfdfc 55%, #fff7e5 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 13% 21%, rgba(240, 173, 35, 0.24) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 18%, rgba(15, 104, 72, 0.17) 0 4px, transparent 5px),
    linear-gradient(rgba(15, 104, 72, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 104, 72, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 38px 38px, 38px 38px;
}

.hero::before,
.hero::after {
  position: absolute;
  border-radius: 50%;
  content: "";
  filter: blur(2px);
}

.hero::before {
  width: 340px;
  height: 340px;
  top: -180px;
  right: -100px;
  background: rgba(15, 104, 72, 0.08);
}

.hero::after {
  width: 280px;
  height: 280px;
  bottom: -180px;
  left: -100px;
  background: rgba(240, 173, 35, 0.12);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: center;
  gap: 72px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1px;
}

.eyebrow {
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid #cce7dc;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.eyebrow span {
  color: var(--gold-500);
  font-size: 10px;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 5.3vw, 71px);
  line-height: 1.25;
  letter-spacing: -2.3px;
  font-weight: 900;
}

.hero h1 em {
  color: var(--green-800);
  font-style: normal;
}

.hero-copy > p {
  max-width: 650px;
  margin: 20px 0 28px;
  color: var(--ink-600);
  font-size: 18px;
}

.hero-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  padding: 8px;
  border: 1px solid #d4e3dc;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.search-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--green-700);
  font-size: 28px;
  font-weight: 900;
}

.hero-search input {
  width: 100%;
  min-width: 0;
  height: 48px;
  border: 0;
  outline: 0;
  color: var(--ink-950);
  font-size: 16px;
}

.hero-search input::placeholder,
.compact-search input::placeholder,
.field input::placeholder,
.field textarea::placeholder {
  color: #97a49e;
}

.quick-searches {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--ink-500);
  font-size: 12px;
}

.quick-searches button {
  padding: 4px 10px;
  border: 1px solid #d8e5df;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--green-800);
  font-weight: 800;
}

.quick-searches button:hover {
  border-color: var(--gold-500);
  background: var(--gold-100);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 30px;
}

.hero-trust div {
  position: relative;
  display: flex;
  flex-direction: column;
}

.hero-trust div:not(:last-child)::after {
  position: absolute;
  top: 5px;
  left: -16px;
  width: 1px;
  height: 35px;
  background: #d3e0da;
  content: "";
}

.hero-trust strong {
  color: var(--green-900);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 900;
}

.hero-trust span {
  color: var(--ink-500);
  font-size: 11px;
}

.hero-panel {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}

.panel-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--gold-500);
  color: #3f2c02;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(217, 147, 17, 0.25);
}

.action-card {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 16px;
  padding: 22px;
  border-radius: 21px;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.action-card + .action-card {
  margin-top: 14px;
}

.action-card-search {
  border: 1px solid #cfe8de;
  background: var(--green-50);
}

.action-card-register {
  border: 1px solid #f0dfb3;
  background: #fffaf0;
}

.action-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #fff;
  font-size: 29px;
  box-shadow: 0 7px 18px rgba(32, 66, 53, 0.08);
}

.action-card h2 {
  margin: 0 0 5px;
  font-size: 20px;
  line-height: 1.4;
}

.action-card p {
  margin: 0 0 11px;
  color: var(--ink-600);
  font-size: 13px;
  line-height: 1.75;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-800);
  font-weight: 900;
}

.text-button span {
  transition: transform 160ms ease;
}

.text-button:hover span {
  transform: translateX(-4px);
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 17px;
  color: var(--ink-500);
  font-size: 11px;
  font-weight: 700;
}

.section {
  padding: 88px 0;
}

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

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 5px 0 5px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.35;
  letter-spacing: -1px;
}

.section-heading p {
  margin: 0;
  color: var(--ink-600);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  position: relative;
  min-height: 148px;
  padding: 19px 14px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  text-align: center;
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.category-card:hover,
.category-card.active {
  transform: translateY(-4px);
  border-color: #9ecab8;
  box-shadow: var(--shadow-sm);
}

.category-card.active {
  background: var(--green-50);
}

.category-card .category-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 17px;
  background: var(--green-50);
  font-size: 25px;
}

.category-card:nth-child(3n + 2) .category-icon {
  background: #fff7e6;
}

.category-card:nth-child(3n + 3) .category-icon {
  background: #eef4ff;
}

.category-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

.category-card small {
  color: var(--ink-500);
  font-size: 10px;
}

.providers-heading {
  margin-bottom: 22px;
}

.view-controls {
  display: inline-flex;
  gap: 7px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-500);
  font-size: 20px;
}

.icon-button.active {
  background: #fff;
  color: var(--green-800);
  box-shadow: 0 3px 9px rgba(16, 61, 44, 0.09);
}

.results-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px auto;
  gap: 10px;
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.compact-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid #d8e4df;
  border-radius: 12px;
  background: #fff;
}

.compact-search span {
  color: var(--green-700);
  font-size: 22px;
}

.compact-search input,
.results-toolbar select {
  width: 100%;
  min-width: 0;
  height: 45px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink-800);
  font-size: 13px;
}

.results-toolbar select {
  padding: 0 12px;
  border: 1px solid #d8e4df;
  border-radius: 12px;
  background: #fff;
}

.location-filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 45px;
  padding: 0 14px;
  border: 1px solid #cce1d8;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-800);
  font-size: 12px;
  font-weight: 900;
}

.active-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
  padding: 10px 15px;
  border: 1px solid #cfe6dc;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-900);
  font-size: 13px;
  font-weight: 700;
}

.active-filter[hidden] {
  display: none;
}

.active-filter button {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 12px;
  font-weight: 900;
}

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

.providers-grid.list-view {
  grid-template-columns: 1fr;
}

.provider-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 61, 44, 0.055);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.provider-card:hover {
  transform: translateY(-4px);
  border-color: #b8d4c8;
  box-shadow: var(--shadow-md);
}

.providers-grid.list-view .provider-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 300px;
  align-items: center;
  padding: 16px;
}

.provider-card-top {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 20px 13px;
}

.providers-grid.list-view .provider-card-top {
  display: contents;
}

.provider-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 18px;
  background: var(--green-50);
  font-size: 27px;
}

.provider-heading {
  min-width: 0;
  flex: 1;
}

.provider-heading h3 {
  overflow: hidden;
  margin: 0 0 3px;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.45;
}

.provider-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
}

.favorite-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink-500);
  font-size: 20px;
}

.favorite-button.active {
  border-color: #f0c5c5;
  background: #fff3f3;
  color: #d34a4a;
}

.provider-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 20px 18px;
}

.providers-grid.list-view .provider-body {
  padding: 0 18px;
}

.provider-description {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 13px;
  overflow: hidden;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.provider-meta {
  display: grid;
  gap: 7px;
  margin-bottom: 13px;
  color: var(--ink-600);
  font-size: 11px;
}

.provider-meta span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.provider-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 25px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-600);
  font-size: 9px;
  font-weight: 800;
}

.badge.verified {
  background: var(--green-100);
  color: var(--green-800);
}

.badge.pending {
  background: var(--gold-100);
  color: #755000;
}

.badge.demo {
  background: #eef1f4;
  color: #5f6871;
}

.provider-actions {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  padding: 13px;
  border-top: 1px solid #edf2ef;
  background: #fbfcfb;
}

.providers-grid.list-view .provider-actions {
  border-top: 0;
  background: transparent;
}

.provider-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--green-900);
  font-size: 11px;
  font-weight: 900;
}

.provider-action.call {
  border-color: var(--green-800);
  background: var(--green-800);
  color: #fff;
}

.provider-action.whatsapp {
  border-color: #bfe3d0;
  background: #ebf9f2;
  color: #167649;
}

.provider-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.empty-state {
  padding: 65px 20px;
  border: 1px dashed #c6d8d0;
  border-radius: 22px;
  background: var(--surface-soft);
  text-align: center;
}

.empty-state[hidden] {
  display: none;
}

.empty-icon {
  font-size: 45px;
}

.empty-state h3 {
  margin: 10px 0 4px;
  font-size: 22px;
}

.empty-state p {
  margin: 0 auto 20px;
  color: var(--ink-600);
}

.section-green {
  position: relative;
  overflow: hidden;
  background: var(--green-950);
  color: #fff;
}

.section-green::after {
  position: absolute;
  inset: auto -120px -220px auto;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.02);
  content: "";
}

.light-heading .section-kicker {
  color: #8ed8bb;
}

.light-heading h2 {
  color: #fff;
}

.steps-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.steps-grid article {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.055);
}

.step-number {
  position: absolute;
  top: 18px;
  left: 20px;
  color: rgba(255, 255, 255, 0.16);
  font-size: 38px;
  font-weight: 900;
}

.step-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--gold-500);
  color: #3a2904;
  font-size: 26px;
  font-weight: 900;
}

.steps-grid h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.steps-grid p {
  margin: 0;
  color: #bdd1c9;
  font-size: 13px;
}

.register-cta {
  padding-block: 72px;
}

.cta-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 35px;
  border: 1px solid #d3e8df;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--green-50), #fff9ec);
}

.cta-icon {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 23px;
  background: #fff;
  font-size: 35px;
  box-shadow: var(--shadow-sm);
}

.cta-card h2 {
  margin: 4px 0;
  font-size: clamp(24px, 3vw, 36px);
}

.cta-card p {
  margin: 0;
  color: var(--ink-600);
}

.site-footer {
  padding: 64px 0 0;
  background: #0b251c;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, 1fr);
  gap: 45px;
  padding-bottom: 50px;
}

.footer-brand .brand-mark {
  background: #fff;
  color: var(--green-900);
  box-shadow: none;
}

.footer-brand .brand-copy small {
  color: #9bb2a9;
}

.footer-about > p,
.footer-grid > div > p {
  color: #9bb2a9;
  font-size: 12px;
}

.footer-grid h3 {
  margin: 3px 0 14px;
  font-size: 14px;
}

.footer-grid a,
.footer-grid button:not(.footer-suggestion) {
  display: block;
  margin: 9px 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9bb2a9;
  font-size: 12px;
  text-align: right;
}

.footer-grid a:hover,
.footer-grid button:hover {
  color: #fff;
}

.footer-suggestion {
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 67px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #849c92;
  font-size: 11px;
}

.mobile-nav {
  display: none;
}

.app-dialog {
  width: min(840px, calc(100% - 28px));
  max-height: min(90vh, 920px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 27px;
  background: #fff;
  color: var(--ink-950);
  box-shadow: var(--shadow-lg);
}

.app-dialog::backdrop {
  background: rgba(2, 28, 19, 0.65);
  backdrop-filter: blur(5px);
}

.dialog-shell {
  max-height: inherit;
  overflow-y: auto;
}

.dialog-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 30px 21px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.dialog-header h2 {
  margin: 3px 0;
  font-size: 27px;
}

.dialog-header p {
  margin: 0;
  color: var(--ink-600);
  font-size: 12px;
}

.dialog-close {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 39px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--ink-600);
  font-size: 25px;
}

.form-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 18px 30px 0;
}

.form-progress span {
  height: 4px;
  border-radius: 999px;
  background: #e9efec;
}

.form-progress span.active {
  background: var(--green-700);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 25px 30px 10px;
}

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

.field > span,
.service-options > span {
  color: var(--ink-800);
  font-size: 12px;
  font-weight: 800;
}

.field b,
.consent b {
  color: var(--danger);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid #d7e2dd;
  border-radius: 12px;
  background: #fff;
  color: var(--ink-950);
  outline: 0;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input,
.field select {
  height: 48px;
  padding: 0 13px;
}

.field textarea {
  resize: vertical;
  min-height: 105px;
  padding: 12px 13px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(22, 128, 90, 0.09);
}

.field input:user-invalid,
.field select:user-invalid {
  border-color: #e29a9a;
}

.field small {
  color: var(--ink-500);
  font-size: 9px;
}

.full-width {
  grid-column: 1 / -1;
}

.location-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 14px;
  border: 1px dashed #bed6cb;
  border-radius: 13px;
  background: var(--green-50);
}

.location-box div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.location-box strong {
  color: var(--green-900);
  font-size: 12px;
}

.location-box small {
  color: var(--ink-500);
  font-size: 9px;
}

.location-field > input {
  margin-top: 3px;
}

.service-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.service-options > span {
  grid-column: 1 / -1;
}

.check-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-soft);
  cursor: pointer;
}

.check-card > span {
  font-size: 23px;
}

.check-card div {
  display: flex;
  flex-direction: column;
}

.check-card strong {
  font-size: 11px;
}

.check-card small {
  color: var(--ink-500);
  font-size: 9px;
}

.check-card input,
.consent input {
  width: 17px;
  height: 17px;
  accent-color: var(--green-700);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px;
  border-radius: 12px;
  background: #fffaf0;
  color: var(--ink-600);
  font-size: 11px;
}

.consent input {
  margin-top: 4px;
}

.dialog-actions {
  position: sticky;
  z-index: 3;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 30px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
}

.button-loader {
  width: 19px;
  height: 19px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.compact-dialog {
  min-height: 220px;
}

.info-dialog {
  width: min(570px, calc(100% - 28px));
}

#infoDialogContent {
  padding: 22px 30px;
  color: var(--ink-600);
  font-size: 13px;
}

#infoDialogContent h3 {
  color: var(--ink-950);
}

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

.info-form input,
.info-form textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.toast-region {
  position: fixed;
  z-index: 3000;
  right: 20px;
  bottom: 24px;
  display: grid;
  width: min(380px, calc(100% - 40px));
  gap: 10px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 15px;
  border: 1px solid #cfe1d9;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-md);
  animation: toast-in 220ms ease both;
}

.toast.success {
  border-right: 4px solid var(--green-700);
}

.toast.error {
  border-right: 4px solid var(--danger);
}

.toast strong {
  display: block;
  margin-bottom: 2px;
  font-size: 12px;
}

.toast p {
  margin: 0;
  color: var(--ink-600);
  font-size: 10px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .desktop-nav {
    display: none;
  }

  .hero-grid {
    gap: 36px;
  }

  .categories-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

  .results-toolbar {
    grid-template-columns: minmax(220px, 1fr) 170px 170px;
  }

  .location-filter {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1.5fr repeat(2, 1fr);
  }

  .footer-grid > div:last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    padding-bottom: 76px;
  }

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

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 41px;
    height: 41px;
    flex-basis: 41px;
    border-radius: 13px;
    font-size: 23px;
  }

  .brand-copy strong {
    font-size: 14px;
  }

  .header-action {
    display: none;
  }

  .hero {
    padding: 47px 0 55px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    letter-spacing: -1.4px;
  }

  .hero-panel {
    max-width: 600px;
  }

  .section {
    padding: 65px 0;
  }

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

  .providers-grid.list-view .provider-card {
    display: flex;
    padding: 0;
  }

  .providers-grid.list-view .provider-card-top {
    display: flex;
  }

  .providers-grid.list-view .provider-body {
    padding: 0 20px 18px;
  }

  .providers-grid.list-view .provider-actions {
    border-top: 1px solid #edf2ef;
    background: #fbfcfb;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    grid-template-columns: auto 1fr;
  }

  .cta-card .button {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-about {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .mobile-nav {
    position: fixed;
    z-index: 1200;
    right: 10px;
    bottom: 10px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-height: 66px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 15px 45px rgba(7, 62, 45, 0.22);
    backdrop-filter: blur(16px);
  }

  .mobile-nav a,
  .mobile-nav button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    padding: 4px 2px;
    border: 0;
    background: transparent;
    color: var(--ink-600);
    font-size: 9px;
    font-weight: 800;
  }

  .mobile-nav span {
    font-size: 20px;
    line-height: 1.2;
  }

  .mobile-nav .mobile-add {
    margin-top: -23px;
    color: var(--green-900);
  }

  .mobile-nav .mobile-add span {
    display: grid;
    place-items: center;
    width: 47px;
    height: 47px;
    border: 5px solid #fff;
    border-radius: 50%;
    background: var(--gold-500);
    color: #3c2b05;
    box-shadow: 0 7px 20px rgba(217, 147, 17, 0.3);
    font-size: 25px;
  }
}

@media (max-width: 620px) {
  .hero h1 {
    font-size: clamp(38px, 12vw, 51px);
    line-height: 1.28;
  }

  .hero-copy > p {
    font-size: 15px;
  }

  .hero-search {
    grid-template-columns: auto 1fr;
  }

  .hero-search .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .quick-searches span {
    width: 100%;
  }

  .hero-trust {
    justify-content: space-between;
    gap: 15px;
  }

  .hero-trust div:not(:last-child)::after {
    left: -8px;
  }

  .hero-panel {
    padding: 18px;
    border-radius: 24px;
  }

  .action-card {
    grid-template-columns: 54px 1fr;
    padding: 17px;
  }

  .action-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    font-size: 23px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 25px;
  }

  .section-heading .button {
    width: 100%;
  }

  .categories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .category-card {
    min-height: 131px;
    padding: 15px 9px;
  }

  .category-card .category-icon {
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .providers-heading {
    flex-direction: row;
    align-items: flex-end;
  }

  .providers-heading p,
  .providers-heading .section-kicker {
    display: none;
  }

  .results-toolbar {
    grid-template-columns: 1fr 1fr;
    padding: 9px;
  }

  .compact-search,
  .location-filter {
    grid-column: 1 / -1;
  }

  .results-toolbar select {
    font-size: 11px;
  }

  .providers-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    grid-template-columns: 1fr;
    padding: 25px;
    text-align: center;
  }

  .cta-icon {
    margin-inline: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-about,
  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 14px;
  }

  .app-dialog {
    width: 100%;
    max-width: none;
    max-height: 94vh;
    margin: auto 0 0;
    border-radius: 24px 24px 0 0;
  }

  .dialog-header {
    padding: 21px 18px 16px;
  }

  .dialog-header h2 {
    font-size: 23px;
  }

  .form-progress {
    padding-inline: 18px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    padding: 21px 18px 8px;
  }

  .full-width {
    grid-column: auto;
  }

  .service-options {
    grid-template-columns: 1fr;
  }

  .service-options > span {
    grid-column: auto;
  }

  .location-box {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-actions {
    padding: 14px 18px;
  }

  .dialog-actions .button {
    flex: 1;
  }

  #infoDialogContent {
    padding: 18px;
  }

  .toast-region {
    right: 14px;
    bottom: 88px;
    width: calc(100% - 28px);
  }
}

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