/* Base resets */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
  background: #f8f8fa;
  color: #222;
}

/* Layout */
.site-header {
  padding: 1rem;
  background: #fff;
  border-bottom: 1px solid #ddd;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.brand .logo {
  height: 40px;
}
.page-title {
  font-size: 1.25rem;
  margin: 0;
}
.intro {
  margin: 0.5rem 0 0;
  max-width: 600px;
}

/* Stepper */
.stepper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.stepper .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
}
.stepper .dot.is-active {
  background: #4c3fff;
}
.stepper .label {
  font-size: 0.8rem;
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
  color: #555;
}

/* Main grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}
@media (min-width: 1024px) {
  .form-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

/* Cards & Sidebar */
.card, .sidebar-card {
  background: #fff;
  border-radius: 6px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.card-title {
  margin-top: 0;
}

/* Fields */
.field {
  margin-bottom: 1rem;
}
.field label, .field legend {
  font-weight: 600;
  margin-bottom: 0.25rem;
  display: block;
}
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[inputmode="numeric"],
input[inputmode="decimal"],
textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
input::placeholder {
  color: #aaa;
}

/* Radios & checkboxes */
.radio-group.vertical .option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

/* Measurements */
.unit-switch {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.measure-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 480px) {
  .measure-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.measure .inline {
  display: flex;
  gap: 0.5rem;
}
.measure .stack input {
  width: 100%;
}
.bmi-widget {
  display: flex;
  flex-direction: column;
}
.bmi {
  font-weight: bold;
  font-size: 1.2rem;
}

/* Buttons */
.actions {
  margin-top: 1rem;
}
button {
  background: #4c3fff;
  color: #fff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
button:hover {
  background: #3b2ee0;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
