﻿/* ==========================================================================
   WIZARD B2C - PROFIGHT 
   ========================================================================== */

.cadastro-wizard { width: 100%; }
.wizard-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   BARRA DE PROGRESSO
   ========================================================================== */
.wizard-progress { display: flex; justify-content: space-between; margin-bottom: 40px; border-bottom: 3px solid #e0e0e0; padding-bottom: 15px; width: 100%; }
.step-indicator { flex: 1; text-align: center; font-size: 14px; font-weight: 700; color: #555555; text-transform: uppercase; position: relative; transition: all 0.3s ease; }
.step-indicator.active { color: #111111; font-weight: 900; }
.step-indicator.active:after { content: ''; position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); width: 100%; height: 3px; background-color: #ffc107; animation: expandLine 0.4s ease forwards; }

@keyframes expandLine { 0% { width: 0; } 100% { width: 100%; } }

/* ==========================================================================
   ANIMAÇÃO DOS PASSOS
   ========================================================================== */
.wizard-step { display: none; width: 100%; animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.wizard-step.active { display: block; }
@keyframes slideUpFade { 0% { opacity: 0; transform: translateY(15px); } 100% { opacity: 1; transform: translateY(0); } }
.step-title { color: #111111; font-weight: 900; margin-bottom: 30px; border-left: 6px solid #ffc107; padding-left: 15px; font-size: 22px; }

/* ==========================================================================
   CAIXAS DE SELEÇÃO FÍSICA/JURÍDICA
   ========================================================================== */
.radio-box { display: block; width: 100%; margin-bottom: 20px; }
.radio-box input[type="radio"] { opacity: 0; position: absolute; z-index: -1; }
.radio-box .box-content { border: 3px solid #cccccc; border-radius: 8px; padding: 30px 15px; cursor: pointer; transition: all 0.3s ease; color: #333333; text-align: center; background: #ffffff; display: block; }
.radio-box .box-content i { display: block; font-size: 45px; margin-bottom: 15px; color: #cccccc; transition: all 0.3s ease; }
.radio-box .box-content span { font-weight: 900; font-size: 16px; display: block; text-transform: uppercase; }
.radio-box:hover .box-content { border-color: #999999; }
.radio-box input[type="radio"]:checked + .box-content { border-color: #111111; background-color: #ffc107; color: #111111; box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3); }
.radio-box input[type="radio"]:checked + .box-content i { color: #111111; }

/* ==========================================================================
   INPUTS GERAIS DO FORMULÁRIO
   ========================================================================== */
.form-group { margin-bottom: 20px; }
.cadastro-wizard label { font-weight: 700; color: #333333; margin-bottom: 8px; font-size: 14px; }
.cadastro-wizard .form-control { border: 2px solid #cccccc; border-radius: 4px; padding: 10px 15px; height: 45px; font-size: 15px; color: #111111; box-shadow: none; width: 100%; }
.cadastro-wizard .form-control:focus { border-color: #ffc107; background-color: #fffdf5; outline: none; box-shadow: 0 0 0 4px rgba(255, 193, 7, 0.2); }

/* ESTILO DO VALIDADOR ASP.NET */
.validador-msg {
    display: inline-block;
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
    width: 100%;
}
.validador-msg i { margin-right: 5px; }

/* ==========================================================================
   BOTÕES INFERIORES
   ========================================================================== */
.text-between { display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 30px; padding-top: 25px; border-top: 1px solid #eeeeee; }
.text-between .btn-default { background: transparent; border: 2px solid #cccccc; font-weight: 700; color: #555555; padding: 12px 25px; text-transform: uppercase; border-radius: 4px; transition: 0.3s; }
.text-between .btn-default:hover { background: #eeeeee; border-color: #999999; color: #111111; }

/* ==========================================================================
   UPDATE PROGRESS (TELA DE CARREGAMENTO)
   ========================================================================== */
.loading-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.85); z-index: 9999;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.spinner {
    border: 5px solid #f3f3f3; border-top: 5px solid #ffc107; border-radius: 50%;
    width: 50px; height: 50px; animation: spin 1s linear infinite; margin-bottom: 15px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loading-overlay p { font-weight: 900; color: #333; text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================================================
   MODAL CUSTOMIZADO DE SUCESSO/ERRO
   ========================================================================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); z-index: 10000;
    display: flex; justify-content: center; align-items: center;
}
.modal-box {
    background: #fff; width: 90%; max-width: 400px; padding: 30px; border-radius: 10px;
    text-align: center; box-shadow: 0 15px 40px rgba(0,0,0,0.2); animation: popIn 0.3s ease;
}
.modal-icone {
    width: 60px; height: 60px; border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 30px; margin: 0 auto 20px auto; color: #fff;
}
.modal-icone.sucesso { background-color: #4CAF50; }
.modal-icone.erro { background-color: #F44336; }
.modal-icone.alerta { background-color: #FF9800; }
.modal-box h3 { margin-top: 0; font-weight: 900; color: #111; }
.modal-box p { color: #555; margin-bottom: 20px; font-size: 15px; }

@keyframes popIn { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

/* ==========================================================================
   MOBILE RESPONSIVO
   ========================================================================== */
@media (max-width: 768px) {
    .wizard-container { padding: 25px 15px; }
    .wizard-progress { flex-direction: column; border-bottom: none; background: #f9f9f9; border-radius: 8px; padding: 10px; }
    .step-indicator { text-align: left; margin-bottom: 5px; padding: 12px 15px; border-radius: 4px; }
    .step-indicator.active { background: #ffc107; color: #111; }
    .step-indicator.active:after { display: none; }
    .text-between { flex-direction: column-reverse; gap: 15px; }
    .text-between button, .text-between input[type="submit"], .text-between .btn-action { width: 100%; }
}


.ocultar-fake {
    position: absolute;
    top: -1000px;      /* Joga o campo para fora da área visual */
    left: -1000px;
    width: 1px;
    height: 1px;
    opacity: 0;        /* Totalmente transparente */
    border: none;
    padding: 0;
    margin: 0;
    z-index: -1;       /* Fica atrás de tudo */
    pointer-events: none; /* Garante que ninguém clique nele sem querer */
}

/* ==========================================
   CSS: RADIO BUTTONS DE ACESSO (WIZARD)
   ========================================== */
.radio-acesso-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}
.radio-acesso-item {
    background: #fff;
    border: 2px solid #ccc;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    color: #333;
    transition: all 0.2s;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}
.radio-acesso-item input[type="radio"] {
    cursor: pointer;
    transform: scale(1.2);
    accent-color: #ffc107;
}
.radio-acesso-item:hover {
    border-color: #ffc107;
}
.input-email-minusculo {
    text-transform: lowercase !important;
}