* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --text: #17202a;
  --muted: #667085;
  --border: #d9e0e7;
  --accent: #2f7d32;
  --accent-dark: #246428;
  --accent-soft: #eef7ee;
  --danger: #a61b1b;
  --shadow: 0 18px 50px rgba(22, 34, 50, 0.10);
}

html {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.page {
  min-height: calc(100vh - 70px);
  display: grid;
  place-items: center;
  padding: 32px 16px;
}

.card {
  width: min(860px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: white;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: .04em;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.45rem);
  line-height: 1.1;
}

h2 {
  margin: 0;
  font-size: 1.1rem;
}

.intro {
  margin: 24px 0;
  color: var(--muted);
  line-height: 1.6;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.address-wrap {
  position: relative;
}

.input-row {
  display: flex;
  gap: 10px;
}

input {
  flex: 1;
  min-width: 0;
  height: 50px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 15px;
  font: inherit;
  outline: none;
  background: #fff;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

button {
  height: 50px;
  border: 0;
  border-radius: 14px;
  padding: 0 22px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: .65;
}

.secondary-button {
  height: 42px;
  padding: 0 14px;
  background: #fff;
  color: var(--accent-dark);
  border: 1px solid var(--border);
}

.secondary-button:hover {
  background: var(--accent-soft);
}

.suggestions {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 7px);
  left: 0;
  right: 116px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(22, 34, 50, .16);
  max-height: 330px;
  overflow-y: auto;
}

.suggestion {
  border-radius: 10px;
}

.suggestion button {
  width: 100%;
  height: auto;
  min-height: 48px;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  font-weight: 500;
}

.suggestion button:hover,
.suggestion.active button {
  background: var(--accent-soft);
}

.suggestion-title {
  display: block;
  font-weight: 750;
  line-height: 1.25;
}

.suggestion-detail {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.3;
}

.status {
  min-height: 24px;
  margin-top: 14px;
  font-size: .95rem;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.result {
  margin-top: 18px;
  padding: 18px;
  background: var(--accent-soft);
  border: 1px solid #cfe4cf;
  border-radius: 18px;
}

.hidden {
  display: none !important;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.result-box {
  padding: 14px;
  background: white;
  border-radius: 14px;
}

.result-box span {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 7px;
}

.result-box strong {
  font-size: 1.45rem;
}

.route-info {
  margin: 14px 2px 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}


.price-list {
  margin-top: 28px;
}

.price-list h2 {
  margin-bottom: 10px;
}

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
}

.notice,
.privacy {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.5;
}

.notice {
  margin-top: 18px;
}

.privacy {
  margin-top: 10px;
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

footer {
  min-height: 70px;
  padding: 20px 16px;
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .86rem;
}

@media (max-width: 620px) {
  .card {
    padding: 24px 18px;
    border-radius: 18px;
  }

  .brand {
    align-items: flex-start;
  }

  .logo-mark {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .input-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .suggestions {
    right: 0;
  }

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

  .price-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
