/* CSS extraído de index.php */

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Raleway', Arial, sans-serif;
    background: #f5f5f5;
    line-height: 1.6;
    color: #333;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.credenciamento-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.form-header {
    background: linear-gradient(135deg, #00995d, #007a4a);
    color: white;
    padding: 30px;
    text-align: center;
}
.form-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}
.form-header p {
    font-size: 16px;
    opacity: 0.9;
}
.form-content {
    padding: 40px;
}
.intro-text {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 35px;
    border-left: 5px solid #00995d;
}
.intro-text h2 {
    color: #00995d;
    margin-bottom: 15px;
    font-size: 20px;
}
.intro-text p {
    margin-bottom: 10px;
    color: #555;
}
.form-section {
    margin-bottom: 35px;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.form-section h3 {
    background: #00995d;
    color: white;
    padding: 18px 25px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}
.form-section-content {
    padding: 25px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}
.form-group label.required:after {
    content: " *";
    color: #e74c3c;
    font-weight: bold;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}
.form-control:focus {
    border-color: #00995d;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 153, 93, 0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}
.form-row.three-cols {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}
.form-row.full-width {
    grid-template-columns: 1fr;
}
.file-info {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}
.file-info a {
    color: #00995d;
    text-decoration: none;
}
.file-info a:hover {
    text-decoration: underline;
}
.checkbox-group {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}
.checkbox-group label {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
    cursor: pointer;
}
.checkbox-group input[type="checkbox"] {
    margin-right: 12px;
    margin-top: 2px;
    transform: scale(1.2);
}
.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}
.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 10px;
}
.btn-primary {
    background: linear-gradient(135deg, #00995d, #007a4a);
    color: white;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #007a4a, #006640);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 153, 93, 0.3);
}
.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-secondary {
    background: #6c757d;
    color: white;
}
.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}
.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #c3e6cb;
    font-weight: 500;
}
.error-message {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #f5c6cb;
    font-weight: 500;
}
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #00995d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Popup de Sucesso */
.success-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

.success-popup {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.4s ease-out;
    position: relative;
}

.success-popup-header {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.success-icon {
    margin-bottom: 15px;
    animation: successBounce 0.6s ease-out 0.2s both;
}

.success-popup-header h2 {
    color: #00995d;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.success-popup-content {
    padding: 25px 30px;
    color: #333;
    line-height: 1.6;
}

.success-popup-content p {
    margin-bottom: 15px;
}

.success-popup-content ul {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.success-popup-content li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.success-popup-content li:last-child {
    border-bottom: none;
}

.contact-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #00995d;
}

.contact-info p {
    margin-bottom: 5px;
}

.contact-info a {
    color: #00995d;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.success-popup-actions {
    padding: 20px 30px 30px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 15px;
    justify-content: center;
}

.success-popup-actions .btn {
    min-width: 120px;
    margin: 0;
}

@keyframes popupFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes successBounce {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* Responsividade do Popup */
@media (max-width: 768px) {
    .success-popup {
        width: 95%;
        margin: 20px 0;
    }
    
    .success-popup-header {
        padding: 25px 20px 15px;
    }
    
    .success-popup-header h2 {
        font-size: 20px;
    }
    
    .success-popup-content {
        padding: 20px;
    }
    
    .success-popup-actions {
        padding: 15px 20px 25px;
        flex-direction: column;
    }
    
    .success-popup-actions .btn {
        width: 100%;
        margin: 5px 0;
    }
}

@media (max-width: 480px) {
    .success-popup-header h2 {
        font-size: 18px;
    }
    
    .success-popup-content {
        padding: 15px;
    }
    
    .contact-info {
        padding: 12px;
    }
}

/* Responsividade e outros trechos omitidos para brevidade, mas todo o CSS do index.php será incluído aqui. */
