/* Quote calculator (quote.php) – uses the site palette from style.css. */
.quote-area {
  --mtq-accent: var(--primary-red, #f28f00);
  --mtq-accent-soft: #fff4e5;
  --mtq-ink: #0d0d0e;
  --mtq-muted: #757f95;
  --mtq-line: #e9ebf0;
}

/* The site's custom cursor hides the system cursor; keep it on form fields. */
.quote-area input,
.quote-area textarea,
.quote-area label { cursor: auto; }

/* Service grid */
.mtq-service { height: 100%; }
.mtq-service .service-content { display: flex; flex-direction: column; height: 100%; }
.mtq-service .service-text { flex: 1; }
.mtq-from { margin: 12px 0 4px; color: var(--mtq-muted); font-size: 15px; }
.mtq-from strong { color: var(--mtq-accent); font-size: 20px; font-weight: 700; margin-left: 4px; }

/* Form */
.mtq-back { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 24px; color: var(--mtq-muted); font-weight: 500; }
.mtq-back:hover { color: var(--mtq-accent); }

.mtq-alert {
  margin-bottom: 24px; padding: 14px 18px; border-radius: 10px;
  background: #fde8e8; color: #b42318; font-weight: 500;
}

.mtq-head { display: flex; gap: 20px; align-items: center; margin-bottom: 28px; }
.mtq-head h3 { font-size: 30px; margin-bottom: 4px; }
.mtq-head-icon {
  flex: none; width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--mtq-accent); color: #fff; font-size: 36px;
}
.mtq-head-icon i { line-height: 1; }

.mtq-card {
  background: #fff; border: 1px solid var(--mtq-line); border-radius: 16px;
  padding: 24px; margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(13, 13, 14, .04);
}
.mtq-card legend {
  float: left; width: 100%; padding: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 20px; font-weight: 600; color: var(--mtq-ink); margin-bottom: 16px;
}
.mtq-card legend + * { clear: both; }
.mtq-card legend small { font-size: 13px; font-weight: 400; color: var(--mtq-muted); }
.mtq-step {
  width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--mtq-accent-soft); color: var(--mtq-accent); font-size: 15px; font-weight: 700;
}

.mtq-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.mtq-option { position: relative; margin: 0; display: block; }
.mtq-option input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.mtq-option-body {
  display: flex; flex-direction: column; gap: 4px; height: 100%;
  padding: 14px 16px 14px 46px; border: 1.5px solid var(--mtq-line); border-radius: 12px;
  transition: border-color .2s, background .2s, box-shadow .2s;
  position: relative;
}
.mtq-option-body::before {
  content: ""; position: absolute; left: 16px; top: 17px;
  width: 18px; height: 18px; border: 2px solid #c5cad6; background: #fff;
  border-radius: 50%; transition: all .2s;
}
.mtq-option input[type="checkbox"] + .mtq-option-body::before { border-radius: 5px; }
.mtq-option-label { color: var(--mtq-ink); font-weight: 500; line-height: 1.4; }
.mtq-option-price { color: var(--mtq-muted); font-size: 14px; }

.mtq-option:hover .mtq-option-body { border-color: var(--primary-red-light, #fbc06d); }
.mtq-option input:checked + .mtq-option-body {
  border-color: var(--mtq-accent); background: var(--mtq-accent-soft);
  box-shadow: 0 0 0 3px rgba(242, 143, 0, .12);
}
.mtq-option input:checked + .mtq-option-body::before {
  border-color: var(--mtq-accent); background: var(--mtq-accent);
  box-shadow: inset 0 0 0 3px #fff;
}
.mtq-option input[type="checkbox"]:checked + .mtq-option-body::before { box-shadow: none; }
.mtq-option input[type="checkbox"]:checked + .mtq-option-body::after {
  content: ""; position: absolute; left: 22px; top: 20px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.mtq-option input:checked + .mtq-option-body .mtq-option-price { color: var(--mtq-accent); font-weight: 600; }
.mtq-option input:focus-visible + .mtq-option-body { outline: 2px solid var(--mtq-accent); outline-offset: 2px; }

.mtq-qty { display: flex; align-items: center; gap: 14px; margin: 0; }
.mtq-qty input { max-width: 140px; }
.mtq-qty span { color: var(--mtq-muted); }

.mtq-label { display: block; margin-bottom: 6px; color: var(--mtq-ink); font-weight: 500; }
.mtq-form .form-control {
  border: 1.5px solid var(--mtq-line); border-radius: 10px; padding: 12px 14px; box-shadow: none;
}
.mtq-form .form-control:focus { border-color: var(--mtq-accent); box-shadow: 0 0 0 3px rgba(242, 143, 0, .12); }

/* Honeypot */
.mtq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Summary */
.mtq-summary {
  position: sticky; top: 110px;
  background: var(--mtq-ink); color: #c9ccd6; border-radius: 16px; padding: 28px;
}
.mtq-summary h4 { color: #fff; margin-bottom: 16px; }
.mtq-lines { margin: 0 0 16px; padding: 0; }
.mtq-lines li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); font-size: 14px; line-height: 1.4;
}
.mtq-lines li span:last-child { color: #fff; white-space: nowrap; }
.mtq-total { display: flex; flex-direction: column; gap: 2px; margin: 8px 0 12px; }
.mtq-total span { font-size: 14px; }
.mtq-total strong { color: var(--mtq-accent); font-size: 36px; line-height: 1.2; font-weight: 700; }
.mtq-note { font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.mtq-submit { width: 100%; justify-content: center; border: 0; }
.mtq-submit[disabled] { opacity: .7; }

@media (max-width: 991px) {
  .mtq-summary { position: static; }
}

/* Thank you */
.mtq-thanks { max-width: 620px; margin: 0 auto; text-align: center; padding: 20px 0; }
.mtq-thanks-icon {
  width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mtq-accent); color: #fff; font-size: 38px;
}
.mtq-thanks h3 { margin-bottom: 14px; }
.mtq-thanks p { margin-bottom: 10px; }
.mtq-thanks .theme-btn { margin-top: 18px; }
