/**
 * SINDCOB Serviços — Forms CSS
 *
 * @version 1.0.0
 */

.sindcob-serv-form-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    width: 100%;
}

/* Alertas */
.ss-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.ss-alert-success {
    background: #ECFDF5;
    border: 1px solid #059669;
    color: #065F46;
}

.ss-alert-error {
    background: #FEF2F2;
    border: 1px solid #EF4444;
    color: #991B1B;
}

/* Form */
.sindcob-serv-form {
    background: #fff;
}

/* Fieldsets / grupos */
.ss-group {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.ss-group legend {
    font-size: 15px;
    font-weight: 700;
    color: #0F1D2F;
    padding: 0 8px;
    margin-left: -8px;
}

.ss-help {
    font-size: 12px;
    color: #6C737F;
    margin: 0 0 16px;
}

/* Grid de campos */
.ss-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 1024px) {
    .ss-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

/* Campo */
.ss-field {
    display: flex;
    flex-direction: column;
}

.ss-field label {
    font-size: 12px;
    font-weight: 600;
    color: #0F1D2F;
    margin-bottom: 6px;
}

.ss-req {
    color: #C0392B;
}

.ss-field input[type="text"],
.ss-field input[type="email"],
.ss-field input[type="date"],
.ss-field input[type="tel"],
.ss-field input[type="number"],
.ss-field select {
    width: 100%;
    height: 42px;
    padding: 9px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 7px;
    font-size: 13px;
    font-family: inherit;
    background: #FAFAFA;
    color: #1A1A1A;
    transition: border-color 200ms, box-shadow 200ms, background 200ms;
    box-sizing: border-box;
}

.ss-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236C737F' 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 12px center;
    padding-right: 36px;
}

.ss-field input:focus,
.ss-field select:focus {
    outline: none;
    border-color: #C0392B;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* Checkbox */
.ss-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #4B5563;
    cursor: pointer;
}

.ss-check input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #C0392B;
}

/* Termo */
.ss-termo {
    background: #FFFBEB;
    border-color: #FCD34D;
}

.ss-termo legend {
    color: #92400E;
}

.ss-termo-check {
    font-size: 14px;
    line-height: 1.6;
    color: #78350F;
}

/* Dependentes */
.ss-dependente-row {
    background: #F8F9FB;
    border: 1px dashed #D1D5DB;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

.ss-dependente-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.ss-dependente-header strong {
    color: #0F1D2F;
    font-size: 13px;
}

.ss-btn-add {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px dashed #C0392B;
    color: #C0392B;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms;
    font-family: inherit;
}

.ss-btn-add:hover {
    background: #C0392B;
    color: #fff;
}

.ss-btn-remove {
    background: transparent;
    border: none;
    color: #C0392B;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    font-family: inherit;
}

.ss-btn-remove:hover {
    text-decoration: underline;
}

/* Submit */
.ss-actions {
    text-align: center;
    margin-top: 24px;
}

.ss-submit {
    background: #C0392B;
    color: #fff !important;
    padding: 14px 48px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background 200ms, transform 100ms;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 220px;
}

.ss-submit:hover:not(:disabled) {
    background: #E74C3C;
    color: #fff !important;
    text-decoration: none;
}

.ss-submit:active:not(:disabled) {
    transform: scale(0.98);
}

.ss-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Spinner */
.ss-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ss-spin 0.8s linear infinite;
}

@keyframes ss-spin {
    to { transform: rotate(360deg); }
}

/* Estados de campo */
.ss-field-error {
    border-color: #EF4444 !important;
    background: #FEF2F2 !important;
}

.ss-field-error:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.ss-field-error-msg {
    display: block;
    color: #B91C1C;
    font-size: 11px;
    margin-top: 4px;
    font-weight: 500;
}

.ss-field-loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236C737F' stroke-width='2'%3E%3Cpath d='M21 12a9 9 0 1 1-6.219-8.56'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding-right: 38px !important;
}

/* ============================================
   Radio inline (CPF/CNPJ, Celular/WhatsApp)
   ============================================ */
.ss-radio-group {
    display: flex;
    align-items: center;
    gap: 18px;
    height: 18px;
    margin-bottom: 6px;
}

.ss-radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #0F1D2F;
    cursor: pointer;
    margin: 0;
}

.ss-radio-group input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #2563EB;
    margin: 0;
    cursor: pointer;
}

.ss-checkbox-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    margin-top: 22px; /* alinha com inputs que têm label em cima */
}

.ss-checkbox-inline input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563EB;
    cursor: pointer;
    margin: 0;
}

.ss-checkbox-inline label {
    font-size: 13px;
    color: #0F1D2F;
    cursor: pointer;
    margin: 0;
}

/* ============================================
   Layout específico Contribuição Assistencial
   Grid de 4 colunas no desktop
   ============================================ */
.sindcob-serv-ca .ss-grid-ca-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.sindcob-serv-ca .ss-grid-ca-4 > .ss-col-1 { grid-column: span 1; }
.sindcob-serv-ca .ss-grid-ca-4 > .ss-col-2 { grid-column: span 2; }
.sindcob-serv-ca .ss-grid-ca-4 > .ss-col-3 { grid-column: span 3; }
.sindcob-serv-ca .ss-grid-ca-4 > .ss-col-4 { grid-column: span 4; }

@media (max-width: 1023px) {
    .sindcob-serv-ca .ss-grid-ca-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .sindcob-serv-ca .ss-grid-ca-4 > .ss-col-1,
    .sindcob-serv-ca .ss-grid-ca-4 > .ss-col-2,
    .sindcob-serv-ca .ss-grid-ca-4 > .ss-col-3,
    .sindcob-serv-ca .ss-grid-ca-4 > .ss-col-4 {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .sindcob-serv-ca .ss-grid-ca-4 {
        grid-template-columns: 1fr;
    }
    .sindcob-serv-ca .ss-grid-ca-4 > .ss-col-1,
    .sindcob-serv-ca .ss-grid-ca-4 > .ss-col-2,
    .sindcob-serv-ca .ss-grid-ca-4 > .ss-col-3,
    .sindcob-serv-ca .ss-grid-ca-4 > .ss-col-4 {
        grid-column: span 1;
    }
}

/* Wrapper que junta radio + input (CPF/CNPJ, Celular/WhatsApp) */
.ss-field-with-radio .ss-radio-group {
    margin-bottom: 8px;
}

/* ============================================
   Contribuição Assistencial — Tela de sucesso
   ============================================ */
.sindcob-serv-boleto-result {
    text-align: center;
    padding: 20px 0;
}

.ss-boleto-header {
    margin-bottom: 32px;
}

.ss-boleto-check {
    width: 64px;
    height: 64px;
    color: #10B981;
    margin: 0 auto 16px;
    display: block;
}

.ss-boleto-header h2 {
    font-size: 24px;
    color: #0F1D2F;
    margin: 0 0 8px;
    font-weight: 700;
}

.ss-boleto-header p {
    color: #6C737F;
    font-size: 14px;
    margin: 0;
}

.ss-boleto-instrucoes {
    text-align: left;
    max-width: 640px;
    margin: 0 auto 24px;
    color: #374151;
    line-height: 1.7;
    font-size: 14px;
}

.ss-boleto-instrucoes h2 {
    font-size: 24px;
    color: #0F1D2F;
    margin: 0 0 16px;
    text-align: center;
    font-weight: 700;
}

.ss-boleto-instrucoes h3 {
    font-size: 16px;
    color: #C0392B;
    margin: 24px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #FEE2E2;
}

.ss-boleto-instrucoes ul {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 16px 16px 16px 36px;
    margin: 12px 0;
}

.ss-boleto-instrucoes li {
    margin: 6px 0;
}

.ss-boleto-instrucoes p {
    margin: 12px 0;
}

.ss-boleto-instrucoes a {
    color: #C0392B;
    text-decoration: underline;
}

.ss-boleto-instrucoes a:hover {
    color: #E74C3C;
}

.ss-boleto-info {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 24px;
    max-width: 600px;
    margin: 0 auto 24px;
    text-align: left;
}

.ss-boleto-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #E5E7EB;
    gap: 16px;
}

.ss-boleto-row:last-child {
    border-bottom: none;
}

.ss-boleto-row span {
    color: #6C737F;
    font-size: 13px;
    font-weight: 500;
}

.ss-boleto-row strong,
.ss-boleto-row code {
    color: #0F1D2F;
    font-weight: 700;
    font-size: 14px;
    text-align: right;
}

.ss-boleto-row code {
    font-family: 'SF Mono', Monaco, monospace;
    font-size: 12px;
    background: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #E5E7EB;
}

.ss-boleto-warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #92400E;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    max-width: 600px;
    margin: 0 auto 24px;
    text-align: left;
}

.ss-boleto-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.ss-btn-secondary {
    background: #fff;
    color: #6C737F;
    border: 1px solid #D1D5DB;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 200ms;
}

/* ============================================
   Carta de Oposição
   ============================================ */
.sindcob-serv-oposicao .ss-oposicao-intro {
    text-align: center;
    margin-top: -20px;
    margin-bottom: 28px;
}

.sindcob-serv-oposicao .ss-oposicao-intro h2 {
    font-size: 24px;
    color: #0F1D2F;
    margin: 0 0 8px;
    font-weight: 700;
}

.sindcob-serv-oposicao .ss-oposicao-intro p {
    color: #6C737F;
    font-size: 14px;
}

.ss-oposicao-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ss-oposicao-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.ss-oposicao-card:hover {
    border-color: #C0392B;
    box-shadow: 0 4px 16px rgba(192, 57, 43, 0.1);
    color: inherit;
}

.ss-oposicao-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    background: #FEF2F2;
    color: #C0392B;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.ss-oposicao-card-icon svg {
    width: 36px;
    height: 36px;
}

.ss-oposicao-card h3 {
    font-size: 16px;
    color: #0F1D2F;
    margin: 0 0 8px;
    font-weight: 700;
}

.ss-oposicao-card p {
    font-size: 13px;
    color: #6C737F;
    margin: 0 0 16px;
    flex: 1;
}

.ss-oposicao-card-arrow {
    color: #C0392B;
    font-size: 13px;
    font-weight: 600;
    margin-top: auto;
}

/* Janela fechada */
.ss-oposicao-fechada {
    text-align: center;
    padding: 60px 20px;
}

.ss-oposicao-fechada svg {
    margin: 0 auto 20px;
}

.ss-oposicao-fechada h2 {
    font-size: 24px;
    color: #0F1D2F;
    margin: 0 0 12px;
}

.ss-oposicao-fechada p {
    color: #6C737F;
    margin: 8px 0;
}

.ss-oposicao-proxima {
    margin-top: 20px !important;
    font-size: 16px;
    color: #0F1D2F !important;
}

.ss-oposicao-proxima strong {
    color: #C0392B;
}

/* Header do formulário do setor */
.ss-oposicao-form-header {
    margin-top: -30px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #E5E7EB;
}

.ss-oposicao-back {
    display: inline-block;
    color: #C0392B;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.ss-oposicao-back:hover {
    color: #E74C3C;
}

.ss-oposicao-form-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    color: #0F1D2F;
}

.ss-oposicao-form-header p {
    margin: 0;
    color: #6C737F;
    font-size: 13px;
}

.ss-oposicao-fundamentacao {
    background: #F0F4F8;
    border-left: 4px solid #C0392B;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 24px;
}

/* Tela de sucesso */
.ss-oposicao-sucesso {
    text-align: center;
    padding: 20px 0;
}

.ss-oposicao-instrucoes {
    text-align: left;
    max-width: 640px;
    margin: 0 auto;
    color: #374151;
    line-height: 1.7;
    font-size: 14px;
}

.ss-oposicao-instrucoes h2 {
    font-size: 24px;
    color: #0F1D2F;
    margin: 0 0 16px;
    text-align: center;
}

.ss-oposicao-instrucoes h3 {
    font-size: 18px;
    color: #0F1D2F;
    margin: 24px 0 12px;
    text-align: center;
}

.ss-oposicao-instrucoes h4 {
    font-size: 15px;
    color: #C0392B;
    margin: 24px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #FEE2E2;
}

.ss-oposicao-instrucoes p {
    margin: 8px 0;
}

.ss-oposicao-instrucoes .ss-oposicao-download {
    margin: 20px 0;
    text-align: center;
}

.ss-oposicao-sucesso h2 {
    font-size: 24px;
    color: #0F1D2F;
    margin: 0 0 12px;
}

.ss-oposicao-sucesso > p {
    color: #6C737F;
    font-size: 14px;
    margin-bottom: 24px;
}

.ss-oposicao-passos {
    text-align: left;
    max-width: 520px;
    margin: 0 auto 24px;
    padding-left: 20px;
}

.ss-oposicao-passos li {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 14px;
}

.ss-oposicao-warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    color: #92400E;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 13px;
    max-width: 520px;
    margin: 0 auto 24px;
    text-align: left;
}

.ss-oposicao-download {
    margin: 24px 0;
}

.ss-oposicao-contato {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    max-width: 520px;
    margin: 24px auto 0;
    text-align: left;
}

.ss-oposicao-contato h3 {
    margin: 0 0 12px;
    font-size: 14px;
    color: #0F1D2F;
}

.ss-oposicao-contato p {
    margin: 4px 0;
    font-size: 13px;
    color: #6C737F;
}

.sindcob-serv-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    border-left: 4px solid;
}

.sindcob-serv-alert-success {
    background: #ECFDF5;
    border-color: #10B981;
    color: #065F46;
}

.sindcob-serv-alert-error {
    background: #FEF2F2;
    border-color: #EF4444;
    color: #991B1B;
}

.sindcob-serv-alert-warning {
    background: #FEF3C7;
    border-color: #F59E0B;
    color: #92400E;
}

/* ---------- Toast (feedback flutuante do envio) ---------- */
.ss-toast-host {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    pointer-events: none;
}
.ss-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #fff;
    color: #1A1A1A;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    box-shadow: 0 10px 30px rgba(15, 29, 47, 0.18);
    border-left: 4px solid #16A34A;
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 220ms ease, transform 220ms ease;
    cursor: pointer;
}
.ss-toast.is-in {
    opacity: 1;
    transform: translateX(0);
}
.ss-toast-error {
    border-left-color: #C0392B;
}
.ss-toast-ico {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-top: 1px;
    background: #16A34A;
    position: relative;
}
.ss-toast-error .ss-toast-ico {
    background: #C0392B;
}
.ss-toast-ico::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.ss-toast-error .ss-toast-ico::before {
    content: "!";
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    border: none;
    transform: none;
    text-align: center;
    line-height: 20px;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}
.ss-toast-body > div {
    margin: 2px 0;
}

@media (max-width: 480px) {
    .ss-toast-host {
        left: 12px;
        right: 12px;
        top: 12px;
        max-width: none;
    }
}

/* ---------- Campo inválido (validação própria, sem balão do navegador) ---------- */
.sindcob-form .ss-invalid,
.sindcob-form .ss-invalid:focus {
    border-color: #C0392B !important;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12) !important;
    background: #FFF7F6;
}

/* ---------- Mensagem de erro por campo (CPF/CNPJ/PIS inválido) ---------- */
.sindcob-form .ss-field-msg {
    font-size: 12px;
    color: #C0392B;
    margin-bottom: -10px;
    margin-top: 3px;

    /*
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px 3px 7px;
    background: #FDECEA;
    font-weight: 600;
    line-height: 1.3;
    border-radius: 6px;
    border: 1px solid rgba(192, 57, 43, 0.25);*/
}/*
.sindcob-form .ss-field-msg::before {
    content: "!";
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #C0392B;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 15px;
    text-align: center;
}*/

/* ---------- Campo consultando API (CEP/CNPJ) — spinner à direita ---------- */
.sindcob-form .ss-field-loading {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'><g fill='none' stroke='%23C0392B' stroke-width='2.5'><circle cx='12' cy='12' r='9' stroke-opacity='0.25'/><path d='M21 12a9 9 0 0 0-9-9'><animateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.7s' repeatCount='indefinite'/></path></g></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 36px !important;
}

/* ---------- Tela de sucesso da Contribuição (boleto gerado) ---------- */
.ss-boleto-card {
    max-width: 720px;
    margin: 8px auto;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 36px 40px 40px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(15, 29, 47, 0.06);
}
.ss-boleto-card .ss-boleto-check {
    width: 72px;
    height: 72px;
    margin: 4px auto 20px;
    border-radius: 50%;
    border: 4px solid #10B981;
    position: relative;
    display: block;
}
.ss-boleto-card .ss-boleto-check::after {
    content: "";
    position: absolute;
    left: 26px;
    top: 15px;
    width: 14px;
    height: 28px;
    border: solid #10B981;
    border-width: 0 4px 4px 0;
    transform: rotate(45deg);
}
.ss-boleto-title {
    font-size: 24px;
    font-weight: 700;
    color: #0F1D2F;
    margin: 0 0 10px;
}
.ss-boleto-lead {
    color: #4B5563;
    font-size: 15px;
    margin: 0 0 28px;
}
.ss-boleto-sub {
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    color: #0F1D2F;
    margin: 0 0 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #E5E7EB;
}
.ss-boleto-card .ss-boleto-row {
    display: block;
    text-align: left;
    border: none;
    padding: 4px 0;
    color: #374151;
    font-size: 15px;
}
.ss-boleto-card .ss-boleto-row b {
    color: #0F1D2F;
}
.ss-boleto-card .ss-mono {
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 13px;
}
.ss-boleto-note {
    text-align: left;
    color: #4B5563;
    font-size: 14px;
    line-height: 1.6;
    margin: 18px 0;
}
.ss-boleto-actions {
    margin: 22px 0;
}
.ss-boleto-btn {
    display: inline-block;
    background: #C0392B;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 34px;
    border-radius: 8px;
    transition: background 200ms;
}
.ss-boleto-btn:hover {
    background: #E74C3C;
    color: #fff;
}
.ss-boleto-thanks {
    text-align: left;
    color: #0F1D2F;
    margin: 18px 0 6px;
}
.ss-boleto-again {
    text-align: left;
    color: #4B5563;
    font-size: 14px;
    margin: 0;
}
.ss-boleto-again a {
    color: #C0392B;
    font-weight: 600;
    text-decoration: none;
}
.ss-boleto-again a:hover {
    text-decoration: underline;
}

/* ---------- Oposição: seleção de setor (cards) ---------- */
.ss-op-intro {
    text-align: center;
    margin: 8px 0 24px;
}
.ss-op-intro h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0F1D2F;
    margin: 0 0 8px;
}
.ss-op-intro p {
    color: #6C737F;
    font-size: 14px;
    margin: 0;
}
.ss-op-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 900px) { .ss-op-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ss-op-cards { grid-template-columns: 1fr; } }

.ss-op-loading, .ss-op-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #6C737F;
    font-size: 14px;
    padding: 24px;
}
.ss-op-card {
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 28px 22px;
    text-align: center;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 200ms, border-color 200ms, transform 120ms;
}
.ss-op-card:hover {
    border-color: #E8B4AE;
    box-shadow: 0 8px 24px rgba(15, 29, 47, 0.08);
    transform: translateY(-2px);
}
.ss-op-card-ico {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #FDECEA;
    color: #C0392B;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.ss-op-card-nome {
    font-size: 17px;
    font-weight: 700;
    color: #0F1D2F;
    margin: 0 0 8px;
}
.ss-op-card-desc {
    color: #6C737F;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 18px;
    flex: 1 1 auto;
}
.ss-op-card-btn {
    background: none;
    border: none;
    color: #C0392B;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 0;
}
.ss-op-card-btn:hover { color: #E74C3C; }

/* Cabeçalho do formulário da carta (título à esquerda, X à direita) */
.ss-op-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}
.ss-op-form-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0F1D2F;
    margin: 0;
}
.ss-op-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    background: #fff;
    border: 1px solid #D1D5DB;
    color: #6B7280;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 150ms, color 150ms, background 150ms;
}
.ss-op-close svg {
    display: block;
}
.ss-op-close:hover {
    border-color: #C0392B;
    color: #C0392B;
    background: #FDECEA;
}

/* ---------- Oposição: subtítulo + caixa de descrição (fundamentação) ---------- */
.ss-op-form-titles { min-width: 0; }
.ss-op-subtitulo {
    margin: 4px 0 0;
    color: #6C737F;
    font-size: 13px;
    font-weight: 500;
}
.ss-op-desc {
    background: #F3F6FB;
    border-left: 4px solid #C0392B;
    border-radius: 8px;
    padding: 16px 18px;
    margin: 0 0 22px;
    color: #374151;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

/* ---------- Spinner sobre o botão de PDF (Baixar/Imprimir) ---------- */
.ss-pdf-spin {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    background: rgba(192, 57, 43, 0.85);
}
/* Instruções da carta: SEM card interno (texto livre, ocupa a área útil do container). */
.ss-op-instrucoes {
    width: 100%;
    text-align: left;
    padding: 8px 4px 16px;
}
.ss-op-instrucoes .ss-boleto-title {
    display: block;
    text-align: center;
}
.ss-op-instrucoes .ss-boleto-sub {
    margin-top: 26px;
}
.ss-op-instrucoes .ss-boleto-note {
    font-size: 15px;
}

/* Campo espelhado/readonly (ex.: fantasia quando CPF) */
.sindcob-form .ss-readonly,
.sindcob-form input[readonly] {
    background: #F3F4F6;
    color: #6B7280;
    cursor: not-allowed;
}

/* ==========================================================================
   SINDIFARMA — form "Sindicalize-se" (grid FIXO de 4 colunas + spans)
   Escopado em .sf-form para não afetar os outros packs (sindicato usa 2/3 col).
   ========================================================================== */
.sf-form .ss-grid {
    grid-template-columns: repeat(4, 1fr);
}
.sf-form .col-2 { grid-column: span 2; }
.sf-form .col-3 { grid-column: span 3; }
.sf-form .col-4 { grid-column: span 4; }

@media (max-width: 1023px) {
    .sf-form .ss-grid { grid-template-columns: repeat(2, 1fr); }
    .sf-form .col-2,
    .sf-form .col-3,
    .sf-form .col-4 { grid-column: span 2; }
}
@media (max-width: 640px) {
    .sf-form .ss-grid { grid-template-columns: 1fr; }
    .sf-form .col-2,
    .sf-form .col-3,
    .sf-form .col-4 { grid-column: span 1; }
}

/* Opção de contribuição — 3 cards de rádio lado a lado */
.sf-radio-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.sf-radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #D1D5DB;
    border-radius: 10px;
    padding: 15px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #0F1D2F;
    background: #fff;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.sf-radio-card:hover { border-color: #9CA3AF; }
.sf-radio-card input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #2563EB;
    flex: 0 0 auto;
}
.sf-radio-card:has(input[type="radio"]:checked) {
    border-color: #2563EB;
    background: #F5F9FF;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
@media (max-width: 900px) {
    .sf-radio-cards { grid-template-columns: 1fr; }
}

/* Termo de Filiação — caixa destacada (creme/âmbar) */
.sf-termo.ss-group {
    background: #FEFCE8;
    border-color: #FDE68A;
}
.sf-termo.ss-group legend {
    color: #B45309;
}

/* ---- Contribuição patronal (Área da Empresa) ---- */
/* Tipos de contribuição empilhados (radio-cards em coluna única). */
.sf-tipos { display: grid; gap: 12px; }
.sf-tipos .sf-radio-card { width: 100%; }

/* Ajuda/descrição das seções. */
.sf-form .ss-help {
    font-size: 13px;
    color: #6B7280;
    margin: -4px 0 14px;
}

/* Linha do farmacêutico: CPF · Nome · Salário · Contribuição · (lixeira) numa linha. */
.sf-farm-row {
    display: grid;
    grid-template-columns: 190px 1fr 150px 160px 44px;
    gap: 12px;
    align-items: end;
    padding: 16px;
    border: 1px dashed #D1D5DB;
    border-radius: 10px;
    margin-bottom: 12px;
    background: #FAFAFA;
}
.sf-farm-contrib {
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 12px;
    border: 1px solid #DBEAFE;
    border-radius: 8px;
    background: #EFF6FF;
    color: #1D4ED8;
    font-weight: 700;
    font-size: 14px;
}
.sf-btn-trash {
    height: 42px;
    width: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #FECACA;
    background: #fff;
    color: #DC2626;
    border-radius: 8px;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.sf-btn-trash:hover { background: #FEF2F2; border-color: #FCA5A5; }
.sf-btn-trash:disabled { opacity: .4; cursor: not-allowed; }
.sf-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px dashed #C0392B;
    color: #C0392B;
    background: #fff;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.sf-add:hover { background: #FEF2F2; }

/* Total do boleto (readonly, cinza). */
.sf-total-input {
    background: #F3F4F6 !important;
    color: #6B7280;
    font-weight: 700;
}
.sf-hint { font-size: 12px; color: #9CA3AF; margin-top: 4px; }

@media (max-width: 900px) {
    .sf-farm-row {
        grid-template-columns: 1fr 1fr;
    }
    .sf-farm-row .sf-farm-contrib,
    .sf-farm-row .sf-btn-trash { grid-column: auto; }
}
