/* Build3DLab: página de orçamento */

.hl {
  color: var(--orange);
}

.page-quote {
  background:
    radial-gradient(60% 50% at 85% 0%, rgb(31 107 255 / 0.22), transparent 70%),
    radial-gradient(40% 40% at 0% 30%, rgb(255 122 26 / 0.08), transparent 70%),
    var(--bg);
  background-attachment: fixed;
}

.quote {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 8vw, 110px);
}

.quote-intro h1 {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -0.04em;
}
.quote-intro .hl {
  display: block;
}
.quote-intro p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.08rem;
}

/* ---------- progresso ---------- */
.progress {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 34px 0 26px;
  padding: 0;
}
.progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  color: var(--faint);
  font-size: 0.92rem;
  font-weight: 700;
}
.progress li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 4px;
  background: var(--line-strong);
}
.progress li::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.progress li.is-current::after,
.progress li.is-done::after {
  transform: scaleX(1);
}
.progress li.is-current {
  color: var(--text);
}
.progress li.is-done {
  color: var(--muted);
}
.progress span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.8rem;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.progress .is-current span {
  background: var(--orange);
  color: var(--orange-ink);
  box-shadow: none;
}
.progress .is-done span {
  background: rgb(255 122 26 / 0.18);
  color: var(--orange-2);
  box-shadow: none;
}

/* ---------- formulário ---------- */
.quote-form {
  position: relative;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.step-panel {
  border: 0;
  margin: 0;
  padding: clamp(22px, 4vw, 36px);
  min-width: 0;
  border-radius: var(--r-card);
  background: rgb(14 26 49 / 0.72);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgb(0 0 0 / 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (prefers-reduced-motion: no-preference) {
  .step-panel.is-active {
    animation: entrar 0.6s var(--ease);
  }
}
@keyframes entrar {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.step-title {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.step-title + * {
  clear: both;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  min-width: 0;
}
.label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text);
}
.req,
.opt {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--faint);
}
.req {
  color: var(--orange-2);
}
.field-help {
  font-size: 0.9rem;
  color: var(--muted);
}
.field-error {
  min-height: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--danger);
}
.field-error:empty {
  display: none;
}

.input {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 0;
  border-radius: var(--r-field);
  background: rgb(6 12 24 / 0.6);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.2s, background 0.2s;
}
.input::placeholder {
  color: #7486a3;
}
.input:hover {
  box-shadow: inset 0 0 0 1px rgb(150 180 235 / 0.36);
}
.input:focus {
  background: rgb(6 12 24 / 0.85);
  box-shadow: inset 0 0 0 2px var(--blue-2), 0 0 0 4px rgb(78 162 255 / 0.15);
}
.input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 2px var(--danger);
}
textarea.input {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}
input[type="date"].input {
  color-scheme: dark;
  max-width: 260px;
}

.row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}

/* cartões de escolha (tipo) */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}
.choice input,
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.choice-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  min-height: 112px;
  padding: 18px;
  border-radius: 18px;
  background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
  transition: background 0.25s, box-shadow 0.25s, transform 0.35s var(--ease);
}
.choice-card .i {
  width: 30px;
  height: 30px;
  color: var(--blue-2);
  transition: color 0.25s, transform 0.5s var(--ease);
}
.choice-card b {
  font-size: 0.98rem;
  line-height: 1.3;
}
.choice-card:hover {
  background: rgb(255 255 255 / 0.06);
  transform: translateY(-2px);
}
.choice input:checked + .choice-card {
  background: linear-gradient(160deg, rgb(255 122 26 / 0.2), rgb(255 122 26 / 0.06));
  box-shadow: inset 0 0 0 2px var(--orange);
}
.choice input:checked + .choice-card .i {
  color: var(--orange-2);
  transform: scale(1.12) rotate(-6deg);
}
.choice input:checked + .choice-card::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M104 192a8 8 0 0 1-5.66-2.34l-56-56a8 8 0 0 1 11.32-11.32L104 172.69 202.34 74.34a8 8 0 0 1 11.32 11.32l-104 104A8 8 0 0 1 104 192Z' fill='%231d0d00'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.choice input:focus-visible + .choice-card,
.chip input:focus-visible + span {
  outline: 2px solid var(--orange-2);
  outline-offset: 3px;
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgb(255 255 255 / 0.03);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.chip span:hover {
  color: var(--text);
  background: rgb(255 255 255 / 0.07);
}
.chip input:checked + span {
  background: rgb(255 122 26 / 0.16);
  box-shadow: inset 0 0 0 2px var(--orange);
  color: var(--text);
}
.chip .i {
  width: 18px;
  height: 18px;
}
.chip-swatch i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
}

/* quantidade */
.stepper {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: var(--r-pill);
  background: rgb(6 12 24 / 0.6);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.stepper button {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.stepper button:hover {
  background: rgb(255 255 255 / 0.06);
}
.stepper input {
  width: 64px;
  border: 0;
  background: transparent;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* envio de arquivos */
.drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 28px 20px;
  border-radius: 18px;
  border: 2px dashed rgb(150 180 235 / 0.28);
  background: rgb(6 12 24 / 0.4);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.drop:hover,
.drop.is-over {
  border-color: var(--orange);
  background: rgb(255 122 26 / 0.07);
}
.drop:focus-within {
  outline: 2px solid var(--orange-2);
  outline-offset: 3px;
}
.drop b {
  font-size: 1rem;
}
.drop > span:not(.drop-ico) {
  color: var(--muted);
  font-size: 0.9rem;
}
.drop-ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--grad-blue);
  color: #fff;
}
.drop-ico .i {
  width: 24px;
  height: 24px;
}
.files {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.files:empty {
  display: none;
}
.files li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 10px;
  border-radius: 14px;
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px var(--line);
}
.files .thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  color: var(--blue-2);
}
.files .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.files .meta {
  min-width: 0;
  flex: 1;
  display: grid;
  font-size: 0.9rem;
}
.files .meta b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.files .meta span {
  color: var(--faint);
  font-size: 0.82rem;
}
.files .bar {
  height: 3px;
  margin-top: 4px;
  border-radius: 3px;
  background: var(--grad-orange);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
  transition: transform 0.3s;
}
.files .remove {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.files .remove:hover {
  color: var(--text);
  background: rgb(255 255 255 / 0.08);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 26px;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
}
.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--orange);
}

.form-alert {
  margin-top: 18px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgb(255 107 107 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(255 107 107 / 0.35);
  color: #ffd0d0;
  font-size: 0.95rem;
}
.form-alert.is-info {
  background: rgb(78 162 255 / 0.1);
  box-shadow: inset 0 0 0 1px rgb(78 162 255 / 0.35);
  color: #d6e8ff;
}
.form-alert a {
  color: var(--text);
  font-weight: 800;
  text-decoration: underline;
}

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}
.form-nav [data-next],
.form-nav [data-submit] {
  margin-left: auto;
}
.form-nav .btn {
  min-width: 150px;
}
.is-sending [data-submit] .i {
  animation: voar 1s var(--ease) infinite;
}
@keyframes voar {
  50% {
    transform: translate(4px, -4px);
  }
}
.form-privacy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--faint);
}

/* ---------- sucesso ---------- */
.success {
  margin-top: 30px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: var(--r-card);
  background:
    radial-gradient(80% 80% at 50% 0%, rgb(255 122 26 / 0.16), transparent 70%),
    rgb(14 26 49 / 0.8);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  text-align: center;
  outline: none;
}
.success-mascot {
  width: 170px;
  height: auto;
  margin: -10px auto 10px;
  filter: drop-shadow(0 24px 30px rgb(0 0 0 / 0.5));
}
@media (prefers-reduced-motion: no-preference) {
  .success:not([hidden]) .success-mascot {
    animation: pular 1.1s var(--ease) both;
  }
}
@keyframes pular {
  0% {
    transform: translateY(40px) scale(0.6);
    opacity: 0;
  }
  55% {
    transform: translateY(-14px) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: none;
  }
}
.success h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.success p {
  margin: 14px auto 0;
  max-width: 46ch;
  color: var(--muted);
}
.success p b {
  color: var(--text);
}
.success-code b {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: rgb(255 122 26 / 0.16);
  color: var(--orange-2) !important;
  font-family: var(--font-display);
  letter-spacing: 0.04em;
}
.success-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.link-btn {
  margin-top: 22px;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.link-btn:hover {
  color: var(--text);
}

/* ---------- ficha do pedido ---------- */
.ticket {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: var(--r-card);
  background: rgb(14 26 49 / 0.72);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgb(0 0 0 / 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ticket-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ticket-head img {
  width: 40px;
  height: auto;
}
.ticket-head b {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.ticket-head span {
  font-size: 0.85rem;
  color: var(--faint);
}
.ticket-print {
  position: relative;
  height: 150px;
  margin: 18px 0 8px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(70% 90% at 50% 100%, rgb(31 107 255 / 0.25), transparent 70%),
    rgb(6 12 24 / 0.55);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ticket-plate {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 18px;
  height: 8px;
  border-radius: 3px;
  background: linear-gradient(180deg, #2a3a5c, #141c2c);
}
/* bloco que cresce: altura = progresso; linhas de camada por gradiente repetido */
.ticket-object {
  --p: 0;
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 92px;
  height: calc(96px * var(--p));
  transform: translateX(-50%);
  border-radius: 6px 6px 2px 2px;
  background:
    repeating-linear-gradient(180deg, rgb(0 0 0 / 0.16) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, var(--orange) 0 50%, var(--blue) 50% 100%);
  box-shadow: 0 -2px 0 0 rgb(255 200 120 / 0.9), 0 -6px 16px -2px rgb(255 140 40 / 0.7);
  transition: height 0.7s var(--ease);
}
.ticket-object.is-empty {
  box-shadow: none;
}
.ticket-pct {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ticket-list {
  margin: 0;
  display: grid;
}
.ticket-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 2px;
  font-size: 0.9rem;
}
.ticket-list > div + div {
  border-top: 1px dashed var(--line);
}
.ticket-list dt {
  color: var(--faint);
}
.ticket-list dd {
  margin: 0;
  text-align: right;
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ---------- responsivo ---------- */
@media (max-width: 960px) {
  .quote {
    grid-template-columns: minmax(0, 1fr);
  }
  .ticket {
    display: none;
  }
}
@media (max-width: 620px) {
  .row-2 {
    grid-template-columns: minmax(0, 1fr);
  }
  .choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choice-card {
    min-height: 104px;
    padding: 14px;
  }
  .progress b {
    font-size: 0.82rem;
  }
  .step-panel {
    padding: 20px 16px;
  }
  /* navegação fixa no rodapé da tela no celular */
  .form-nav {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin: 18px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgb(6 12 24 / 0), rgb(6 12 24 / 0.92) 30%);
  }
  .form-nav .btn {
    min-width: 0;
    flex: 1;
  }
  .form-nav [data-prev] {
    flex: 0 0 auto;
  }
  .site-header .btn-ghost {
    padding: 0 14px;
  }
}
