/* ==========================================================================
   ANUNCIAR — Formulário Conversacional Multi-Etapas
   Depende de: mbn-components (variáveis, botões, tipografia)
   ========================================================================== */

/* ── WRAPPER GERAL ── */
.anunciar-wrapper {
    background-color: var(--portal-dark);
    min-height: 100vh;
    padding: 4rem 0 6rem;
}

.anunciar-outer {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ── BARRA DE PROGRESSO ── */
.anunciar-progress-bar-wrapper {
    margin-bottom: 2.5rem;
}

.anunciar-progress-bar-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.anunciar-progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.anunciar-step-dot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    text-align: center;
}

.anunciar-step-dot__circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.anunciar-step-dot.is-active .anunciar-step-dot__circle {
    border-color: var(--portal-gold);
    background: rgba(196, 160, 74, 0.12);
    color: var(--portal-gold);
    box-shadow: 0 0 0 4px rgba(196, 160, 74, 0.1);
}

.anunciar-step-dot.is-done .anunciar-step-dot__circle {
    border-color: var(--portal-gold);
    background: var(--portal-gold);
    color: #111;
}

.anunciar-step-dot__label {
    font-size: 0.7rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.35);
    transition: color 0.3s ease;
}

.anunciar-step-dot.is-active .anunciar-step-dot__label {
    color: var(--portal-gold);
}

.anunciar-step-dot.is-done .anunciar-step-dot__label {
    color: rgba(255, 255, 255, 0.6);
}

/* Track de progresso */
.anunciar-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.anunciar-progress-fill {
    height: 100%;
    background: var(--portal-gold);
    border-radius: 99px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── CARD PRINCIPAL ── */
.anunciar-card {
    background: var(--portal-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

@media (max-width: 640px) {
    .anunciar-card {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }
}

/* ── HEADER DA ETAPA ── */
.anunciar-step-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.anunciar-step-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--portal-gold);
    margin-bottom: 0.75rem;
}

.anunciar-step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

.anunciar-step-desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* ── GRID DE CAMPOS ── */
.anunciar-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
    .anunciar-fields {
        grid-template-columns: 1fr;
    }
}

.anunciar-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.anunciar-field--full {
    grid-column: 1 / -1;
}

/* ── LABELS ── */
.anunciar-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.55);
}

.anunciar-required {
    color: var(--portal-gold);
    margin-left: 2px;
}

.anunciar-hint {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.3);
    margin: 0;
}

/* ── INPUTS ── */
.anunciar-input,
.anunciar-select,
.anunciar-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    color: #fff;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.anunciar-input::placeholder,
.anunciar-textarea::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.anunciar-input:focus,
.anunciar-select:focus,
.anunciar-textarea:focus {
    border-color: var(--portal-gold);
    background: rgba(196, 160, 74, 0.04);
    box-shadow: 0 0 0 3px rgba(196, 160, 74, 0.1);
}

/* Select com seta customizada */
.anunciar-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C4A04A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 2.5rem;
    cursor: pointer;
}

.anunciar-select option {
    background: #1a2235;
    color: #fff;
}

.anunciar-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

/* ── TOGGLES (checkboxes estilizados) ── */
.anunciar-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.anunciar-toggle {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    min-width: 140px;
}

.anunciar-toggle--lgpd {
    min-width: unset;
    align-items: flex-start;
}

.anunciar-toggle__input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.anunciar-toggle__track {
    flex-shrink: 0;
    width: 38px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
    position: relative;
    transition: background 0.25s ease;
    margin-top: 1px;
}

.anunciar-toggle__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transition: transform 0.25s ease, background 0.25s ease;
}

.anunciar-toggle__input:checked + .anunciar-toggle__track {
    background: var(--portal-gold);
}

.anunciar-toggle__input:checked + .anunciar-toggle__track::after {
    transform: translateX(16px);
    background: #111;
}

.anunciar-toggle__label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.anunciar-link {
    color: var(--portal-gold);
    text-decoration: none;
}

.anunciar-link:hover {
    text-decoration: underline;
}

/* ── LGPD ── */
.anunciar-lgpd {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(196, 160, 74, 0.04);
    border: 1px solid rgba(196, 160, 74, 0.15);
    border-radius: 10px;
}

/* ── USUÁRIO LOGADO ── */
.anunciar-logged-in-notice {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    color: #6ee7b7;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.anunciar-logged-in-notice svg {
    flex-shrink: 0;
    color: #10b981;
}

/* ── ERROS ── */
.anunciar-erros {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 10px;
}

.anunciar-erro-item {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    color: #fca5a5;
    margin: 0 0 0.4rem;
}

.anunciar-erro-item:last-child {
    margin-bottom: 0;
}

/* ── NAVEGAÇÃO ── */
.anunciar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    gap: 1rem;
}

.anunciar-nav__back {
    font-size: 0.85rem;
    padding: 0.75rem 1.25rem;
}

.anunciar-nav__next,
.anunciar-nav__submit {
    margin-left: auto;
    min-width: 160px;
}

.anunciar-nav__submit:disabled,
.anunciar-nav__next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.anunciar-spinner {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ── TELA DE SUCESSO ── */
.anunciar-sucesso {
    text-align: center;
    padding: 2rem 0;
}

.anunciar-sucesso__icon {
    width: 80px;
    height: 80px;
    background: rgba(196, 160, 74, 0.1);
    border: 2px solid rgba(196, 160, 74, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--portal-gold);
}

.anunciar-sucesso__title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #fff;
    margin: 0 0 1rem;
}

.anunciar-sucesso__desc {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── NOTA DE RODAPÉ ── */
.anunciar-footer-note {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.25);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
}

/* ── ERRO DE PLUGIN ── */
.anunciar-plugin-error {
    padding: 2rem;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 12px;
    color: #fca5a5;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-align: center;
}

/* ── TRANSIÇÃO ENTRE ETAPAS ── */
.anunciar-fade-enter {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.anunciar-fade-start {
    opacity: 0;
    transform: translateY(12px);
}

.anunciar-fade-end {
    opacity: 1;
    transform: translateY(0);
}

/* ── MOBILE ── */
@media (max-width: 480px) {
    .anunciar-step-dot__label {
        display: none;
    }

    .anunciar-step-title {
        font-size: 1.6rem;
    }

    .anunciar-nav {
        flex-wrap: wrap;
    }

    .anunciar-nav__next,
    .anunciar-nav__submit {
        width: 100%;
        margin-left: 0;
    }
}

/* ==========================================================================
   UPLOAD DE FOTOS — Tela pós-submit
   ========================================================================== */

/* Introdução */
.anunciar-fotos-intro {
    text-align: center;
    padding: 1rem 0 2rem;
}

.anunciar-fotos-intro__sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.45);
    max-width: 480px;
    margin: 1rem auto 0;
    line-height: 1.6;
}

.anunciar-fotos-grupos-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.anunciar-grupo-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 99px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(212, 175, 55, 0.05);
}

/* Área de drop */
.anunciar-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
    border: 2px dashed rgba(212, 175, 55, 0.3);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    margin-bottom: 1.5rem;
}

.anunciar-upload-area:hover,
.anunciar-upload-area.is-dragover {
    border-color: var(--portal-gold);
    background: rgba(212, 175, 55, 0.05);
}

.anunciar-upload-area__texto {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.35rem;
}

.anunciar-upload-area__sub {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
}

/* Previews */
.anunciar-previews {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.anunciar-preview-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

.anunciar-preview-item.is-ok {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.04);
}

.anunciar-preview-item.is-erro {
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.04);
}

.anunciar-preview-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.anunciar-preview-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.anunciar-preview-nome {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.anunciar-status-badge {
    display: inline-block;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
}

.anunciar-status-badge--enviando {
    background: rgba(212, 175, 55, 0.1);
    color: var(--portal-gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.anunciar-status-badge--ok {
    background: rgba(16, 185, 129, 0.1);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.anunciar-status-badge--erro {
    background: rgba(220, 38, 38, 0.1);
    color: #fca5a5;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.anunciar-preview-remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.anunciar-preview-remove:hover {
    border-color: #fca5a5;
    color: #fca5a5;
}
