/* Reusable quote request form for Round the Clock brand sites.
   Drop in with quote-form.js and a [data-knkms-quote] mount point. */

.knkms-quote {
  max-width: 36rem;
}

.knkms-quote form {
  display: grid;
  gap: 0.85rem;
}

.knkms-quote label.knkms-label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
}

.knkms-quote input[type="text"],
.knkms-quote input[type="tel"],
.knkms-quote input[type="email"],
.knkms-quote textarea,
.knkms-quote select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line-strong, var(--line));
  border-radius: var(--radius, 3px);
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-sizing: border-box;
}

.knkms-quote textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.knkms-quote input:focus,
.knkms-quote textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.knkms-quote .knkms-pref {
  display: grid;
  gap: 0.4rem;
}

.knkms-quote .knkms-pref legend {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink);
  padding: 0;
  margin: 0 0 0.2rem;
}

.knkms-quote .knkms-prefs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.knkms-quote .knkms-prefs label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.knkms-quote .knkms-prefs input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
}

.knkms-quote .knkms-from {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft, var(--muted));
}

.knkms-quote .knkms-consent {
  display: none;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-soft, var(--ink));
}

.knkms-quote.is-text .knkms-consent {
  display: flex;
}

.knkms-quote .knkms-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
}

.knkms-quote .knkms-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.knkms-quote .knkms-actions {
  margin-top: 0.25rem;
}

.knkms-quote .knkms-actions .btn {
  width: auto;
  min-width: 10rem;
  margin-top: 0;
}

.knkms-quote .knkms-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.knkms-quote .knkms-flash {
  margin: 0;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius, 3px);
  font-size: 0.95rem;
}

.knkms-quote .knkms-flash.is-error {
  background: #fde8e8;
  color: #7a1f1f;
}

.knkms-quote .knkms-flash.is-ok {
  background: var(--accent-wash, #e8f5f0);
  color: var(--ink);
}

.knkms-quote.is-done form {
  display: none;
}

.knkms-quote noscript p {
  margin: 0;
  color: var(--muted);
}
