/* 247 Auto Locksmith — Key Quote Form */
:root {
  --navy: #0038a8;
  --navy-dark: #002a7a;
  --red: #dc2626;
  --red-dark: #b91c1c;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --bg: #f1f5f9;
  --card: #ffffff;
  --plate-yellow: #f7c948;
  --plate-blue: #003399;
  --ok: #15803d;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  /* Same as site hero / banner bands */
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  background-attachment: fixed;
}

.kq-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

.kq-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.kq-brand strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: #ffffff;
}


.kq-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 28px 22px 22px;
}

.kq-title {
  margin: 0 0 6px;
  text-align: center;
  font-size: clamp(1.55rem, 4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.kq-lead {
  margin: 0 0 18px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.kq-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.kq-progress-track {
  flex: 1;
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.kq-progress-bar {
  height: 100%;
  width: 20%;
  background: var(--navy);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.kq-progress-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.kq-step {
  display: none;
}

.kq-step.is-active {
  display: block;
  animation: kqIn 0.22s ease;
}

@keyframes kqIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.kq-step h2 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  font-weight: 800;
}

.kq-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.kq-hint {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.kq-field {
  margin-bottom: 14px;
}

.kq-input,
.kq-textarea,
.kq-file {
  width: 100%;
  font: inherit;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.kq-input:focus,
.kq-textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(0, 56, 168, 0.15);
}

.kq-textarea {
  min-height: 110px;
  resize: vertical;
}

.kq-error {
  display: none;
  margin: 8px 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
}

.kq-error.is-visible {
  display: block;
}

/* UK plate — GB | yellow reg | search (matches live keyquote plate) */
.kq-plate-wrap {
  text-align: center;
  margin: 8px 0 6px;
}

.kq-plate {
  --plate-side: 52px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 420px;
  min-height: 56px;
  margin: 0 auto;
  border: 2px solid #2b2b2b;
  border-radius: 8px;
  overflow: hidden;
  background: #ffd000;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.kq-plate-gb {
  flex: 0 0 var(--plate-side);
  width: var(--plate-side);
  background: #003399;
  color: #ffd000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  user-select: none;
}

.kq-plate-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: 0;
  margin: 0;
  background: #ffd000;
  text-align: center;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 6px;
  font-family: Arial, Helvetica, sans-serif;
  color: #111;
  line-height: 1.2;
}

.kq-plate-input::placeholder {
  color: #1a1a1a;
  opacity: 0.75;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 800;
}

@media (min-width: 400px) {
  .kq-plate-input::placeholder {
    font-size: 0.92rem;
    letter-spacing: 0.06em;
  }
}

.kq-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.kq-plate-input:focus {
  outline: none;
}

.kq-plate-search {
  flex: 0 0 var(--plate-side);
  width: var(--plate-side);
  min-width: var(--plate-side);
  border: 0;
  margin: 0;
  padding: 0;
  cursor: pointer;
  background-color: #003399;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='6' fill='none' stroke='%23ffd000' stroke-width='2.5'/%3E%3Cline x1='14.5' y1='14.5' x2='20' y2='20' stroke='%23ffd000' stroke-width='2.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}

.kq-plate-search:hover {
  background-color: #002266;
}

.kq-plate-search:focus-visible {
  outline: 2px solid #ffd000;
  outline-offset: -4px;
}

.kq-vehicle {
  display: none;
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
}

.kq-vehicle.is-visible {
  display: block;
}

.kq-vehicle dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.kq-vehicle div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  font-size: 0.92rem;
}

.kq-vehicle dt {
  font-weight: 700;
  color: var(--muted);
}

.kq-vehicle dd {
  margin: 0;
  font-weight: 700;
}

.kq-manual {
  display: none;
  margin-top: 12px;
}

.kq-manual.is-visible {
  display: block;
}

/* Options / radios */
.kq-options {
  display: grid;
  gap: 8px;
}

.kq-option {
  position: relative;
  display: block;
  cursor: pointer;
}

.kq-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.kq-option-body {
  display: block;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.kq-option-body strong {
  display: block;
  font-size: 0.95rem;
}

.kq-option-body span {
  display: block;
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.kq-option input:checked + .kq-option-body {
  border-color: var(--navy);
  background: rgba(0, 56, 168, 0.06);
  box-shadow: 0 0 0 3px rgba(0, 56, 168, 0.14);
}

.kq-option:hover .kq-option-body {
  border-color: #94a3b8;
}

.kq-inline-radios {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.kq-chip {
  position: relative;
  cursor: pointer;
}

.kq-chip input {
  position: absolute;
  opacity: 0;
}

.kq-chip span {
  display: inline-block;
  min-width: 72px;
  text-align: center;
  padding: 10px 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  background: #fff;
}

.kq-chip input:checked + span {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.kq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.kq-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 12px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.kq-btn:active {
  transform: translateY(1px);
}

.kq-btn-primary {
  background: var(--navy);
  color: #fff;
}

.kq-btn-primary:hover {
  background: var(--navy-dark);
}

.kq-btn-secondary {
  background: #e2e8f0;
  color: var(--ink);
}

.kq-btn-secondary:hover {
  background: #cbd5e1;
}

.kq-btn-accent {
  background: var(--navy);
  color: #fff;
}

.kq-btn-accent:hover {
  background: var(--navy-dark);
}

.kq-success {
  text-align: center;
  padding: 10px 0 4px;
}

.kq-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(21, 128, 61, 0.12);
  color: var(--ok);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
}

.kq-summary {
  text-align: left;
  margin: 16px 0;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  line-height: 1.5;
}

.kq-summary strong {
  color: var(--muted);
  font-weight: 700;
}

.kq-file-name {
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.kq-hidden {
  display: none !important;
}

@media (min-width: 640px) {
  .kq-wrap {
    padding-top: 36px;
  }

  .kq-card {
    padding: 32px 28px 26px;
  }
}

/* Live UK location autocomplete */
.kq-location-field {
  position: relative;
}

.kq-location-suggestions {
  display: none;
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: calc(100% + 5px);
  max-height: 230px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--border, #d8dde8);
  border-radius: 12px;
  box-shadow: 0 14px 35px rgba(20, 30, 55, .18);
  padding: 6px;
}

.kq-location-suggestions.is-visible {
  display: block;
}

.kq-location-suggestion {
  width: 100%;
  display: block;
  border: 0;
  background: transparent;
  color: #20283a;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  line-height: 1.35;
  cursor: pointer;
}

.kq-location-suggestion:hover,
.kq-location-suggestion:focus {
  background: #f3f6fb;
  outline: none;
}

.kq-location-loading,
.kq-location-empty {
  padding: 10px 12px;
  color: #667085;
  font-size: 13px;
}
