:root {
  --ink: #202b2f;
  --muted: #697685;
  --line: #dfd3bf;
  --paper: #eee8d9;
  --panel: #fffdf8;
  --tile: #f8f4ec;
  --green: #1f5969;
  --green-dark: #164653;
  --blue: #dfecef;
  --gold: #b8904e;
  --rose: #bd6144;
  --focus: #1f5969;
  --shadow: 0 18px 48px rgba(57, 46, 28, 0.12);
  --category-1: #1f5969;
  --category-2: #b8904e;
  --category-3: #bd6144;
  --category-4: #6d7f75;
  --category-5: #8a6f45;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body-font: var(--font);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body-font);
  line-height: 1.5;
}

h1,
h2,
h3,
.brand-mark__text {
  font-family: var(--font);
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: end;
  padding: 36px 0 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 5vw, 4.75rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  line-height: 1.08;
}

h3 {
  margin-bottom: 0;
  font-size: 1rem;
}

.intro__lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.brand-mark {
  display: flex;
  min-height: 96px;
  align-items: center;
  margin-bottom: 28px;
}

.brand-mark__text {
  color: var(--green-dark);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand-mark img {
  display: block;
  width: auto;
  max-width: min(520px, 100%);
  max-height: 150px;
}

.intro__panel,
.section-band,
.confirmation {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intro__panel {
  padding: 22px;
}

.intro__panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.summary-count {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--green-dark);
  font-weight: 800;
}

.partner-form {
  display: grid;
  gap: 18px;
}

.section-band {
  padding: clamp(18px, 3vw, 30px);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.text-button {
  min-height: 40px;
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-weight: 800;
}

.service-groups {
  display: grid;
  gap: 28px;
}

.service-group {
  display: grid;
  gap: 14px;
}

.service-group__title {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--green-dark);
  font-size: 1.1rem;
}

.service-group__title svg {
  color: var(--category-color);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.service-tile {
  position: relative;
  display: grid;
  min-height: 150px;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tile);
  color: var(--ink);
  cursor: pointer;
  text-align: center;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background 160ms ease;
}

.service-tile:hover,
.service-tile:focus-visible {
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(36, 88, 74, 0.16);
  outline: 0;
  transform: translateY(-1px);
}

.service-tile.is-selected {
  border-color: var(--green);
  background: color-mix(in srgb, var(--category-color) 10%, var(--tile));
  box-shadow: inset 0 0 0 2px rgba(36, 88, 74, 0.2);
}

.service-tile__icon {
  display: inline-grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--category-color) 14%, var(--panel));
  color: var(--category-color);
}

.service-tile__icon svg {
  width: 38px;
  height: 38px;
}

.service-tile__name {
  display: block;
  font-weight: 850;
  line-height: 1.15;
}

.service-tile__text {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.location-tag {
  display: inline-flex;
  width: fit-content;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 3px 10px 4px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--category-color) 10%, var(--panel));
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 800;
}

.details,
.contact {
  box-shadow: none;
}

.selected-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.selected-panel__header {
  display: flex;
  min-height: 54px;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--green) 6%, var(--panel));
}

.selected-panel__header span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.selected-list {
  display: grid;
  gap: 0;
}

.empty-state {
  margin: 0;
  padding: 18px 16px;
  color: var(--muted);
}

.service-note {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.service-note:first-child {
  border-top: 0;
}

.service-note strong {
  line-height: 1.25;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.preference legend {
  color: var(--green-dark);
  font-weight: 850;
}

.field--wide {
  margin-top: 18px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #bdc9c0;
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

input {
  min-height: 48px;
  padding: 0 13px;
}

textarea {
  min-height: 96px;
  padding: 12px 13px;
  resize: vertical;
}

input:focus,
textarea:focus,
button:focus-visible {
  border-color: var(--focus);
  outline: 3px solid rgba(15, 109, 176, 0.18);
  outline-offset: 2px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(190px, 0.55fr);
  gap: 18px;
}

.contact-grid__name,
.contact-grid__email {
  min-width: 0;
}

.contact-grid__phone {
  max-width: 260px;
}

.preference {
  grid-column: 1 / -1;
}

.preference {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.preference label {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
}

.preference input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 12px 2px 0;
}

.privacy-note {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.submit-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.submit-button:hover {
  background: var(--green-dark);
}

.confirmation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 20px;
  padding: 24px;
  border-color: rgba(36, 88, 74, 0.35);
}

.confirmation[hidden] {
  display: none;
}

.confirmation svg {
  color: var(--green);
}

.confirmation p {
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  gap: 22px;
  padding: 28px 2px 0;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

.legal-page {
  max-width: 760px;
}

.legal-body {
  margin-top: 18px;
}

.legal-body h2 {
  margin: 26px 0 8px;
  font-size: 1.25rem;
}

.legal-body p {
  color: var(--muted);
}

.legal-body a,
.privacy-note a {
  color: var(--green);
  font-weight: 700;
}

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 24px, 680px);
    padding-top: 18px;
  }

  .intro,
  .confirmation {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 0.7fr);
  }

  .contact-grid__name,
  .contact-grid__email {
    grid-column: 1 / -1;
  }

  .section-heading,
  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

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

  .submit-button {
    width: 100%;
  }
}

@media (max-width: 470px) {
  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-tile {
    min-height: 140px;
  }

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

  .contact-grid__phone {
    max-width: none;
  }
}
