/* Make the page 550px wide (requirement) */
body {
  width: 550px;
  margin: 24px auto;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height: 1.5;
  font-size: 16px;
  color: #111;
}

/* Top blurb: slightly smaller than body text AND bold (requirement) */
.blurb {
  font-size: 0.9em;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: #333;
}

h1 {
  margin: 0 0 12px 0;
}

/* Image block */
.hero {
  margin: 0 0 16px 0;
}
.hero img {
  display: block;
  max-width: 100%;
  height: auto; /* safety if attributes are changed */
  border-radius: 8px;            /* extra style */
}
.hero figcaption {
  font-size: 0.85em;
  color: #555;
  margin-top: 6px;
}

/* Form container */
.estimator {
  padding: 16px;
  background: #fafafa;
  border: 1px solid #e6e6e6;
  border-radius: 12px;           /* extra style */
  box-shadow: 0 4px 12px rgba(0,0,0,0.06); /* extra style not usually covered */
}

/* Fields */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

label {
  font-weight: 600;
}

input[type="text"],
input[type="email"],
select {
  padding: 10px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  font-size: 1rem;
}

/* Checkbox row */
.checkbox-row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* Radios group */
.radios {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 10px 12px;
}
.radios legend {
  font-weight: 700;
  padding: 0 4px;
}

/* Accessibility & nicer focus */
input:focus-visible, select:focus-visible, button:focus-visible {
  outline: 3px solid rgba(37,99,235,0.45);
  outline-offset: 2px;
}

/* Extra style we “looked up”: accent-color to customize radios/checkbox */
input[type="checkbox"], input[type="radio"] {
  accent-color: #2563eb;
}

/* Button */
button {
  padding: 12px 14px;
  border: 0;
  border-radius: 10px;
  font-size: 1rem;
  cursor: pointer;
  background: #2563eb;
  color: white;
}
button:hover {
  filter: brightness(1.05);
}
button:active {
  transform: translateY(1px);
}
