/* ============================================================================
 * previa_formulario.styles.css — CB Negocial
 * APENAS ESTRUTURA
 * ========================================================================== */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', -apple-system, Segoe UI, sans-serif;
    font-size: 14px;
    min-height: 100vh;
}

.oculto { display: none !important; }

/* Banner */
.previa-banner {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.previa-banner-icone { font-size: 18px; flex-shrink: 0; }
.previa-banner-texto strong { font-weight: 700; }
.previa-banner-desc { font-weight: 400; opacity: 0.9; }
.previa-banner code { padding: 1px 5px; border-radius: 3px; font-size: 11px; }

/* Container */
.erro-previa-container { max-width: 600px; margin: 60px auto; padding: 20px; }
.previa-container { max-width: 680px; margin: 0 auto; padding: 24px 16px 40px; }
.gf-itens-container { display: block; }

/* Cards */
.gf-card { position: relative; border-radius: 8px; padding: 22px 22px 22px 26px; margin-bottom: 14px; overflow: hidden; }
.gf-card-header { padding: 26px 22px; margin-bottom: 18px; }
.gf-card-accent { position: absolute; top: 0; left: 0; width: 6px; height: 100%; }
.gf-card-header .gf-card-accent { display: none; }

/* Logo */
.gf-logo-area { text-align: var(--gf-logo-alinhamento, center); margin-bottom: 14px; padding: 10px; border-radius: 6px; background: var(--gf-logo-area-bg, transparent); }
.gf-logo-img { width: var(--gf-logo-width, 180px); height: var(--gf-logo-height, 180px); max-width: var(--gf-logo-max-width, 180px); max-height: var(--gf-logo-max-height, 180px); object-fit: contain; border-radius: var(--gf-logo-radius, 50%); display: inline-block; }

/* Título */
.gf-titulo { font-size: 28px; font-weight: 500; color: inherit; line-height: 1.25; margin: 0; }

/* Instrução */
.gf-instrucao-area { margin-top: 12px; }
.gf-instrucao { font-size: 14px; line-height: 1.5; }
.gf-instrucao img, .gf-instrucao iframe { max-width: 100%; }

/* Label e obrigatório */
.gf-label { display: block; font-size: 15px; font-weight: 500; color: inherit; margin-bottom: 10px; line-height: 1.4; }
.gf-obrig { margin-left: 4px; font-weight: 700; }

/* Inputs */
.gf-input { width: 100%; border: none; padding: 6px 0; font-size: 14px; background: transparent; outline: none; color: inherit; font-family: inherit; }
.gf-input:focus { border-bottom-width: 2px; padding-bottom: 5px; }
.gf-input:disabled { cursor: not-allowed; }
select.gf-input { padding: 8px 0; cursor: pointer; }
select.gf-input:disabled { cursor: not-allowed; }
textarea.gf-input { border-radius: 4px; padding: 8px 10px; resize: vertical; min-height: 60px; }
textarea.gf-input:focus { border-width: 2px; padding: 7px 9px; }

/* Radio */
.gf-radio-group { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.gf-radio-label { font-size: 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; color: inherit; margin: 0; font-weight: 400; }
.gf-radio-label input[type="radio"] { width: 16px; height: 16px; }

/* Bloco título */
.gf-bloco-titulo { border-radius: 8px; padding: 16px 20px; margin: 18px 0 12px; }
.gf-bloco-texto { font-size: 18px; font-weight: 600; }

/* Botão submit */
.gf-submit-area { text-align: right; padding: 14px 4px 8px; }
.gf-btn-submit { padding: 12px 32px; border: none; border-radius: 5px; font-size: 14px; font-weight: 600; cursor: pointer; letter-spacing: 0.2px; transition: background .15s, box-shadow .15s; font-family: inherit; }
.gf-btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* Rodapé */
.gf-rodape { display: none; text-align: center; font-size: 13px; padding: 16px 10px; line-height: 1.5; }
.previa-page-footer { text-align: center; font-size: 11px; padding: 24px 10px 8px; }
.previa-page-footer a { text-decoration: none; }
.previa-page-footer a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 600px) {
    .previa-container { padding: 12px 8px 30px; }
    .gf-card { padding: 18px 16px 18px 20px; }
    .gf-card-header { padding: 22px 16px; }
    .gf-titulo { font-size: 24px; }
    .previa-banner { padding: 10px 14px; font-size: 12px; }
    .previa-banner-desc { display: block; margin-top: 2px; }
}

/* Paginação */
.gf-pagina-progress { margin-bottom: 14px; }
.gf-pagina-progress-label { font-size: 12px; margin-bottom: 6px; font-weight: 500; }
.gf-pagina-progress-bar { height: 4px; border-radius: 2px; overflow: hidden; }
.gf-pagina-progress-fill { height: 100%; border-radius: 2px; transition: width .3s ease; }
.gf-pagina-container { display: none; }
.gf-pagina-container.ativa { display: block; }
.gf-nav-paginas { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px 8px; gap: 10px; }
.gf-btn-anterior,
.gf-btn-proximo { padding: 10px 24px; border: none; border-radius: 5px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s; }

/* Logo banner */
.gf-logo-area.modo-banner { padding: 0; overflow: hidden; border-radius: 6px 6px 0 0; margin: -26px -22px 14px -22px; width: calc(100% + 44px); }
.gf-logo-area.modo-banner img { width: 100% !important; height: auto !important; max-width: 100% !important; max-height: 280px !important; object-fit: cover; border-radius: 0; display: block; }

/* Bloco paginação visual (oculto na prévia real) */
.gf-bloco-pagina { display: none; }

/* Bloco anexo */
.gf-card-anexo .gf-anexo-area { margin-top: 8px; }
.gf-anexo-drop-zone { position: relative; border-radius: 8px; padding: 28px 16px; text-align: center; cursor: pointer; transition: border-color .2s, background .2s; }
.gf-anexo-file-input { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.gf-anexo-ico { font-size: 30px; display: block; margin-bottom: 6px; }
.gf-anexo-texto { display: block; font-size: 13px; font-weight: 500; }
.gf-anexo-formatos { display: block; font-size: 11px; margin-top: 4px; }
.gf-anexo-lista { margin-top: 8px; }
.gf-anexo-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; margin-bottom: 4px; }
.gf-anexo-item-ico { font-size: 14px; flex-shrink: 0; }
.gf-anexo-item-nome { flex: 1; font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.gf-anexo-item-tam { font-size: 11px; flex-shrink: 0; }
.gf-anexo-item-remover { background: none; border: none; cursor: pointer; padding: 2px 4px; font-size: 12px; flex-shrink: 0; }
/* Spinner oculto por padrão */
.gf-spinner-oculto {
    display: none;
    text-align: center;
    padding: 1rem;
}
/* ── SELECT ESTILIZADO ──────────────────────────────────────── */
.gf-select-estilizado {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' 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 12px center;
    background-size: 16px;
    padding-right: 36px;
    cursor: pointer;
    border-radius: 6px;
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}
.gf-select-estilizado:focus {
    outline: none;
}
/* ============================================================
 * Bloco Sócios PJ — formulário público
 * ============================================================ */
.gf-card-socios { padding-bottom: 18px; }
.gf-socios-wrapper { margin-top: 4px; }

/* Mini-formulário de entrada */
.gf-socios-form { margin-bottom: 14px; }
.gf-socios-inputs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.gf-socios-inputs .gf-input { flex: 1; min-width: 160px; }
.gf-socios-btn-incluir {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 6px; border: none;
    font-size: 13px; font-weight: 600; cursor: pointer;
    background: var(--gf-destaque, #0264d6); color: #fff;
    transition: opacity .2s;
}
.gf-socios-btn-incluir:hover { opacity: .85; }

/* Quadro societário */
.gf-socios-quadro { border-radius: 8px; overflow: hidden; border: 1px solid #e0e0e0; }
.gf-socios-quadro-header {
    padding: 9px 14px; font-size: 12px; font-weight: 700;
    display: flex; align-items: center; gap: 7px;
}
.gf-socios-quadro-body { overflow-x: auto; }
.gf-socios-tabela { width: 100%; border-collapse: collapse; font-size: 13px; }
.gf-socios-tabela thead tr { }
.gf-socios-tabela th { padding: 8px 10px; text-align: left; font-weight: 600; font-size: 12px; white-space: nowrap; }
.gf-socios-tabela td { padding: 8px 10px; vertical-align: middle; }
.gf-socios-tabela tbody tr:last-child td { border-bottom: none; }
.gf-socios-btn-remover {
    border: none; border-radius: 4px; padding: 4px 8px; cursor: pointer; font-size: 12px;
    transition: background .2s;
}
.gf-socios-vazio { padding: 16px; text-align: center; font-size: 13px; color: #9aa0a6; font-style: italic; }
#title_modal_msg_retorno {
    font-weight: 400;
}

.gf-spinner-visivel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.gf-spinner-visivel i {
    font-size: 3rem;
    color: #ffffff;
    animation: gf-spin 0.8s linear infinite;
}

.gf-spinner-visivel p {
    display: none;
}

@keyframes gf-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}