/* Styling is scoped to an initialized estimate form, including Elementor's popup. */
.elementor-form .cdq-card {
  --cdq-ink: #17252b;
  --cdq-amber: #ffa900;
  width: 100%;
  min-width: 0;
  margin: 0 5px 8px;
  padding: clamp(16px, 3.5vw, 30px);
  border: 1px solid #ccd3d1;
  border-radius: 12px;
  background: #fff;
  color: var(--cdq-ink);
  font: inherit;
  text-align: left;
}
.cdq-card, .cdq-card * { box-sizing: border-box; }
.elementor-form .cdq-card[hidden], .elementor-form .cdq-card [hidden] { display: none !important; }
.cdq-progress { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.cdq-count { color: #425650; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cdq-track { flex: 1; height: 5px; background: #e5e9e7; border-radius: 4px; overflow: hidden; }
.cdq-fill { display: block; height: 100%; background: #986400; }
.cdq-card .cdq-step { padding: 0; border: 0; margin: 0; min-width: 0; }
.cdq-card .cdq-title {
  display: block;
  width: 100%;
  margin: 0 0 16px;
  padding: 0;
  color: var(--cdq-ink);
  font: inherit;
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.22;
  scroll-margin-block: 90px 16px;
}
.cdq-card .elementor-field-group { width: 100%; margin: 0 0 12px; padding: 0; min-width: 0; }
.cdq-card :is(.elementor-field-type-radio,.elementor-field-group-name,.elementor-field-group-project_location) { margin-bottom: 0; }
.cdq-card .elementor-field-subgroup {
  width: 100%; display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
  gap: 8px;
}
.cdq-card .elementor-field-option { display: flex; align-items: center; position: relative; min-width: 0; }
.cdq-card .elementor-field-option input[type="radio"] {
  position: absolute; inset-inline-start: 12px; z-index: 1;
  margin: 0; width: 17px; height: 17px; accent-color: #825400;
}
.cdq-card .elementor-field-option label {
  display: flex; align-items: center; width: 100%; min-height: 46px; margin: 0;
  padding: 8px 10px 8px 39px; cursor: pointer; border: 1px solid #a9b6b2;
  border-radius: 6px; color: var(--cdq-ink); background: white;
  font: inherit; font-size: 16px; font-weight: 500; line-height: 1.3;
}
.cdq-card .elementor-field-option input:checked + label { border-color: #835900; background: #fff4db; box-shadow: inset 0 0 0 1px #835900; }
.cdq-card :is(.elementor-field-option input:focus-visible + label, input:focus-visible, textarea:focus-visible, button:focus-visible, summary:focus-visible) {
  outline: 3px solid #24566a; outline-offset: 2px;
}
.cdq-card .elementor-field-group > .elementor-field-label { color: var(--cdq-ink); padding: 0 0 5px; font-size: 15px; }
.cdq-card .elementor-field:not([type="radio"]) {
  background: #fff; color: var(--cdq-ink); width: 100%; min-height: 46px;
  padding: 10px 12px; border: 1px solid #9caea8; border-radius: 6px; font: inherit; font-size: 16px;
}
.cdq-card .elementor-field-group-reply_by { margin-bottom: 12px; }
.cdq-notes { margin: 8px 0 0; font-size: 14px; color: #354a43; }
.cdq-notes summary { cursor: pointer; padding: 8px 0; }
.cdq-notes[open] .elementor-field-label { display: none; }
.cdq-controls { display: flex; gap: 12px; align-items: center; margin-top: 18px; }
.cdq-controls .elementor-field-type-submit { margin: 0; width: auto; flex: 1; }
.cdq-controls .cdq-next, .cdq-controls .elementor-field-type-submit button[type="submit"] {
  display: inline-flex; justify-content: center; align-items: center; flex: 1; width: 100%; min-height: 46px;
  padding: 10px 15px; border: 1px solid var(--cdq-ink); border-radius: 6px; background: var(--cdq-amber);
  color: var(--cdq-ink); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.25;
  text-transform: none; letter-spacing: normal; white-space: normal; cursor: pointer;
}
.cdq-controls .cdq-back {
  min-height: 44px; padding: 8px 10px; margin: 0; border: 0; background: transparent;
  color: #244943; font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer;
}
.cdq-card .cdq-error:not(:empty) { margin-top: 12px; color: #8a251f; font-size: 15px; font-weight: 600; }
@media (max-width: 480px) {
  .elementor-form .cdq-card { padding: 15px; }
  .cdq-card .elementor-field-subgroup { grid-template-columns: 1fr; gap: 6px; }
  .cdq-card .cdq-title { margin-bottom: 12px; }
  .cdq-controls { margin-top: 14px; }
}
