:root {
  --bg: #f4f7f2;
  --card: #ffffff;
  --green-dark: #1f4d32;
  --green: #2d6a4f;
  --green-light: #52b788;
  --text: #1b1b1b;
  --muted: #5c6b63;
  --error: #b42318;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(31, 77, 50, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 12px 80px;
}

.header {
  text-align: center;
  padding: 8px 0 16px;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: rgba(82, 183, 136, 0.2);
  border-radius: 999px;
}

.header h1 {
  margin: 10px 0 4px;
  font-size: 1.6rem;
  color: var(--green-dark);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.panel {
  display: none;
}

.panel.active {
  display: block;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-dark);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8e2dc;
  border-radius: 10px;
  font-size: 16px;
  background: #fafcfa;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 64px;
}

.section-title {
  margin: 18px 0 8px;
  font-size: 0.95rem;
  color: var(--green-dark);
}

.section-title:first-child {
  margin-top: 0;
}

.hint {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.req {
  color: var(--error);
}

.address-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
}

.check input {
  width: auto;
  margin-top: 3px;
}

.check a {
  color: var(--green);
}

input:focus {
  outline: 2px solid var(--green-light);
  border-color: var(--green);
}

.btn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: wait;
}

.btn-secondary {
  background: #e8f3ec;
  color: var(--green-dark);
}

.error {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 10px;
}

.hidden {
  display: none !important;
}

.status-text {
  font-size: 1rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.status-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8f3ec;
  font-size: 0.9rem;
  color: var(--muted);
}

.status-details dt {
  font-weight: 600;
  color: var(--green-dark);
  margin-top: 8px;
}

.status-details dd {
  margin: 2px 0 0;
}

.info-block__head {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--green-dark);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.info-block__chev {
  font-size: 0.75rem;
  transition: transform 0.2s;
}

.info-block:not(.is-open) .info-block__body {
  display: none;
}

.info-block:not(.is-open) .info-block__chev {
  transform: rotate(-90deg);
}

.info-block__body {
  margin-top: 10px;
}

.info-block pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--text);
}

.btn-link {
  display: inline-block;
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #e8f3ec;
}

.link {
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}

.tabs {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  gap: 4px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #e0ebe4;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.tab {
  flex: 1;
  padding: 10px 4px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tab.active {
  background: var(--green);
  color: #fff;
}
