:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #172033;
  background: #eef4f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(24, 150, 110, 0.18), transparent 32rem),
    linear-gradient(180deg, #f7fbfd 0%, #eaf2f7 100%);
}

.shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 35, 55, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(22, 42, 64, 0.12);
  padding: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 8px 12px;
  background: #103c38;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.05;
  color: #102330;
}

.muted {
  color: #5d6c7b;
  line-height: 1.6;
  margin: 14px 0 20px;
}

.status {
  border-radius: 16px;
  padding: 12px 14px;
  margin: 18px 0;
  background: #eaf1f7;
  color: #2c465c;
  font-weight: 700;
}

.status.success {
  background: #e7f8ee;
  color: #12613b;
}

.status.error {
  background: #fff0ed;
  color: #9b2f1e;
}

.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: #28384a;
  font-weight: 800;
}

.optional {
  color: #7c8a99;
  font-weight: 600;
}

input,
textarea,
button {
  font: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid #d8e2ea;
  border-radius: 16px;
  padding: 13px 14px;
  background: #fff;
  color: #142536;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: #199a71;
  box-shadow: 0 0 0 4px rgba(25, 154, 113, 0.12);
}

textarea {
  resize: vertical;
}

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

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

button {
  border: 0;
  border-radius: 16px;
  padding: 13px 16px;
  cursor: pointer;
  font-weight: 900;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.primary {
  width: 100%;
  background: #12805d;
  color: #fff;
  box-shadow: 0 12px 28px rgba(18, 128, 93, 0.24);
}

.secondary,
.search-row button {
  background: #e9f4ef;
  color: #12613b;
}

.actions-inline {
  display: flex;
  justify-content: flex-start;
}

.map-section {
  display: grid;
  gap: 10px;
}

.coordinate-info {
  margin-top: -4px;
  color: #6d7b88;
  font-size: 12px;
  line-height: 1.45;
}

.map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: #28384a;
}

.map-hint {
  margin: 4px 0 0;
  color: #6d7b88;
  font-size: 14px;
  line-height: 1.45;
}

.delivery-map {
  width: 100%;
  height: min(58vh, 420px);
  min-height: 320px;
  overflow: hidden;
  border: 1px solid #d8e2ea;
  border-radius: 20px;
  background: #eaf1f7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.results {
  display: grid;
  gap: 8px;
}

.result-item {
  text-align: left;
  background: #f5f9fb;
  color: #1d3548;
  border: 1px solid #dce8ef;
}

.result-empty {
  color: #6d7b88;
  background: #f5f9fb;
  border-radius: 14px;
  padding: 12px;
}

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

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

  .delivery-map {
    height: 360px;
    min-height: 300px;
  }
}
