/* /city/quote-engine/assets/app.css
   City Insurance Group — Quote Engine styling to match main site look
   Works with your current index.php markup.
*/

/* -----------------------------
   Tokens
------------------------------ */
:root {
  --bg: #f3f7ff;
  --surface: #ffffff;
  --surface-2: #f7faff;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.16);

  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;

  --blue: #1d4ed8;
  --blue-2: #0ea5e9;
  --blue-3: #2563eb;

  --danger: #ef4444;
  --success: #16a34a;

  --shadow: 0 16px 40px rgba(2, 6, 23, 0.10);
  --shadow-soft: 0 10px 24px rgba(2, 6, 23, 0.08);

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  --focus: 0 0 0 4px rgba(29, 78, 216, 0.18);

  --max: 1020px;
  --pad: clamp(18px, 3vw, 28px);
  --gap: 14px;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}


/* Ensure boolean hidden always wins */
/*[hidden] { display: none !important; }*/


/* -----------------------------
   Base
------------------------------ */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* -----------------------------
   Site header + footer
------------------------------ */
.qe-site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.qe-site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.qe-brand {
  display: grid;
  gap: 2px;
}

.qe-brand__logo {
  height: 44px;
  width: auto;
  display: block;
}

.qe-product-title {
  font-size: 16px;
  color: #1d4ed8;
  font-weight: 800;
  text-align: right;
}

.qe-helpbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px var(--pad);
}

.qe-helpbar__text {
  color: var(--muted);
  font-weight: 700;
}

.qe-helpbar__phone {
  color: #1d4ed8;
  font-weight: 900;
}

.qe-site-footer {
  margin-top: 24px;
  padding: 18px var(--pad) 26px;
  text-align: center;
  color: var(--muted-2);
  font-weight: 700;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.qe-recaptcha-disclaimer {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-2);
}

.qe-recaptcha-disclaimer a {
  color: #1d4ed8;
}

.grecaptcha-badge {
  visibility: hidden;
}


input,
select,
textarea {
  font-size: 16px;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

strong {
  color: var(--blue);
}

/* -----------------------------
   Wrap
------------------------------ */
.qe-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--pad);
  display: grid;
  gap: 14px;
  width: 100%;
  flex: 1;
  align-content: start;
  align-items: start;
}

.qe-small-text {
  display: block;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.55);
  margin-top: -6px;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Stack nicely on small screens */
@media (max-width: 720px) {
  .qe-card {
    overflow: visible;
  }

  .qe-site-header__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .qe-product-title {
    text-align: left;
  }

  .qe-helpbar {
    flex-direction: column;
  }
}

/* -----------------------------
   Card shell
------------------------------ */
.qe-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

/* -----------------------------
   Progress
------------------------------ */
.qe-progress {
  padding: 18px var(--pad) 0;
}

/* Validation error highlight */
.qe-input--error {
  border-color: var(--danger) !important;
  background-color: #fef2f2 !important;
  /* light red tint */
}

/* Pass error state to custom formatted inputs */
.qe-input--error.qe-input-fmt .qe-input-fmt__input {
  border-color: var(--danger) !important;
  background-color: #fef2f2 !important;
}

.qe-progress::before {
  content: "";
  display: block;
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.07);
}

.qe-progress__bar {
  height: 10px;
  margin-top: -10px;
  /* sit on top of track */
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-3), var(--blue-2));
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.25);
  transition: width 220ms ease;
}

/* -----------------------------
   Step meta
------------------------------ */
.qe-stepmeta {
  padding: 14px var(--pad) 0;
}

.qe-stepmeta__left {
  display: grid;
  gap: 6px;
}

.qe-step {
  color: var(--muted-2);
  font-weight: 700;
  font-size: 13px;
}

.qe-pagetitle {
  font-size: clamp(20px, 2.3vw, 32px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--blue);
}


/* -----------------------------
   Errors
------------------------------ */
.qe-errors {
  margin: 14px var(--pad) 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.08);
  color: #7f1d1d;
  font-weight: 650;
}

.qe-errors ul {
  margin: 0;
  padding-left: 18px;
}

.qe-errors li {
  margin: 6px 0;
}

/* -----------------------------
   Form + fields
------------------------------ */
#qe-form {
  padding: 14px var(--pad) 22px;

}

@media (max-width: 720px) {
  #qe-form {
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }
}


#qe-fields {
  display: grid;
  grid-gap: 14px;
  position: relative;

}

/* Question field card */
.qe-field {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 10px;
}

/* Page transitions */
.qe-page {
  position: relative;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 200ms ease, transform 220ms ease;
}

.qe-page.is-active {
  opacity: 1;
  transform: translateY(0);
}

.qe-page.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

/* Label */
.qe-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-weight: 850;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Help icon */
.qe-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: auto;
  border-radius: 50%;
  border: 2px solid var(--blue-3);
  background: transparent;
  color: var(--blue-3);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease;
  flex-shrink: 0;
}

.qe-help-icon:hover {
  border: 2px solid var(--blue-2);
  background: var(--blue-2);
  color: white;
  transform: scale(1.05);
}

/* Modal */
.qe-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.qe-modal {
  background: white;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 200ms ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.qe-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.qe-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: var(--text);
}

.qe-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.6);
  font-size: 20px;
  cursor: pointer;
  transition: all 150ms ease;
}

.qe-modal__close:hover {
  background: rgba(15, 23, 42, 0.1);
  color: rgba(15, 23, 42, 0.9);
}

.qe-modal__body {
  padding: 24px 28px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(15, 23, 42, 0.75);
  white-space: pre-line;
}

.qe-req {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.10);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

/* Inputs */
.qe-input,
.qe-field input[type="text"],
.qe-field input[type="email"],
.qe-field input[type="tel"],
.qe-field input[type="number"],
.qe-field input[type="date"],
.qe-field select {
  width: 100%;
  height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
  font-weight: 650;
  outline: none;
  transition: box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.qe-field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.2;
}

.qe-field input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
  font-weight: 650;
  font-size: 16px;
}

.qe-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(15, 23, 42, .55) 50%),
    linear-gradient(135deg, rgba(15, 23, 42, .55) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.qe-input:focus,
.qe-field input:focus,
.qe-field select:focus {
  border-color: rgba(29, 78, 216, 0.55);
  box-shadow: var(--focus);
  background: #ffffff;
}

.qe-input::placeholder {
  color: rgba(71, 85, 105, 0.65);
  font-weight: 600;
}

/* Number spinners off (optional) */
.qe-field input[type="number"]::-webkit-outer-spin-button,
.qe-field input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* .qe-field input[type="number"] {
  -moz-appearance: textfield;
} */

/* -----------------------------
   Radios (button-like options)
------------------------------ */
.qe-radios {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.qe-radios--inline .qe-radio {
  flex: 0 1 auto;
}

@media (max-width: 620px) {
  .qe-radios {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .qe-radios--inline .qe-radio {
    flex: 1 1 100%;
  }
}

.qe-radiogrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 620px) {
  .qe-radiogrid {
    grid-template-columns: 1fr;
  }
}

.qe-radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  user-select: none;
}

.qe-radio:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(2, 6, 23, 0.10);
  border-color: rgba(29, 78, 216, 0.22);
  background: #ffffff;
}

.qe-radio input {
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, .25);
  background: #fff;
  display: grid;
  place-items: center;
  margin: 0;
  flex: 0 0 auto;
}

.qe-radio input::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  transform: scale(0);
  transition: transform 120ms ease;
  background: linear-gradient(180deg, var(--blue-3), var(--blue-2));
}

.qe-radio input:checked {
  border-color: rgba(29, 78, 216, 0.60);
  box-shadow: var(--focus);
}

.qe-radio input:checked::before {
  transform: scale(1);
}

.qe-radio span {
  font-weight: 850;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* -----------------------------
   Actions (buttons row)
------------------------------ */
.qe-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}

/* Button base */
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  height: 46px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease, opacity 160ms ease, border-color 160ms ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

/* Primary (Next/Submit) */
.btn-primary {
  background: linear-gradient(90deg, var(--blue-3), var(--blue-2));
  color: #fff;
  box-shadow: 0 12px 28px rgba(29, 78, 216, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(29, 78, 216, 0.34);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Ghost (Back) */
.btn-ghost {
  background: rgba(255, 255, 255, 0.85);
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 10px 22px rgba(2, 6, 23, 0.08);
}

.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(29, 78, 216, 0.22);
}

/* Disabled */
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* -----------------------------
   Success state (submit)
------------------------------ */
.qe-success {
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.10), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.qe-success h2 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.qe-success p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}

/* -----------------------------
   Submit overlay
------------------------------ */
.qe-submit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.qe-submit-card {
  width: min(640px, 92vw);
  background: #fff;
  border-radius: 18px;
  padding: 26px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.qe-submit-title {
  margin: 0 0 6px;
  font-size: 22px;
  color: #1e3a8a;
  font-weight: 800;
}

.qe-submit-subtitle {
  margin: 0 0 16px;
  color: #475569;
  font-weight: 600;
}

.qe-submit-bar {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.qe-submit-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #2563eb, #0ea5e9);
  border-radius: inherit;
  transition: width 120ms linear;
}

.qe-submit-balloons {
  position: relative;
  height: 64px;
  margin: 6px 0 8px;
  overflow: visible;
}

.qe-submit-bubble {
  position: absolute;
  left: 50%;
  transform: translate(-50%, 12px) scale(0.98);
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  animation: qe-float-pill 2.6s ease-out forwards;
  box-shadow: 0 8px 18px rgba(30, 58, 138, 0.12);
}

@keyframes qe-float-pill {
  0% {
    opacity: 0;
    transform: translate(-50%, 22px) scale(0.98);
  }
  15% {
    opacity: 1;
  }
  70% {
    opacity: 0.9;
    transform: translate(-50%, -10px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -22px) scale(1.02);
  }
}

.qe-submit-foot {
  margin-top: 10px;
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
}

.qe-submit-check {
  width: 42px;
  height: 42px;
  margin: 0 auto 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
  font-size: 26px;
  font-weight: 900;
}

.qe-submit-check--error {
  background: rgba(220, 38, 38, 0.12);
  color: #dc2626;
}

.qe-submit-body {
  text-align: left;
  color: #334155;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.55;
}

.qe-submit-body p {
  margin: 10px 0 0;
}

.qe-submit-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.qe-submit-close {
  border: 0;
  background: #eef2ff;
  color: #1e3a8a;
  font-weight: 700;
  border-radius: 10px;
  padding: 8px 18px;
  cursor: pointer;
}

.qe-submit-close:hover {
  background: #e0e7ff;
}

/* -----------------------------
   Small improvements / defaults
------------------------------ */
.qe-field p {
  margin: 0;
  color: var(--muted);
  font-weight: 650;
}


.qe-address {
  display: grid;
  gap: 12px;
}

.qe-address__search {
  display: flex;
  gap: 10px;
  align-items: center;
}

.qe-address__manualbtn {
  flex: 0 0 auto;
}

.qe-address__status {
  font-size: 13px;
  color: var(--muted);
}

.qe-address__results {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  overflow-y: scroll;
  max-height: 300px;
}

.qe-address__item {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
}

.qe-address__item:hover {
  background: rgba(29, 78, 216, .06);
}

.qe-address__manual {
  border-top: 1px dashed rgba(15, 23, 42, .12);
  padding-top: 12px;
}

.qe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 720px) {
  .qe-address__search {
    flex-direction: column;
    align-items: stretch;
  }

  .qe-grid {
    grid-template-columns: 1fr;
  }
}

.qe-review .btn.btn-ghost {
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.qe-review-note-mobile {
  display: none;
}

@media (max-width: 720px) {
  .qe-review-note-desktop {
    display: none;
  }

  .qe-review-note-mobile {
    display: inline;
  }

  .qe-review .btn.btn-ghost {
    display: none;
  }

  .qe-review tr {
    cursor: pointer;
  }
}

@media (max-width: 720px) {
  .qe-review table {
    width: 100%;
    table-layout: fixed;
  }

  .qe-review td {
    word-break: break-word;
  }

  .qe-review td:last-child {
    width: 88px;
  }

  .qe-review .btn.btn-ghost {
    height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
}

.qe-note {
  color: var(--muted);
  font-weight: 650;
  font-size: 13px;
}


/* Utility */
.qe-muted {
  color: var(--muted);
  font-weight: 650;
}

.qe-small {
  font-size: 12.5px;
}

.qe-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qe-linkbtn {
  border: 0;
  background: transparent;
  padding: 0;
  color: #1d4ed8;
  font-weight: 800;
  cursor: pointer;
}

.qe-linkbtn:hover {
  text-decoration: underline;
}

.qe-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  background: rgba(29, 78, 216, .08);
  border: 1px solid rgba(29, 78, 216, .18);
  color: #1d4ed8;
}

.qe-pill--muted {
  background: rgba(15, 23, 42, .05);
  border-color: rgba(15, 23, 42, .10);
  color: rgba(15, 23, 42, .75);
}

/* Vehicle component */
.qe-vehicle {
  display: grid;
  gap: 12px;
}

.qe-vehicle__search {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 10px;
  align-items: start;
}

.qe-vehicle__regwrap {
  display: grid;
  gap: 6px;
}

.qe-vehicle__reg {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
}

.qe-vehicle__type {
  height: 46px;
}

.qe-vehicle__status {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--muted);
  padding-left: 4px;
}

.qe-vehicle__results {
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(2, 6, 23, .08);
}

.qe-vehicle__results .qe-address__item {
  width: 100%;
  text-align: left;
  border: 0;
  background: #fff;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
}

.qe-vehicle__results .qe-address__item+.qe-address__item {
  border-top: 1px solid rgba(15, 23, 42, .08);
}

.qe-vehicle__results .qe-address__item:hover {
  background: rgba(29, 78, 216, .05);
}

.qe-vehicle__selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(29, 78, 216, .18);
  background: rgba(29, 78, 216, .06);
}

.qe-vehicle__selectedmeta {
  display: grid;
  gap: 6px;
}

.qe-vehicle__selectedtext {
  font-weight: 900;
  color: rgba(15, 23, 42, .92);
}

.qe-vehicle__change {
  height: 40px;
  padding: 0 14px;
}

.qe-vehicle__manual {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, .10);
  background: rgba(15, 23, 42, .03);
}

.qe-vehicle__manualhead {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.qe-grid--vehicle {
  display: grid;
  grid-template-columns: 1fr 1fr 180px;
  gap: 10px;
}

.qe-vehicle__value {
  margin-top: 4px;
}

@media (max-width: 760px) {
  .qe-vehicle__search {
    grid-template-columns: 1fr;
  }

  .qe-grid--vehicle {
    grid-template-columns: 1fr;
  }
}


.qe-vehicle__controls {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  align-items: start;
}

.qe-vehicle__searchbtn {
  height: 46px;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .qe-vehicle__controls {
    grid-template-columns: 1fr;
  }
}


/* --- Vehicle search row: reg | type | search --- */
.qe-vehicle__search {
  display: flex;
  gap: 10px;
  align-items: stretch;
  /* makes heights consistent */
  width: 100%;
}

.qe-vehicle__regwrap {
  flex: 1 1 auto;
  min-width: 0;
  /* IMPORTANT: allows input to shrink properly without breaking layout */
  display: grid;
  gap: 6px;
}

.qe-vehicle__reg {
  width: 100%;
}

.qe-vehicle__controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
  align-items: stretch;
}

/* Force type to be usable */
.qe-vehicle__type {
  min-width: 140px;
  /* adjust to taste: 140–170 */
  width: 140px;
  flex: 0 0 140px;
}

/* Search button should not shrink */
.qe-vehicle__searchbtn {
  min-width: 120px;
  flex: 0 0 120px;
}

/* Keep select/button/input heights aligned (match your input height) */
.qe-vehicle__type,
.qe-vehicle__searchbtn,
.qe-vehicle__reg {
  height: 46px;
}

/* If your .qe-input already sets height, keep this anyway—won't hurt */

/* --- Responsive: stack on narrow screens --- */
@media (max-width: 760px) {
  .qe-vehicle__search {
    flex-direction: column;
  }

  .qe-vehicle__controls {
    width: 100%;
  }

  .qe-vehicle__type,
  .qe-vehicle__searchbtn {
    width: 100%;
    flex: 1 1 auto;
    min-width: 0;
  }
}


/* Vehicle card layout */
.qe-vehiclecard {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(29, 78, 216, .18);
  background: rgba(29, 78, 216, .06);
}

.qe-vehiclecard__left {
  display: flex;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.qe-vehiclecard__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(14, 165, 233, .10);
  border: 1px solid rgba(14, 165, 233, .25);
  box-shadow: 0 10px 22px rgba(2, 6, 23, .08);
  flex: 0 0 54px;
  position: relative;
}

.qe-vehiclecard__icon:before {
  content: "";
  position: absolute;
  inset: 12px;
  background: linear-gradient(180deg, #0ea5e9, #2563eb);
}

/* Car icon */
.qe-vehiclecard__icon--car:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.22.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99ZM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13 8 13.67 8 14.5 7.33 16 6.5 16Zm11 0c-.83 0-1.5-.67-1.5-1.5S16.67 13 17.5 13 19 13.67 19 14.5 18.33 16 17.5 16ZM5 11l1.5-4.5h11L19 11H5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.22.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-8l-2.08-5.99ZM6.5 16c-.83 0-1.5-.67-1.5-1.5S5.67 13 6.5 13 8 13.67 8 14.5 7.33 16 6.5 16Zm11 0c-.83 0-1.5-.67-1.5-1.5S16.67 13 17.5 13 19 13.67 19 14.5 18.33 16 17.5 16ZM5 11l1.5-4.5h11L19 11H5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Van icon */
.qe-vehiclecard__icon--van:before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 8h-3V4H3v13c0 .55.45 1 1 1h1a2 2 0 1 0 4 0h6a2 2 0 1 0 4 0h1c.55 0 1-.45 1-1v-5l-2-4Zm-5 0H5V6h10v2Zm-8 9.5c-.83 0-1.5-.67-1.5-1.5S6.17 14.5 7 14.5 8.5 15.17 8.5 16 7.83 17.5 7 17.5Zm10 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5S18.5 15.17 18.5 16 17.83 17.5 17 17.5ZM19.5 12H17V10h1.5l1 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M20 8h-3V4H3v13c0 .55.45 1 1 1h1a2 2 0 1 0 4 0h6a2 2 0 1 0 4 0h1c.55 0 1-.45 1-1v-5l-2-4Zm-5 0H5V6h10v2Zm-8 9.5c-.83 0-1.5-.67-1.5-1.5S6.17 14.5 7 14.5 8.5 15.17 8.5 16 7.83 17.5 7 17.5Zm10 0c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5S18.5 15.17 18.5 16 17.83 17.5 17 17.5ZM19.5 12H17V10h1.5l1 2Z'/%3E%3C/svg%3E") center / contain no-repeat;
}


.qe-vehiclecard__meta {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.qe-vehiclecard__title {
  font-weight: 950;
  letter-spacing: .02em;
  color: rgba(15, 23, 42, .92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qe-vehiclecard__mid {
  display: grid;
  gap: 8px;
  padding-left: 16px;
  border-left: 1px solid rgba(15, 23, 42, .10);
}

.qe-vehiclecard__valuelabel {
  margin: 0;
}

.qe-money {
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .12);
  background: #fff;
  height: 46px;
}

.qe-money__symbol {
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  color: rgba(15, 23, 42, .8);
  background: rgba(15, 23, 42, .03);
  border-right: 1px solid rgba(15, 23, 42, .10);
}

.qe-money__input {
  border: 0 !important;
  box-shadow: none !important;
  height: 46px;
  border-radius: 0 !important;
}

/* Generalized input format: Symbol inside the field */
.qe-input-fmt {
  position: relative;
  display: block;
  /* Reset container styles as we want the input to define the box */
  background: transparent;
  border: 0;
  border-radius: 0;
  height: auto;
  overflow: visible;
}

.qe-input-fmt__symbol {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  pointer-events: none;
  font-weight: 800;
  color: rgba(15, 23, 42, .65);
  background: transparent;
  z-index: 2;
  font-size: 15px;
  /* match input font size approximately */
}

.qe-input-fmt__input {
  /* Ensure the input itself handles the border/background */
  flex: 0 0 100%;
  width: 100%;
  font-size: 16px;
  border-radius: 14px !important;
  /* Ensure consistency with regular inputs */
  border: 1px solid var(--border-strong) !important;
  /* Force border */
  background: var(--surface-2) !important;
  box-shadow: none;
  /* keep transition managed by qe-input */
}

.qe-input-fmt__input:focus {
  border-color: rgba(29, 78, 216, 0.55) !important;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12) !important;
}

/* Prefix variant (default) */
.qe-input-fmt:not(.qe-input-fmt--suffix) .qe-input-fmt__symbol {
  left: 2px;
  /* slight offset from border */
}

.qe-input-fmt:not(.qe-input-fmt--suffix) .qe-input-fmt__input {
  padding-left: 36px !important;
}

/* Suffix variant */
.qe-input-fmt--suffix .qe-input-fmt__symbol {
  right: 6px;
}

.qe-input-fmt--suffix .qe-input-fmt__input {
  padding-right: 36px !important;
}

.qe-vehiclecard__right {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 880px) {
  .qe-vehiclecard {
    grid-template-columns: 1fr;
  }

  .qe-vehiclecard__mid {
    border-left: 0;
    padding-left: 0;
  }

  .qe-vehiclecard__right {
    justify-content: flex-start;
  }
}


.qe-claimtype {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.qe-claimgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.qe-claimactions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* --- Property Claims layout --- */

.qe-claimcard {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

/* Summary list spacing */
.qe-claimsummary {
  margin-top: 12px;
  margin-bottom: 18px;
}

.qe-claimsummary .qe-claimitem {
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.8);
}

.qe-claimsummary .qe-claimitem+.qe-claimitem {
  margin-top: 12px;
}

.qe-claimsummary .qe-claimitem__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.qe-claimsummary .qe-claimitem__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Make Claim Type section breathe */
.qe-claimtype {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
  margin-bottom: 14px;
}

/* Bigger “pill” radios */
.qe-claimtype .qe-radio--pill {
  display: flex;
  border-radius: 16px;
  padding: 14px 14px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(248, 250, 252, 0.75);
}



.qe-claimtype .qe-radio--pill span {
  font-weight: 800;
  font-size: 16px;
}

/* Give the radio itself some room */
.qe-claimtype .qe-radio--pill input[type="radio"] {
  transform: scale(1.05);
  margin-right: 10px;
}

/* Cost + Date spacing */
.qe-claimgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 6px;
}

/* Ensure labels don’t collide */
.qe-claimgrid .qe-label {
  display: block;
  margin-bottom: 8px;
}

/* Actions row spacing */
.qe-claimactions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}


/* --- Claim summary row: make it look like a proper mini-card --- */

.qe-claimsummary,
.qe-claimlist {
  margin-top: 10px;
  margin-bottom: 18px;
  display: grid;
  gap: 12px;
}

/* Each saved claim card */
.qe-claimrow {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: rgba(248, 250, 252, 0.85);
}

/* Claim number badge */
.qe-claimrow .qe-claimbadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #fff;
  color: rgba(15, 23, 42, 0.85);
  white-space: nowrap;
}

/* Summary text */
.qe-claimrow .qe-claimtext {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  color: rgba(15, 23, 42, 0.9);
}

/* Make the money/date not look like a random string */
.qe-claimrow .qe-claimtext .qe-muted {
  font-weight: 700;
  color: rgba(15, 23, 42, 0.65);
}

/* Action buttons container */
.qe-claimrow .qe-claimactions {
  display: inline-flex;
  gap: 10px;
  justify-content: flex-end;
  white-space: nowrap;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Make Edit/Remove look compact and consistent */
.qe-claimrow .qe-claimactions .btn {
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
}

/* Optional: reduce visual weight on Remove */
.qe-claimrow .qe-claimactions .btn.btn-danger,
.qe-claimrow .qe-claimactions .btn[data-action*="remove"] {
  opacity: 0.9;
}

/* Responsive: stack actions under text on smaller widths */
@media (max-width: 720px) {
  .qe-claimrow {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: start;
  }

  .qe-claimrow .qe-claimactions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    margin-top: 10px;
  }
}


@media only screen and (max-width: 610px) {
  .qe-claimtype {
    display: flex;
    flex-direction: column;
  }
}
