* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066CC;
    --primary-orange: #FF6600;
    --primary-green: #00AA44;
    --dark-blue: #004499;
    --bg-light: #F8F9FA;
    --bg-section: #FFFFFF;
    --text-dark: #1A1A1A;
    --text-medium: #4A4A4A;
    --text-light: #6C757D;
    --border-color: #E0E0E0;
    --border-focus: #0066CC;
    --success-color: #28a745;
    --error-color: #dc3545;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Poppins', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: var(--bg-light);
    min-height: 100vh;
    padding: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-section);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.header {
    background: transparent;
    padding: 50px 40px 40px;
    text-align: center;
    color: var(--text-dark);
    border-bottom: none;
}

.logo-wrapper {
    margin-bottom: 30px;
}

.logo-img {
    max-width: 280px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
    color: var(--text-dark);
}

.subtitle {
    font-size: 1.15em;
    color: var(--text-medium);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.form-candidato {
    padding: 60px 50px;
}

.form-group {
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-candidato {
        padding: 40px 30px;
    }
    
    .header {
        padding: 40px 30px 30px;
    }
    
    .logo-img {
        max-width: 220px;
    }
    
    .title {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1em;
    }
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95em;
    letter-spacing: 0.2px;
}

label .icon {
    margin-right: 8px;
    font-size: 1.1em;
}

.input-field {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
    color: var(--text-dark);
}

.input-field:focus {
    outline: none;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.08);
}

.input-field:hover {
    border-color: #B0B0B0;
}

.input-field::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

select.input-field {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath fill='%234A4A4A' d='M7 10L2 5h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    padding-right: 45px;
}

textarea.input-field {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.file-upload-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--bg-light);
}

.file-label:hover {
    border-color: var(--border-focus);
    background: var(--white);
    border-style: solid;
}

.file-text {
    color: var(--text-medium);
    font-size: 0.95em;
    font-weight: 500;
}

.file-button {
    background: var(--primary-blue);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.2s ease;
}

.file-label:hover .file-button {
    background: var(--dark-blue);
}

.btn-submit {
    width: 100%;
    padding: 18px 24px;
    background: var(--primary-blue);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 16px;
    box-shadow: var(--shadow-sm);
    letter-spacing: 0.3px;
}

.btn-submit:hover {
    background: var(--dark-blue);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.alert {
    padding: 16px 24px;
    margin: 30px 50px 0;
    border-radius: 8px;
    font-weight: 500;
    animation: slideDown 0.3s ease-out;
    border-left: 4px solid;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left-color: var(--success-color);
}

.alert-error {
    background: #FFEBEE;
    color: #C62828;
    border-left-color: var(--error-color);
}

@media (max-width: 768px) {
    .alert {
        margin: 20px 30px 0;
    }
}

.footer {
    background: var(--bg-light);
    padding: 40px 50px;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.95em;
    border-top: 1px solid var(--border-color);
}

.footer p {
    margin: 0;
    font-weight: 500;
}

/* Responsividade adicional */
@media (max-width: 480px) {
    .header {
        padding: 30px 20px 25px;
    }
    
    .logo-img {
        max-width: 200px;
    }
    
    .title {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 0.95em;
    }
    
    .form-candidato {
        padding: 30px 20px;
    }
    
    .footer {
        padding: 30px 20px;
    }
}

.preview-banner {
    background: #0066CC;
    color: #FFFFFF;
    text-align: center;
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.9em;
}

