:root {
  --navy: #0f2b46;
  --navy-2: #163d5e;
  --teal: #127d7a;
  --teal-dark: #0b6866;
  --aqua: #5bc0be;
  --aqua-soft: #dff4f3;
  --paper: #ffffff;
  --background: #f4f7f8;
  --amber: #f2a72e;
  --amber-soft: #fff2d7;
  --ink: #16334e;
  --muted: #5e7183;
  --line: #dbe5e9;
  --success: #16796f;
  --danger: #b5483f;
  --shadow-sm: 0 8px 24px rgba(15, 43, 70, 0.07);
  --shadow-md: 0 18px 54px rgba(15, 43, 70, 0.12);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --container: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.modal-open {
  overflow: hidden;
}

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

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  padding: 0 0 10px;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

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

h1,
h2,
h3,
h4 {
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 5.2vw, 4.5rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

p {
  margin-bottom: 16px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  transform: translateY(-140%);
}

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

.site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  border-bottom: 1px solid rgba(15, 43, 70, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  max-width: var(--container);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  padding: 10px 22px;
}

.brand {
  display: inline-flex;
  min-width: 154px;
  align-items: center;
}

.brand img {
  width: 166px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 650;
}

.main-nav a,
.nav-link {
  border: 0;
  background: none;
  color: var(--navy);
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--teal);
}

.nav-sos {
  color: #a76500;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.menu-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
}

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

.narrow {
  max-width: 850px;
}

.page {
  min-height: calc(100vh - 76px);
  padding: 54px 0 88px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.page-heading h1 {
  margin-bottom: 9px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.page-heading p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.demo-chip,
.tag,
.match-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.2;
}

.demo-chip {
  padding: 8px 12px;
  border: 1px solid rgba(91, 192, 190, 0.38);
  background: rgba(255, 255, 255, 0.88);
  color: var(--teal-dark);
}

.demo-chip::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  content: "";
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

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

.button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.choice-card:focus-within {
  outline: 3px solid rgba(91, 192, 190, 0.42);
  outline-offset: 2px;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.button-small {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 11px;
  font-size: 0.86rem;
}

.button-primary {
  background: var(--teal);
  box-shadow: 0 8px 18px rgba(18, 125, 122, 0.19);
  color: #fff !important;
}

.button-primary:hover {
  background: var(--teal-dark);
  box-shadow: 0 10px 24px rgba(18, 125, 122, 0.24);
}

.button-secondary {
  border-color: #a8dedd;
  background: #fff;
  color: var(--teal-dark);
}

.button-quiet {
  border-color: var(--line);
  background: #fff;
  color: var(--navy);
}

.button-amber {
  background: var(--amber);
  box-shadow: 0 8px 20px rgba(242, 167, 46, 0.22);
  color: var(--navy);
}

.button-danger {
  border-color: #efc5c0;
  background: #fff5f3;
  color: var(--danger);
}

.text-button {
  padding: 2px;
  border: 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(18, 125, 122, 0.3);
  text-underline-offset: 4px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 76px;
  background:
    radial-gradient(circle at 82% 22%, rgba(91, 192, 190, 0.19), transparent 26rem),
    linear-gradient(135deg, #edf6f7 0%, #fff 46%, #edf4f6 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  border: 1px dashed rgba(18, 125, 122, 0.25);
  border-radius: 50%;
  content: "";
}

.hero::before {
  top: -150px;
  right: -80px;
  width: 500px;
  height: 380px;
  transform: rotate(-16deg);
}

.hero::after {
  right: 22%;
  bottom: -155px;
  width: 380px;
  height: 270px;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: 44px;
  grid-template-columns: minmax(0, 0.85fr) minmax(510px, 1.15fr);
}

.hero-copy {
  max-width: 560px;
}

.hero-copy h1 span {
  color: var(--teal);
}

.hero-copy > p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  color: var(--navy-2);
  font-size: 0.9rem;
}

.hero-note span {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--aqua-soft);
  color: var(--teal);
  font-size: 0.77rem;
  font-weight: 900;
}

.search-card,
.panel-card,
.form-card,
.content-card {
  border: 1px solid rgba(15, 43, 70, 0.08);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.search-card {
  position: relative;
  padding: 26px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.search-card::before {
  position: absolute;
  top: -10px;
  left: 35px;
  width: 18px;
  height: 18px;
  border: 5px solid var(--teal);
  border-radius: 50% 50% 50% 0;
  background: #fff;
  content: "";
  transform: rotate(-45deg);
}

.search-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.search-card-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}

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

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

.field label,
.field-label {
  color: var(--navy);
  font-size: 0.83rem;
  font-weight: 750;
}

.required {
  color: var(--danger);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cddbe1;
  border-radius: 12px;
  background: #fff;
  font-size: 1rem;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8998a5;
}

.field-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 0.8rem;
  font-weight: 650;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  background: #fffafa;
}

.search-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.advanced-search {
  display: grid;
  gap: 15px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.date-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
}

.date-mode-switch label {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-2);
  cursor: pointer;
  font-size: .78rem;
  font-weight: 750;
}

.date-mode-switch label:has(input:checked) {
  border-color: var(--teal);
  background: var(--aqua-soft);
  color: var(--teal-dark);
}

.date-mode-switch input {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
}

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

.date-mode-fields > :only-child {
  grid-column: 1 / -1;
}

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

.search-privacy {
  max-width: 340px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.79rem;
}

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

.quick-action {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 43, 70, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 16px rgba(15, 43, 70, 0.04);
  color: var(--navy);
  font-weight: 750;
  text-align: left;
}

.quick-action:hover {
  border-color: rgba(18, 125, 122, 0.35);
  background: #fff;
}

.quick-action .action-icon {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--aqua-soft);
  color: var(--teal-dark);
  font-weight: 900;
}

.quick-action.sos .action-icon {
  background: var(--amber-soft);
  color: #9f6400;
}

.draft-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
  padding: 15px 18px;
  border: 1px solid #b6dfde;
  border-radius: 15px;
  background: #f5fdfc;
}

.draft-banner p {
  margin: 0;
  color: var(--navy-2);
  font-size: 0.9rem;
}

.section {
  padding: 78px 0;
}

.section-white {
  background: #fff;
}

.section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

.section-heading p {
  color: var(--muted);
}

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

.step-card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.step-number {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 850;
}

.step-card p {
  margin: 0;
  color: var(--muted);
}

.disclaimer-strip {
  display: grid;
  align-items: center;
  gap: 22px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: var(--navy);
  color: #fff;
  grid-template-columns: auto 1fr;
}

.disclaimer-strip .info-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--aqua);
  font-size: 1.3rem;
  font-weight: 900;
}

.disclaimer-strip h2 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.25rem;
}

.disclaimer-strip p {
  margin: 0;
  color: #cbd8e2;
  font-size: 0.9rem;
}

.results-layout {
  display: grid;
  align-items: start;
  gap: 24px;
  grid-template-columns: 290px minmax(0, 1fr);
}

.filters-card {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.filters-card h2 {
  margin-bottom: 18px;
  font-size: 1.15rem;
}

.filter-stack {
  display: grid;
  gap: 15px;
}

.filter-toggle {
  display: none;
}

.search-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid #cce3e3;
  border-radius: 17px;
  background: #f3fbfb;
}

.route-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
}

.route-line {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--aqua));
}

.route-line::before,
.route-line::after {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: #fff;
  content: "";
  transform: translateY(-50%);
}

.route-line::before {
  left: -2px;
}

.route-line::after {
  right: -2px;
}

.summary-meta {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.results-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.results-topline p {
  margin: 0;
  color: var(--muted);
}

.results-list {
  display: grid;
  gap: 18px;
}

.offer-card {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 43, 70, 0.055);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.offer-card:hover {
  border-color: #9ed7d5;
  box-shadow: 0 13px 34px rgba(15, 43, 70, 0.09);
  transform: translateY(-2px);
}

.offer-card-head,
.offer-card-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.offer-route {
  margin-bottom: 7px;
  font-size: 1.3rem;
}

.match-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
}

.match-good {
  background: #e4f5ef;
  color: #146b5f;
}

.match-possible {
  background: #e9f3fa;
  color: #315e7e;
}

.match-partial {
  background: var(--amber-soft);
  color: #91600a;
}

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

.fact {
  min-width: 0;
}

.fact-label {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fact-value {
  display: block;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 720;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 7px 10px;
  background: #f0f4f5;
  color: var(--navy-2);
}

.tag-accent {
  background: var(--aqua-soft);
  color: var(--teal-dark);
}

.author-line {
  color: var(--muted);
  font-size: 0.8rem;
}

.author-line strong {
  color: var(--navy);
}

.empty-state {
  padding: 50px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 80% 10%, rgba(91, 192, 190, 0.16), transparent 18rem),
    #fff;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.empty-symbol {
  position: relative;
  width: 92px;
  height: 54px;
  margin: 0 auto 22px;
  border-bottom: 2px dashed #92cdcb;
}

.empty-symbol::before,
.empty-symbol::after {
  position: absolute;
  bottom: -7px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--teal);
  border-radius: 50%;
  background: #fff;
  content: "";
}

.empty-symbol::before {
  left: 0;
}

.empty-symbol::after {
  right: 0;
}

.empty-state p {
  max-width: 620px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 24px;
}

.detail-grid {
  display: grid;
  align-items: start;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.detail-main,
.detail-side {
  display: grid;
  gap: 20px;
}

.content-card {
  padding: 26px;
  border-radius: var(--radius);
}

.route-map {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 18px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.88), rgba(226, 241, 243, 0.75)),
    repeating-linear-gradient(28deg, transparent 0 28px, rgba(18, 125, 122, 0.08) 29px 30px);
}

.route-map::before,
.route-map::after {
  position: absolute;
  border: 1px solid rgba(15, 43, 70, 0.08);
  border-radius: 50%;
  content: "";
}

.route-map::before {
  top: -90px;
  left: -40px;
  width: 260px;
  height: 220px;
}

.route-map::after {
  right: -70px;
  bottom: -80px;
  width: 260px;
  height: 210px;
}

.map-route-line {
  position: absolute;
  top: 50%;
  left: 13%;
  width: 74%;
  height: 4px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--navy), var(--teal), var(--aqua));
  transform: rotate(-7deg);
}

.map-point {
  position: absolute;
  z-index: 2;
  top: calc(50% - 18px);
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 5px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--teal);
  box-shadow: 0 6px 14px rgba(15, 43, 70, 0.18);
  color: #fff;
  font-size: 0;
  transform: rotate(-45deg);
}

.map-point::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.map-point-start {
  left: 11%;
}

.map-point-end {
  right: 11%;
  background: var(--navy);
}

.map-label {
  position: absolute;
  z-index: 3;
  max-width: 180px;
  padding: 9px 12px;
  border: 1px solid rgba(15, 43, 70, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(15, 43, 70, 0.07);
  font-size: 0.8rem;
  font-weight: 760;
}

.map-label-start {
  bottom: 24px;
  left: 7%;
}

.map-label-end {
  top: 24px;
  right: 7%;
}

.map-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-fact {
  padding: 16px;
  background: #fff;
}

.detail-fact span {
  display: block;
}

.detail-fact .fact-label {
  margin-bottom: 6px;
}

.profile-card .profile-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 15px;
  background: var(--aqua-soft);
  color: var(--teal-dark);
  font-weight: 850;
}

.profile-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.contact-panel {
  position: sticky;
  top: 96px;
}

.contact-panel .button {
  width: 100%;
  margin-top: 10px;
}

.safety-note {
  padding: 17px;
  border-radius: 14px;
  background: #f1f5f7;
  color: var(--muted);
  font-size: 0.82rem;
}

.safety-note strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
}

.form-shell {
  display: grid;
  align-items: start;
  gap: 24px;
  grid-template-columns: 230px minmax(0, 1fr);
}

.stepper {
  position: sticky;
  top: 96px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.stepper-label {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.stepper ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stepper li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

.stepper li span {
  display: grid;
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.stepper li.active {
  color: var(--navy);
  font-weight: 800;
}

.stepper li.active span {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.stepper li.complete span {
  border-color: #a5d8d2;
  background: #e5f6f2;
  color: var(--teal-dark);
}

.form-card {
  padding: 30px;
  border-radius: var(--radius-lg);
}

.form-intro {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.form-intro h2 {
  margin-bottom: 8px;
}

.form-intro p {
  margin: 0;
  color: var(--muted);
}

.step-panel {
  padding-top: 26px;
}

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

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

.privacy-callout,
.notice-callout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 13px;
  font-size: 0.83rem;
}

.privacy-callout {
  border: 1px solid #c7e7e6;
  background: #f2fbfa;
  color: var(--navy-2);
}

.notice-callout {
  border: 1px solid #f1d39c;
  background: #fff9ed;
  color: #74531c;
}

.callout-icon {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-weight: 900;
}

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

.choice-card {
  position: relative;
  display: block;
  min-height: 104px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.choice-card:hover {
  border-color: #9ed7d5;
}

.choice-card:has(input:checked) {
  border-color: var(--teal);
  background: #f1fbfa;
  box-shadow: inset 0 0 0 1px var(--teal);
}

.choice-card input {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 19px;
  height: 19px;
  accent-color: var(--teal);
}

.choice-card strong {
  display: block;
  max-width: 85%;
  margin-bottom: 6px;
  color: var(--navy);
  font-size: 0.9rem;
}

.choice-card small {
  display: block;
  color: var(--muted);
  line-height: 1.4;
}

.horse-rows {
  display: grid;
  gap: 12px;
}

.horse-row {
  display: grid;
  align-items: end;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfcfc;
  grid-template-columns: 110px minmax(0, 1fr) auto;
}

.remove-horse {
  width: 44px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--danger);
  font-size: 1.25rem;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.draft-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.77rem;
}

.draft-status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  content: "";
}

.summary-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.summary-head {
  padding: 20px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
}

.summary-head h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.35rem;
}

.summary-head p {
  margin: 0;
  color: #cee0e8;
  font-size: 0.85rem;
}

.summary-body {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.summary-item {
  padding: 17px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.summary-item:nth-child(even) {
  border-right: 0;
}

.summary-item span {
  display: block;
}

.summary-item .fact-label {
  margin-bottom: 5px;
}

.terms-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  padding: 16px;
  border-radius: 13px;
  background: #f4f7f8;
  font-size: 0.83rem;
}

.terms-line input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin-top: 1px;
  accent-color: var(--teal);
}

.success-page {
  display: grid;
  min-height: calc(100vh - 164px);
  place-items: center;
}

.success-card {
  width: min(760px, 100%);
  padding: 44px;
  border: 1px solid #b8dfda;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 85% 5%, rgba(91, 192, 190, 0.2), transparent 18rem),
    #fff;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.success-mark {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: #dff3ee;
  color: var(--success);
  font-size: 1.8rem;
  font-weight: 900;
}

.success-card p {
  max-width: 590px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
  margin-top: 24px;
}

.panel-card {
  padding: 26px;
  border-radius: var(--radius);
}

.panel-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 13px;
  background: #eaf0f2;
}

.panel-tab {
  flex: 1 0 auto;
  min-height: 42px;
  padding: 8px 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.panel-tab.active {
  background: #fff;
  box-shadow: 0 4px 12px rgba(15, 43, 70, 0.07);
  color: var(--navy);
}

.my-listing {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.listing-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 0.78rem;
  font-weight: 800;
}

.listing-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.listing-status.inactive {
  color: var(--muted);
}

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

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(8, 29, 48, 0.58);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 30px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 25px 80px rgba(5, 25, 43, 0.3);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 1.5rem;
  line-height: 1;
}

.modal h2 {
  padding-right: 35px;
  font-size: 1.55rem;
}

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

.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.contact-demo {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f8fafb;
}

.contact-item strong {
  font-size: 0.9rem;
}

.contact-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.toast {
  position: fixed;
  z-index: 140;
  right: 22px;
  bottom: 22px;
  max-width: 390px;
  padding: 14px 17px;
  border-radius: 13px;
  background: var(--navy);
  box-shadow: var(--shadow-md);
  color: #fff;
  font-size: 0.87rem;
  font-weight: 650;
}

.toast[hidden] {
  display: none;
}

.mobile-dock {
  display: none;
}

.footer {
  padding: 36px 0 110px;
  background: var(--navy);
  color: #cad7e1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.footer p {
  margin: 0;
  font-size: 0.82rem;
}

@media (max-width: 1020px) {
  .main-nav {
    gap: 14px;
    font-size: 0.82rem;
  }

  .hero-grid {
    gap: 28px;
    grid-template-columns: minmax(0, 0.75fr) minmax(470px, 1.25fr);
  }

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

@media (max-width: 880px) {
  .header-inner {
    min-height: 68px;
  }

  .brand img {
    width: 145px;
    height: 44px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--shadow-md);
    font-size: 0.94rem;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
  }

  .main-nav a,
  .main-nav .nav-link {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    text-align: left;
  }

  .main-nav .button {
    margin-top: 5px;
  }

  .hero {
    padding: 42px 0 58px;
  }

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

  .hero-copy {
    max-width: 680px;
  }

  .search-card {
    padding: 22px;
  }

  .quick-actions {
    grid-template-columns: 1fr;
  }

  .results-layout,
  .detail-grid,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .filters-card,
  .stepper,
  .contact-panel {
    position: static;
  }

  .filters-card {
    display: none;
  }

  .filters-card.open {
    display: block;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .stepper ol {
    display: flex;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .stepper li {
    flex: 0 0 auto;
  }

  .stepper li:not(.active) {
    color: #8494a0;
  }
}

@media (max-width: 680px) {
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom));
  }

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

  .page {
    min-height: calc(100vh - 68px);
    padding: 32px 0 54px;
  }

  h1 {
    font-size: 2.35rem;
  }

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

  .page-heading h1 {
    font-size: 2.1rem;
  }

  .hero-copy > p:not(.eyebrow) {
    font-size: 1rem;
  }

  .search-card {
    margin-right: -4px;
    margin-left: -4px;
    padding: 20px 16px;
    border-radius: 23px;
  }

  .search-card-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-grid,
  .advanced-search,
  .form-grid,
  .summary-body,
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .summary-item,
  .summary-item:nth-child(even) {
    border-right: 0;
  }

  .field input,
  .field select {
    min-height: 54px;
  }

  .search-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .search-actions .button {
    width: 100%;
  }

  .draft-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .section {
    padding: 55px 0;
  }

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

  .disclaimer-strip {
    padding: 23px;
    grid-template-columns: 1fr;
  }

  .search-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-summary .button {
    width: 100%;
  }

  .results-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .results-topline .button {
    width: 100%;
  }

  .offer-card {
    padding: 20px 17px;
  }

  .offer-card-head,
  .offer-card-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .offer-route {
    font-size: 1.14rem;
  }

  .offer-facts {
    grid-template-columns: 1fr 1fr;
  }

  .offer-card-footer .button {
    width: 100%;
  }

  .empty-state {
    padding: 40px 20px;
  }

  .empty-actions,
  .success-actions {
    flex-direction: column;
  }

  .empty-actions .button,
  .success-actions .button {
    width: 100%;
  }

  .content-card,
  .form-card,
  .panel-card {
    padding: 20px 17px;
  }

  .route-map {
    min-height: 220px;
  }

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

  .date-choice-grid,
  .date-mode-fields {
    grid-template-columns: 1fr;
  }

  .date-mode-fields > :only-child {
    grid-column: auto;
  }

  .choice-card {
    min-height: 88px;
  }

  .horse-row {
    grid-template-columns: 86px minmax(0, 1fr) 44px;
  }

  .horse-row .field label {
    font-size: 0.72rem;
  }

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

  .form-actions .action-group {
    display: grid;
    gap: 9px;
    grid-template-columns: 1fr 1fr;
  }

  .form-actions .action-group .button:only-child {
    grid-column: 1 / -1;
  }

  .success-card {
    padding: 34px 20px;
  }

  .listing-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .listing-actions .button {
    width: 100%;
  }

  .modal {
    align-self: end;
    max-height: calc(100vh - 18px);
    padding: 27px 19px calc(24px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }

  .modal-backdrop {
    padding: 18px 0 0;
  }

  .toast {
    right: 14px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    left: 14px;
    max-width: none;
  }

  .mobile-dock {
    position: fixed;
    z-index: 70;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    min-height: calc(66px + env(safe-area-inset-bottom));
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -10px 30px rgba(15, 43, 70, 0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .mobile-dock a,
  .mobile-dock button {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 720;
    flex-direction: column;
  }

  .mobile-dock span {
    display: grid;
    height: 24px;
    place-items: center;
    color: var(--teal);
    font-size: 1.2rem;
    font-weight: 900;
  }

  .mobile-dock .dock-sos span {
    width: 25px;
    border-radius: 50%;
    background: var(--amber);
    color: var(--navy);
    font-size: 0.9rem;
  }

  .footer {
    padding-bottom: 36px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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