/* ========== QUOTE MODAL ========== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  padding: 20px;
  overflow-y: auto;
}
.modal-backdrop.open { display: flex; align-items: flex-start; justify-content: center; padding-top: 40px; padding-bottom: 40px; }
.modal-backdrop.open .modal { animation: modalIn 0.5s var(--easing) both; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal {
  width: 100%;
  max-width: 720px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}
.modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 5;
}
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 40px; height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  z-index: 10;
  transition: all 0.3s;
}
.modal-close:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); transform: rotate(90deg); }
.modal-close svg { width: 16px; height: 16px; }

.modal-header { padding: 36px 36px 0; }
.modal-progress {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.progress-track {
  flex: 1;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 20%;
  transition: width 0.5s var(--easing);
  box-shadow: 0 0 12px var(--accent);
}
.progress-label {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  white-space: nowrap;
}
.progress-label .step-num { color: var(--accent); }

.modal-body { padding: 0 36px 28px; min-height: 360px; }
@media (max-width: 600px) {
  .modal-header { padding: 28px 22px 0; }
  .modal-body { padding: 0 22px 22px; }
}

.modal-step { display: none; animation: stepIn 0.4s var(--easing); }
.modal-step.active { display: block; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.modal-step h2 {
  font-size: clamp(28px, 3.5vw, 38px);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.modal-step h2 em {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: "wdth" 60;
}
.modal-step .lead { font-size: 16px; color: var(--ink-dim); margin-bottom: 28px; }

/* Type tiles (step 1) */
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 540px) { .type-grid { grid-template-columns: 1fr; } }
.type-card {
  text-align: left;
  padding: 32px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.3s var(--easing);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.type-card::after {
  content: '→';
  position: absolute;
  top: 28px; right: 24px;
  font-size: 22px;
  color: var(--ink-faint);
  transition: all 0.3s;
}
.type-card:hover {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(197, 255, 58, 0.06), transparent 60%), var(--bg);
  transform: translateY(-2px);
}
.type-card:hover::after { color: var(--accent); transform: translateX(4px); }
.type-card.selected { border-color: var(--accent); background: linear-gradient(135deg, rgba(197, 255, 58, 0.1), transparent 60%), var(--bg); }
.type-card .type-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(197, 255, 58, 0.1);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 16px;
}
.type-card .type-icon svg { width: 22px; height: 22px; }
.type-card h3 { font-size: 22px; margin-bottom: 6px; }
.type-card p { font-size: 13px; color: var(--ink-dim); }

/* Service checks (step 2) */
.check-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 540px) { .check-list { grid-template-columns: 1fr 1fr; } }
.check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--easing);
  user-select: none;
}
.check:hover { border-color: var(--line-strong); }
.check input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.check .box {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1.5px solid var(--line-strong);
  border-radius: 6px;
  display: grid; place-items: center;
  transition: all 0.2s var(--easing);
  margin-top: 1px;
}
.check .box svg {
  width: 14px; height: 14px;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s var(--easing);
  color: var(--bg);
}
.check input:checked ~ .box {
  background: var(--accent);
  border-color: var(--accent);
}
.check input:checked ~ .box svg {
  opacity: 1;
  transform: scale(1);
}
.check input:checked ~ .text .name { color: var(--ink); }
.check:has(input:checked) {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(197, 255, 58, 0.05), transparent 70%), var(--bg);
}
.check .text .name {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  display: block;
  margin-bottom: 2px;
}
.check .text .desc {
  font-size: 12px;
  color: var(--ink-dim);
}

/* Detail blocks (step 3) — dynamic */
.detail-block {
  padding: 20px 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.detail-block h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 14px;
  font-weight: 500;
}
.detail-block .field { margin-bottom: 12px; }
.detail-block .field:last-child { margin-bottom: 0; }
.detail-block .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 540px) { .detail-block .row { grid-template-columns: 1fr; } }

/* Form inputs */
label.field-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
  margin-bottom: 6px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--body);
  font-size: 14px;
  padding: 12px 14px;
  transition: all 0.2s;
}
.detail-block input,
.detail-block select,
.detail-block textarea { background: var(--bg-2); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(197, 255, 58, 0.15);
}
textarea { resize: vertical; min-height: 80px; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path fill='%23C5FF3A' d='M3 5l3 3 3-3z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}

/* Radio pills inside detail blocks */
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  position: relative;
  cursor: pointer;
}
.pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.pill span {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 13px;
  color: var(--ink-dim);
  transition: all 0.2s;
}
.pill:hover span { border-color: var(--accent); color: var(--ink); }
.pill input:checked + span {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

/* Step 4 contact */
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 540px) { .contact-form { grid-template-columns: 1fr; } }
.contact-form .full { grid-column: 1 / -1; }

/* Step 5 confirmation */
.confirmation { text-align: center; padding: 20px 0 30px; }
.confirmation .check-mark {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  margin: 0 auto 24px;
  color: var(--bg);
  animation: bounceIn 0.6s var(--easing);
  box-shadow: 0 0 0 8px rgba(197, 255, 58, 0.15);
}
.confirmation .check-mark svg { width: 36px; height: 36px; }
@keyframes bounceIn {
  0% { transform: scale(0); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.confirmation h2 { margin-bottom: 14px; }
.confirmation p { max-width: 460px; margin: 0 auto 12px; font-size: 16px; }
.confirmation .ref {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 24px;
  display: inline-block;
  padding: 8px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
}

/* Step 4 summary */
.summary-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.summary-card h4 {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 12px;
  font-weight: 500;
}
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.summary-row .l { color: var(--ink-dim); }
.summary-row .v { color: var(--ink); font-weight: 500; max-width: 60%; text-align: right; }

/* Modal footer / actions */
.modal-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 36px 28px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
@media (max-width: 600px) { .modal-actions { padding: 18px 22px 22px; } }
.modal-actions .btn { flex: 0 0 auto; }
.modal-actions .btn-primary[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.modal-actions .spacer { flex: 1; }

