/* =========================================================================
   Popup de orçamento
   ========================================================================= */

html.orc-lock { overflow: hidden; }

dialog.orc {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-main, "Inter", system-ui, sans-serif);
}
dialog.orc[open] {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
dialog.orc::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.orc-panel {
  width: 100%;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: #0c0c0c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  animation: orc-up .35s cubic-bezier(.2, .8, .2, 1) both;
}

@media (min-width: 600px) {
  dialog.orc[open] { align-items: center; }
  .orc-panel {
    width: 440px;
    max-height: min(680px, 90dvh);
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    animation-name: orc-pop;
  }
}

@keyframes orc-up  { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes orc-pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Cabeçalho ---------- */
.orc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px;
}
.orc-who {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.orc-who img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #eee;
}
.orc-who strong { display: block; font-size: 14px; font-weight: 600; }
.orc-who span {
  display: block;
  font-family: var(--font-alt, "Instrument Sans", sans-serif);
  font-size: 12.5px;
  color: #8a8a8a;
}

.orc-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #d4d4d4;
  cursor: pointer;
  transition: background .2s, color .2s, opacity .2s;
}
.orc-icon:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.orc-icon svg { width: 16px; height: 16px; }
.orc-back[hidden] { display: none; }

/* ---------- Progresso ---------- */
.orc-progress {
  height: 2px;
  margin: 0 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.orc-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 2px;
  transition: width .4s cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Conteúdo ---------- */
.orc-body {
  overflow-y: auto;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}

.orc-step { animation: orc-in .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes orc-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }

.orc-count {
  font-family: var(--font-alt, "Instrument Sans", sans-serif);
  font-size: 12.5px;
  color: #8a8a8a;
}
.orc-title {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
.orc-sub {
  margin-top: 6px;
  font-family: var(--font-alt, "Instrument Sans", sans-serif);
  font-size: 14px;
  line-height: 1.45;
  color: #9a9a9a;
}

.orc-opts {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.orc-opt {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  font: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .15s;
}
.orc-opt:hover { border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.05); }
.orc-opt:active { transform: scale(.99); }
.orc-opt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.orc-opt.is-on { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

.orc-opt-text { flex: 1; min-width: 0; }
.orc-opt-label { display: block; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.orc-opt-desc {
  display: block;
  margin-top: 2px;
  font-family: var(--font-alt, "Instrument Sans", sans-serif);
  font-size: 13px;
  line-height: 1.35;
  color: #8a8a8a;
}

/* indicador à direita: bolinha (única) ou quadrado (múltipla) */
.orc-mark {
  flex: none;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  transition: background .15s, border-color .15s;
}
.orc-opt--multi .orc-mark { border-radius: 5px; }
.orc-mark svg { width: 11px; height: 11px; opacity: 0; color: #000; }
.orc-opt.is-on .orc-mark { background: #fff; border-color: #fff; }
.orc-opt.is-on .orc-mark svg { opacity: 1; }

/* ---------- Botões ---------- */
.orc-btn {
  width: 100%;
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity .2s, gap .2s;
}
.orc-btn:hover { gap: 11px; }
.orc-btn:disabled { opacity: .3; cursor: not-allowed; }
.orc-btn svg { width: 16px; height: 16px; }

.orc-link {
  display: block;
  margin: 14px auto 0;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: #8a8a8a;
  font: inherit;
  font-size: 13.5px;
  cursor: pointer;
}
.orc-link:hover { color: #fff; }

/* ---------- Resultado ---------- */
.orc-eyebrow {
  font-family: var(--font-alt, "Instrument Sans", sans-serif);
  font-size: 13px;
  color: #8a8a8a;
}
.orc-price {
  margin-top: 6px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.orc-price small {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #8a8a8a;
}

.orc-notes {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-alt, "Instrument Sans", sans-serif);
  font-size: 13.5px;
  line-height: 1.45;
  color: #9a9a9a;
}

.orc-summary {
  margin-top: 20px;
  list-style: none;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  overflow: hidden;
}
.orc-summary li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  font-size: 13.5px;
}
.orc-summary li + li { border-top: 1px solid rgba(255, 255, 255, 0.06); }
.orc-summary span { color: #8a8a8a; font-family: var(--font-alt, "Instrument Sans", sans-serif); }
.orc-summary strong { font-weight: 500; text-align: right; }

@media (prefers-reduced-motion: reduce) {
  .orc-panel, .orc-step { animation: none; }
}

/* ---------- Nome e WhatsApp antes de seguir ---------- */
.orc-dados { margin-top: 18px; display: grid; gap: 10px; }
.orc-dados .orc-btn { margin-top: 6px; }
.orc-dados-titulo { font-size: 13.5px; color: #a1a1a1; line-height: 1.45; }
.orc-campo { width: 100%; height: 46px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; background: rgba(255, 255, 255, 0.03); color: #fff; font: inherit; font-size: 15px; outline: none; transition: border-color .2s; }
.orc-campo:focus, .orc-dados .tel:focus-within .orc-campo { border-color: rgba(255, 255, 255, 0.4); }
.orc-campo::placeholder { color: #6b6b6b; }
.orc-erro { font-size: 13px; color: #f87171; }
.orc-dados .orc-wa { margin-top: 4px; width: 100%; }
.orc-dados .orc-wa[disabled] { opacity: .6; cursor: wait; }

/* Campo de telefone com bandeira (telefone.js) */
.tel { position: relative; display: block; width: 100%; }
.tel > input { width: 100%; padding-left: 96px !important; }
.tel-pais { position: absolute; left: 1px; top: 1px; bottom: 1px; width: 86px; display: flex; align-items: center; justify-content: center; gap: 5px; border-right: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: #a1a1a1; pointer-events: none; font-variant-numeric: tabular-nums; }
.tel-pais b { font-size: 17px; line-height: 1; font-weight: 400; }
.tel-pais svg { width: 12px; height: 12px; opacity: .7; }
.tel > select { position: absolute; left: 0; top: 0; bottom: 0; width: 88px; opacity: 0; cursor: pointer; font-size: 16px; }
.tel:focus-within .tel-pais { color: #fff; }
