/* Copperstate quote form (scripts/lead_form.py). Sits where the SmartMoving iframe was: a white hero card,
   the home page's blue band and the full-width quote page, so it sizes to its container. */
.csmq, .csmq-done {
  --csmq-blue: #146dc0; --csmq-navy: #00206a; --csmq-line: #c9d3e1; --csmq-error: #b3261e;
  display: flex; flex-wrap: wrap; gap: 12px 14px; box-sizing: border-box; width: 100%; max-width: 760px; margin: 0 auto;
  padding: 20px; background: #fff; border-radius: 10px; color: #1a1a1a; text-align: left;
  font: 400 15px/1.45 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.csmq *, .csmq *::before, .csmq *::after { box-sizing: border-box; }
.csmq-field { flex: 1 1 100%; min-width: 0; }
.csmq-half { flex: 1 1 calc(50% - 7px); }
.csmq { container-type: inline-size; }
@container (max-width: 320px) { .csmq-half { flex-basis: 100%; } }
.csmq label { display: block; margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--csmq-navy); letter-spacing: normal; text-transform: none; }
.csmq input, .csmq select {
  display: block; width: 100%; height: 44px; margin: 0; padding: 0 12px; border: 1px solid var(--csmq-line); border-radius: 6px;
  background: #fff; color: #1a1a1a; font: inherit; font-size: 16px; /* 16px keeps iPhones from zooming in */
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.csmq select { appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2300206a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px; }
.csmq input:focus, .csmq select:focus { outline: none; border-color: var(--csmq-blue); box-shadow: 0 0 0 3px rgba(20, 109, 192, .22); }
.csmq [aria-invalid="true"] { border-color: var(--csmq-error); }
.csmq-error { margin: 4px 0 0; font-size: 13px; color: var(--csmq-error); }
.csmq-submit {
  flex: 1 1 100%; height: 48px; margin-top: 4px; border: 0; border-radius: 6px; background: var(--csmq-blue); color: #fff;
  font: 700 16px/1 Roboto, system-ui, sans-serif; cursor: pointer;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 150ms ease;
}
.csmq-submit:active { transform: scale(.97); }
.csmq-submit:disabled { cursor: progress; opacity: .75; }
.csmq-submit:focus-visible { outline: 3px solid var(--csmq-navy); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .csmq-submit:hover:not(:disabled) { background: #0f5aa1; } }
.csmq-status { flex: 1 1 100%; margin: 0; padding: 10px 12px; border-radius: 6px; background: #fdecea; color: var(--csmq-error); font-size: 14px; }
.csmq-call { flex: 1 1 100%; margin: 0; text-align: center; font-size: 14px; color: #3c4a5e; }
.csmq-call a, .csmq-done a { color: var(--csmq-blue); font-weight: 700; text-decoration: none; }
.csmq-done { display: block; padding: 28px 22px; text-align: center; }
.csmq-done:focus { outline: none; }
.csmq-done-title { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: var(--csmq-navy); }
.csmq-done p { margin: 0 0 6px; }
/* The archived theme gave the iframe a fixed height; the form sizes itself. */
.free-quote-iframe .elementor-widget-container { height: auto !important; }
@media (prefers-reduced-motion: reduce) { .csmq-submit { transition: background-color 150ms ease; } .csmq-submit:active { transform: none; } }
