/* ============================================================
 * Brand Signup Wizard v2  ·  /registro-de-marcas/
 * Alinea el registro de marcas con el DS del wizard de campaña
 * (css/wizard-v2.css). Paleta: fondo #191919, inputs cream #FEF7E7,
 * CTA lima #DAFF02. SIN VIOLETA en el formulario.
 *
 * TODO está scopeado a .brand-wizard-v2 (clase en el <section>) para
 * NO afectar login / registro de influencer / etc. que comparten
 * .fr-sign-in-hero, .btn-theme, .form-control.
 * ============================================================ */

.brand-wizard-v2 {
    --bw-cream: #FEF7E7;
    --bw-deep: #191919;
    --bw-lima: #DAFF02;
    --bw-cream-70: rgba(254, 247, 231, 0.70);
    --bw-cream-45-dark: rgba(25, 25, 25, 0.45);
}

/* ---- Fondo deep (era violeta #7138FF) ---- */
.brand-wizard-v2.fr-sign-in-hero,
section.brand-wizard-v2.fr-sign-in-hero {
    background-color: #191919 !important;
    color: #FEF7E7;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.brand-wizard-v2 .msf,
.brand-wizard-v2 .msf.card,
.brand-wizard-v2 .form-card,
.brand-wizard-v2 .fr-sign-content {
    background: transparent !important;
    box-shadow: none !important;
}

/* ---- Tipografía ---- */
.brand-wizard-v2 .fs-title,
.brand-wizard-v2 .multistep-title,
.brand-wizard-v2 h2.fs-title {
    font-family: 'Hanken Grotesk', sans-serif !important;
    font-weight: 900 !important;
    color: #FEF7E7 !important;
}
.brand-wizard-v2 .fs-title span { color: #DAFF02 !important; }
.brand-wizard-v2 .fs-description,
.brand-wizard-v2 .multistep-description,
.brand-wizard-v2 p,
.brand-wizard-v2 label {
    font-family: 'Inter', sans-serif !important;
    color: rgba(254, 247, 231, 0.80) !important;
}

/* ---- Progressbar (3 pasos) · lima en activo ---- */
.brand-wizard-v2 #progressbar {
    display: flex; 
    /* gap: 8px; */
    list-style: none; padding: 0; margin: 0 0 24px;
}
/* .brand-wizard-v2 #progressbar li {
    flex: 1; height: 4px; border-radius: 2px;
    background-color: rgba(254, 247, 231, 0.10);
    transition: background-color 0.2s ease;
}
.brand-wizard-v2 #progressbar li.active,
.brand-wizard-v2 #progressbar li.completed {
    background-color: #DAFF02;
} */

/* ============================================================
 * INPUTS / TEXTAREA / SELECT · cream
 * ============================================================ */
.brand-wizard-v2 input[type="text"],
.brand-wizard-v2 input[type="email"],
.brand-wizard-v2 input[type="password"],
.brand-wizard-v2 input[type="number"],
.brand-wizard-v2 input[type="tel"],
.brand-wizard-v2 textarea,
.brand-wizard-v2 select,
.brand-wizard-v2 .form-control {
    background-color: #FEF7E7 !important;
    color: #191919 !important;
    border: 1px solid rgba(25, 25, 25, 0.15) !important;
    border-radius: 12px !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    width: 100%;
    box-shadow: none !important;
}
.brand-wizard-v2 textarea,
.brand-wizard-v2 #marca-descripcion {
    min-height: 100px !important;
    resize: vertical;
}
.brand-wizard-v2 input::placeholder,
.brand-wizard-v2 textarea::placeholder {
    color: rgba(25, 25, 25, 0.45) !important;
    opacity: 1;
}
.brand-wizard-v2 input:focus,
.brand-wizard-v2 textarea:focus,
.brand-wizard-v2 select:focus,
.brand-wizard-v2 .form-control:focus {
    border-color: #DAFF02 !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(218, 255, 2, 0.15) !important;
}

/* ---- SELECT (rubro) · flecha custom; seleccionado = lima ---- */
.brand-wizard-v2 select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 40px !important;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
/* Solo el rubro vira a lima al elegir una opción real (no la placeholder disabled) */
.brand-wizard-v2 #rubros:has(option:checked:not([disabled])) {
    background-color: #DAFF02 !important;
    color: #191919 !important;
    font-weight: 700;
    border-color: #DAFF02 !important;
}
.brand-wizard-v2 #rubros option { background: #FEF7E7; color: #191919; }

/* ============================================================
 * WHATSAPP · prefijo dark + input cream
 * ============================================================ */
.brand-wizard-v2 #countrySelect {
    background-color: #FEF7E7 !important;
    color: #191919 !important;
    border: 1px solid rgba(25, 25, 25, 0.15) !important;
    border-radius: 8px 0 0 8px !important;
    max-width: 150px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23191919' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
}
.brand-wizard-v2 #countrySelect option { background: #FEF7E7; color: #191919; }
.brand-wizard-v2 #phone {
    border-radius: 0 8px 8px 0 !important;
}

/* ============================================================
 * UPLOAD logo · área dashed + label lima · sin "Choose File"
 * ============================================================ */
.brand-wizard-v2 #uploadAvatar { display: none !important; }
.brand-wizard-v2 .image-selection-wrap {
    background: rgba(254, 247, 231, 0.06);
    border: 2px dashed rgba(254, 247, 231, 0.20);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}
.brand-wizard-v2 .message-note-file {
    color: rgba(254, 247, 231, 0.65) !important;
    font-size: 13px !important;
    margin-bottom: 10px !important;
}
.brand-wizard-v2 .bw2-upload-btn {
    display: inline-block;
    background: #DAFF02;
    color: #191919;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    cursor: pointer;
}
.brand-wizard-v2 .bw2-upload-btn:hover { filter: brightness(0.95); }

/* ============================================================
 * CHECKBOXES (Pretty Checkbox) · cream/lima
 * ============================================================ */
.brand-wizard-v2 .pretty .state label:before {
    border: 2px solid rgba(254, 247, 231, 0.20) !important;
    background-color: transparent !important;
    border-radius: 5px !important;
}
.brand-wizard-v2 .pretty input:checked ~ .state label:after,
.brand-wizard-v2 .pretty input:checked ~ .state.p-warning label:after {
    background-color: #DAFF02 !important;
    border-radius: 5px !important;
}
.brand-wizard-v2 .pretty.p-icon input:checked ~ .state .icon,
.brand-wizard-v2 .pretty.p-icon .state .icon {
    color: #191919 !important;
}
.brand-wizard-v2 .sr-style {
    color: rgba(254, 247, 231, 0.80) !important;
    font-size: 14px !important;
}
.brand-wizard-v2 .sr-style a {
    color: #DAFF02 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

/* ============================================================
 * BOTONES
 * ============================================================ */
.brand-wizard-v2 .btn-theme-secondary,
.brand-wizard-v2 input[type="button"].btn-theme-secondary {
    background-color: #DAFF02 !important;
    background-image: none !important;
    color: #191919 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
}
.brand-wizard-v2 .btn-theme,
.brand-wizard-v2 input[type="button"].btn-theme {
    background-color: rgba(255, 255, 255, 0.06) !important;
    background-image: none !important;
    color: rgba(254, 247, 231, 0.70) !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 14px 24px !important;
}
.brand-wizard-v2 .btn-theme:hover,
.brand-wizard-v2 .btn-theme-secondary:hover { filter: brightness(0.96); }

/* error text legible sobre dark */
.brand-wizard-v2 .error-container,
.brand-wizard-v2 .error-message { font-size: 13px !important; }

/* ============================================================
 * FIX textarea blanco (paso 2)
 * custom-style.css trae `#msform .form-card textarea {background:#fff!important}`
 * (especificidad 1,1,1). Acá ganamos con (1,2,1) sin tocar ese archivo.
 * ============================================================ */
.brand-wizard-v2 .form-card textarea#marca-descripcion {
    background-color: #FEF7E7 !important;
    color: #191919 !important;
}

/* ============================================================
 * FOTO/LOGO · tile horizontal (reemplaza el cuadro viejo)
 * ============================================================ */
/* el contenedor del padre es flex y aplastaba el tile -> apilar en columna */
.brand-wizard-v2 .profile-image-field {
    display: block !important;
}
.brand-wizard-v2 .mya-photo-copy {
    color: rgba(254, 247, 231, 0.70) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    margin: 0 0 12px !important;
}
.brand-wizard-v2 .mya-photo-tile {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px;
    background: #FEF7E7;
    border: 1px solid rgba(25, 25, 25, 0.12);
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    margin: 0;
    transition: border-color 0.15s ease;
}
.brand-wizard-v2 .mya-photo-tile:hover { border-color: rgba(25, 25, 25, 0.28); }
.brand-wizard-v2 .mya-photo-avatar {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px dashed rgba(25, 25, 25, 0.20);
    display: grid; place-items: center;
    color: #191919;
}
.brand-wizard-v2 .mya-photo-avatar svg { width: 20px; height: 20px; }
.brand-wizard-v2 .mya-photo-info {
    flex: 1 1 auto;
    display: flex; flex-direction: column; gap: 2px;
    min-width: 0;
}
.brand-wizard-v2 .mya-photo-info .title {
    font-family: 'Hanken Grotesk', sans-serif !important;
    font-weight: 700; font-size: 14px; color: #191919 !important;
}
.brand-wizard-v2 .mya-photo-info .sub {
    font-size: 11px; color: rgba(25, 25, 25, 0.55) !important;
}
.brand-wizard-v2 .mya-photo-status {
    flex: 0 0 auto;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #DAFF02;
    color: #191919;
    font-family: 'Hanken Grotesk', sans-serif !important;
    font-weight: 800; font-size: 15px; line-height: 1;
    display: grid; place-items: center;
}
/* estado subida (lo activa un listener aditivo al confirmar el recorte) */
.brand-wizard-v2 .mya-photo-tile.is-filled { border-color: #DAFF02; }
.brand-wizard-v2 .mya-photo-tile.is-filled .mya-photo-status {
    background: #22C55E; color: #FEF7E7;
}

/* ============================================================
 * CROP MODAL de foto de perfil (#profileCropModal) · DS v2.0
 * El modal vive FUERA de .brand-wizard-v2 (tras </section>), por eso el
 * selector es #profileCropModal directo. Es SEGURO: brand-wizard-v2.css
 * solo se carga en /registro-de-marcas/ (no en registro de creador ni
 * dashboard, que tienen su propio CSS) -> fix aislado a marca.
 * Causa raíz del violeta: style.css:384 `.modal-footer .btn-primary{background:#9f23f5}`
 * (sin !important, espec 0,2,0). Ganamos por ID + !important.
 * NO se toca el área/forma de recorte (Cropper.js / canvas / círculo).
 * ============================================================ */
#profileCropModal .modal-content {
    background: #191919 !important;
    color: #FEF7E7 !important;
    border: none !important;
    border-radius: 16px !important;
}
#profileCropModal .modal-header,
#profileCropModal .modal-footer { border: none !important; }
#profileCropModal .modal-title { color: #FEF7E7 !important; }

/* CONFIRMAR = lima (antes violeta #9f23f5) */
#profileCropModal #profile-crop-save {
    background: #DAFF02 !important;
    background-color: #DAFF02 !important;
    background-image: none !important;
    color: #191919 !important;
    border: none !important;
    font-weight: 700 !important;
}
#profileCropModal #profile-crop-save:hover {
    background: #DAFF02 !important;
    background-color: #DAFF02 !important;
    color: #191919 !important;
    filter: brightness(0.96);
}

/* CANCELAR/ATRAS = ghost (antes lima · deja de competir con el confirm) */
#profileCropModal #profile-crop-cancel {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 1px solid rgba(254, 247, 231, 0.18) !important;
    color: #FEF7E7 !important;
    font-weight: 600 !important;
}
#profileCropModal #profile-crop-cancel:hover {
    background: rgba(254, 247, 231, 0.06) !important;
    background-color: rgba(254, 247, 231, 0.06) !important;
    color: #FEF7E7 !important;
}
