/* ── CRMPRO Quote Generator Frontend ─── Dark Theme ── */
:root {
  --cqg-primary: #af6661;
  --cqg-primary-light: #c4817d;
  --cqg-blue: #7a9bb5;
  --cqg-dark: #121b25;
  --cqg-pale: rgba(255, 255, 255, 0.04);
  --cqg-gray: rgba(255, 255, 255, 0.5);
  --cqg-light: rgba(255, 255, 255, 0.06);
  --cqg-border: rgba(255, 255, 255, 0.12);
  --cqg-success: #10b981;
  --cqg-warning: #f59e0b;
  --cqg-radius: 10px;
  --cqg-card-bg: #1a2a3a;
  --cqg-input-bg: #0f1922;
  --cqg-text: #ffffff;
  --cqg-text-muted: rgba(255, 255, 255, 0.6);
  --cqg-option-active: rgba(175, 102, 97, 0.12);
  --cqg-map-bg: linear-gradient(135deg, #3a546e, #32404d);
  --cqg-suggestions-bg: #1a2a3a;
}

#cqg-quote-app {
  max-width: 720px;
  margin: 0 auto;
  padding: 30px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--cqg-text);
  line-height: 1.5;
  background: var(--cqg-dark);
  border-radius: 15px;
  overflow: hidden;
}
#cqg-quote-app *,
#cqg-quote-app *::before,
#cqg-quote-app *::after {
  box-sizing: border-box;
}

/* ── Progress Bar ─────────────────────────────────── */
.cqg-progress {
  margin-bottom: 28px;
}
.cqg-progress-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cqg-progress-label {
  font-size: 12px;
  color: var(--cqg-gray);
  font-weight: 500;
  transition: color 0.3s;
}
.cqg-progress-label.active {
  color: var(--cqg-primary);
  font-weight: 600;
}
.cqg-progress-bar {
  background: var(--cqg-light);
  border-radius: 20px;
  height: 6px;
  overflow: hidden;
}
.cqg-progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--cqg-primary),
    var(--cqg-primary-light)
  );
  border-radius: 20px;
  transition: width 0.4s ease;
}
.coastline-estimate-form {
  background-color: #1a2a3a;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  padding: 32px !important;
}
/* ── Steps ────────────────────────────────────────── */
.cqg-step {
  display: none;
  animation: cqgFadeIn 0.3s ease;
}
.cqg-step.active {
  display: block;
}
@keyframes cqgFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cqg-step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.cqg-step-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(175, 102, 97, 0.12);
  border-radius: 10px;
  color: var(--cqg-primary);
}
.cqg-step-header h2 {
  margin: 0 0 4px;
  font-size: 22px;
  color: var(--cqg-text);
  line-height: 1.2;
}
.cqg-step-header p {
  margin: 0;
  color: var(--cqg-text-muted);
  font-size: 14px;
}

/* ── Fields ───────────────────────────────────────── */
.cqg-field {
  margin-bottom: 20px;
}
.cqg-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cqg-blue);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cqg-field input[type="text"],
.cqg-field input[type="number"],
.cqg-field input[type="email"],
.cqg-field input[type="tel"],
.cqg-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cqg-border);
  border-radius: var(--cqg-radius);
  font-size: 15px;
  color: var(--cqg-text);
  background: var(--cqg-card-bg);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: inherit;
}
.cqg-field input::placeholder,
.cqg-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.cqg-field input:focus,
.cqg-field textarea:focus {
  outline: none;
  border-color: var(--cqg-primary);
  box-shadow: 0 0 0 3px rgba(175, 102, 97, 0.2);
}
.cqg-field textarea {
  resize: vertical;
}
.cqg-hint {
  font-size: 12px;
  color: var(--cqg-gray);
  margin-top: 4px;
}
.cqg-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) {
  .cqg-field-row {
    grid-template-columns: 1fr;
  }
}

/* ── Input with badge ─────────────────────────────── */
.cqg-input-with-badge {
  position: relative;
}
.cqg-input-with-badge input {
  padding-right: 100px;
}
.cqg-size-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(175, 102, 97, 0.15);
  color: var(--cqg-primary-light);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ── Volume Tip ───────────────────────────────────── */
.cqg-volume-tip {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--cqg-radius);
  padding: 10px 14px;
  font-size: 13px;
  color: #fcd34d;
  margin-top: 8px;
}

/* ── Suggestions ──────────────────────────────────── */
.cqg-suggestions {
  position: absolute;
  z-index: 100;
  width: 100%;
  background: var(--cqg-suggestions-bg);
  border: 2px solid var(--cqg-border);
  border-top: 0;
  border-radius: 0 0 var(--cqg-radius) var(--cqg-radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.cqg-field {
  position: relative;
}
.cqg-sug-item {
  padding: 10px 16px;
  font-size: 14px;
  color: var(--cqg-text-muted);
  cursor: pointer;
  transition: background 0.15s;
}
.cqg-sug-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--cqg-text);
}

/* ── Map Placeholder ──────────────────────────────── */
.cqg-map-placeholder {
  width: 100%;
  height: 220px;
  background: var(--cqg-map-bg);
  border-radius: var(--cqg-radius);
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.cqg-map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cqg-map-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}
.cqg-map-icon {
  margin-bottom: 8px;
  color: var(--cqg-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cqg-map-content p {
  margin: 0;
  font-size: 13px;
  color: var(--cqg-gray);
}
.cqg-map-pin {
  font-size: 48px;
  margin-bottom: 8px;
  animation: cqgBounce 0.5s ease;
}
@keyframes cqgBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}
.cqg-map-found {
  font-weight: 600;
  color: var(--cqg-success) !important;
  font-size: 16px !important;
  margin-bottom: 4px !important;
}
.cqg-map-addr {
  font-weight: 500;
  color: var(--cqg-text) !important;
  font-size: 14px !important;
}
.cqg-map-note {
  font-size: 11px !important;
  margin-top: 6px !important;
  opacity: 0.6;
}

.cqg-service-areas {
  text-align: center;
  font-size: 12px;
  color: var(--cqg-gray);
}

/* ── Roof Type Options ────────────────────────────── */
.cqg-option-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cqg-option {
  border: 2px solid var(--cqg-border);
  border-radius: var(--cqg-radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--cqg-card-bg);
}
.cqg-option:hover {
  border-color: var(--cqg-primary-light);
  background: rgba(175, 102, 97, 0.08);
}
.cqg-option.active {
  border-color: var(--cqg-primary);
  background: var(--cqg-option-active);
}
.cqg-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  color: var(--cqg-primary);
}
.cqg-option-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--cqg-text);
}
.cqg-option-note {
  font-size: 11px;
  color: var(--cqg-gray);
  margin-top: 2px;
}

/* ── Condition Cards ──────────────────────────────── */
.cqg-option-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cqg-option-grid-5 {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 640px) {
  .cqg-option-grid-5 {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 540px) {
  .cqg-option-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cqg-option-grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cqg-option-card {
  border: 2px solid var(--cqg-border);
  border-radius: var(--cqg-radius);
  padding: 14px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--cqg-card-bg);
}
.cqg-option-card:hover {
  border-color: var(--cqg-primary-light);
}
.cqg-option-card.active {
  border-color: var(--cqg-primary);
  background: var(--cqg-option-active);
}
.cqg-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.cqg-card-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--cqg-text);
}
.cqg-card-pct {
  font-size: 11px;
  color: var(--cqg-gray);
  font-weight: 600;
}
.cqg-card-desc {
  font-size: 12px;
  color: var(--cqg-text-muted);
  line-height: 1.3;
}

/* ── Material Cards ───────────────────────────────── */
.cqg-material-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cqg-material-card-front {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 2px solid var(--cqg-border);
  border-radius: var(--cqg-radius);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--cqg-card-bg);
}
.cqg-material-card-front:hover {
  border-color: var(--cqg-primary-light);
  box-shadow: 0 4px 12px rgba(175, 102, 97, 0.12);
}
.cqg-material-card-front.active {
  border-color: var(--cqg-primary);
  background: var(--cqg-option-active);
  box-shadow: 0 4px 16px rgba(175, 102, 97, 0.15);
}
.cqg-mat-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(175, 102, 97, 0.1);
  border-radius: 10px;
  color: var(--cqg-primary);
}
.cqg-mat-body {
  flex: 1;
  min-width: 0;
}
.cqg-mat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}
.cqg-mat-head h3 {
  margin: 0;
  font-size: 16px;
  color: var(--cqg-text);
  line-height: 1.2;
}
.cqg-mat-rate {
  background: rgba(175, 102, 97, 0.15);
  color: var(--cqg-primary-light);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cqg-mat-desc {
  font-size: 13px;
  color: var(--cqg-text-muted);
  margin: 0 0 6px;
  line-height: 1.4;
}
.cqg-mat-total {
  font-size: 14px;
  font-weight: 600;
  color: var(--cqg-text);
  margin: 8px 0 0;
}
.cqg-mat-total span {
  font-weight: 400;
  color: var(--cqg-gray);
  font-size: 12px;
}
.cqg-mat-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--cqg-border);
}
.cqg-mat-benefits span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--cqg-success);
  font-weight: 500;
}

/* ── Timeline ─────────────────────────────────────── */
.cqg-timeline-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 540px) {
  .cqg-timeline-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
.cqg-timeline-btn {
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  border: 2px solid var(--cqg-border);
  border-radius: var(--cqg-radius);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--cqg-card-bg);
  color: var(--cqg-text-muted);
}
.cqg-timeline-btn:hover {
  border-color: var(--cqg-primary-light);
}
.cqg-timeline-btn.active {
  border-color: var(--cqg-primary);
  background: rgba(175, 102, 97, 0.12);
  color: var(--cqg-primary-light);
  font-weight: 600;
}

/* ── Navigation ───────────────────────────────────── */
.cqg-nav {
  display: flex;
  align-items: center;
  margin-top: 28px;
  gap: 12px;
}
.cqg-nav-spacer {
  flex: 1;
}
.cqg-btn-next {
  background: var(--cqg-primary) !important;
  color: #fff;
  border: none;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--cqg-radius);
  cursor: pointer;
  transition: all 0.2s;
}
.cqg-btn-next:hover:not(:disabled) {
  background: #9b554f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(175, 102, 97, 0.3);
}
.cqg-btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.cqg-btn-back {
  background: none;
  border: 2px solid var(--cqg-border);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--cqg-radius);
  cursor: pointer;
  color: var(--cqg-text-muted);
  transition: all 0.2s;
}
.cqg-btn-back:hover {
  border-color: var(--cqg-primary-light);
  color: var(--cqg-primary-light);
}

/* ── Trust Badges ─────────────────────────────────── */
.cqg-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--cqg-border);
}
.cqg-trust span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--cqg-gray);
  font-weight: 500;
}
.cqg-trust span svg {
  color: var(--cqg-success);
}

/* ── Quote Result ─────────────────────────────────── */
.cqg-q-header {
  text-align: center;
  padding: 28px 0 20px;
}
.cqg-q-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cqg-success);
  margin-bottom: 12px;
  animation: cqgPop 0.4s ease;
}
@keyframes cqgPop {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}
.cqg-q-header h2 {
  margin: 0 0 4px;
  font-size: 24px;
  color: var(--cqg-text);
}
.cqg-q-header p {
  margin: 0;
  color: var(--cqg-text-muted);
  font-size: 14px;
}

/* ── Price Display ────────────────────────────────── */
.cqg-q-price {
  background: #0c1219;
  border-radius: var(--cqg-radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 20px;
  border: 1px solid var(--cqg-border);
}
.cqg-q-price-label {
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.cqg-q-price-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.cqg-q-price-range div {
  text-align: center;
}
.cqg-q-price-range small {
  display: block;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.cqg-q-price-range strong {
  font-size: 28px;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.cqg-q-dash {
  color: rgba(255, 255, 255, 0.3);
  font-size: 24px;
}
.cqg-q-rate {
  font-size: 13px;
  color: var(--cqg-primary-light);
  margin-top: 10px;
}

/* ── Breakdown ────────────────────────────────────── */
.cqg-q-breakdown {
  background: var(--cqg-card-bg);
  border-radius: var(--cqg-radius);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--cqg-border);
}
.cqg-q-breakdown h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--cqg-text);
}
.cqg-bd-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 14px;
  color: var(--cqg-text-muted);
  border-bottom: 1px solid var(--cqg-border);
}
.cqg-bd-row:last-child {
  border-bottom: 0;
}
.cqg-bd-row.accent span:last-child {
  color: var(--cqg-warning);
  font-weight: 600;
}
.cqg-bd-row.total {
  font-weight: 600;
  color: var(--cqg-text);
  border-top: 2px solid var(--cqg-primary);
  padding-top: 10px;
  margin-top: 4px;
}
.cqg-bd-row.total span:last-child {
  color: var(--cqg-primary-light);
}

/* ── Summary Grid ─────────────────────────────────── */
.cqg-q-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 540px) {
  .cqg-q-summary {
    grid-template-columns: 1fr;
  }
}
.cqg-q-summary > div {
  background: var(--cqg-card-bg);
  border: 1px solid var(--cqg-border);
  border-radius: var(--cqg-radius);
  padding: 12px 16px;
}
.cqg-q-summary small {
  font-size: 11px;
  color: var(--cqg-gray);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cqg-q-summary p {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--cqg-text);
}

/* ── What Happens Next ────────────────────────────── */
.cqg-q-next {
  margin-bottom: 20px;
}
.cqg-q-next h3 {
  margin: 0 0 14px;
  font-size: 16px;
  color: var(--cqg-text);
}
.cqg-q-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cqg-q-steps > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cqg-q-steps span {
  display: flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: var(--cqg-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}
.cqg-q-steps p {
  margin: 0;
  font-size: 14px;
  color: var(--cqg-text-muted);
  padding-top: 4px;
}

/* ── Interested CTA (on estimate page) ────────────── */
.cqg-q-interested {
  background: rgba(175, 102, 97, 0.1);
  border: 2px solid var(--cqg-primary);
  border-radius: var(--cqg-radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  text-align: center;
}
.cqg-q-interested h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--cqg-primary-light);
}
.cqg-q-interested p {
  margin: 0;
  font-size: 14px;
  color: var(--cqg-text-muted);
  line-height: 1.5;
}

/* ── Contact Recap Box ────────────────────────────── */
.cqg-contact-quote-recap {
  margin-bottom: 24px;
}
.cqg-recap-box {
  background: #0c1219;
  border-radius: var(--cqg-radius);
  padding: 16px 20px;
  text-align: center;
  border: 1px solid var(--cqg-border);
}
.cqg-recap-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}
.cqg-recap-price {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}
.cqg-recap-detail {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* ── Disclaimer ───────────────────────────────────── */
.cqg-q-disclaimer {
  font-size: 12px;
  color: var(--cqg-gray);
  text-align: center;
  font-style: italic;
  padding: 12px 0;
  border-top: 1px solid var(--cqg-border);
}

/* ── CTA ──────────────────────────────────────────── */
.cqg-q-cta {
  text-align: center;
  background: var(--cqg-card-bg);
  border-radius: var(--cqg-radius);
  padding: 20px;
  border: 1px solid var(--cqg-border);
}
.cqg-q-cta p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--cqg-text-muted);
}
.cqg-q-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--cqg-primary);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--cqg-radius);
  transition: all 0.2s;
}
.cqg-q-cta a:hover {
  background: #9b554f;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(175, 102, 97, 0.3);
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 540px) {
  .cqg-option-row {
    grid-template-columns: 1fr;
  }
  .cqg-q-price-range strong {
    font-size: 22px;
  }
  .cqg-step-header h2 {
    font-size: 18px;
  }
  .cqg-mat-head {
    flex-direction: column;
    gap: 4px;
  }
}
/* ============================================ */
/* MAPBOX SATELLITE MAP                         */
/* Append to quote-frontend.css                 */
/* ============================================ */

/* Map container when Mapbox is active */
.cqg-map-placeholder .mapboxgl-map {
  border-radius: var(--cqg-radius);
}
.cqg-map-placeholder .mapboxgl-ctrl-group {
  background: rgba(18, 27, 37, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cqg-map-placeholder .mapboxgl-ctrl-group button {
  background-color: transparent;
}
.cqg-map-placeholder .mapboxgl-ctrl-group button + button {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.cqg-map-placeholder .mapboxgl-ctrl-group button span {
  filter: invert(1);
}

/* Property located label */
.cqg-map-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 10;
  background: rgba(18, 27, 37, 0.85);
  backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cqg-map-label span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

/* ── ROOF AUTO-DETECT STYLES ──────────────────────────
   Add these to the end of your existing quote-frontend.css
   ──────────────────────────────────────────────────── */

/* Detect status container */
.cqg-roof-detect {
  margin: 8px 0 4px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  transition: all 0.3s ease;
}

/* Loading state */
.cqg-roof-detect.loading {
  background: #f0f4ff;
  color: #4a5568;
  border: 1px solid #d0d9f0;
}

.cqg-detect-spinner {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  animation: cqg-spin 0.8s linear infinite;
}

@keyframes cqg-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Success state */
.cqg-roof-detect.success {
  background: #f0faf0;
  color: #276749;
  border: 1px solid #c6f6d5;
}

.cqg-roof-detect.success strong {
  color: #22543d;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cqg-roof-detect.success strong svg {
  color: #38a169;
}

.cqg-detect-source {
  color: #718096;
  font-size: 11px;
}

.cqg-roof-detect.success small {
  color: #718096;
  font-style: italic;
}

/* Fallback / not found */
.cqg-roof-detect.fallback {
  background: #fffaf0;
  color: #975a16;
  border: 1px solid #feebc8;
}

/* ── Email Estimate Checkbox ───────────────────────── */
.cqg-checkbox-field {
  margin-top: 4px;
}
.cqg-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--cqg-text-muted);
  padding: 10px 14px;
  background: var(--cqg-pale);
  border: 1px solid var(--cqg-border);
  border-radius: var(--cqg-radius);
  transition: all 0.2s;
}
.cqg-checkbox-label:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}
.cqg-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cqg-primary);
  cursor: pointer;
  flex-shrink: 0;
}
.cqg-checkbox-label span {
  line-height: 1.3;
}
