/* Instant inspection estimate modal — scoped to #inspectionRequestModal */
#inspectionRequestModal.qm-overlay {
  z-index: 1200 !important;
  background: rgba(7, 10, 15, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1.25rem;
  font-family: "Sora", system-ui, sans-serif;
  color: #121826;
}

#inspectionRequestModal .qm-dialog {
  position: relative;
  width: 100%;
  max-width: 1000px;
  max-height: min(92vh, 860px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(7, 10, 15, 0.28), 0 0 0 1px rgba(19, 39, 74, 0.08);
  overflow: hidden;
  display: flex;
}

#inspectionRequestModal .qm-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: none;
  background: rgba(19, 39, 74, 0.06);
  color: #13274a;
  cursor: pointer;
  transition: background 0.15s ease;
}
#inspectionRequestModal .qm-close:hover { background: rgba(19, 39, 74, 0.12); }
#inspectionRequestModal .qm-close svg { width: 18px; height: 18px; }

#inspectionRequestModal .qm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  width: 100%;
  min-height: 0;
}

#inspectionRequestModal .qm-main {
  padding: 2rem 2.25rem 2rem;
  overflow-y: auto;
  min-height: 0;
}

/* Header */
#inspectionRequestModal .qm-eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3b5b8c;
}
#inspectionRequestModal .qm-title {
  margin: 0 0 0.5rem;
  font-family: "Bricolage Grotesque", "Sora", sans-serif !important;
  font-size: 1.75rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #070a0f !important;
}
#inspectionRequestModal .qm-lede {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(18, 24, 38, 0.66);
  max-width: 34rem;
}
#inspectionRequestModal .qm-lede strong { color: #13274a; font-weight: 600; }

/* Alerts */
#inspectionRequestModal .qm-alert {
  margin: 0 0 1.25rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}
#inspectionRequestModal .qm-alert--ok { background: #e8f6ee; color: #0e6b40; border: 1px solid #bfe5cf; }
#inspectionRequestModal .qm-alert--err { background: #fdecec; color: #a12626; border: 1px solid #f5c2c2; }
#inspectionRequestModal .qm-alert.hidden { display: none; }

/* Sections (reset global section padding from site CSS) */
#inspectionRequestModal .qm-section {
  padding: 0 !important;
  margin: 0 !important;
  background: none !important;
  border: 0;
}
#inspectionRequestModal .qm-section + .qm-section {
  margin-top: 1.6rem !important;
  padding-top: 1.6rem !important;
  border-top: 1px solid rgba(19, 39, 74, 0.1);
}
#inspectionRequestModal .qm-section__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  font-family: "Sora", system-ui, sans-serif !important;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #121826 !important;
}
#inspectionRequestModal .qm-step {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  background: #13274a;
  color: #fff;
}

#inspectionRequestModal .qm-row {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
#inspectionRequestModal .qm-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#inspectionRequestModal .qm-row--3 { grid-template-columns: 1.1fr 0.8fr 1.3fr; }

#inspectionRequestModal .qm-field { display: flex; flex-direction: column; min-width: 0; }
#inspectionRequestModal .qm-label {
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(18, 24, 38, 0.72);
}
#inspectionRequestModal .qm-label em {
  font-style: normal;
  font-weight: 400;
  color: rgba(18, 24, 38, 0.45);
}

#inspectionRequestModal .qm-input,
#inspectionRequestModal .qm-select,
#inspectionRequestModal .qm-textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(19, 39, 74, 0.18) !important;
  border-radius: 10px;
  background: #fff !important;
  color: #121826 !important;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#inspectionRequestModal .qm-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2313274a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.85rem center !important;
  cursor: pointer;
}
#inspectionRequestModal .qm-textarea { min-height: 76px; resize: vertical; }
#inspectionRequestModal .qm-input::placeholder,
#inspectionRequestModal .qm-textarea::placeholder { color: rgba(18, 24, 38, 0.38); }
#inspectionRequestModal .qm-input:hover,
#inspectionRequestModal .qm-select:hover,
#inspectionRequestModal .qm-textarea:hover { border-color: rgba(19, 39, 74, 0.32) !important; }
#inspectionRequestModal .qm-input:focus,
#inspectionRequestModal .qm-select:focus,
#inspectionRequestModal .qm-textarea:focus {
  outline: none;
  border-color: #13274a !important;
  box-shadow: 0 0 0 3px rgba(19, 39, 74, 0.12);
}

/* Sampling segmented control */
#inspectionRequestModal .qm-fieldset { border: 0; padding: 0; margin: 0.25rem 0 0.85rem; min-width: 0; }
#inspectionRequestModal .qm-segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #f1f4f8;
  border: 1px solid rgba(19, 39, 74, 0.08);
}
#inspectionRequestModal .qm-seg {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 9px;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(18, 24, 38, 0.7);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
#inspectionRequestModal .qm-seg input { position: absolute; opacity: 0; pointer-events: none; }
#inspectionRequestModal .qm-seg:hover { color: #13274a; }
#inspectionRequestModal .qm-seg:has(input:checked) {
  background: #fff;
  color: #13274a;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(7, 10, 15, 0.12), 0 0 0 1px rgba(19, 39, 74, 0.08);
}
#inspectionRequestModal .qm-seg:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(19, 39, 74, 0.2); }

/* Option chips */
#inspectionRequestModal .qm-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
#inspectionRequestModal .qm-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem 0.45rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(19, 39, 74, 0.18);
  background: #fff;
  font-size: 0.82rem;
  color: rgba(18, 24, 38, 0.78);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
#inspectionRequestModal .qm-chip input { position: absolute; opacity: 0; pointer-events: none; }
#inspectionRequestModal .qm-chip__box {
  width: 16px;
  height: 16px;
  border-radius: 5px;
  border: 1.5px solid rgba(19, 39, 74, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
#inspectionRequestModal .qm-chip__box svg { width: 10px; height: 10px; opacity: 0; color: #fff; }
#inspectionRequestModal .qm-chip:hover { border-color: rgba(19, 39, 74, 0.4); }
#inspectionRequestModal .qm-chip:has(input:checked) {
  border-color: #13274a;
  background: rgba(19, 39, 74, 0.05);
  color: #13274a;
}
#inspectionRequestModal .qm-chip:has(input:checked) .qm-chip__box { background: #13274a; border-color: #13274a; }
#inspectionRequestModal .qm-chip:has(input:checked) .qm-chip__box svg { opacity: 1; }
#inspectionRequestModal .qm-chip:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(19, 39, 74, 0.15); }

/* Estimate summary (right rail) */
#inspectionRequestModal .qm-summary {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: linear-gradient(165deg, #13274a 0%, #0c1a33 100%);
  color: #fff;
  overflow-y: auto;
  min-height: 0;
}
#inspectionRequestModal .qm-summary__label {
  margin: 0.4rem 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
#inspectionRequestModal .qm-price {
  margin: 0;
  font-family: "Bricolage Grotesque", "Sora", sans-serif;
  font-size: 2.75rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
#inspectionRequestModal .qm-mandays {
  margin: 0.5rem 0 0.9rem;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.72);
}
#inspectionRequestModal .qm-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
}
#inspectionRequestModal .qm-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}
#inspectionRequestModal .qm-badge--ok { background: rgba(74, 222, 128, 0.14); color: #86efac; }
#inspectionRequestModal .qm-badge--confirm { background: rgba(251, 191, 36, 0.15); color: #fcd34d; }

#inspectionRequestModal .qm-summary__text {
  margin: 1rem 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}
#inspectionRequestModal .qm-reasons {
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}
#inspectionRequestModal .qm-reasons li {
  position: relative;
  padding-left: 0.9rem;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.6);
}
#inspectionRequestModal .qm-reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
}

#inspectionRequestModal .qm-included {
  margin: 1.25rem 0 0;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
#inspectionRequestModal .qm-included li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.82);
}
#inspectionRequestModal .qm-included svg { width: 14px; height: 14px; flex: none; color: #86efac; }

#inspectionRequestModal .qm-actions {
  margin-top: auto;
  padding-top: 1.5rem;
  display: grid;
  gap: 0.6rem;
}
#inspectionRequestModal .qm-btn {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
#inspectionRequestModal .qm-btn:active { transform: translateY(1px); }
#inspectionRequestModal .qm-btn:disabled { opacity: 0.6; cursor: progress; }
#inspectionRequestModal .qm-btn--primary {
  background: #fff;
  color: #0c1a33;
  border: 1px solid #fff;
}
#inspectionRequestModal .qm-btn--primary:hover:not(:disabled) { background: #e8eef7; border-color: #e8eef7; }
#inspectionRequestModal .qm-btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}
#inspectionRequestModal .qm-btn--ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.55); }
#inspectionRequestModal .qm-fineprint {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

#inspectionRequestModal .qm-mobile-price { display: none; }

/* Guest email verify → book */
#inspectionRequestModal .qm-guest-book {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid #c5d4ec;
  background: #f4f7fc;
}
#inspectionRequestModal .qm-guest-book.hidden,
#inspectionRequestModal .qm-guest-book[hidden] { display: none !important; }
#inspectionRequestModal .qm-guest-book__title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 650;
  color: #13274a;
}
#inspectionRequestModal .qm-guest-book__hint {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #5a6d8c;
}
#inspectionRequestModal .qm-guest-book__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
#inspectionRequestModal .qm-guest-book__actions .qm-btn { flex: 1 1 8rem; }

/* Responsive */
@media (max-width: 860px) {
  #inspectionRequestModal .qm-mobile-price {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: -1.75rem -1.25rem 1.25rem;
    padding: 0.75rem 3.75rem 0.75rem 1.25rem;
    background: #13274a;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.78rem;
  }
  #inspectionRequestModal .qm-mobile-price strong { color: #fff; font-size: 0.95rem; font-weight: 600; }
  #inspectionRequestModal .qm-close { position: sticky; float: right; top: 8px; margin: 8px 10px -44px 0; background: rgba(255, 255, 255, 0.14); color: #fff; }
  #inspectionRequestModal.qm-overlay { padding: 0; align-items: flex-end !important; }
  #inspectionRequestModal .qm-dialog {
    max-width: none;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    overflow-y: auto;
    display: block;
  }
  #inspectionRequestModal .qm-grid { grid-template-columns: 1fr; }
  #inspectionRequestModal .qm-main { padding: 1.75rem 1.25rem 1.5rem; overflow: visible; }
  #inspectionRequestModal .qm-summary { padding: 1.5rem 1.25rem 1.75rem; overflow: visible; }
  #inspectionRequestModal .qm-title { font-size: 1.45rem; padding-right: 2.5rem; }
  #inspectionRequestModal .qm-price { font-size: 2.25rem; }
}
@media (max-width: 520px) {
  #inspectionRequestModal .qm-row--2,
  #inspectionRequestModal .qm-row--3 { grid-template-columns: 1fr 1fr; }
  #inspectionRequestModal .qm-row--3 .qm-field:last-child { grid-column: 1 / -1; }
  #inspectionRequestModal .qm-row--2.qm-row--stack { grid-template-columns: 1fr; }
}
