/*
|--------------------------------------------------------------------------
| Embedded Intake - Estimate Modal (QR / upload branch)
|--------------------------------------------------------------------------
|
| Ownership: estimate-qr modal step only.
| Loaded after `book-modal.css` from `pages/book-as-page.blade.php` and
| `pages/estimate-as-page.blade.php` (the page wrappers that render the
| booking modal markup inline). The historical `book-modal-loader.js`
| no longer exists — it was removed in the Stage 7 cutover (2026-05-13).
|
*/

.book-check-modal__dialog[data-step="estimate-qr"] {
  height: auto;
}

.book-check-modal__dialog[data-step="estimate-qr"] .book-check-modal__hero-panel {
  display: none;
}

.book-check-modal__dialog[data-step="estimate-qr"] .book-check-modal__hero-inner {
  padding-top: 8px;
}

/* ── Estimate QR step (bqr-*) ──────────────────────────────────────────────── */
.book-check-modal__dialog[data-step="estimate-qr"] .book-check-modal__body {
  text-align: center;
  padding: 16px 20px 10px;
}

/* ── In-modal photo upload (.beup-*) ────────────────────────────────────── */
.beup-success[hidden] { display: none; }
.beup-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  border: 1.5px dashed #d1d5db;
  border-radius: 10px;
  padding: 10px 6px 10px;
  background: #f9fafb;
  transition: border-color .15s, background .15s, box-shadow .15s;
  text-align: center;
  -webkit-user-select: none;
  user-select: none;
  position: relative;
}
.beup-slot:hover {
  border-color: #9ca3af;
  background: #f3f4f6;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.beup-slot.is-done {
  border-color: #16a34a;
  border-style: solid;
  background: #f0fdf4;
}
@keyframes beup-slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Success screen ─────────────────────────────────────────────────────── */
.beup-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 16px 12px;
  gap: 12px;
  animation: beup-success-appear .35s ease;
}
@keyframes beup-success-appear {
  from { opacity: 0; transform: scale(.94) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.beup-success__icon { line-height: 0; }
/* Checkmark animation */
.beup-checkmark {
  width: 64px;
  height: 64px;
}
.beup-checkmark__circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: beup-circle-draw .5s ease forwards;
}
.beup-checkmark__check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: beup-check-draw .4s .45s ease forwards;
}
@keyframes beup-circle-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes beup-check-draw {
  to { stroke-dashoffset: 0; }
}
.beup-success__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
.beup-success__body {
  margin: 0;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}
.beup-success__close-hint {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
}

@media (max-width: 439px) {
}

/* ── Two-column estimate layout (.bqr2-*) ───────────────────────────────── */
.bqr2-layout[hidden] { display: none; }
.bqr2-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
}
/* Left column */
.bqr2-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6px 14px 10px 0;
  gap: 8px;
}
.bqr2-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}
.bqr2-col-sub {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
}
.bqr2-qr-box {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px;
  display: inline-flex;
}
.bqr2-qr-img {
  display: block;
  width: 148px;
  height: 148px;
}
.bqr2-qr-hint {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  font-size: 11px;
  color: #9ca3af;
  line-height: 1.4;
}
.bqr2-qr-hint svg { flex-shrink: 0; color: #9ca3af; }
.bqr2-context {
  margin: 0;
  font-size: 11px;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 4px 8px;
}
/* Vertical separator */
.bqr2-sep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
}
.bqr2-sep__line {
  flex: 1;
  width: 1px;
  background: #e5e7eb;
}
.bqr2-sep__word {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: .05em;
  white-space: nowrap;
}
/* Right column */
.bqr2-right {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 6px 0 10px 14px;
}
/* Photo slots */
.bqr2-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.bqr2-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  border: 1.5px dashed #d1d5db;
  border-radius: 9px;
  padding: 8px 4px 7px;
  background: #f9fafb;
  transition: border-color .15s, background .15s;
  text-align: center;
  position: relative;
  -webkit-user-select: none;
  user-select: none;
}
.bqr2-slot:hover { border-color: #9ca3af; background: #f3f4f6; }
.bqr2-slot.is-done { border-color: #16a34a; border-style: solid; background: #f0fdf4; }
.bqr2-slot__thumb {
  width: 56px;
  height: 56px;
  border-radius: 7px;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.bqr2-slot__thumb svg { color: #9ca3af; display: block; }
.bqr2-slot__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; display: block; }
.bqr2-slot.is-done .bqr2-slot__thumb { background: #dcfce7; }
.bqr2-slot__num {
  position: absolute;
  top: 5px;
  left: 7px;
  font-size: 9px;
  font-weight: 700;
  color: #9ca3af;
}
.bqr2-slot.is-done .bqr2-slot__num { color: #16a34a; }
.bqr2-slot__name { font-size: 10px; font-weight: 700; color: #374151; line-height: 1.2; }
.bqr2-slot__hint { font-size: 9px; color: #9ca3af; line-height: 1.2; }
/* Upload hint */
.bqr2-upload-hint {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
}
.bqr2-upload-hint__sub { font-size: 11px; font-weight: 400; color: #9ca3af; }
/* Contact input */
.bqr2-contact {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  color: #111827;
  outline: none;
  transition: border-color .15s;
  font-family: inherit;
}
.bqr2-contact:focus { border-color: #374151; }
/* Error / status */
.bqr2-error[hidden], .bqr2-status[hidden] { display: none; }
.bqr2-error {
  margin: 0;
  font-size: 11px;
  color: #dc2626;
  line-height: 1.4;
  padding: 6px 10px;
  background: #fef2f2;
  border-radius: 6px;
  border: 1px solid #fecaca;
}
.bqr2-status { margin: 0; font-size: 11px; color: #6b7280; text-align: center; line-height: 1.4; }
/* Submit button */
.bqr2-submit {
  display: block;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  line-height: 1.3;
  font-family: inherit;
  /* Disabled state (default) */
  background: #e5e7eb;
  color: #9ca3af;
}
.bqr2-submit:not([disabled]) {
  background: #b91c1c;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(185,28,28,.2);
}
.bqr2-submit:not([disabled]):hover {
  background: #991b1b;
  box-shadow: 0 4px 12px rgba(185,28,28,.28);
}
.bqr2-submit[disabled] { cursor: not-allowed; }
/* Trust line */
.bqr2-trust {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  text-align: center;
  line-height: 1.4;
  padding: 4px 0;
  border-top: 1px solid #e5e7eb;
}
/* Mobile: stack columns */
@media (max-width: 520px) {
  .bqr2-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .bqr2-left { padding: 0 0 8px; }
  .bqr2-sep { flex-direction: row; padding: 4px 0; }
  .bqr2-sep__line { flex: 1; width: auto; height: 1px; }
  .bqr2-right { padding: 8px 0 0; }
  .bqr2-qr-img { width: 130px; height: 130px; }
}
