/* Template Clean - minimalista e leve */
body.template-clean-theme,
.template-clean-theme {
    --clean-primary: #111827;
    --clean-secondary: #4b5563;
    --clean-surface: #ffffff;
    --clean-surface-alt: #f9fafb;
    --clean-border: #e5e7eb;
    --clean-text: #1f2937;
    --clean-muted: #6b7280;
    --clean-success: #10b981;
    --clean-warning: #f59e0b;
    --clean-danger: #ef4444;
    font-family: 'Helvetica Neue', 'Segoe UI', sans-serif;
    background: #f8fafc;
    color: var(--clean-text);
}

body.template-clean-theme #formulario-preenchimento,
.template-clean-theme #formulario-preenchimento {
    padding-block: clamp(40px, 7vw, 70px);
}

body.template-clean-theme .formulario-card,
body.template-clean-theme .formulario-publico-card,
.template-clean-theme .formulario-card {
    background: var(--clean-surface);
    border: 1px solid var(--clean-border);
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

body.template-clean-theme .formulario-card__header,
.template-clean-theme .formulario-card__header {
    padding: clamp(28px, 5vw, 40px);
    border-bottom: 1px solid var(--clean-border);
    background: var(--clean-surface);
}

body.template-clean-theme .formulario-title,
body.template-clean-theme .formulario-publico-header h1,
.template-clean-theme .formulario-title,
.template-clean-theme .formulario-publico-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    font-weight: 600;
    color: var(--clean-primary);
    margin-bottom: 0.4rem;
}

body.template-clean-theme .formulario-subtitle,
body.template-clean-theme .formulario-publico-description p,
.template-clean-theme .formulario-subtitle,
.template-clean-theme .formulario-publico-description p {
    font-size: 1rem;
    color: var(--clean-muted);
}

body.template-clean-theme .formulario-card__body,
body.template-clean-theme .formulario-publico-body,
.template-clean-theme .formulario-card__body {
    padding: clamp(28px, 5vw, 44px);
}

body.template-clean-theme .form-control,
body.template-clean-theme .form-select,
.template-clean-theme .form-control,
.template-clean-theme .form-select {
    border-radius: 12px !important;
    border: 1px solid var(--clean-border) !important;
    background: var(--clean-surface-alt) !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    transition: border-color 0.18s ease, background 0.18s ease;
}

body.template-clean-theme .form-control:focus,
body.template-clean-theme .form-select:focus,
.template-clean-theme .form-control:focus,
.template-clean-theme .form-select:focus {
    border-color: var(--clean-primary) !important;
    background: #ffffff !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.12) !important;
}

body.template-clean-theme .formulario-btn,
.template-clean-theme .formulario-btn {
    border-radius: 999px;
    padding: 0.75rem 2.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

body.template-clean-theme .formulario-btn.btn-primary,
.template-clean-theme .formulario-btn.btn-primary {
    background: var(--clean-primary);
    border-color: var(--clean-primary);
    color: #ffffff;
}

body.template-clean-theme .formulario-btn.btn-primary:hover,
.template-clean-theme .formulario-btn.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.16);
}

body.template-clean-theme .formulario-btn.btn-light,
.template-clean-theme .formulario-btn.btn-light {
    background: #ffffff;
    border-color: var(--clean-border);
    color: var(--clean-secondary);
}

body.template-clean-theme .field-error .form-control,
body.template-clean-theme .field-error .form-select,
.template-clean-theme .field-error .form-control,
.template-clean-theme .field-error .form-select {
    border-color: var(--clean-danger) !important;
    background: rgba(239, 68, 68, 0.08) !important;
}

body.template-clean-theme .field-error-message,
.template-clean-theme .field-error-message {
    color: var(--clean-danger);
    font-size: 0.9rem;
    margin-top: 0.35rem;
}

body.template-clean-theme .formulario-actions,
.template-clean-theme .formulario-actions {
    border-top: 1px solid var(--clean-border);
    margin-top: 28px;
    padding-top: 22px;
    gap: 14px;
}

body.template-clean-theme .formulario-publico-container,
.template-clean-theme .formulario-publico-container {
    padding-block: clamp(40px, 7vw, 70px) !important;
}

body.template-clean-theme .formulario-publico-card,
.template-clean-theme .formulario-publico-card {
    background: var(--clean-surface) !important;
    border: 1px solid var(--clean-border) !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08) !important;
}

body.template-clean-theme .formulario-publico-header,
.template-clean-theme .formulario-publico-header {
    padding: clamp(28px, 5vw, 40px) clamp(28px, 5vw, 40px) 12px !important;
    background: var(--clean-surface) !important;
    border-bottom: 0 !important;
    text-align: left !important;
}

body.template-clean-theme .formulario-publico-description,
.template-clean-theme .formulario-publico-description {
    padding: 0 clamp(28px, 5vw, 40px) 24px !important;
    background: var(--clean-surface) !important;
    border-bottom: 1px solid var(--clean-border) !important;
}

body.template-clean-theme .formulario-publico-description p,
.template-clean-theme .formulario-publico-description p {
    margin: 0 !important;
}

body.template-clean-theme .formulario-publico-body,
.template-clean-theme .formulario-publico-body {
    padding: clamp(28px, 5vw, 44px) !important;
}

body.template-clean-theme .btn-submit,
.template-clean-theme .btn-submit {
    border-radius: 999px !important;
    padding: 0.75rem 2.2rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em !important;
    background: var(--clean-primary) !important;
    border-color: var(--clean-primary) !important;
    color: #ffffff !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
}

body.template-clean-theme .btn-submit:hover,
.template-clean-theme .btn-submit:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 18px 28px rgba(15, 23, 42, 0.16) !important;
}

body.template-clean-theme .btn.btn-light,
.template-clean-theme .btn.btn-light {
    background: #ffffff !important;
    border-color: var(--clean-border) !important;
    color: var(--clean-secondary) !important;
}

/* Modal clean (sistema) */
body.template-clean-theme .validation-modal,
body.template-clean-theme .success-modal-overlay,
.template-clean-theme .validation-modal,
.template-clean-theme .success-modal-overlay {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.25);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
    z-index: 1090;
}

body.template-clean-theme .validation-modal.is-visible,
body.template-clean-theme .success-modal-overlay.is-visible,
.template-clean-theme .validation-modal.is-visible,
.template-clean-theme .success-modal-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

body.template-clean-theme .validation-modal-formulario,
body.template-clean-theme .success-modal-formulario,
.template-clean-theme .validation-modal-formulario,
.template-clean-theme .success-modal-formulario {
    width: min(480px, 90vw);
    background: #ffffff !important;
    border-radius: 16px !important;
    border: 1px solid var(--clean-border) !important;
    box-shadow: 0 22px 40px rgba(15, 23, 42, 0.12) !important;
    padding: 0 !important;
    animation: cleanFade 0.18s ease;
}

body.template-clean-theme .modal-header,
.template-clean-theme .modal-header {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 20px 22px 16px !important;
    border-bottom: 1px solid var(--clean-border) !important;
    background: #ffffff !important;
}

body.template-clean-theme #validationModalTitle,
.template-clean-theme #validationModalTitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--clean-primary);
    margin: 0;
}

body.template-clean-theme .modal-body,
.template-clean-theme .modal-body {
    color: var(--clean-muted);
    font-size: 1rem;
    line-height: 1.6;
    padding: 18px 22px 8px !important;
    background: #ffffff !important;
}

body.template-clean-theme #validationModalMessage,
.template-clean-theme #validationModalMessage {
    margin: 0;
}

body.template-clean-theme #validationModalDetails,
.template-clean-theme #validationModalDetails {
    display: block;
    margin-top: 0.5rem;
    color: var(--clean-muted);
}

body.template-clean-theme #validationModalDetails ul,
.template-clean-theme #validationModalDetails ul {
    margin: 0.5rem 0 0;
    padding-left: 1.2rem;
}

body.template-clean-theme .modal-footer,
.template-clean-theme .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 22px 20px !important;
    border-top: 1px solid var(--clean-border) !important;
    background: #ffffff !important;
}

body.template-clean-theme .modal-footer .btn,
.template-clean-theme .modal-footer .btn {
    border-radius: 999px;
    padding: 0.6rem 1.6rem;
    font-weight: 600;
}

body.template-clean-theme .modal-footer .btn-primary,
.template-clean-theme .modal-footer .btn-primary {
    background: var(--clean-primary);
    border-color: var(--clean-primary);
}

body.template-clean-theme .modal-footer .btn-secondary,
.template-clean-theme .modal-footer .btn-secondary {
    border-color: var(--clean-border);
    color: var(--clean-secondary);
    background: #ffffff;
}

body.template-clean-theme .validation-modal-icon,
.template-clean-theme .validation-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    background: var(--clean-primary);
    color: #ffffff;
}

body.template-clean-theme .validation-modal-icon.success,
.template-clean-theme .validation-modal-icon.success {
    background: var(--clean-success);
}

body.template-clean-theme .validation-modal-icon.warning,
.template-clean-theme .validation-modal-icon.warning {
    background: var(--clean-warning);
}

body.template-clean-theme .validation-modal-icon.error,
.template-clean-theme .validation-modal-icon.error {
    background: var(--clean-danger);
}

body.template-clean-theme .success-modal-icon,
.template-clean-theme .success-modal-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--clean-success);
    color: #ffffff;
    font-weight: 700;
}

@keyframes cleanFade {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    body.template-clean-theme .formulario-actions,
    .template-clean-theme .formulario-actions {
        flex-direction: column;
    }
    body.template-clean-theme .formulario-btn,
    .template-clean-theme .formulario-btn {
        width: 100%;
    }
}
.formulario-publico-footer{
text-align: center !important;
margin-bottom: 20px;
}
.formulario-publico-description > p {
  text-align: left !important;
  padding-left: 10px !important;
}
.formulario-publico-description {
  text-align: left !important;
}
.formulario-description-icon {
  display: none !important;
}
body.template-clean-theme .formulario-publico-container, .template-clean-theme .formulario-publico-container {
  padding-block: 0 !important;
}
.instrucoes-oposicao {
    background: #f2f2f2;
    padding: 20px 10px 20px 20px;
    border-radius: 6px;
}

#titulo-instrucoes-oposicao {
    display: block;
    text-align: center;
    font-size: 22px;
    margin-bottom: 15px;
}