/* ============================================================
   Buttons & forms
   ============================================================ */

.btn {
  height: 52px;
  border-radius: var(--r-md);
  font-weight: 800;
  font-size: 15px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, filter 0.2s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--grad-cone);
  color: var(--cone-ink);
  box-shadow: var(--shadow-cone);
}

.btn--ghost {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
}

.btn--block {
  width: 100%;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--sm {
  height: 42px;
  font-size: 13.5px;
}

.field {
  display: block;
  margin-bottom: var(--sp-4);
}

.field > label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 7px;
}

.field > label .cap {
  display: block;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--text-3);
  font-size: 11.5px;
  margin-top: 2px;
}

.input {
  width: 100%;
  height: 50px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--cone);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cone) 18%, transparent);
}

.field.is-confident .input {
  border-color: color-mix(in srgb, var(--road) 55%, var(--line));
  background: color-mix(in srgb, var(--road) 7%, var(--surface-2));
}

.input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238b8b96' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.segmented button {
  padding: 9px 13px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
  transition: all 0.18s ease;
}

.segmented button.is-selected {
  background: var(--cone);
  border-color: var(--cone);
  color: var(--cone-ink);
}

.segmented button:active {
  transform: scale(0.97);
}

.confidence-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--road);
  margin: -6px 0 var(--sp-4);
}

.confidence-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.confidence-note.is-low {
  color: var(--amber);
}

.form-actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

/* Camera */
.camera-led {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--signal);
}

.camera-led.is-on {
  background: var(--road);
  box-shadow: 0 0 8px var(--road);
}