/* Reset e Configurações Globais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Autocomplete */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    list-style: none;
    margin: 0;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.autocomplete-list li {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.autocomplete-list li:hover,
.autocomplete-list li.active {
    background-color: #f5f5f5;
}

.autocomplete-list li:last-child {
    border-bottom: none;
}

:root {
    --primary-color: #a90637;
    --primary-dark: #8a0529;
    --secondary-color: #424242;
    --background: #f5f5f5;
    --white: #ffffff;
    --text-primary: #212121;
    --text-secondary: #757575;
    --error: #d32f2f;
    --border: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.1);
    --sidebar-width: 250px;
    --header-height: 50px;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 4px var(--shadow);
    z-index: 1000;
}

.header-toolbar {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;
}

.btn-menu {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    margin-right: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.btn-menu:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.header-logo {
    display: flex;
    align-items: center;
    margin-right: auto;
}

.header-logo img {
    height: 32px;
    margin-right: 12px;
}

.logo-text {
    font-size: 16px;
    font-weight: 500;
    display: none;
}

.header-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--white);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
    box-shadow: 2px 0 8px var(--shadow);
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    padding: 8px;
}

.btn-close {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.btn-close:hover {
    background-color: var(--background);
}

.sidebar-profile {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 24px 16px;
    text-align: center;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.profile-avatar .material-icons {
    font-size: 48px;
}

.profile-name {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

.sidebar-menu {
    padding: 8px 0;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 0.3s;
}

.menu-item:hover {
    background-color: var(--background);
}

.menu-item.active {
    background-color: var(--background);
    border-left: 3px solid var(--primary-color);
}

.menu-item .material-icons {
    margin-right: 16px;
    font-size: 24px;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Main Content */
.main-content {
    margin-top: var(--header-height);
    padding: 16px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Alert Banner */
.alert-banner {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-size: 14px;
}

.btn-alert {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-size: 12px;
}

.btn-alert:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Page Header */
.page-header {
    margin-bottom: 16px;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 400;
    color: var(--text-primary);
}

.divider {
    height: 2px;
    background-color: var(--primary-color);
    border: none;
    margin: 16px 0;
}

/* Contest Card */
.contest-card {
    background-color: var(--white);
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 4px var(--shadow);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.contest-logo {
    flex-shrink: 0;
}

.contest-logo img {
    width: 160px;
    height: auto;
}

.contest-info h2 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #8B0000;
}

.contest-info p {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
    background-color: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow);
}

.tab {
    flex: 1;
    background-color: transparent;
    border: none;
    padding: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 14px;
    transition: background-color 0.3s;
    position: relative;
}

.tab:hover:not(.disabled) {
    background-color: rgba(198, 40, 40, 0.08);
}

.tab.active {
    color: var(--primary-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-color);
}

.tab.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tab .material-icons {
    font-size: 24px;
}

/* Form Container */
.form-container {
    background-color: var(--white);
    padding: 24px;
    border-radius: 4px;
    box-shadow: 0 2px 4px var(--shadow);
}

.form-container h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
}

/* Form Section */
.form-section {
    margin-bottom: 32px;
    padding: 0;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px var(--shadow);
}

.form-section h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    padding: 16px 24px;
    color: var(--white);
    background-color: var(--primary-color);
    border-radius: 0;
}

.form-section .form-group,
.form-section .info-box {
    margin: 24px;
}

.form-section .form-group:last-child {
    margin-bottom: 24px;
}

/* Info Box */
.info-box {
    background-color: #ececec;
    padding: 16px;
    border-radius: 4px;
    color: #666;
    font-size: 13px;
}

.info-box p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.info-box ul {
    margin-left: 20px;
    line-height: 1.5;
}

.info-box li {
    margin-bottom: 6px;
    text-align: justify;
}

/* Form Group */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

.required {
    color: var(--error);
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    display: none;
    color: var(--error);
    font-size: 12px;
    margin-top: 4px;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error select,
.form-group.error input {
    border-color: var(--error);
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 12px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.checkbox-item:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.checkbox-item span {
    font-size: 13px;
    line-height: 1.5;
    text-align: justify;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 12px;
    font-size: 12px;
    margin-top: 32px;
}

/* Responsividade */
@media (min-width: 768px) {
    .logo-text {
        display: inline;
    }

    .main-content {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .contest-card {
        flex-direction: column;
        text-align: center;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        flex-direction: row;
        justify-content: center;
    }

    .tab::after {
        content: none;
    }

    .alert-banner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 22px;
    }

    .form-section {
        padding: 16px;
    }

    .form-container {
        padding: 16px;
    }

    .btn-primary {
        width: 100%;
    }
}

/* Animações */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-section {
    animation: fadeIn 0.3s ease;
}

/* File Upload */
.file-upload-container {
    background-color: #f9f9f9;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 16px;
}

.file-upload-info {
    margin-bottom: 12px;
}

.file-upload-info .error-message {
    color: var(--error);
    font-size: 12px;
    display: block;
}

.file-upload-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: #e0e0e0;
    border: 1px solid #bdbdbd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #424242;
    transition: background-color 0.3s;
}

.file-upload-button:hover {
    background-color: #d5d5d5;
}

.file-upload-button input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-button .material-icons {
    font-size: 20px;
}

.file-upload-hint {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Confirmation Page */
.confirmation-content {
    padding: 24px;
}

.respostasForm {
    margin-bottom: 20px;
}

.formPass {
    font-size: 14px;
    line-height: 1.6;
}

.formPass strong {
    color: var(--text-primary);
    font-weight: 500;
}

.formPass span {
    color: #1565c0;
    display: inline-block;
    margin-top: 4px;
}

.formPass ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    color: #1565c0;
}

.formPass ul li {
    margin-bottom: 6px;
}

.confirmation-actions {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-top: 1px solid var(--border);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background-color: rgba(169, 6, 55, 0.1);
}

/* Cadastro Page */
.page-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.page-divider {
    height: 2px;
    background-color: var(--primary-color);
    border: none;
    margin-bottom: 16px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.breadcrumbs .material-icons {
    font-size: 18px;
    color: var(--primary-color);
}

.breadcrumb-separator {
    color: var(--text-secondary);
}

/* Expansion Sections */
.expansion-section {
    margin-bottom: 32px;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.expansion-header {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.expansion-header h4 {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

.expansion-header .material-icons {
    transition: transform 0.3s;
}

.expansion-section.expanded .expansion-header .material-icons {
    transform: rotate(180deg);
}

.expansion-content {
    padding: 24px;
    display: none;
}

.expansion-section.expanded .expansion-content {
    display: block;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-group {
    display: flex;
    flex-direction: column;
}

.form-row .col-2 { grid-column: span 2; }
.form-row .col-3 { grid-column: span 3; }
.form-row .col-4 { grid-column: span 4; }
.form-row .col-6 { grid-column: span 6; }
.form-row .col-8 { grid-column: span 8; }
.form-row .col-9 { grid-column: span 9; }
.form-row .col-12 { grid-column: span 12; }

.form-row .form-group label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-weight: 400;
}

.form-row .form-group input,
.form-row .form-group select {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.3s;
}

.form-row .form-group input:focus,
.form-row .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-row .form-group input:disabled,
.form-row .form-group input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.info-text-box {
    background-color: #f5f5f5;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.badge-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    display: inline-block;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
}

.toggle-field {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-field input[type="checkbox"] {
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.toggle-field label {
    font-size: 16px;
    cursor: pointer;
}

.foto-section {
    text-align: center;
}

.foto-avatar {
    width: 192px;
    height: 192px;
    margin: 0 auto 24px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.foto-avatar .material-icons {
    font-size: 120px;
    color: white;
}

.foto-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.btn-upload-foto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-upload-foto:hover {
    background-color: rgba(169, 6, 55, 0.1);
}

.btn-remover-foto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: transparent;
    border: 1px solid var(--error);
    color: var(--error);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 10px;
}

.btn-remover-foto:hover {
    background-color: rgba(211, 47, 47, 0.1);
}

.foto-validacoes {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 16px;
    margin: 20px auto;
    max-width: 500px;
    text-align: left;
}

.foto-validacoes h5 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.foto-validacoes ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.foto-validacoes ul li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.foto-validacoes ul li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-weight: bold;
}

.foto-preview-area {
    margin: 20px auto;
    text-align: center;
}

.foto-miniaturas {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.foto-thumb {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #ddd;
}

.foto-preview-grande {
    margin-bottom: 20px;
}

.foto-preview-grande img {
    max-width: 350px;
    max-height: 450px;
    object-fit: contain;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.btn-validar-foto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
}

.btn-validar-foto:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-validar-foto .material-icons {
    font-size: 20px;
}

/* Notificação de sucesso */
.notificacao-sucesso {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: #4caf50;
    color: white;
    padding: 14px 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transition: all 0.3s ease;
}

#notificacao-salvar {
    top: 20px;
}

.notificacao-sucesso.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.notificacao-sucesso .material-icons {
    font-size: 20px;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.loading-overlay.show {
    display: flex;
}

.loading-content {
    text-align: center;
    background-color: white;
    padding: 40px 60px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content p {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 500;
    margin: 0;
}

/* Modal de erro customizado */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10001;
}

.modal-box {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    padding: 30px 30px 15px;
    text-align: center;
}

.modal-body {
    padding: 0 30px 25px;
    text-align: center;
}

.modal-body h3 {
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    font-weight: 500;
}

.modal-body p {
    font-size: 16px;
    color: #333;
    margin: 0;
    line-height: 1.5;
}

.modal-footer {
    padding: 0 30px 30px;
    text-align: center;
}

.modal-btn-ok {
    background-color: white;
    color: #333;
    border: 1px solid #ccc;
    padding: 10px 40px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 100px;
    pointer-events: auto; /* IMPORTANTE: garantir que o botão seja clicável */
    position: relative;
    z-index: 10002; /* Acima do overlay */
}

.modal-btn-ok:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.modal-btn-ok:active {
    background-color: #e0e0e0;
}

.modal-btn-ok:focus {
    outline: 2px solid #2196F3;
    outline-offset: 2px;
}

.foto-info {
    margin-top: 24px;
    text-align: justify;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.foto-info p {
    margin-bottom: 12px;
}

.form-checkbox-info {
    margin: 32px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-checkbox-info input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.form-checkbox-info label {
    font-size: 14px;
    cursor: pointer;
}

.alert-box {
    background-color: #e0e0e0;
    padding: 16px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 16px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-box-info {
    background-color: #e0e0e0;
    padding: 16px;
    text-align: justify;
    font-weight: bold;
    margin-bottom: 32px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-box-info p {
    margin-bottom: 12px;
}

.alert-box-info p:last-child {
    margin-bottom: 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 32px;
}

.form-actions button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.form-actions .btn-secondary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.form-actions .btn-secondary:hover {
    background-color: var(--primary-dark);
}

.form-actions .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.form-actions .btn-primary:hover {
    background-color: var(--primary-dark);
}

/* Responsive Cadastro */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-row .col-2,
    .form-row .col-3,
    .form-row .col-4,
    .form-row .col-6,
    .form-row .col-8,
    .form-row .col-9,
    .form-row .col-12 {
        grid-column: span 1;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Acessibilidade */
button:focus,
a:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .sidebar,
    .alert-banner,
    .footer,
    .form-actions {
        display: none;
    }

    .main-content {
        margin-top: 0;
    }
}

/* Página de Foto */
.concurso-info {
    background: white;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.concurso-info img {
    width: 100px;
    height: auto;
}

.concurso-details h3 {
    margin: 0 0 8px 0;
    color: var(--text-primary);
    font-size: 16px;
}

.concurso-details p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.tabs {
    display: flex;
    background: white;
    border-radius: 0;
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: none;
    border-bottom: 1px solid #e0e0e0;
}

.tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    gap: 8px;
    color: #666;
    background: white;
    position: relative;
    font-weight: 500;
    border-left: 1px solid #e0e0e0;
}

.tab:first-child {
    border-left: none;
}

.tab .material-icons {
    font-size: 28px;
    color: var(--primary-color);
}

.tab span:not(.material-icons) {
    font-size: 14px;
    color: #666;
}

.tab:hover:not(.disabled) {
    background-color: #fef5f7;
}

.tab.active {
    border-bottom: 3px solid var(--primary-color);
    background-color: #fef5f7;
}

.tab.active span:not(.material-icons) {
    color: var(--primary-color);
    font-weight: 600;
}

.tab.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #fafafa;
}

.tab.disabled .material-icons,
.tab.disabled span {
    color: #bdbdbd !important;
}

.foto-content {
    background: white;
    padding: 30px;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #e0e0e0;
    border-top: none;
}

.foto-content h2 {
    margin: 0 0 12px 0;
    color: var(--text-primary);
    font-size: 20px;
}

.divider {
    height: 2px;
    background-color: var(--primary-color);
    border: none;
    margin: 0 0 24px 0;
}

.foto-instrucoes {
    text-align: justify;
    margin-bottom: 40px;
}

.foto-instrucoes p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.foto-instrucoes h3 {
    margin: 24px 0 16px 0;
    font-size: 18px;
    color: var(--text-primary);
}

.instrucoes-list {
    list-style: none;
    padding: 0;
}

.instrucoes-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.instrucoes-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 18px;
}

.exemplo-foto {
    text-align: center;
    margin: 24px 0;
}

.exemplo-foto img {
    max-width: 200px;
    border: 2px solid #ddd;
    border-radius: 4px;
}

.foto-upload-area {
    text-align: center;
    margin-top: 40px;
}

.foto-preview {
    width: 300px;
    height: 400px;
    margin: 0 auto 24px;
    background-color: #e0e0e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border: 2px solid #ccc;
}

.foto-preview .material-icons {
    font-size: 120px;
    color: white;
}

.foto-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.foto-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-trocar,
.btn-manter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
}

.btn-trocar {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-trocar:hover {
    background-color: rgba(169, 6, 55, 0.1);
}

.btn-manter {
    background-color: var(--primary-color);
    color: white;
}

.btn-manter:hover {
    background-color: var(--primary-dark);
}

@media (max-width: 768px) {
    .concurso-info {
        flex-direction: column;
        text-align: center;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        border-bottom: 1px solid #e0e0e0;
        border-right: none;
    }
    
    .tab.active {
        border-left: 3px solid var(--primary-color);
        border-bottom: 1px solid #e0e0e0;
    }
    
    .foto-actions {
        flex-direction: column;
    }
    
    .btn-trocar,
    .btn-manter {
        width: 100%;
    }
}

/* Utility Classes */
.text-justify {
    text-align: justify;
}

.text-center {
    text-align: center;
}

/* Página de Pagamento */
.payment-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-top: 20px;
    overflow: hidden;
}

.payment-card-content {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.payment-logo {
    flex: 0 0 150px;
}

.payment-logo img {
    width: 100%;
    padding: 10px;
}

.payment-info {
    flex: 1;
}

.payment-subtitle {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.payment-title {
    font-size: 18px;
    font-weight: 500;
    color: #212121;
    margin-bottom: 12px;
}

.payment-details {
    margin-top: 12px;
}

.payment-details > div {
    margin-bottom: 8px;
    font-size: 14px;
    color: #424242;
}

.payment-details strong {
    font-weight: 600;
}

.payment-actions {
    margin-top: 24px;
    text-align: center;
}

.btn-large {
    padding: 14px 48px;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.btn-large .material-icons {
    font-size: 24px;
}

@media (max-width: 768px) {
    .payment-card-content {
        flex-direction: column;
    }
    
    .payment-logo {
        flex: 0 0 auto;
        max-width: 200px;
        margin: 0 auto;
    }
}
