:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 32px 18px;
}

.journey-panel {
  position: relative;
  background: #ffffff;
  border: 1px solid #d7dde3;
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(23, 32, 42, 0.08);
  padding: 28px;
}

.home-button {
  position: absolute;
  top: 18px;
  right: 18px;
  min-height: 48px;
  border: 2px solid #17202a;
  border-radius: 6px;
  background: #ffffff;
  color: #17202a;
  cursor: pointer;
  font-weight: 800;
  padding: 0 18px;
}

.masthead {
  border-bottom: 1px solid #e5e9ed;
  padding-bottom: 18px;
  margin-bottom: 24px;
  padding-right: 110px;
}

.eyebrow {
  color: #506171;
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.05;
  margin: 0;
}

h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  margin: 0 0 18px;
}

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

.step-label {
  color: #506171;
  font-weight: 700;
  margin: 10px 0 0;
}

.wizard-step {
  display: none;
}

.wizard-step.is-active {
  display: block;
}

.journey-form {
  display: grid;
  gap: 22px;
}

.field-group {
  display: grid;
  gap: 8px;
}

label {
  font-weight: 700;
}

.search-control {
  position: relative;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid #aab5bf;
  border-radius: 6px;
  padding: 0 14px;
  color: #17202a;
  background: #ffffff;
}

input:focus {
  outline: 3px solid #f4c542;
  outline-offset: 1px;
  border-color: #17202a;
}

.helper {
  color: #506171;
  margin: 0;
  font-size: 0.95rem;
}

.results {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  display: none;
  max-height: 280px;
  overflow: auto;
  border: 1px solid #c8d0d8;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(23, 32, 42, 0.16);
}

.results.is-open {
  display: block;
}

.result-button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: #ffffff;
  color: #17202a;
  cursor: pointer;
  padding: 10px 14px;
  text-align: left;
}

.result-button:hover,
.result-button:focus {
  background: #edf7fb;
  outline: 0;
}

.quick-picks {
  border-top: 1px solid #e5e9ed;
  border-bottom: 1px solid #e5e9ed;
  padding: 18px 0;
}

.quick-picks-header {
  color: #2d3a45;
  font-weight: 700;
  margin-bottom: 12px;
}

.quick-pick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quick-pick {
  min-height: 48px;
  border: 2px solid #0c6b58;
  border-radius: 6px;
  background: #f3fbf8;
  color: #063f35;
  cursor: pointer;
  font-weight: 700;
  padding: 0 14px;
}

.quick-pick:hover,
.quick-pick:focus {
  background: #dff4ec;
  outline: 3px solid #f4c542;
  outline-offset: 1px;
}

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

.choice-button {
  min-height: 72px;
  border: 2px solid #0c6b58;
  border-radius: 6px;
  background: #f3fbf8;
  color: #063f35;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 10px;
}

.choice-button:hover,
.choice-button:focus,
.choice-button.is-selected {
  background: #0c6b58;
  color: #ffffff;
  outline: 3px solid #f4c542;
  outline-offset: 1px;
}

.summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 0.7fr);
  align-items: center;
  gap: 12px;
  min-height: 62px;
  background: #edf1f5;
  border-radius: 6px;
  color: #2d3a45;
  font-weight: 700;
  padding: 14px;
  margin-top: 24px;
}

.summary span {
  min-width: 0;
}

.arrow {
  color: #0c6b58;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.status-box {
  border-left: 5px solid #0c6b58;
  background: #edf7fb;
  border-radius: 6px;
  font-weight: 700;
  margin-bottom: 18px;
  padding: 14px;
}

.raw-results {
  display: grid;
  gap: 14px;
}

.field-block {
  border: 1px solid #d7dde3;
  border-radius: 6px;
  background: #ffffff;
  padding: 14px;
}

.field-row {
  border-top: 1px solid #edf0f3;
  font-family: Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
  padding: 8px 0;
}

.wizard-nav {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  margin-top: 18px;
}

.primary-button {
  min-height: 52px;
  border: 0;
  border-radius: 6px;
  background: #17202a;
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  padding: 0 18px;
}

.primary-button:disabled {
  background: #aab5bf;
  cursor: not-allowed;
}

.secondary-button {
  min-height: 52px;
  border: 2px solid #506171;
  border-radius: 6px;
  background: #ffffff;
  color: #17202a;
  cursor: pointer;
  font-weight: 700;
  padding: 0 18px;
}

.secondary-button:disabled {
  border-color: #c8d0d8;
  color: #87929c;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .shell {
    padding: 14px;
  }

  .journey-panel {
    padding: 20px;
  }

  .masthead {
    padding-right: 0;
    padding-top: 58px;
  }

  .home-button {
    left: 20px;
    right: 20px;
  }

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

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

  .arrow {
    width: max-content;
  }

  .wizard-nav {
    grid-template-columns: 1fr;
  }
}
