/* Shared estimate form. Self-contained so brand.css stays untouched. */
.lg-form {
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.5;
  max-width: 640px;
  margin: 24px 0 8px;
  padding: 20px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid #d5d5d5;
  border-radius: 12px;
}
.lg-form *,
.lg-form *::before,
.lg-form *::after { box-sizing: border-box; }
.lg-form-lead,
.lg-fine {
  margin: 0 0 16px;
  color: #1a1a1a;
  font-size: 16px;
  line-height: 1.45;
}
.lg-fine { margin: 12px 0 0; font-size: 15.2px; color: #333; }
.lg-form a { color: #0b3a66; }
.lg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13.6px 16px;
}
@media (min-width: 700px) {
  .lg-grid { grid-template-columns: 1fr 1fr; }
  .lg-wide { grid-column: 1 / -1; }
}
.lg-form label {
  display: block;
  margin: 0 0 5.6px;
  font-weight: 650;
  font-size: 15.2px;
  color: #1a1a1a;
}
.lg-req {
  font-weight: 600;
  font-size: 12.8px;
  color: #6b2a16;
}
.lg-form input,
.lg-form select,
.lg-form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10.4px 12px;
  font: inherit;
  font-size: 16px;
  line-height: 1.3;
  color: #1a1a1a;
  background: #fff;
  border: 1px solid #5c5c5c;
  border-radius: 8px;
}
.lg-form textarea { min-height: 136px; resize: vertical; }
.lg-form input:focus,
.lg-form select:focus,
.lg-form textarea:focus {
  outline: 3px solid #1a1a1a !important;
  outline-offset: 2px;
  border-color: #1a1a1a;
}
.lg-form [aria-invalid="true"] {
  border-color: #8a1f11;
  background: #fff6f4;
}
.lg-error {
  margin: 13.6px 0 0;
  color: #8a1f11;
  font-weight: 650;
}
.lg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #1a1a1a;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.lg-btn:hover { background: #333; }
.lg-btn:focus {
  outline: 3px solid #1a1a1a !important;
  outline-offset: 3px;
}
@media (min-width: 700px) {
  .lg-btn { width: auto; min-width: 224px; }
}

/* V9: two short answers first; optional details stay out of the way. */
.lg-form { --lg-accent: #315d30; max-width: 672px; scroll-margin-top: 112px; }
.lg-form [hidden] { display: none !important; }
.lg-form .lg-form-title { margin: 0 0 12px; font-size: 22px; line-height: 1.2; }
.lg-form .lg-context { padding: 12px; margin: 0 0 16px; border-left: 3px solid var(--lg-accent); background: #f3f5f3; font-size: 15.2px; line-height: 1.5; overflow-wrap: anywhere; }
.lg-form .lg-reply { min-width: 0; margin: 4.8px 0 0; padding: 0; border: 0; }
.lg-form .lg-reply legend { display: block; width: 100%; margin: 0 0 4.8px; padding: 0; border: 0; font-size: 16px; font-weight: 650; line-height: 1.5; color: #1a1a1a; }
.lg-form .lg-field-help { font-size: 15.2px; line-height: 1.5; color: #444; margin: 0 0 10.4px; }
.lg-form .lg-optional { margin-top: 16px; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.lg-form summary { cursor: pointer; min-height: 48px; padding: 12.8px 0; font-size: 16px; line-height: 1.5; font-weight: 650; color: #1a1a1a; }
.lg-form summary span, .lg-form .lg-optional-label { font-weight: 400; font-size: 13.6px; color: #555; }
.lg-form .lg-optional > .lg-grid { padding: 4px 0 16px; }
.lg-form textarea { min-height: 96px; }
.lg-form .lg-form-actions { display: flex; flex-wrap: wrap; gap: 10.4px; margin-top: 16px; }
.lg-form .lg-btn { min-width: 0; width: auto; flex: 1 1 192px; margin: 0; background: var(--lg-accent); border-color: var(--lg-accent); color: #fff; }
.lg-form .lg-btn-secondary { background: #fff; color: #1a1a1a; border-color: #555; }
.lg-form .lg-btn:hover { filter: brightness(.9); }
.lg-form .lg-btn-secondary:hover { background: #f3f3f3; filter: none; }
.lg-form .lg-btn:disabled { opacity: .6; cursor: not-allowed; }
.lg-form .lg-status { margin: 16px 0 0; padding: 12.8px; border: 1px solid #53785a; background: #f3f8f3; color: #213a25; font-size: 16px; line-height: 1.5; }
.lg-form .lg-copy-panel { margin-top: 9.6px; }
.lg-form .lg-copy-panel textarea { white-space: pre-wrap; font-size: 16px; min-height: 192px; }
.lg-form a, .lg-form .lg-fine { overflow-wrap: anywhere; }
.lg-form summary:focus-visible, .lg-form a:focus-visible { outline: 3px solid #1a1a1a !important; outline-offset: 3px; }
@media (max-width: 420px) { .lg-form { padding: 16px; } .lg-form .lg-form-actions { display: grid; grid-template-columns: 1fr; } .lg-form .lg-btn { width: 100%; } }

/* Readability correction: these themes do not share a root font size. */
.lg-form label, .lg-form .lg-reply legend, .lg-form summary, .lg-form .lg-btn { font-size: 16px; line-height: 1.5; }
.lg-form .lg-form-lead, .lg-form .lg-status, .lg-form .lg-error { font-size: 16px; line-height: 1.5; }
.lg-form .lg-fine, .lg-form .lg-field-help, .lg-form .lg-context, .lg-form .lg-req,
.lg-form summary span, .lg-form .lg-optional-label { font-size: 14px; line-height: 1.5; }
.lg-form input, .lg-form select, .lg-form textarea { font-size: 16px; }
