/* Wizard "Anuncie seu imóvel" (v2.11.8): Views/AnuncieConosco/Index.cshtml + assets/js/anuncie.js */
.anuncie { padding: 56px 0 72px; }
.anuncie-cartao { padding: 28px 30px 30px; border: 1px solid var(--s-border); border-radius: 22px; background: #fff; box-shadow: var(--s-shadow); }

/* Etapas */
.anuncie-etapas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.anuncie-etapas[hidden] { display: none; }
.anuncie-etapas li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--s-muted); font-size: 13px; font-weight: 700; }
.anuncie-etapas__icone {
    position: relative; display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%;
    background: var(--s-bg); color: var(--s-muted); font-size: 18px; transition: all 240ms ease;
}
.anuncie-etapas__ok { display: none; }
.anuncie-etapas li.is-atual { color: var(--s-navy); }
.anuncie-etapas li.is-atual .anuncie-etapas__icone { background: var(--s-blue); color: #fff; box-shadow: 0 0 0 5px rgba(var(--s-blue-rgb), .15); }
.anuncie-etapas li.is-feita { color: var(--s-ink); }
.anuncie-etapas li.is-feita .anuncie-etapas__icone { background: #1faa59; color: #fff; }
.anuncie-etapas li.is-feita .anuncie-etapas__icone i:first-child { display: none; }
.anuncie-etapas li.is-feita .anuncie-etapas__ok { display: inline; }
.anuncie-progresso { height: 4px; margin-bottom: 26px; border-radius: 999px; background: var(--s-bg); overflow: hidden; }
.anuncie-progresso[hidden] { display: none; }
.anuncie-progresso span { display: block; height: 100%; width: 25%; border-radius: 999px; background: linear-gradient(90deg, var(--s-blue), #3d86e6); transition: width 320ms cubic-bezier(.4, 0, .2, 1); }

.anuncie-etapa { border: 0; margin: 0; padding: 0; min-width: 0; }
.anuncie-etapa.is-ativa { animation: anuncieEntra 260ms ease; }
.anuncie-etapa legend { float: none; width: auto; margin-bottom: 18px; font-size: 22px; font-weight: 800; color: var(--s-navy); }
.anuncie-pergunta { margin: 22px 0 10px; font-size: 16px; font-weight: 800; color: var(--s-ink); }
@keyframes anuncieEntra { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* Opções com ícone */
.anuncie-opcoes { display: grid; gap: 10px; }
.anuncie-opcoes--3 { grid-template-columns: repeat(3, 1fr); }
.anuncie-opcoes--4 { grid-template-columns: repeat(2, 1fr); }
.anuncie-opcao { position: relative; margin: 0; }
.anuncie-opcao input { position: absolute; opacity: 0; pointer-events: none; }
.anuncie-opcao span {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 92px; padding: 12px 8px;
    border: 1.5px solid var(--s-border); border-radius: 16px; background: #fff; cursor: pointer;
    font-size: 15px; font-weight: 700; color: var(--s-text); text-align: center; transition: all 180ms ease;
}
.anuncie-opcao span i { font-size: 24px; color: var(--s-muted); transition: color 180ms ease, transform 180ms ease; }
.anuncie-opcao--linha span { flex-direction: row; justify-content: flex-start; min-height: 56px; padding: 0 16px; gap: 12px; }
.anuncie-opcao--linha span i { font-size: 18px; width: 22px; }
.anuncie-opcao:hover span { border-color: var(--s-blue-100); background: var(--s-blue-50); }
.anuncie-opcao input:checked + span { border-color: var(--s-blue); background: var(--s-blue-50); color: var(--s-blue); box-shadow: 0 0 0 3px rgba(var(--s-blue-rgb), .12); }
.anuncie-opcao input:checked + span i { color: var(--s-blue); transform: scale(1.08); }
.anuncie-opcao input:focus-visible + span { box-shadow: var(--s-focus); }

/* Campos */
.anuncie-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 14px; }
.anuncie-campo { display: block; margin: 16px 0 0; }
.anuncie-grade .anuncie-campo { margin: 0; }
.anuncie-campo--largo { grid-column: span 2; }
.anuncie-campo--cep { grid-column: 1 / -1; max-width: 260px; }
.anuncie-campo > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--s-ink); }
.anuncie-campo small { font-weight: 400; color: var(--s-muted); }
.anuncie-campo input, .anuncie-campo textarea {
    width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--s-border); border-radius: 12px;
    font-size: 15px; color: var(--s-ink); background: #fff; transition: border-color 180ms ease, box-shadow 180ms ease;
}
.anuncie-campo textarea { height: auto; padding: 12px 14px; resize: vertical; }
.anuncie-campo input:focus, .anuncie-campo textarea:focus { outline: none; border-color: var(--s-blue); box-shadow: var(--s-focus); }
.anuncie-campo .is-invalido, .anuncie-campo input.is-invalido { border-color: #d64545; box-shadow: 0 0 0 3px rgba(214, 69, 69, .12); }
.anuncie-ajuda { display: block; margin-top: 6px; font-size: 12px; }
.anuncie-moeda { display: flex; align-items: center; height: 48px; padding: 0 14px; border: 1px solid var(--s-border); border-radius: 12px; }
.anuncie-moeda:focus-within { border-color: var(--s-blue); box-shadow: var(--s-focus); }
.anuncie-moeda i { font-style: normal; margin-right: 8px; color: var(--s-muted); }
.anuncie-moeda input { border: 0 !important; box-shadow: none !important; height: 46px; padding: 0; }

/* Contadores */
.anuncie-contadores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.anuncie-contador { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--s-border); border-radius: 14px; }
.anuncie-contador__rotulo { font-size: 13px; font-weight: 700; color: var(--s-ink); }
.anuncie-contador__rotulo i { width: 18px; margin-right: 6px; color: var(--s-blue); }
.anuncie-contador__ctl { display: flex; align-items: center; justify-content: space-between; }
.anuncie-contador__ctl button {
    width: 34px; height: 34px; border: 1px solid var(--s-border); border-radius: 50%; background: #fff; color: var(--s-ink); font-size: 12px;
    transition: background-color 150ms ease, border-color 150ms ease;
}
.anuncie-contador__ctl button:hover { background: var(--s-blue-50); border-color: var(--s-blue-100); }
.anuncie-contador__ctl input { width: 44px; border: 0; text-align: center; font-size: 17px; font-weight: 800; color: var(--s-navy); -moz-appearance: textfield; }
.anuncie-contador__ctl input::-webkit-outer-spin-button, .anuncie-contador__ctl input::-webkit-inner-spin-button { -webkit-appearance: none; }

.anuncie-interruptor { display: inline-flex; align-items: center; gap: 12px; margin: 18px 0 0; font-weight: 700; color: var(--s-ink); cursor: pointer; }
.anuncie-interruptor input { position: absolute; opacity: 0; }
.anuncie-interruptor span { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #cfd8e5; transition: background-color 180ms ease; }
.anuncie-interruptor span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform 180ms ease; }
.anuncie-interruptor input:checked + span { background: var(--s-blue); }
.anuncie-interruptor input:checked + span::after { transform: translateX(20px); }
.anuncie-interruptor input:focus-visible + span { box-shadow: var(--s-focus); }

.anuncie-aviso { display: flex; gap: 10px; margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--s-bg); font-size: 13px; color: var(--s-text); }
.anuncie-aviso i { margin-top: 3px; color: var(--s-blue); }
.anuncie-erro { margin: 16px 0 0; padding: 10px 14px; border-radius: 10px; background: #fdecec; color: #b3261e; font-size: 14px; font-weight: 600; }
.anuncie-erro[hidden] { display: none; }
.anuncie-navegacao { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.anuncie-navegacao .btn { min-height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 700; display: inline-flex; align-items: center; }
.anuncie-navegacao .btn[hidden] { display: none; }
.anuncie-navegacao [data-avancar], .anuncie-navegacao [data-enviar] { margin-left: auto; }

/* Fim */
.anuncie-fim { text-align: center; padding: 12px 6px 4px; animation: anuncieEntra 300ms ease; }
.anuncie-fim[hidden] { display: none; }
.anuncie-fim__icone { font-size: 58px; color: #1faa59; line-height: 1; }
.anuncie-fim h2 { margin: 14px 0 6px; font-size: 26px; font-weight: 800; color: var(--s-navy); }
.anuncie-fim > p { color: var(--s-text); }
.anuncie-fim__passos { list-style: none; display: grid; gap: 10px; max-width: 460px; margin: 18px auto 24px; padding: 0; text-align: left; }
.anuncie-fim__passos li { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; background: var(--s-bg); color: var(--s-text); }
.anuncie-fim__passos li i { flex: 0 0 38px; height: 38px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--s-blue); }
.anuncie-fim__whats {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 30px; border-radius: 999px;
    background: #1faa59; color: #fff !important; font-size: 17px; font-weight: 800; box-shadow: 0 12px 26px rgba(31, 170, 89, .32);
    transition: transform 180ms ease, background-color 180ms ease;
}
.anuncie-fim__whats i { font-size: 22px; }
.anuncie-fim__whats:hover { background: #18914b; transform: translateY(-2px); }
.anuncie-fim__obs { margin-top: 12px; font-size: 13px; color: var(--s-muted); }

/* Prévia */
@media (min-width: 992px) { .anuncie-lateral { position: sticky; top: 110px; } }
.anuncie-previa__titulo { margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--s-muted); }
.anuncie-previa__titulo i { color: var(--s-blue); margin-right: 4px; }
.anuncie-previa { position: relative; padding: 14px 14px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--s-border); box-shadow: var(--s-shadow-hover); }
.anuncie-previa.pulsa { animation: previaPulsa 420ms ease; }
@keyframes previaPulsa { 40% { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(15, 45, 82, .16); } }
.anuncie-previa__midia { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: linear-gradient(135deg, var(--s-blue-50), #dde9f8); }
.anuncie-previa__foto { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--s-blue); }
.anuncie-previa__foto i { font-size: 56px; opacity: .85; }
.anuncie-previa__foto small { font-size: 12px; font-weight: 600; color: var(--s-muted); }
.anuncie-previa__selo { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--s-ink); font-size: 12px; font-weight: 800; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.anuncie-previa__corpo { padding: 12px 4px 0; }
.anuncie-previa__preco { font-size: 21px; font-weight: 800; color: var(--s-ink); }
.anuncie-previa__preco small { font-size: 14px; color: var(--s-muted); }
.anuncie-previa__carac { margin-top: 4px; font-size: 14px; font-weight: 700; color: var(--s-ink); }
.anuncie-previa__titulo-anuncio { margin-top: 2px; font-size: 14px; color: var(--s-text); }
.anuncie-previa__local { margin-top: 2px; font-size: 13px; color: var(--s-muted); }
.anuncie-previa__marca { display: block; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--s-border); font-size: 12px; font-weight: 600; color: var(--s-muted); text-align: center; }
.anuncie-vantagens { list-style: none; display: grid; gap: 10px; margin: 18px 0 0; padding: 0; }
.anuncie-vantagens li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--s-text); }
.anuncie-vantagens li i { flex: 0 0 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--s-blue-50); color: var(--s-blue); }

@media (max-width: 991.98px) {
    .anuncie { padding: 32px 0 48px; }
    .anuncie-lateral { order: -1; }
    .anuncie-previa { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: center; }
    .anuncie-previa__midia { aspect-ratio: 1; }
    .anuncie-previa__foto i { font-size: 34px; }
    .anuncie-previa__foto small { display: none; }
    .anuncie-previa__corpo { padding: 0; }
    .anuncie-previa__preco { font-size: 17px; }
    .anuncie-previa__marca { grid-column: 1 / -1; }
    .anuncie-vantagens { display: none; }
}
@media (max-width: 575.98px) {
    .anuncie-cartao { padding: 20px 16px 22px; border-radius: 18px; }
    .anuncie-etapas__nome { font-size: 11px; }
    .anuncie-etapas__icone { width: 40px; height: 40px; font-size: 16px; }
    .anuncie-etapa legend { font-size: 19px; }
    .anuncie-opcoes--3, .anuncie-opcoes--4 { grid-template-columns: repeat(2, 1fr); }
    .anuncie-opcao span { min-height: 80px; font-size: 14px; }
    .anuncie-grade, .anuncie-contadores { grid-template-columns: 1fr 1fr; }
    .anuncie-campo--largo { grid-column: 1 / -1; }
    .anuncie-campo--uf { grid-column: auto; }
    .anuncie-navegacao .btn { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) { .anuncie *, .anuncie-previa { animation: none !important; transition: none !important; } }

/* O CSS da página carrega antes do Font Awesome/site.css: estas regras precisam de mais
   especificidade para vencer o display do .fa-solid e o span genérico do campo. */
.anuncie-etapas li .anuncie-etapas__ok { display: none; }
.anuncie-etapas li.is-feita .anuncie-etapas__icone .anuncie-etapas__ok { display: inline-block; }
.anuncie-etapas li.is-feita .anuncie-etapas__icone i:first-child { display: none; }
.anuncie-campo > span.anuncie-moeda { display: flex; margin-bottom: 0; font-size: 15px; font-weight: 400; }
.anuncie-campo > span.anuncie-moeda i { font-size: 14px; font-weight: 600; }
@media (max-width: 575.98px) { .anuncie-fim__whats { font-size: 15px; padding: 10px 20px; line-height: 1.3; } }

/* Atalho da 1ª etapa: avaliação direto pelo WhatsApp (v2.12) */
.anuncie-atalho {
    display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 14px 16px;
    border-radius: 14px; background: #eefaf2; border: 1px solid #cdeed8;
}
.anuncie-atalho[hidden] { display: none; }
.anuncie-atalho__icone {
    flex: 0 0 42px; height: 42px; border-radius: 50%; background: #25d366; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.anuncie-atalho__texto { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: #37474f; line-height: 1.35; }
.anuncie-atalho__texto strong { color: #1b3a2a; font-size: 15px; }
.anuncie-atalho a.anuncie-atalho__botao {
    flex: 0 0 auto; border-radius: 999px; background: #25d366; border-color: #25d366; color: #fff; font-weight: 700;
    padding: 10px 18px; white-space: nowrap;
}
.anuncie-atalho a.anuncie-atalho__botao:hover, .anuncie-atalho a.anuncie-atalho__botao:focus { background: #1eb858; border-color: #1eb858; color: #fff; }
@media (max-width: 575.98px) {
    .anuncie-atalho { flex-wrap: wrap; }
    .anuncie-atalho a.anuncie-atalho__botao { flex: 1 1 100%; }
}
