:root {
  font-family: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  background: #f6f4ef;
  color: #2e332e;
  font-size: 16px;
  line-height: 1.5;
  --accent: #91a897;
  --accent-strong: #6f8c78;
  --surface: #fbfaf6;
  --surface-strong: #ffffff;
  --border: #d9dfd4;
  --muted: #5b665c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  background: #f6f4ef;
}
main.card {
  background: var(--surface-strong);
  border-radius: 24px;
  padding: 32px 36px 34px;
  width: min(640px, 92vw);
  box-shadow: 0 18px 60px rgba(46, 51, 46, 0.08);
  border: 1px solid rgba(145, 168, 151, 0.2);
}
.header {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-bottom: 20px;
}
.rule {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.eyebrow {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0;
  text-align: center;
}
h1 {
  margin: 0 0 8px;
  font-size: 2rem;
  font-weight: 600;
  color: #2b332c;
}
.lead {
  margin: 0 0 28px;
  color: var(--muted);
}
form {
  display: grid;
  gap: 20px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 600;
  color: #2b332c;
}
input,
textarea,
select,
button {
  font: inherit;
}
input:not([type='checkbox']):not([type='radio']),
textarea,
select {
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 12px 14px;
  background: var(--surface);
  color: inherit;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
input:not([type='checkbox']):not([type='radio']):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px rgba(145, 168, 151, 0.18);
}
.autocomplete {
  position: relative;
}
.autocomplete input {
  width: 100%;
}
.suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(46, 51, 46, 0.12);
  z-index: 10;
}
.suggestion-item {
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  background: var(--surface);
  border: none;
  color: inherit;
  cursor: pointer;
}
.suggestion-item + .suggestion-item {
  border-top: 1px solid #e5eae2;
}
.suggestion-item:hover,
.suggestion-item.is-active {
  background: #eef2ed;
}
.suggestions[hidden] {
  display: none;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  font-weight: 600;
}
legend {
  padding: 0;
  margin: 0;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.checkbox:hover {
  background: #eef2ed;
}
.checkbox input[type='checkbox'] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent-strong);
}
.toggle-field {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-weight: 500;
  position: relative;
  transition: border-color 150ms ease, background 150ms ease;
}
.toggle-field:hover {
  background: #eef2ed;
}
.toggle-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle-control {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #dfe6dd;
  position: relative;
  transition: background 150ms ease;
}
.toggle-control::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  box-shadow: 0 2px 6px rgba(46, 51, 46, 0.2);
  transition: transform 150ms ease;
}
.toggle-field input:checked + .toggle-control {
  background: var(--accent);
}
.toggle-field input:checked + .toggle-control::after {
  transform: translateX(16px);
}
.toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.segmented-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease,
    box-shadow 150ms ease;
}
.segmented-button .icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
}
.segmented-button svg {
  width: 100%;
  height: 100%;
}
.segmented-button:hover {
  background: #eef2ed;
}
.segmented-button.is-active,
.segmented-button[aria-pressed='true'] {
  background: #e3ede5;
  border-color: var(--accent-strong);
  box-shadow: 0 8px 20px rgba(111, 140, 120, 0.18);
}
.segmented-button.is-active .icon {
  color: var(--accent-strong);
}
.hint {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.95rem;
}
button[type='submit'] {
  margin-top: 6px;
  background: var(--accent-strong);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 120ms ease, box-shadow 120ms ease, background 150ms ease;
}
button[type='submit']:hover {
  transform: translateY(-1px);
  background: #5f7867;
  box-shadow: 0 12px 28px rgba(111, 140, 120, 0.28);
}
.status {
  margin-top: 8px;
  font-weight: 600;
}

@media (max-width: 540px) {
  main.card {
    padding: 28px 22px 30px;
  }
  .segmented {
    grid-template-columns: 1fr;
  }
}
