/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Classe utilitária hidden */
.hidden {
    display: none !important;
}

/* ============================================
   MODAL DE VISUALIZAÇÃO DE PDF
   ============================================ */
.pdf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    display: none;
    flex-direction: column;
}

.pdf-modal.active {
    display: flex;
}

.pdf-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.pdf-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #006666;
    color: #fff;
    flex-shrink: 0;
}

.pdf-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    padding-right: 15px;
}

.pdf-modal-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.pdf-download-btn,
.pdf-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.pdf-download-btn {
    background-color: #fff;
    color: #006666;
    border: none;
}

.pdf-download-btn:hover {
    background-color: #f0f0f0;
}

.pdf-close-btn {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.pdf-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.pdf-modal-body {
    flex: 1;
    overflow: hidden;
}

.pdf-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #fff;
}

/* Responsivo para mobile */
@media screen and (max-width: 768px) {
    .pdf-modal-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .pdf-modal-header h3 {
        font-size: 14px;
        text-align: center;
        padding-right: 0;
    }
    
    .pdf-modal-actions {
        width: 100%;
        justify-content: center;
    }
    
    .pdf-download-btn,
    .pdf-close-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ============================================
   MODAL DE COMPROVANTE DE INSCRIÇÃO
   ============================================ */
.comprovante-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    display: none;
    flex-direction: column;
}

.comprovante-modal.active {
    display: flex;
}

.comprovante-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.comprovante-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #006666;
    color: #fff;
    flex-shrink: 0;
}

.comprovante-modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.comprovante-modal-actions {
    display: flex;
    gap: 10px;
}

.comprovante-print-btn,
.comprovante-close-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.comprovante-print-btn {
    background-color: #fff;
    color: #006666;
}

.comprovante-print-btn:hover {
    background-color: #f0f0f0;
}

.comprovante-close-btn {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.comprovante-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.comprovante-modal-body {
    flex: 1;
    overflow: hidden;
    background-color: #e0e0e0;
}

.comprovante-modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #fff;
}

/* Responsivo para mobile */
@media screen and (max-width: 768px) {
    .comprovante-modal-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .comprovante-modal-header h3 {
        font-size: 14px;
    }
    
    .comprovante-modal-actions {
        width: 100%;
        justify-content: center;
    }
    
    .comprovante-print-btn,
    .comprovante-close-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    line-height: 1.5;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.header-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 80px;
    width: auto;
}

.search-box {
    display: flex;
    border: 1px solid #ccc;
    border-radius: 0;
}

.search-box input {
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: 13px;
    width: 180px;
}

.search-box button {
    background: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    color: #666;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease;
}

/* Navigation */
.nav-menu {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.nav-menu ul {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-menu ul li a {
    display: block;
    padding: 15px 10px;
    color: #555;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-menu ul li a:hover {
    color: #007bff;
}

.nav-menu ul li a.active {
    background-color: #006666;
    color: #fff;
}

/* Accessibility Buttons */
.accessibility-buttons {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.access-btn {
    width: 45px;
    height: 45px;
    background-color: #6c9dc6;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.access-btn:hover {
    background-color: #5a8ab3;
}

/* Main Content */
.main-content {
    padding: 20px 0 40px;
    min-height: calc(100vh - 300px);
}

/* Concursos Header */
.concursos-header {
    background-color: #006666;
    padding: 12px 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.concursos-header h2 {
    color: #fff;
    font-size: 16px;
    font-weight: normal;
}

/* Concurso Card */
.concurso-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
}

.concurso-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.concurso-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.concurso-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.concurso-details {
    flex: 1;
}

.concurso-details .processo {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.concurso-details .orgao {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.concurso-details .nivel {
    color: #cc0000;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 5px;
}

.concurso-details .inscricoes-periodo {
    font-size: 13px;
    color: #333;
}

.concurso-action {
    flex-shrink: 0;
}

.btn-inscricao {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-inscricao:hover {
    background-color: #218838;
}

/* Info Section */
.info-section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.section-header {
    background-color: #e9e9e9;
    padding: 10px 15px;
    border-bottom: 1px solid #d0d0d0;
}

.section-header h3 {
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.section-content {
    padding: 15px;
}

.section-content p {
    margin-bottom: 8px;
    font-size: 13px;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Publication Tabs */
.pub-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pub-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
    transition: all 0.3s;
    background-color: #fff;
}

.pub-tab.active {
    background-color: #ffffcc;
    border-color: #ccc;
}

.pub-tab:hover {
    background-color: #f5f5f5;
}

.pub-tab.active:hover {
    background-color: #ffffcc;
}

.tab-icon {
    font-size: 28px;
    color: #6c9dc6;
    margin-bottom: 8px;
}

.pub-tab span {
    font-size: 11px;
    color: #333;
    line-height: 1.3;
}

/* Editais Section */
.editais-section {
    margin-top: 15px;
}

.editais-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.editais-header i {
    color: #006666;
    background-color: #006666;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.editais-list {
    padding-left: 30px;
}

.editais-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.editais-list li:last-child {
    border-bottom: none;
}

.editais-list li a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #006699;
    font-size: 13px;
    transition: color 0.3s;
}

.editais-list li a:hover {
    color: #004466;
    text-decoration: underline;
}

.pdf-icon {
    color: #cc0000;
    font-size: 16px;
    flex-shrink: 0;
}

.edital-link {
    flex: 1;
}

.edital-date {
    color: #999;
    font-size: 12px;
    flex-shrink: 0;
}

/* Voltar Button */
.voltar-container {
    text-align: right;
    margin-top: 20px;
}

.btn-voltar {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 8px 25px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-voltar:hover {
    background-color: #f5f5f5;
}

/* Footer */
.footer {
    background-color: #006666;
    color: #fff;
}

.footer-bar {
    width: 100%;
    line-height: 0;
}

.footer-bar img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 20px 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-info p,
.footer-contact p {
    font-size: 12px;
    margin-bottom: 5px;
}

.footer-contact {
    text-align: right;
}

.footer-contact .copyright {
    margin-top: 10px;
    font-size: 11px;
}

/* Desktop Only */
.desktop-only {
    display: flex;
}

/* ============================================
   RESPONSIVE STYLES - MOBILE
   ============================================ */

@media screen and (max-width: 768px) {
    /* Header Mobile */
    .header-container {
        padding: 15px;
    }

    .logo img {
        max-height: 60px;
    }

    .desktop-only {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Navigation Mobile */
    .nav-menu {
        display: none;
        background-color: #fff;
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }

    .nav-menu ul li {
        border-bottom: 1px solid #e0e0e0;
    }

    .nav-menu ul li:last-child {
        border-bottom: none;
    }

    .nav-menu ul li a {
        padding: 12px 15px;
        display: block;
    }

    /* Accessibility Buttons Mobile */
    .accessibility-buttons {
        top: auto;
        bottom: 50%;
        transform: translateY(50%);
    }

    .access-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    /* Main Content Mobile */
    .main-content {
        padding: 15px 0 30px;
    }

    .container {
        padding: 0 10px;
    }

    /* Concursos Header Mobile */
    .concursos-header {
        margin-bottom: 15px;
        padding: 10px 15px;
    }

    /* Concurso Card Mobile */
    .concurso-card {
        padding: 15px;
    }

    .concurso-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .concurso-logo {
        margin-bottom: 10px;
    }

    .concurso-details {
        text-align: left;
        width: 100%;
    }

    .concurso-action {
        width: 100%;
        margin-top: 15px;
    }

    .btn-inscricao {
        display: block;
        text-align: center;
        padding: 12px 20px;
    }

    /* Info Section Mobile */
    .section-content {
        padding: 12px;
    }

    /* Publication Tabs Mobile */
    .pub-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .pub-tab {
        padding: 12px 10px;
        min-width: auto;
    }

    .tab-icon {
        font-size: 24px;
        margin-bottom: 6px;
    }

    .pub-tab span {
        font-size: 10px;
    }

    /* Editais List Mobile */
    .editais-list {
        padding-left: 0;
    }

    .editais-list li a {
        flex-wrap: wrap;
    }

    .edital-link {
        flex-basis: calc(100% - 30px);
    }

    .edital-date {
        flex-basis: 100%;
        padding-left: 26px;
        margin-top: 3px;
    }

    /* Voltar Button Mobile */
    .voltar-container {
        text-align: center;
        margin-top: 15px;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: left;
    }

    .footer-contact {
        text-align: left;
    }

    .footer-info p,
    .footer-contact p {
        font-size: 11px;
    }
}

/* Single Tab Style */
.pub-tab.single-tab {
    cursor: default;
}

/* Extra small devices */
@media screen and (max-width: 480px) {
    .logo img {
        max-height: 50px;
    }

    .concursos-header h2 {
        font-size: 14px;
    }

    .concurso-logo {
        width: 70px;
        height: 70px;
    }

    .pub-tabs {
        grid-template-columns: 1fr;
    }

    .pub-tab {
        padding: 10px 8px;
    }

    .tab-icon {
        font-size: 20px;
    }

    .pub-tab span {
        font-size: 9px;
    }
}

/* ============================================
   PÁGINA QUEM SOMOS
   ============================================ */

/* Imagem do Prédio */
.quem-somos-image {
    margin-bottom: 20px;
}

.quem-somos-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Descrição */
.quem-somos-descricao {
    text-align: center;
    padding: 20px 40px;
    margin-bottom: 30px;
}

.quem-somos-descricao p {
    font-size: 14px;
    color: #555;
    font-style: italic;
    line-height: 1.6;
}

/* Missão e Visão Container */
.missao-visao-container {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
}

.missao-visao-box {
    flex: 1;
    text-align: center;
}

.missao-visao-box h3 {
    font-size: 22px;
    color: #555;
    font-weight: normal;
    margin-bottom: 10px;
}

/* Linha Decorativa */
.linha-decorativa {
    height: 4px;
    margin-bottom: 15px;
    border-radius: 2px;
}

.linha-decorativa.missao {
    background: linear-gradient(to right, #f7c948 0%, #f7c948 50%, #e87722 50%, #e87722 100%);
    width: 120px;
    margin-left: auto;
    margin-right: auto;
}

.linha-decorativa.visao {
    background: linear-gradient(to right, #f7c948 0%, #f7c948 50%, #e87722 50%, #e87722 100%);
    width: 120px;
    margin-left: auto;
    margin-right: auto;
}

.linha-decorativa.valores {
    background: linear-gradient(to right, #f7c948 0%, #f7c948 33%, #e87722 33%, #e87722 66%, #cc3333 66%, #cc3333 100%);
    width: 180px;
    margin-left: auto;
    margin-right: auto;
}

.missao-visao-box p {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    padding: 0 10px;
}

/* Valores Section */
.valores-section {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 30px;
}

.valores-content {
    flex: 1;
    text-align: center;
}

.valores-content h3 {
    font-size: 22px;
    color: #555;
    font-weight: normal;
    margin-bottom: 10px;
}

.valores-lista {
    text-align: center;
}

.valores-lista p {
    font-size: 13px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 5px;
}

.valores-lista p strong {
    color: #333;
}

/* Programa de Integridade */
.programa-integridade {
    flex-shrink: 0;
    text-align: right;
    padding-top: 60px;
}

.programa-integridade p {
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
}

.programa-integridade a {
    color: #006699;
    font-size: 13px;
    text-decoration: none;
}

.programa-integridade a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE QUEM SOMOS - MOBILE
   ============================================ */

@media screen and (max-width: 768px) {
    /* Descrição Mobile */
    .quem-somos-descricao {
        padding: 15px;
    }

    /* Missão e Visão Mobile */
    .missao-visao-container {
        flex-direction: column;
        gap: 25px;
    }

    .missao-visao-box h3 {
        font-size: 20px;
    }

    .missao-visao-box p {
        padding: 0;
    }

    /* Valores Mobile */
    .valores-section {
        flex-direction: column;
        gap: 20px;
    }

    .valores-content h3 {
        font-size: 20px;
    }

    .programa-integridade {
        text-align: center;
        padding-top: 0;
        border-top: 1px solid #e0e0e0;
        padding-top: 15px;
    }
}

/* ============================================
   PÁGINA TERMOS E CONDIÇÕES
   ============================================ */

/* Card Termos */
.termos-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 20px;
}

.termos-concurso-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.termos-logo {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
}

.termos-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.termos-details {
    flex: 1;
}

.termos-processo {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.termos-orgao {
    font-size: 20px;
    color: #333;
    font-weight: normal;
    margin-bottom: 8px;
}

.termos-inscricoes {
    font-size: 13px;
    color: #333;
}

/* Termos Content */
.termos-content {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    margin-bottom: 20px;
}

.termos-titulo {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
}

.termos-item {
    font-size: 13px;
    color: #333;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}

.termos-item strong {
    color: #333;
}

/* Checkbox Termos */
.termos-aceite {
    margin-top: 25px;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Botão Continuar Termos */
.btn-continuar-container {
    margin-bottom: 20px;
}

.btn-continuar {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    padding: 12px 35px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-continuar:hover {
    background-color: #218838;
}

/* Botão Voltar Termos */
.termos-actions {
    text-align: right;
}

/* ============================================
   RESPONSIVE TERMOS - MOBILE
   ============================================ */

@media screen and (max-width: 768px) {
    /* Termos Card Mobile */
    .termos-card {
        padding: 15px;
    }

    .termos-concurso-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .termos-logo {
        margin-bottom: 10px;
    }

    .termos-details {
        text-align: left;
        width: 100%;
    }

    .termos-orgao {
        font-size: 18px;
    }

    /* Termos Content Mobile */
    .termos-content {
        padding: 15px;
    }

    .termos-item {
        text-align: left;
    }

    .termos-actions {
        text-align: center;
    }
}

/* ============================================
   PÁGINA LOGIN / CPF
   ============================================ */

.body-login {
    background-color: #e0e0e0;
}

.login-content {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 25px;
    margin-bottom: 20px;
}

.login-instrucao {
    font-size: 14px;
    color: #333;
    margin-bottom: 30px;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.cpf-field {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.cpf-field label {
    font-size: 14px;
    color: #333;
    font-weight: normal;
}

.cpf-field input {
    width: 200px;
    padding: 8px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    color: #333;
}

.cpf-field input:focus {
    outline: none;
    border-color: #006666;
}

.cpf-error {
    color: #cc0000;
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
}

.login-actions {
    text-align: center;
    margin-top: 20px;
}

.btn-login-continuar {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 8px 25px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-login-continuar:hover {
    background-color: #f5f5f5;
}

/* Loading Popup */
.loading-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.loading-box {
    position: relative;
    background-color: #006666;
    color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    text-align: center;
    z-index: 1;
    max-width: 90%;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-box h3 {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: bold;
}

.loading-box p {
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   RESPONSIVE LOGIN - MOBILE
   ============================================ */

@media screen and (max-width: 768px) {
    .login-content {
        padding: 20px 15px;
    }

    .cpf-field {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .cpf-field input {
        width: 100%;
    }

    .login-actions {
        margin-top: 25px;
    }

    .loading-box {
        padding: 25px 30px;
    }
}

/* ============================================
   PÁGINA CADASTRO - FORMULÁRIO
   ============================================ */

.cadastro-form {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 0;
    margin-bottom: 20px;
}

/* Seções do formulário */
.form-section {
    margin-bottom: 0;
}

.section-title {
    background-color: #f0f0f0;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-align: center;
    text-transform: uppercase;
    border-bottom: 1px solid #e0e0e0;
}

.section-title-sub {
    background-color: #f8f8f8;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #006666;
    border: 1px solid #e0e0e0;
    margin: 0 20px;
}

.section-body {
    padding: 20px;
}

.section-body-sub {
    padding: 15px 20px;
    border: 1px solid #e0e0e0;
    border-top: none;
    margin: 0 20px 20px;
}

/* Rows do formulário */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-row.three-cols {
    gap: 15px;
}

.form-row.three-cols .form-group {
    flex: 1;
}

/* Groups do formulário */
.form-group {
    flex: 1;
}

.form-group.full-width {
    flex: 1 1 100%;
}

.form-group.form-group-small {
    flex: 0 0 150px;
}

.form-group.form-group-large {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #333;
    margin-bottom: 5px;
}

.field-hint {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    font-size: 14px;
    color: #333;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #006666;
}

.form-group input[readonly] {
    background-color: #f5f5f5;
    color: #666;
}

/* Campo com erro */
.field-error {
    border-color: #cc0000 !important;
    background-color: #fff5f5 !important;
}

/* Asterisco obrigatório */
.required {
    color: #cc0000;
    margin-left: 2px;
}

/* Checkbox nome do pai */
.checkbox-pai {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    cursor: pointer;
}

.checkbox-pai input {
    width: auto;
    margin: 0;
}

/* Wrapper do CEP */
.cep-input-wrapper {
    position: relative;
}

.loading-cep {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #006666;
}

/* Wrapper da senha */
.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.toggle-password:hover {
    color: #006666;
}

/* Badge Cloudflare */
.cloudflare-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 15px 20px;
    margin: 20px;
    border-radius: 4px;
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.badge-check {
    width: 24px;
    height: 24px;
    background-color: #28a745;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.badge-text {
    font-size: 14px;
    color: #333;
}

.badge-logo {
    text-align: right;
}

.cloudflare-text {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #f38020;
}

.cloudflare-links {
    font-size: 10px;
    color: #006699;
}

/* Erro geral do formulário */
.form-error {
    color: #cc0000;
    font-size: 14px;
    text-align: center;
    padding: 15px 20px;
    background-color: #fff5f5;
    border: 1px solid #cc0000;
    margin: 0 20px;
}

/* Botões de ação */
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.btn-cancelar {
    color: #006699;
    font-size: 14px;
    text-decoration: none;
    padding: 10px 20px;
}

.btn-cancelar:hover {
    text-decoration: underline;
}

.btn-continuar-form {
    background-color: #006666;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-continuar-form:hover {
    background-color: #005555;
}

/* ============================================
   RESPONSIVE CADASTRO - MOBILE
   ============================================ */

@media screen and (max-width: 768px) {
    .section-body {
        padding: 15px;
    }

    .section-title-sub {
        margin: 0 15px;
    }

    .section-body-sub {
        margin: 0 15px 15px;
        padding: 12px 15px;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-row.three-cols {
        flex-direction: column;
    }

    .form-group.form-group-small {
        flex: 1;
    }

    .cloudflare-badge {
        flex-direction: column;
        gap: 15px;
        margin: 15px;
    }

    .badge-logo {
        text-align: center;
    }

    .form-error {
        margin: 0 15px;
    }

    .form-actions {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }

    .btn-cancelar {
        order: 2;
    }

    .btn-continuar-form {
        width: 100%;
        order: 1;
    }
}

/* ============================================
   PÁGINA CONFIRMAÇÃO / INSCRIÇÃO
   ============================================ */

/* Header alterado para confirmação */
.header-content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.user-info i {
    font-size: 32px;
    color: #888;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #333;
}

/* Mobile Title */
.mobile-title {
    display: none;
    background-color: #f0f0f0;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.mobile-title h1 {
    font-size: 18px;
    font-weight: normal;
    color: #333;
}

/* Confirmação Container */
.confirmacao-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 30px 15px 50px;
    background-color: #f4f6f8;
    min-height: calc(100vh - 200px);
}

.confirmacao-card {
    background-color: #fff;
    border: none;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.inscricao-titulo {
    font-size: 32px;
    font-weight: 300;
    font-style: italic;
    color: #2c3e50;
    margin-bottom: 30px;
    border-bottom: 3px solid #ecf0f1;
    padding-bottom: 20px;
    position: relative;
}

.inscricao-titulo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #006666 0%, #27ae60 100%);
}

/* Concurso Header */
.concurso-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ecf0f1 100%);
    border-radius: 10px;
    border: 1px solid #e0e5ea;
}

.concurso-logo {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border: 2px solid #e0e5ea;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.concurso-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.processo-tipo {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.concurso-nome {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.3;
}

.inscricao-periodo {
    font-size: 14px;
    color: #5a6a7a;
    background-color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    display: inline-block;
    border: 1px solid #e0e5ea;
}

.inscricao-periodo strong {
    color: #27ae60;
    font-weight: 600;
}

/* Dados Section */
.dados-section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dados-section .section-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 0 25px;
    border-bottom: none;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
}

.section-title-box {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    padding: 12px 35px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.section-arrow {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid #34495e;
}

.dados-content {
    padding: 30px 40px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

/* Grid de dados */
.dados-grid {
    display: flex;
    gap: 50px;
}

.dados-col-left,
.dados-col-right {
    flex: 1;
    background-color: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    border: 1px solid #eef2f5;
}

.dado-item {
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e8ecef;
}

.dado-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.dado-label {
    font-size: 12px;
    color: #7f8c8d;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 500;
}

.dado-value {
    font-size: 15px;
    color: #2c3e50;
    font-weight: 600;
    display: block;
}

.dados-atencao {
    margin-top: 25px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
    border: 1px solid #f0e6cc;
    border-left: 4px solid #f39c12;
    font-size: 13px;
    color: #5a4a2e;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dados-atencao::before {
    content: "⚠";
    font-size: 18px;
}

.dados-atencao strong {
    color: #c0392b;
}

.dados-atencao a {
    color: #2980b9;
    font-weight: 600;
    text-decoration: underline;
}

.dados-atencao a:hover {
    color: #1a5276;
}

/* Vaga Content */
.vaga-content {
    padding: 30px 40px;
    background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
}

.vaga-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.vaga-row label {
    font-size: 13px;
    color: #5a6a7a;
    min-width: 200px;
    text-align: right;
    font-weight: 500;
}

.select-vaga,
.select-localidade,
.select-modalidade,
.select-local-prova {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e5ea;
    font-size: 14px;
    color: #2c3e50;
    max-width: 600px;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.select-vaga:hover,
.select-localidade:hover,
.select-modalidade:hover,
.select-local-prova:hover {
    border-color: #bdc3c7;
}

.select-vaga:focus,
.select-localidade:focus,
.select-modalidade:focus,
.select-local-prova:focus {
    outline: none;
    border-color: #006666;
    box-shadow: 0 0 0 3px rgba(0, 102, 102, 0.1);
}

/* Vagas Reservadas */
.vagas-reservadas-container {
    padding: 0 30px 15px;
}

.reservadas-options {
    display: flex;
    gap: 30px;
}

.checkbox-reservada {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
}

.checkbox-reservada input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Error message confirmação */
.error-message-confirmacao {
    color: #cc0000;
    font-size: 14px;
    text-align: center;
    padding: 15px;
    background-color: #fff5f5;
    border: 1px solid #cc0000;
    margin-bottom: 20px;
}

.error-border {
    border-color: #cc0000 !important;
}

/* Confirmação Actions */
.confirmacao-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    padding: 30px 0 10px;
    margin-top: 20px;
    border-top: 2px solid #ecf0f1;
}

.btn-voltar-confirmacao {
    background-color: #fff;
    border: 2px solid #bdc3c7;
    padding: 14px 35px;
    font-size: 14px;
    color: #5a6a7a;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-voltar-confirmacao:hover {
    background-color: #ecf0f1;
    border-color: #95a5a6;
    color: #34495e;
}

.btn-continuar-confirmacao {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-continuar-confirmacao:hover {
    background: linear-gradient(135deg, #219a52 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Footer simples para confirmacao */
.footer .footer-content {
    flex-direction: column;
    text-align: left;
    gap: 3px;
}

.footer .footer-content p {
    font-size: 12px;
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE CONFIRMAÇÃO - MOBILE
   ============================================ */

@media screen and (max-width: 768px) {
    /* Header mobile para confirmação */
    .header-content .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
        border-bottom: 1px solid #e0e0e0;
        z-index: 100;
    }

    .header-content .nav-menu.active {
        display: block;
    }

    .header-content .nav-menu ul {
        flex-direction: column;
        gap: 0;
    }

    .header-content .nav-menu ul li {
        border-bottom: 1px solid #e0e0e0;
    }

    .header-content .nav-menu ul li a {
        padding: 12px 15px;
        display: block;
    }

    .user-info {
        display: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .mobile-title {
        display: block;
    }

    .header {
        position: relative;
    }

    /* Confirmação container mobile */
    .confirmacao-container {
        padding: 15px 10px 30px;
        background-color: #f4f6f8;
    }

    .confirmacao-card {
        padding: 20px;
        border-radius: 10px;
    }

    .inscricao-titulo {
        display: none;
    }

    /* Concurso header mobile */
    .concurso-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .concurso-logo {
        margin-bottom: 15px;
    }

    .concurso-nome {
        font-size: 18px;
    }

    .inscricao-periodo {
        font-size: 13px;
    }

    /* Dados grid mobile */
    .dados-grid {
        flex-direction: column;
        gap: 0;
    }

    .dados-col-left,
    .dados-col-right {
        padding: 15px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid #eef2f5;
    }

    .dados-col-right {
        border-bottom: none;
    }

    .dados-content {
        padding: 15px;
    }

    .dados-atencao {
        font-size: 12px;
        padding: 12px 15px;
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .dados-atencao::before {
        font-size: 20px;
    }

    .dado-item {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .dado-label {
        font-size: 11px;
    }

    .dado-value {
        font-size: 14px;
    }

    /* Vaga content mobile */
    .vaga-content {
        padding: 20px 15px;
    }

    .vaga-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .vaga-row label {
        min-width: auto;
        text-align: left;
        font-size: 12px;
    }

    .select-vaga,
    .select-localidade,
    .select-modalidade,
    .select-local-prova {
        max-width: 100%;
        width: 100%;
        padding: 14px;
    }

    .vagas-reservadas-container {
        padding: 0 15px 15px;
    }

    .reservadas-options {
        flex-direction: column;
        gap: 12px;
    }

    /* Actions mobile */
    .confirmacao-actions {
        flex-direction: column;
        gap: 12px;
        padding: 25px 0 5px;
    }

    .btn-voltar-confirmacao,
    .btn-continuar-confirmacao {
        width: 100%;
        text-align: center;
        padding: 16px;
    }

    .btn-continuar-confirmacao {
        order: -1;
    }
}

/* ============================================
   PÁGINA RESUMO DA INSCRIÇÃO
   ============================================ */

.resumo-container {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    padding: 25px 30px;
}

.resumo-sucesso {
    font-size: 15px;
    color: #333;
    margin-bottom: 25px;
}

.resumo-section {
    margin-bottom: 35px;
}

.resumo-section:last-child {
    margin-bottom: 0;
}

.resumo-titulo {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
}

.resumo-lista {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 20px;
}

.resumo-lista li {
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.5;
}

.resumo-lista li strong {
    color: #333;
}

.situacao-aguardando {
    color: #006699;
    font-weight: normal;
}

/* Botões da página de resumo */
.btn-comprovante,
.btn-envio-documentos {
    display: inline-block;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-comprovante:hover,
.btn-envio-documentos:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.btn-efetuar-pagamento {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #006666;
    color: #fff;
    border: none;
    padding: 14px 35px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.btn-efetuar-pagamento:hover {
    background-color: #005555;
}

.btn-efetuar-pagamento i {
    font-size: 18px;
}

.pagamento-texto {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
}

.pagamento-valor {
    font-size: 14px;
    color: #333;
    margin-bottom: 20px;
}

.pagamento-valor strong {
    color: #333;
    font-size: 15px;
}

.documentacao-texto {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.documentacao-texto strong {
    color: #333;
}

/* ============================================
   RESPONSIVE RESUMO - MOBILE
   ============================================ */

@media screen and (max-width: 768px) {
    .resumo-container {
        padding: 20px 15px;
    }

    .resumo-sucesso {
        font-size: 14px;
        text-align: center;
    }

    .resumo-titulo {
        font-size: 15px;
    }

    .resumo-lista {
        padding-left: 20px;
    }

    .resumo-lista li {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .btn-comprovante,
    .btn-envio-documentos {
        display: block;
        width: 100%;
        text-align: center;
        padding: 12px 20px;
    }

    .btn-efetuar-pagamento {
        display: block;
        width: 100%;
        text-align: center;
        padding: 15px;
    }

    .documentacao-texto {
        text-align: left;
        font-size: 13px;
    }
}

/* ============================================
   MODAL DE PAGAMENTO (AVISO)
   ============================================ */

.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.payment-modal.hidden {
    display: none;
}

.payment-dialog {
    background-color: #fff;
    border-radius: 10px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.payment-header {
    text-align: center;
    padding: 25px 25px 15px;
}

.payment-icon-warning {
    width: 60px;
    height: 60px;
    background-color: #fee2e2;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.payment-icon-warning i {
    font-size: 28px;
    color: #dc2626;
}

.payment-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: #111;
    margin: 0;
}

.payment-body {
    padding: 0 25px 25px;
}

.payment-intro {
    font-size: 14px;
    color: #374151;
    line-height: 1.6;
    margin-bottom: 15px;
}

.valor-destaque {
    color: #dc2626;
}

.payment-warning-box {
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.payment-warning-box p {
    font-size: 13px;
    color: #92400e;
    margin-bottom: 8px;
}

.payment-warning-box ul {
    margin: 0;
    padding-left: 20px;
}

.payment-warning-box li {
    font-size: 13px;
    color: #b45309;
    margin-bottom: 5px;
}

.payment-success-box {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.payment-success-box p {
    font-size: 13px;
    color: #065f46;
    margin: 0;
}

/* ============================================
   SEGURO REEMBOLSO
   ============================================ */

.seguro-container {
    background-color: #eff6ff;
    border: 2px solid #3b82f6;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.seguro-container:hover {
    border-color: #2563eb;
}

.seguro-container.seguro-checked {
    background-color: #d1fae5;
    border-color: #10b981;
}

.seguro-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.seguro-inner input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 3px;
    cursor: pointer;
    accent-color: #2563eb;
}

.seguro-content {
    flex: 1;
}

.seguro-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 8px;
}

.seguro-header label {
    font-size: 15px;
    font-weight: 600;
    color: #1e40af;
    cursor: pointer;
}

.seguro-badge {
    background-color: #2563eb;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
}

.seguro-description {
    font-size: 13px;
    color: #1e3a8a;
    line-height: 1.5;
    margin: 0;
}

.seguro-container.seguro-checked .seguro-header label {
    color: #065f46;
}

.seguro-container.seguro-checked .seguro-badge {
    background-color: #10b981;
}

.seguro-container.seguro-checked .seguro-description {
    color: #047857;
}

/* ============================================
   AÇÕES DO MODAL DE PAGAMENTO
   ============================================ */

.payment-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-confirm-payment {
    width: 100%;
    padding: 14px 20px;
    background-color: #16a34a;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-confirm-payment:hover {
    background-color: #15803d;
}

.btn-confirm-payment:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.valor-total-info {
    text-align: center;
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

.valor-total-destaque {
    color: #16a34a;
}

/* ============================================
   MODAL DE PAGAMENTO - VERSÃO LIMPA/PROFISSIONAL
   ============================================ */

.payment-dialog-clean {
    background-color: #fff;
    border-radius: 12px;
    max-width: 420px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    position: relative;
}

.payment-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-close-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.payment-header-clean {
    padding: 25px 25px 15px;
    border-bottom: 1px solid #e5e7eb;
}

.payment-header-clean h3 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 5px;
}

.payment-subtitle {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.payment-body-clean {
    padding: 20px 25px 25px;
}

.payment-info-box {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 15px;
}

.payment-info-box p {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    margin: 0;
}

.payment-alert-box {
    background-color: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 0 8px 8px 0;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.payment-alert-box strong {
    display: block;
    font-size: 13px;
    color: #b45309;
    margin-bottom: 8px;
}

.payment-alert-box ul {
    margin: 0;
    padding-left: 18px;
}

.payment-alert-box li {
    font-size: 12px;
    color: #92400e;
    margin-bottom: 4px;
    list-style-type: disc;
}

.payment-alert-box li:last-child {
    margin-bottom: 0;
}

/* Seguro Box - Versão Limpa */
.seguro-box {
    display: flex;
    gap: 12px;
    padding: 15px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.seguro-box:hover {
    border-color: #d1d5db;
    background-color: #f9fafb;
}

.seguro-box.seguro-selecionado {
    border-color: #006666;
    background-color: #f0fdf4;
}

.seguro-check {
    padding-top: 2px;
}

.seguro-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #006666;
}

.seguro-info {
    flex: 1;
}

.seguro-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.seguro-title span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.seguro-price {
    font-size: 13px;
    font-weight: 600;
    color: #006666;
    background: #f0fdf4;
    padding: 2px 8px;
    border-radius: 4px;
}

.seguro-box.seguro-selecionado .seguro-price {
    background: #006666;
    color: #fff;
}

.seguro-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

/* Total Section */
.payment-total-section {
    background-color: #f9fafb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.payment-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.payment-total-row.seguro-row {
    color: #006666;
}

.payment-total-final {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    margin-top: 8px;
}

.btn-gerar-pix {
    width: 100%;
    padding: 14px 20px;
    background-color: #006666;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-gerar-pix:hover {
    background-color: #005555;
}

.btn-gerar-pix:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}

.btn-gerar-pix i {
    font-size: 18px;
}

/* ============================================
   MODAL PIX
   ============================================ */

.pix-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.pix-modal.hidden {
    display: none;
}

.pix-dialog {
    background-color: #fff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.pix-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}

.pix-close:hover {
    color: #333;
}

.pix-header {
    text-align: center;
    margin-bottom: 20px;
}

.pix-logo {
    max-width: 120px;
    height: auto;
    margin-bottom: 15px;
}

.pix-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: #111;
    margin: 0 0 5px;
}

.pix-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.pix-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background-color: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 20px;
}

.pix-warning i {
    color: #d97706;
    font-size: 18px;
    margin-top: 2px;
}

.pix-warning p {
    font-size: 13px;
    color: #92400e;
    margin: 0;
    line-height: 1.4;
}

.pix-warning p strong {
    color: #78350f;
}

.pix-qrcode-container {
    text-align: center;
    margin-bottom: 15px;
}

.pix-qrcode {
    display: inline-block;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background-color: #fff;
}

.pix-qrcode img {
    width: 200px;
    height: 200px;
}

.pix-qrcode canvas {
    display: block !important;
}

.pix-scan-text {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
}

.qr-error {
    font-size: 12px;
    color: #dc2626;
    padding: 20px;
}

.pix-valor-box {
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
}

.pix-valor {
    font-size: 26px;
    font-weight: bold;
    color: #111;
}

.pix-seguro-info {
    font-size: 12px;
    color: #16a34a;
    margin: 5px 0 0;
}

.pix-seguro-info.hidden {
    display: none;
}

.pix-code-block {
    margin-bottom: 20px;
}

.pix-code-block label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.pix-code-row {
    display: flex;
    gap: 0;
}

.pix-code-row input {
    flex: 1;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 11px;
    font-family: monospace;
    background-color: #f9fafb;
}

.pix-code-row button {
    padding: 12px 16px;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.pix-code-row button:hover {
    background-color: #1d4ed8;
}

.pix-code-row button.copied {
    background-color: #16a34a;
}

.pix-instructions {
    text-align: center;
    margin-bottom: 15px;
}

.pix-instructions p {
    font-size: 12px;
    color: #6b7280;
    margin: 3px 0;
}

.pix-status {
    text-align: center;
    padding: 12px;
    background-color: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    margin-bottom: 15px;
}

.pix-status.status-confirmed {
    background-color: #d1fae5;
    border-color: #10b981;
    color: #065f46;
}

.pix-actions {
    display: flex;
    gap: 10px;
}

.btn-fechar-pix {
    flex: 1;
    padding: 12px;
    background-color: #e5e7eb;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-fechar-pix:hover {
    background-color: #d1d5db;
}

/* ============================================
   PAY SUCCESS
   ============================================ */

.pay-success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.pay-success p {
    font-size: 14px;
    color: #065f46;
    margin-bottom: 15px;
}

.pay-success .muted-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 15px;
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE MODAIS - MOBILE
   ============================================ */

/* ============================================
   MODAL DE SUCESSO - PAGAMENTO CONFIRMADO
   ============================================ */

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-modal.hidden {
    display: none;
}

.success-modal.show {
    opacity: 1;
}

.success-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 102, 0.9) 0%, rgba(16, 185, 129, 0.9) 100%);
    backdrop-filter: blur(8px);
}

.success-modal-dialog {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fffe 100%);
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-modal.show .success-modal-dialog {
    transform: scale(1) translateY(0);
}

/* Confetti Animation */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    border-radius: 20px;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    opacity: 0;
}

.success-modal.show .confetti {
    animation: confetti-fall 3s ease-out forwards;
}

.confetti:nth-child(1) { left: 10%; background: #f59e0b; animation-delay: 0s; }
.confetti:nth-child(2) { left: 20%; background: #10b981; animation-delay: 0.1s; border-radius: 50%; }
.confetti:nth-child(3) { left: 30%; background: #3b82f6; animation-delay: 0.2s; }
.confetti:nth-child(4) { left: 40%; background: #ef4444; animation-delay: 0.15s; border-radius: 50%; }
.confetti:nth-child(5) { left: 50%; background: #8b5cf6; animation-delay: 0.25s; }
.confetti:nth-child(6) { left: 60%; background: #ec4899; animation-delay: 0.05s; border-radius: 50%; }
.confetti:nth-child(7) { left: 70%; background: #06b6d4; animation-delay: 0.3s; }
.confetti:nth-child(8) { left: 80%; background: #f59e0b; animation-delay: 0.12s; border-radius: 50%; }
.confetti:nth-child(9) { left: 85%; background: #10b981; animation-delay: 0.22s; }
.confetti:nth-child(10) { left: 90%; background: #3b82f6; animation-delay: 0.08s; border-radius: 50%; }

@keyframes confetti-fall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(720deg);
        opacity: 0;
    }
}

/* Success Icon */
.success-icon-container {
    display: flex;
    justify-content: center;
    padding: 35px 0 20px;
}

.success-icon-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    animation: pulse-success 2s infinite;
}

@keyframes pulse-success {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 10px 60px rgba(16, 185, 129, 0.6);
    }
}

.success-checkmark {
    width: 60px;
    height: 60px;
}

.success-checkmark svg {
    width: 100%;
    height: 100%;
}

.checkmark-circle {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
}

.success-modal.show .checkmark-circle {
    animation: circle-draw 0.6s ease-out 0.3s forwards;
}

@keyframes circle-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.checkmark-check {
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.success-modal.show .checkmark-check {
    animation: check-draw 0.4s ease-out 0.7s forwards;
}

@keyframes check-draw {
    to {
        stroke-dashoffset: 0;
    }
}

/* Success Content */
.success-content {
    padding: 0 35px 25px;
    text-align: center;
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: #065f46;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
}

.success-subtitle {
    font-size: 16px;
    color: #6b7280;
    margin: 0 0 25px;
}

/* Success Details */
.success-details {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.success-detail-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px dashed #a7f3d0;
}

.success-detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.success-detail-row:first-child {
    padding-top: 0;
}

.detail-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.detail-info {
    flex: 1;
    text-align: left;
}

.detail-label {
    display: block;
    font-size: 12px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.detail-value {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

/* Success Message Box */
.success-message-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 1px solid #6ee7b7;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    text-align: left;
}

.success-message-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.success-message-text strong {
    display: block;
    font-size: 14px;
    color: #065f46;
    margin-bottom: 5px;
}

.success-message-text p {
    font-size: 13px;
    color: #047857;
    line-height: 1.5;
    margin: 0;
}

/* Success Actions */
.success-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-success-comprovante {
    width: 100%;
    padding: 14px 20px;
    background: #fff;
    color: #065f46;
    border: 2px solid #10b981;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-success-comprovante:hover {
    background: #ecfdf5;
    border-color: #059669;
}

.btn-success-comprovante i {
    font-size: 16px;
}

.btn-success-close {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-success-close:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Success Footer */
.success-footer {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 20px;
    text-align: center;
    border-top: 1px solid #e5e7eb;
    border-radius: 0 0 20px 20px;
}

.success-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 8px;
    opacity: 0.8;
}

.success-footer p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Situação Confirmada */
.situacao-confirmada {
    font-weight: bold !important;
    color: #16a34a !important;
}

/* ============================================
   RESPONSIVE MODAL SUCESSO - MOBILE
   ============================================ */

@media screen and (max-width: 768px) {
    .success-modal {
        padding: 15px;
    }

    .success-modal-dialog {
        border-radius: 16px;
    }

    .success-icon-container {
        padding: 25px 0 15px;
    }

    .success-icon-circle {
        width: 80px;
        height: 80px;
    }

    .success-checkmark {
        width: 48px;
        height: 48px;
    }

    .success-content {
        padding: 0 20px 20px;
    }

    .success-title {
        font-size: 22px;
    }

    .success-subtitle {
        font-size: 14px;
    }

    .success-details {
        padding: 15px;
    }

    .success-detail-row {
        gap: 12px;
    }

    .detail-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .detail-value {
        font-size: 14px;
    }

    .success-message-box {
        padding: 12px;
    }

    .success-footer {
        padding: 15px;
    }

    .confetti-container {
        border-radius: 16px;
    }
}

@media screen and (max-width: 768px) {
    .payment-modal,
    .pix-modal {
        padding: 10px;
    }

    .payment-dialog,
    .pix-dialog {
        padding: 20px;
        border-radius: 10px;
    }

    .payment-header {
        padding: 20px 20px 15px;
    }

    .payment-body {
        padding: 0 20px 20px;
    }

    .payment-icon-warning {
        width: 50px;
        height: 50px;
    }

    .payment-icon-warning i {
        font-size: 24px;
    }

    .payment-header h3 {
        font-size: 18px;
    }

    .seguro-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .seguro-badge {
        align-self: flex-start;
    }

    .pix-header h3 {
        font-size: 18px;
    }

    .pix-valor {
        font-size: 22px;
    }

    .pix-qrcode img,
    .pix-qrcode canvas {
        width: 180px !important;
        height: 180px !important;
    }

    .pix-code-row {
        flex-direction: column;
        gap: 10px;
    }

    .pix-code-row input {
        border-radius: 8px;
        border-right: 1px solid #d1d5db;
    }

    .pix-code-row button {
        border-radius: 8px;
        width: 100%;
    }
}

