/* =============================================
   Key Crafters Quote Widget — static-site port
   All classes prefixed `kc-` to avoid colliding
   with the rest of the site's styles.
   Brand greens: #16a34a / #15803d / #22c55e
   ============================================= */

.kc-quote-wrap {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #141a14;
  max-width: 680px;
  margin: 0 auto;
  box-sizing: border-box;
}
.kc-quote-wrap *,
.kc-quote-wrap *::before,
.kc-quote-wrap *::after { box-sizing: border-box; }

/* ---- Header ---- */
.kc-app-header { background:#fff; border-bottom:1px solid #d6dbd6; padding:.875rem 1.25rem; border-radius:12px 12px 0 0; }
.kc-header-inner { display:flex; align-items:center; }
.kc-logo { display:flex; align-items:center; gap:.625rem; }
.kc-logo-img { width:44px; height:44px; border-radius:6px; object-fit:contain; flex-shrink:0; }
.kc-logo-text { display:flex; flex-direction:column; line-height:1.2; }
.kc-logo-name { font-weight:800; font-size:.9375rem; color:#141a14; font-family:'Sora','Inter',sans-serif; }
.kc-logo-durham { color:#16a34a; }
.kc-logo-tagline { font-size:.75rem; color:#5a6b5a; }

/* ---- Hero strip ---- */
.kc-hero-strip {
  background: linear-gradient(135deg,#0d1f14 0%,#0f2d1c 60%,#071510 100%);
  padding: 1.75rem 1.25rem 1.5rem;
  position: relative;
  overflow: hidden;
}
.kc-hero-strip::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(34,197,94,.12) 0%, transparent 65%);
  pointer-events: none;
}
.kc-hero-inner { position: relative; z-index: 1; }
.kc-hero-title { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 0 0 .4rem; letter-spacing: -.02em; font-family: 'Sora','Inter',sans-serif; }
.kc-hero-sub { font-size: .875rem; color: rgba(255,255,255,.72); margin: 0 0 1rem; }
.kc-trust-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.kc-pill {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .25rem .75rem; border-radius: 999px;
  font-size: .75rem; font-weight: 600;
  background: rgba(34,197,94,.15);
  border: 1px solid rgba(34,197,94,.3);
  color: #86efac;
}

/* ---- Form card ---- */
.kc-form-card {
  background: #fff;
  border: 1px solid #d6dbd6;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.10);
  overflow: hidden;
}

/* ---- Steps strip ---- */
.kc-steps {
  display: flex; align-items: center;
  padding: 1.125rem 1.5rem;
  border-bottom: 1px solid #e2e6e2;
  background: #f9faf9;
}
.kc-step { display:flex; align-items:center; gap:.45rem; opacity:.4; flex-shrink:0; transition: opacity .18s; }
.kc-step.kc-active { opacity: 1; }
.kc-step.kc-completed { opacity: .75; }
.kc-step-num {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid #d6dbd6;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
  color: #5a6b5a; background: #fff;
  transition: all .18s; flex-shrink: 0;
}
.kc-step.kc-active .kc-step-num { background:#16a34a; border-color:#16a34a; color:#fff; }
.kc-step.kc-completed .kc-step-num { background:#dcfce7; border-color:#16a34a; color:#16a34a; }
.kc-step-label { font-size:.75rem; font-weight:600; color:#5a6b5a; white-space:nowrap; }
.kc-step.kc-active .kc-step-label { color:#141a14; }
.kc-step-line { flex: 1; height: 2px; background: #e2e6e2; margin: 0 .4rem; min-width: 16px; }

/* ---- Form steps ---- */
.kc-form-step { display:none; padding:1.5rem; border:none; margin:0; }
.kc-form-step.kc-active { display:block; }

.kc-field-group { display:flex; flex-direction:column; gap:1.1rem; }
.kc-field { display:flex; flex-direction:column; gap:.35rem; }

.kc-label { font-size:.875rem; font-weight:600; color:#141a14; }
.kc-req { color:#dc2626; font-weight:700; }
.kc-optional { font-weight:400; color:#5a6b5a; font-size:.75rem; }

.kc-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #d6dbd6;
  border-radius: 8px;
  background: #f9faf9;
  color: #141a14;
  font-size: 1rem;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.kc-input:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(34,197,94,.2);
  background: #fff;
}
.kc-input.kc-error-field { border-color: #dc2626; }
.kc-input--half { max-width: 220px; }
.kc-textarea { resize: vertical; min-height: 80px; line-height: 1.5; }

.kc-error { font-size:.75rem; color:#dc2626; min-height:1em; display:block; }

/* ---- Section divider ---- */
.kc-section-divider {
  display:flex; align-items:center; gap:.75rem;
  margin: 1.4rem 0 .875rem;
  color:#5a6b5a; font-size:.7rem; font-weight:700;
  letter-spacing:.06em; text-transform:uppercase;
}
.kc-section-divider::before,
.kc-section-divider::after { content:''; flex:1; height:1px; background:#e2e6e2; }

/* ---- GPS button ---- */
.kc-gps-btn {
  display: flex; align-items: center; gap: .75rem;
  width: 100%; padding: .9rem 1.125rem;
  border: 1.5px dashed #16a34a;
  border-radius: 10px;
  background: #f0fdf4;
  color: #16a34a;
  font-size: .875rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all .18s;
}
.kc-gps-btn:hover { border-style: solid; background: #16a34a; color: #fff; }
.kc-gps-btn:disabled { opacity: .7; cursor: default; }
.kc-gps-text { flex: 1; text-align: left; }
.kc-gps-badge {
  font-size: .7rem; font-weight: 700;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: #16a34a; color: #fff;
}
.kc-gps-btn:hover .kc-gps-badge { background: rgba(255,255,255,.25); }
.kc-gps-hint { font-size:.75rem; color:#5a6b5a; min-height:1.2em; margin:.35rem 0 0; text-align:center; }

/* ---- Reg plate ---- */
.kc-reg-plate {
  display: flex; align-items: stretch;
  border: 1.5px solid #d6dbd6;
  border-radius: 8px;
  overflow: hidden;
  background: #f9faf9;
}
.kc-reg-plate:focus-within { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.kc-reg-gb {
  padding: 0 .875rem;
  background: #003399; color: #fff;
  font-weight: 800; font-size: .75rem;
  display: flex; align-items: center;
  letter-spacing: .05em;
  border-right: 1.5px solid #d6dbd6;
  flex-shrink: 0;
}
.kc-reg-input {
  border: none; border-radius: 0; background: transparent;
  text-transform: uppercase; letter-spacing: .1em;
  font-weight: 700; font-size: 1rem; width: 100%;
  padding: .75rem 1rem;
  font-family: inherit;
  color: #141a14;
}
.kc-reg-input:focus { outline: none; box-shadow: none; }

/* ---- Toggle yes/no ---- */
.kc-toggle-group { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
.kc-toggle {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .75rem; border-radius: 8px;
  border: 1.5px solid #d6dbd6;
  font-size: .875rem; font-weight: 600;
  background: #f9faf9; color: #5a6b5a;
  cursor: pointer; font-family: inherit;
  transition: all .18s;
}
.kc-toggle:hover { border-color: #16a34a; color: #16a34a; }
.kc-toggle.kc-selected.kc-toggle--yes { background: #f0fdf4; border-color: #16a34a; color: #16a34a; }
.kc-toggle.kc-selected.kc-toggle--no  { background: #fef2f2; border-color: #dc2626; color: #dc2626; }

/* ---- Service grid ---- */
.kc-service-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: .625rem; margin-top: .25rem;
}
@media (min-width: 480px) { .kc-service-grid { grid-template-columns: repeat(4,1fr); } }
.kc-service-card {
  display: flex; flex-direction: column; align-items: center;
  gap: .375rem; padding: .875rem .5rem;
  border: 1.5px solid #d6dbd6; border-radius: 10px;
  background: #f9faf9; color: #5a6b5a;
  font-size: .75rem; font-weight: 600;
  text-align: center; cursor: pointer;
  font-family: inherit;
  transition: all .18s;
  line-height: 1.3;
}
.kc-service-card:hover { border-color:#16a34a; color:#16a34a; background:#f0fdf4; }
.kc-service-card.kc-selected { border-color:#16a34a; background:#f0fdf4; color:#16a34a; box-shadow: 0 0 0 3px rgba(34,197,94,.15); }

/* ---- Newsletter row ---- */
.kc-newsletter-row {
  margin-top: 1rem; padding: .875rem 1rem;
  background: #f0fdf4; border: 1.5px solid #bbf7d0;
  border-radius: 8px;
  display: flex; align-items: flex-start; gap: .625rem;
}
.kc-newsletter-row input[type="checkbox"] {
  width: 18px; height: 18px; margin-top: 2px;
  accent-color: #16a34a; flex-shrink: 0; cursor: pointer;
}
.kc-newsletter-row label {
  font-size: .8125rem; color:#166534; cursor: pointer; line-height: 1.4;
}

/* ---- Summary ---- */
.kc-summary {
  margin: 1.1rem 0; padding: 1rem;
  border-radius: 10px;
  background: #f4f5f4; border: 1px solid #e2e6e2;
  display: none;
}
.kc-summary.kc-visible { display: block; }
.kc-summary-title { font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:#5a6b5a; margin: 0 0 .625rem; }
.kc-summary-grid { display: grid; grid-template-columns: auto 1fr; gap: .2rem .75rem; font-size:.875rem; }
.kc-summary-key { color:#5a6b5a; font-weight:600; white-space:nowrap; }
.kc-summary-val { color:#141a14; font-weight:500; word-break: break-word; }

/* ---- Step nav ---- */
.kc-step-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 1.5rem; gap: .75rem;
}

/* ---- Buttons ---- */
.kc-btn {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .8rem 1.4rem;
  border-radius: 8px;
  font-size: .875rem; font-weight: 700;
  line-height: 1; text-decoration: none;
  border: none; cursor: pointer;
  font-family: inherit;
  transition: all .18s;
}
.kc-btn--primary { background: #16a34a; color: #fff; }
.kc-btn--primary:hover { background: #15803d; color: #fff; }
.kc-btn--ghost { background: transparent; color: #5a6b5a; border: 1.5px solid #d6dbd6; }
.kc-btn--ghost:hover { background: #f4f5f4; color: #141a14; }
.kc-btn--submit {
  flex: 1; justify-content: center;
  background: #16a34a; color: #fff;
  font-size: 1rem; padding: .9375rem 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 18px rgba(34,197,94,.25);
  white-space: nowrap;
}
.kc-btn--submit:hover { background: #15803d; box-shadow: 0 6px 24px rgba(34,197,94,.3); transform: translateY(-1px); }
.kc-btn--submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ---- Success panel ---- */
.kc-success {
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: none; flex-direction: column; align-items: center; gap: 1rem;
}
.kc-success.kc-visible { display: flex; }
.kc-success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: #f0fdf4; border: 2px solid #16a34a;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #16a34a;
}
.kc-success-title { font-size: 1.5rem; font-weight: 800; color: #141a14; margin: 0; font-family: 'Sora','Inter',sans-serif; }
.kc-success-msg { font-size: .875rem; color: #5a6b5a; max-width: 36ch; margin: 0; }
.kc-success-actions { display: flex; flex-direction: column; gap: .625rem; width: 100%; max-width: 300px; }
.kc-success-actions .kc-btn { justify-content: center; width: 100%; }

/* ---- Contact strip ---- */
.kc-contact-strip {
  display: flex; align-items: center; justify-content: center;
  gap: .875rem; padding: .875rem 1rem;
  background: #fff; border: 1px solid #d6dbd6;
  border-radius: 10px; margin-top: .875rem;
  flex-wrap: wrap;
}
.kc-contact-item { font-size:.875rem; font-weight:600; color:#5a6b5a; text-decoration:none; }
.kc-contact-item:hover { color:#16a34a; }
.kc-contact-dot { color:#a0b0a0; }

/* ---- Submit error ---- */
.kc-submit-error {
  color: #dc2626;
  font-size: .8125rem;
  margin-top: .75rem;
  text-align: center;
}

/* ---- Utility ---- */
.kc-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border-width:0; }

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .kc-steps { padding: .875rem 1rem; }
  .kc-step-label { display: none; }
  .kc-form-step { padding: 1.125rem; }
  .kc-service-grid { grid-template-columns: repeat(2,1fr); }
  .kc-hero-title { font-size: 1.375rem; }
}
