/* Cadastro público de filiado — SINPOL/SE */
.rsfp { max-width: 100%; }
.rsfp fieldset {
    border: 1px solid #e6e8f2; border-radius: 16px; background: #fff;
    padding: 26px 28px 20px; margin: 0 0 22px; box-shadow: 0 2px 10px rgba(0,1,55,.04);
}
.rsfp legend {
    color: #000137; font-weight: 700; font-size: 17px; padding: 0 12px;
    text-transform: uppercase; letter-spacing: .04em;
}
.rsfp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
@media (max-width: 900px) { .rsfp-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .rsfp-grid { grid-template-columns: 1fr; } }

.rsfp-field label {
    display: block; font-weight: 600; font-size: 13px; color: #33364a; margin-bottom: 5px;
}
.rsfp-field label b { color: #c02b2b; }
.rsfp-field input, .rsfp-field select, .rsfp-field textarea {
    width: 100%; background: #f6f7fb !important; border: 1px solid #e2e5f0;
    border-radius: 10px; padding: 12px 14px !important; font-size: 15px; color: #1b1d29;
    transition: border-color .2s, box-shadow .2s; box-sizing: border-box;
}
.rsfp-field input:focus, .rsfp-field select:focus, .rsfp-field textarea:focus {
    outline: none; border-color: #e8b529; box-shadow: 0 0 0 3px rgba(232,181,41,.25);
}
.rsfp-field--full { margin-top: 14px; }

.rsfp-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }

.rsfp-aviso { color: #6a6d80; font-size: 13.5px; margin: 6px 0 18px; }

.rsfp-enviar {
    background: #e8b529; color: #000137; border: 2px solid #e8b529;
    font-weight: 700; font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
    padding: 16px 44px; border-radius: 40px; cursor: pointer; transition: all .25s;
}
.rsfp-enviar:hover { background: #000137; border-color: #000137; color: #fff; transform: translateY(-2px); }

.rsfp-ok {
    background: #e2f4e8; border: 1px solid #b2e0c3; border-radius: 16px;
    padding: 30px 34px; color: #14532d;
}
.rsfp-ok h3 { margin: 0 0 10px; color: #14532d; }
.rsfp-ok p { margin: 0 0 8px; }

.rsfp-erro {
    background: #fdecec; border: 1px solid #f3b8b8; border-left: 5px solid #c02b2b;
    border-radius: 0 12px 12px 0; padding: 16px 20px; color: #7c1d1d; margin-bottom: 20px;
}
.rsfp-erro ul { margin: 8px 0 0 18px; padding: 0; }

/* Aviso do preenchimento automático pelo CEP */
.rsfp-field .rsf-cep-aviso { display: block; margin-top: 5px; color: #00662b; font-size: 12.5px; }
.rsfp-field .rsf-cep-aviso.is-erro { color: #c02b2b; }

/* Tipo de solicitação (Nova filiação / Refiliação / Recadastramento) */
.rsfp-tipos { display: flex; flex-wrap: wrap; gap: 10px; }
.rsfp-tipo {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    border: 2px solid #cfd3d8; border-radius: 10px; padding: 12px 20px;
    font-weight: 600; color: #000137; transition: all .15s ease;
}
.rsfp-tipo:hover { border-color: #e8b529; }
.rsfp-tipo:has(input:checked) { border-color: #000137; background: #fdf6e3; }
.rsfp-tipo input { accent-color: #000137; }

.rsfp-dica-campo { color: #6b7075; font-size: 13px; font-weight: 400; }

/* Declaração de autorização do desconto */
.rsfp-declaracao {
    display: flex; gap: 14px; align-items: flex-start; cursor: pointer;
    background: #fdf6e3; border: 1px solid #e8b529; border-radius: 12px;
    padding: 18px 20px; margin-bottom: 20px;
}
.rsfp-declaracao input { margin-top: 4px; transform: scale(1.35); accent-color: #000137; flex-shrink: 0; }
.rsfp-declaracao span { font-size: 14px; line-height: 1.65; color: #333; text-align: justify; }

/* Assinatura eletrônica */
.rsfp-assinatura-bloco canvas {
    width: 100%; max-width: 640px; height: 180px; display: block;
    background: #fff; border: 2px dashed #b5bac1; border-radius: 10px;
    touch-action: none; cursor: crosshair;
}
.rsfp-assinatura-bloco canvas.tem-assinatura { border-style: solid; border-color: #000137; }
.rsfp-limpar {
    margin-top: 8px; background: none; border: 1px solid #cfd3d8; border-radius: 8px;
    padding: 7px 16px; font-size: 13px; color: #555; cursor: pointer;
}
.rsfp-limpar:hover { border-color: #c02b2b; color: #c02b2b; }
.rsfp-foto-preview { margin-top: 10px; width: 110px; height: 145px; object-fit: cover; border-radius: 10px; border: 2px solid #000137; }
