:root {
  --blue: #1746a2;
  --green: #137a4b;
  --ink: #152033;
  --muted: #667085;
  --line: #d8deea;
  --soft: #f5f7fb;
  --white: #ffffff;
  --yellow: #f6c945;
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

.site-header {
  background: linear-gradient(135deg, #1746a2, #137a4b);
  color: var(--white);
  padding: 34px 20px 72px;
}

.site-header > div,
main {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  object-fit: cover;
  background: var(--white);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 12px;
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.02;
}

h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: #e9f1ff;
  font-size: 18px;
  line-height: 1.55;
}

main {
  padding: 0 20px 40px;
}

.search-panel {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: -42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
}

.filter-field {
  min-width: 0;
}

.category-field {
  grid-column: span 3;
}

.area-field {
  grid-column: span 2;
}

.field-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: none;
}

.optional-text {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 11px 10px;
}

.area-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  max-height: 84px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  padding: 8px;
}

.category-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
  max-height: 178px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  padding: 8px;
}

.category-options > .category-chip {
  grid-column: 1 / -1;
  width: fit-content;
}

.category-group {
  min-width: 0;
}

.category-group strong {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-group-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.category-chip {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  text-align: left;
  padding: 7px 9px;
}

.category-chip.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.area-chip {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  padding: 7px 9px;
}

.area-chip.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.all-area-chip {
  border-color: #b6e3c4;
  color: var(--green);
  font-weight: 900;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

button,
.call-link,
.whatsapp-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 13px;
  text-decoration: none;
}

.whatsapp-link {
  background: var(--green);
}

.secondary-link {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--ink);
}

.search-button {
  align-self: end;
}

.result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 14px;
}

.result-head .eyebrow {
  color: var(--green);
}

#resultCount {
  color: var(--muted);
  font-weight: 800;
}

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

.service-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.meta {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.45;
}

.availability-line {
  display: inline-flex;
  margin: 0 0 10px;
  border: 1px solid #b6e3c4;
  border-radius: 999px;
  background: #ecfdf3;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  padding: 7px 10px;
}

.description {
  min-height: 44px;
  margin-bottom: 14px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.secondary-button {
  background: #eef4ff;
  color: var(--blue);
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  padding: 24px;
  text-align: center;
}

.disclaimer-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  margin-top: 18px;
  border: 1px solid #f3c38b;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ed 0%, #ffffff 58%, #eefdf5 100%);
  box-shadow: 0 14px 34px rgba(21, 32, 51, 0.08);
  padding: 18px;
}

.disclaimer-panel::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow), var(--green), var(--blue));
  content: "";
}

.disclaimer-panel h2 {
  color: #9a3412;
}

.disclaimer-summary {
  margin: 10px 0 0;
  color: #7c2d12;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

.disclaimer-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 12px;
  border: 1px solid rgba(23, 70, 162, 0.18);
  background: linear-gradient(135deg, #1746a2, #137a4b);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(23, 70, 162, 0.2);
  font-weight: 900;
}

.disclaimer-link-button:hover {
  transform: translateY(-1px);
}

.disclaimer-panel ul {
  margin: 0;
  border: 1px solid rgba(154, 52, 18, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #7c2d12;
  font-weight: 700;
  line-height: 1.55;
  padding: 14px 16px 14px 34px;
}

.download-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
}

.download-panel .eyebrow {
  color: var(--green);
}

.download-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

dialog {
  width: min(620px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 24px 70px rgba(21, 32, 51, 0.34);
}

dialog::backdrop {
  background: rgba(21, 32, 51, 0.7);
}

.dialog-head,
.dialog-body {
  padding: 18px;
}

.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.dialog-head .eyebrow {
  color: var(--green);
}

.icon-button {
  min-width: 40px;
  min-height: 40px;
  background: #eef4ff;
  color: var(--blue);
}

.detail-row {
  margin-bottom: 12px;
}

.detail-row strong {
  display: block;
  margin-bottom: 4px;
}

.consent-intro {
  margin: 14px 0 12px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

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

.consent-stepbar span {
  border: 1px solid #d7e4f7;
  border-radius: 8px;
  background: #f6f9ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  padding: 9px 10px;
  text-align: center;
}

.consent-disclaimer-list {
  margin: 14px 0;
  border: 1px solid #f3c38b;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ed, #ffffff);
  color: #7c2d12;
  font-weight: 700;
  line-height: 1.55;
  padding: 14px 18px 14px 34px;
}

.field-hint {
  margin: 10px 0 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  padding: 10px 12px;
}

.field-hint.required {
  background: #fff7ed;
  color: #9a3412;
}

.consent-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  text-transform: none;
}

.consent-check input {
  width: auto;
  margin-top: 2px;
}

.consent-check span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.consent-check:has(input:not(:disabled):checked) {
  border-color: rgba(19, 122, 75, 0.35);
  background: #ecfdf3;
}

@media (max-width: 900px) {
  .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-field,
  .area-field {
    grid-column: span 2;
  }

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

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

@media (max-width: 620px) {
  .site-header {
    padding-top: 26px;
  }

  .search-panel,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .category-field,
  .area-field {
    grid-column: span 1;
  }

  .category-group-list {
    grid-template-columns: 1fr;
  }

  .result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .disclaimer-panel {
    grid-template-columns: 1fr;
  }

  .download-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}
