:root {
  color-scheme: light;
  --ink: #172326;
  --muted: #657276;
  --line: #d8e1df;
  --paper: #f7faf9;
  --white: #ffffff;
  --teal: #007c78;
  --teal-dark: #005f5c;
  --lime: #d7ef6b;
  --coral: #ed6a5a;
  --amber: #f3b23e;
  --shadow: 0 24px 70px rgba(23, 35, 38, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(0, 124, 120, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(0, 124, 120, 0.05) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 28px;
  align-items: center;
  padding: 34px 0;
}

.finder,
.delivery-guide {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.finder {
  border-radius: 8px;
  padding: clamp(24px, 5vw, 48px);
}

.brand {
  display: grid;
  grid-template-columns: clamp(110px, 20%, 150px) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 30px);
  align-items: center;
  margin-bottom: 34px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.brand-copy {
  min-width: 0;
}

.brand p,
.eyebrow {
  margin: 0 0 5px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1.02;
  max-width: 720px;
}

.search-panel {
  margin: 0 0 22px;
}

.search-panel label {
  display: block;
  margin-bottom: 9px;
  font-weight: 750;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 56px;
  border: 1px solid #b7c7c4;
  border-radius: 8px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 124, 120, 0.14);
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
}

.search-row button {
  min-height: 56px;
  background: var(--ink);
  color: var(--white);
}

#searchHint {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.result {
  border: 1px solid var(--line);
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  padding: 20px;
  background: #fdfefe;
  margin-bottom: 22px;
}

.result h2 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2.8vw, 2rem);
  line-height: 1.1;
}

.result p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.result.success {
  border-left-color: var(--teal);
  background: #f1fbf8;
}

.result.warning {
  border-left-color: var(--amber);
  background: #fff9eb;
}

.result.unavailable {
  border-left-color: var(--coral);
  background: #fff5f3;
}

.cost {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  font-size: 2.2rem;
  font-weight: 850;
}

.cost span {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 14px;
}

#clearButton {
  min-height: 36px;
  background: #e8efed;
  color: var(--ink);
}

.delivery-guide {
  border-radius: 8px;
  overflow: hidden;
}

.guide-header {
  padding: 26px 28px 24px;
  background: var(--ink);
  color: var(--white);
}

.guide-header p {
  margin-bottom: 7px;
  color: var(--lime);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.guide-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.guide-list {
  padding: 8px 28px 14px;
}

.guide-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.guide-item:last-child {
  border-bottom: 0;
}

.guide-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4f1ee;
  font-size: 1.25rem;
}

.guide-item h3 {
  margin: 1px 0 5px;
  font-size: 1rem;
  line-height: 1.25;
}

.guide-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.pickup-item {
  margin: 6px -14px 0;
  padding: 18px 14px;
  border-radius: 8px;
  background: #f1fbf8;
}

.pickup-item a {
  display: inline-block;
  margin-top: 11px;
  color: var(--teal-dark);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.pickup-item p + p {
  margin-top: 9px;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .delivery-guide {
    order: -1;
  }
}

@media (max-width: 620px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 10px 0 24px;
  }

  .finder {
    padding: 22px 16px;
  }

  .brand {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
  }

  .brand p {
    font-size: 0.7rem;
  }

  h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .guide-header,
  .guide-list {
    padding-left: 20px;
    padding-right: 20px;
  }

  .guide-item {
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .guide-icon {
    width: 38px;
    height: 38px;
  }
}
