/* Página /anunciar (T-023) — Interface de cadastro em 6 etapas + prévia ao vivo na paleta original do nortelo.app */

.anunciar-page {
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

.badge-destaque {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary-soft);
  color:var(--primary-text);
  border: 1px solid var(--primary);
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.anunciar-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px 5% 88px;
}

.anunciar-header {
  max-width: 680px;
  margin-bottom: 32px;
}

.anunciar-header h1 {
  font-family: Gloock, Georgia, serif;
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -1px;
  margin: 0;
}

.anunciar-lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

/* Barra de etapas */
.anunciar-stepper {
  margin-bottom: 32px;
}

.anunciar-step-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.anunciar-step-tab {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.18s, color 0.18s;
}

.anunciar-step-tab span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.anunciar-step-tab.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 6px 18px #18362b12;
}

.anunciar-step-tab.is-active span {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

/* Área principal: formulário + prévia ao vivo */
.anunciar-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 40px;
  align-items: start;
}

.anunciar-form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: 0 16px 40px #18362b0c;
}

.anunciar-step-head {
  margin-bottom: 24px;
}

.anunciar-step-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color:var(--primary-text);
  margin-bottom: 6px;
}

.anunciar-step-head h2 {
  font-family: Gloock, Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 8px;
}

.anunciar-step-head p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.anunciar-google-btn {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.anunciar-google-btn:hover {
  border-color: var(--primary);
  background: var(--soft);
}

.anunciar-google-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.anunciar-divider {
  margin: 20px 0;
  text-align: center;
  position: relative;
}

.anunciar-divider::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 1px solid var(--line);
}

.anunciar-divider span {
  position: relative;
  background: #ffffff;
  padding: 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.anunciar-field {
  display: block;
  margin-bottom: 18px;
}

.anunciar-field > span,
.anunciar-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.anunciar-field input,
.anunciar-field textarea {
  margin-top: 0;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 11px 14px;
  font-size: 15px;
  color: var(--ink);
}

/* Botões segmentados e chips (zero <select> nativo) */
.anunciar-segmented {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  padding: 5px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.anunciar-seg-btn {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.anunciar-seg-btn.is-active,
.anunciar-seg-btn[aria-pressed="true"] {
  background: var(--primary-soft);
  color: var(--primary-text);
  box-shadow: 0 4px 12px #18362b10;
}

.anunciar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anunciar-chip {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 8px 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.anunciar-chip:hover {
  border-color: var(--primary);
}

.anunciar-chip.is-active,
.anunciar-chip[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.anunciar-chips--compact .anunciar-chip {
  padding: 6px 12px;
  font-size: 12.5px;
}

.anunciar-health-box {
  margin: 16px 0 20px;
  padding: 18px;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
}

.anunciar-health-note {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ink);
}

.anunciar-price-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.anunciar-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 12px;
}

.anunciar-photo-dropzone {
  padding: 28px 20px;
  border: 2px dashed #bdcbc5;
  border-radius: 14px;
  background: var(--soft);
  text-align: center;
  margin-bottom: 18px;
}

.anunciar-drop-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.anunciar-drop-sub {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: var(--muted);
}

.anunciar-upload-btn {
  display: inline-flex;
  width: auto !important;
  margin: 0 auto;
}

.anunciar-photo-count {
  margin: 12px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color:var(--primary-text);
}

.anunciar-photo-tips {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.anunciar-photo-tips li {
  margin-bottom: 6px;
}

/* Aviso honesto na etapa final */
.anunciar-closed-banner {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 14px;
  background: #fdf3dc;
  border: 1.5px solid #e8cf95;
  color: #5b4712;
}

.anunciar-closed-banner h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #4a390d;
}

.anunciar-closed-banner p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 1.55;
}

.anunciar-closed-banner p:last-child {
  margin-bottom: 0;
}

.anunciar-closed-banner a {
  font-weight: 700;
  text-decoration: underline;
}

.anunciar-nav-bar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.anunciar-nav-bar .button {
  width: auto;
  min-width: 150px;
}

/* Prévia ao vivo */
.anunciar-preview {
  position: sticky;
  top: 28px;
}

.anunciar-preview-window {
  background: #ffffff;
  border: 1px solid #d0dad7;
  border-radius: 16px;
  box-shadow: 0 22px 55px #16322d18;
  overflow: hidden;
}

.anunciar-preview-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.anunciar-preview-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anunciar-preview-area {
  background: var(--primary);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

.anunciar-preview-bairros {
  background: var(--soft);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
}

.anunciar-preview-name {
  font-family: Gloock, Georgia, serif;
  font-weight: 400;
  font-size: 28px;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

.anunciar-preview-reg {
  margin: 0;
  padding: 8px 12px;
  background: var(--soft);
  border-left: 3px solid var(--primary);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.anunciar-preview-desc {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.anunciar-preview-prices {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}

.anunciar-preview-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  font-size: 14.5px;
}

.anunciar-preview-meta p {
  margin: 0 0 6px;
  font-size: 13.5px;
  color: var(--ink);
}

.anunciar-preview-whatsapp {
  margin-top: 4px;
  background: #146c38;
  color: #ffffff;
  text-align: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
}

.anunciar-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

@media (max-width: 980px) {
  .anunciar-step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .anunciar-workspace {
    grid-template-columns: 1fr;
  }

  .anunciar-preview {
    position: static;
  }
}

@media (max-width: 640px) {
  .anunciar-step-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anunciar-form {
    padding: 24px 18px;
  }

  .anunciar-price-row {
    grid-template-columns: 1fr;
  }

  .anunciar-nav-bar {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .anunciar-nav-bar .button {
    width: 100%;
  }
}

/* P-03: estados da conta; identidade e demais etapas preservadas. */
.conta-modos {display:flex;flex-wrap:wrap;gap:8px;margin-block:20px;}
.conta-modos button {background:transparent;border:0;border-bottom:2px solid transparent;color:var(--ink);padding:8px 10px;cursor:pointer;min-height:44px;}
.conta-modos button[aria-pressed="true"] {border-color:var(--primary);color:var(--primary-text);font-weight:600;}
.conta-acoes {display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-block-start:20px;}
.conta-ajuda {display:block;font-size:14px;color:var(--ink);margin-block-start:6px;max-width:48ch;}
.conta-status {color:var(--ink);overflow-wrap:anywhere;min-height:1.6em;margin-block:16px 0;}
.conta-status[data-error="true"] {color:#9b2323;}
#conta-acesso [aria-invalid="true"] {border-color:#9b2323;}
#conta-acesso button:disabled {cursor:wait;opacity:.6;}
#conta-desafio {max-width:100%;margin-block:12px;}
#conta-acesso input {min-width:0;font-size:16px;caret-color:var(--primary);}
#conta-acesso input::placeholder {color:var(--muted);}
#conta-acesso [hidden] {display:none!important;}
