/* Página "Venda seu veículo".
   Composição tirada da referência enviada pelo lojista: faixa escura de ponta
   a ponta com a foto do carro, texto à esquerda, formulário branco à direita
   e, abaixo, os quatro passos numa linha só. Tudo com prefixo `venda-`. */

/* ======================================================== 1. hero ======== */
.venda-heroi {
  position: relative;
  overflow: hidden;
  background: hsl(222 47% 6%);
  color: #fff;
}
.venda-heroi__fundo {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
/* escurece da esquerda para a direita: o texto cai sobre a área calma e o
   carro continua visível no meio, como no modelo */
.venda-heroi::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, hsl(222 47% 5% / 0.94) 0%, hsl(222 47% 5% / 0.82) 34%, hsl(222 47% 5% / 0.45) 58%, hsl(222 47% 5% / 0.65) 100%),
    linear-gradient(to bottom, hsl(222 47% 5% / 0.35), transparent 30%);
}

.venda-heroi__grade {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  padding-block: 40px;
  align-items: start;
}
.venda-heroi__grade > * { min-width: 0; }

.venda-olho {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(212 96% 72%);
}
.venda-olho--escuro { color: hsl(var(--primary)); }
.venda-olho::before {
  content: "";
  flex: none;
  width: 26px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.venda-titulo {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
}
.venda-titulo span { color: hsl(212 96% 66%); }

.venda-apoio {
  font-size: clamp(0.95rem, 1.2vw, 1.0625rem);
  line-height: 1.6;
  color: hsl(0 0% 100% / 0.82);
  margin-bottom: 30px;
}

.venda-vantagens {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 18px;
  list-style: none;
  padding: 0;
}
.venda-vantagens > * { min-width: 0; }
.venda-vantagens__icone {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: hsl(214 100% 60% / 0.16);
  color: hsl(212 96% 72%);
  font-size: 21px;
}
.venda-vantagens b { display: block; font-size: 14px; line-height: 1.3; }
.venda-vantagens span:last-child { font-size: 13.5px; color: hsl(0 0% 100% / 0.7); }

/* ==================================================== 2. formulário ====== */
.venda-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border-radius: 16px;
  background: hsl(0 0% 100%);
  color: hsl(222 47% 11%);
  box-shadow: 0 18px 46px hsl(222 47% 4% / 0.35);
}
/* o cartão é branco nos dois temas: ele fica sempre sobre a faixa escura */
.escuro .venda-form { background: hsl(0 0% 100%); }

.venda-form__cabeca { display: flex; align-items: center; gap: 12px; }
.venda-form__marca {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: hsl(var(--primary-cheio) / 0.1);
  color: hsl(226 89% 45%);
  font-size: 22px;
}
.venda-form__cabeca h2 { font-size: 16.5px; line-height: 1.2; margin-bottom: 3px; color: hsl(222 47% 11%); }
.venda-form__cabeca p { font-size: 12.5px; line-height: 1.4; color: hsl(222 12% 45%); }

/* no celular estreito os pares viram uma coluna: lado a lado, "Selecione
   a marca" não cabe sem passar por baixo da seta do select */
.venda-form__par { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.venda-form__par > * { min-width: 0; }

.venda-form .campo { display: grid; gap: 5px; }
.venda-form .campo label { font-size: 12.5px; font-weight: 600; color: hsl(222 20% 28%); }
.venda-form .campo label i { font-style: normal; color: hsl(226 89% 45%); }
.venda-form :is(input, select) {
  width: 100%;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid hsl(220 14% 88%);
  border-radius: 9px;
  background: hsl(220 20% 98%);
  color: hsl(222 47% 11%);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--mov), box-shadow var(--mov);
}
.venda-form ::placeholder { color: hsl(222 10% 60%); }
.venda-form select {
  appearance: none;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, hsl(222 12% 45%) 50%),
    linear-gradient(135deg, hsl(222 12% 45%) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.venda-form :is(input, select):focus {
  outline: none;
  border-color: hsl(var(--primary-cheio));
  box-shadow: 0 0 0 3px hsl(var(--primary-cheio) / 0.18);
}

/* ------------------------------------------------- área de fotos -------- */
.venda-fotos__botao {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding-inline: 14px;
  border: 1px dashed hsl(220 14% 80%);
  border-radius: 9px;
  background: hsl(220 20% 98%);
  color: hsl(226 89% 45%);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color var(--mov), background var(--mov);
}
.venda-fotos__botao:hover { border-color: hsl(var(--primary-cheio)); background: hsl(var(--primary-cheio) / 0.05); }
.venda-fotos__botao:focus-visible { outline: 2px solid hsl(var(--primary-cheio)); outline-offset: 2px; }
.venda-fotos small { font-size: 11.5px; line-height: 1.4; color: hsl(222 12% 45%); }

.venda-fotos__lista {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.venda-fotos__lista:empty { display: none; }
.venda-fotos__lista li {
  position: relative;
  width: 54px; height: 54px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid hsl(220 14% 88%);
}
.venda-fotos__lista img { width: 100%; height: 100%; object-fit: cover; display: block; }
.venda-fotos__tirar {
  position: absolute;
  top: 2px; right: 2px;
  display: grid;
  place-items: center;
  width: 20px; height: 20px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: hsl(222 47% 8% / 0.78);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}
.venda-fotos__tirar:hover { background: hsl(0 72% 45%); }
.venda-fotos__erro {
  font-size: 12px;
  line-height: 1.45;
  color: hsl(0 72% 42%);
  font-weight: 600;
}

.venda-form__enviar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin-top: 2px;
  padding-inline: 20px;
  border: 0;
  border-radius: 9px;
  background: hsl(var(--primary-cheio));
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: filter var(--mov);
}
.venda-form__enviar:hover { filter: brightness(1.08); }

.venda-form__selo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11.5px;
  color: hsl(222 12% 45%);
}
.venda-form .aviso { font-size: 12.5px; }

/* ======================================================= 3. passos ======= */
.venda-passos { padding-block: 44px; background: hsl(var(--muted) / 0.4); }
.venda-passos__titulo {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}
.venda-passos__titulo span { color: hsl(var(--primary)); }
.venda-passos__apoio { font-size: 15px; color: hsl(var(--muted-foreground)); margin-bottom: 26px; }

.venda-passos__lista {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
}
.venda-passos__lista > * { min-width: 0; }

.venda-passo { display: flex; align-items: stretch; gap: 8px; }
.venda-passo > article {
  flex: 1;
  padding: 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 14px;
  background: hsl(var(--card));
}
.venda-passo__foto {
  position: relative;
  aspect-ratio: 12 / 5;
  margin-bottom: 14px;
  border-radius: 10px;
  overflow: hidden;
  background: hsl(var(--muted));
}
.venda-passo__foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.venda-passo__n {
  position: absolute;
  top: 10px; left: 10px;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: hsl(var(--primary-cheio));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.venda-passo > article h3 { font-size: 15.5px; margin: 0 6px 6px; }
.venda-passo > article p { font-size: 13px; line-height: 1.55; color: hsl(var(--muted-foreground)); margin: 0 6px 6px; }

.venda-passo__seta {
  display: none;
  align-self: center;
  flex: none;
  width: 20px;
  font-size: 17px;
  line-height: 0;
  text-align: center;
  color: hsl(var(--muted-foreground));
}
.venda-passo__seta svg { width: 1em; height: 1em; }

/* ==================================================== breakpoints ======== */
@media (min-width: 480px) {
  .venda-form__par { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .venda-heroi__grade { padding-block: 52px; }
  .venda-vantagens { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .venda-form { padding: 26px; }
  .venda-passos { padding-block: 56px; }
  .venda-passos__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  /* texto à esquerda e formulário à direita, como no modelo */
  .venda-heroi__grade {
    grid-template-columns: minmax(0, 1fr) 452px;
    gap: 48px;
    padding-block: 28px;
    align-items: center;
  }
  .venda-heroi__texto { padding-block: 8px; }
  .venda-passos__lista { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
  .venda-passo__seta { display: block; }
  /* o último passo não tem seta: reserva o mesmo espaço para os quatro
     cartões saírem iguais */
  .venda-passo:last-child { padding-right: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .venda-form :is(input, select), .venda-fotos__botao, .venda-form__enviar { transition: none; }
}
