/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-purple: #7B2CBF;
    --dark-blue: #1A1B3A;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --text-gray: #6C757D;
    --success-green: #28A745;
    --error-red: #DC3545;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(123, 44, 191, 0.1);
    --shadow-hover: 0 8px 30px rgba(123, 44, 191, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-blue);
    background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    height: 80px;
    width: auto;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-purple);
    text-align: center;
    margin: 0;
}

/* Hero Section */
.hero-section {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-blue) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text {
    font-size: 1.2rem;
    line-height: 1.8;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Form Section */
.form-section {
    padding: 80px 0;
    background: var(--white);
}

.candidate-form {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    margin: 0 auto;
    max-width: 900px;
    transition: var(--transition);
}

.candidate-form:hover {
    box-shadow: var(--shadow-hover);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 15px;
    border: 2px solid var(--medium-gray);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(123, 44, 191, 0.1);
    transform: translateY(-2px);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* Radio buttons */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.radio-label:hover {
    color: var(--primary-purple);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: var(--transition);
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--primary-purple);
    background: var(--primary-purple);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--white);
    border-radius: 50%;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    gap: 12px;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--medium-gray);
    border-radius: 4px;
    position: relative;
    transition: var(--transition);
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    border-color: var(--primary-purple);
    background: var(--primary-purple);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--white);
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* File upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border: 2px dashed var(--medium-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-gray);
}

.file-upload-label:hover {
    border-color: var(--primary-purple);
    background: rgba(123, 44, 191, 0.05);
}

.file-upload-text {
    color: var(--text-gray);
    font-weight: 500;
}

.file-upload-icon {
    font-size: 1.2rem;
}

.file-name {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--primary-purple);
    font-weight: 500;
}

/* Project info */
.project-info {
    margin-top: 15px;
    padding: 20px;
    background: var(--light-gray);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-purple);
}

.project-description {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--dark-blue);
    transform: translateX(5px);
}

/* Submit button */
.form-actions {
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--dark-blue) 100%);
    color: var(--white);
    border: none;
    padding: 18px 40px;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    min-width: 200px;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.submit-btn:active {
    transform: translateY(-1px);
}

.submit-btn.loading {
    pointer-events: none;
}

.btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline;
}

/* Success message */
.success-message {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 40px;
    text-align: center;
    margin: 40px auto;
    max-width: 600px;
    border: 2px solid var(--success-green);
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.success-title {
    color: var(--success-green);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.success-text {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    text-align: center;
    padding: 30px 0;
}

.footer p {
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-text {
        font-size: 1.1rem;
    }
    
    .candidate-form {
        padding: 25px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .submit-btn {
        width: 100%;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .header .container {
        padding: 15px;
    }
    
    .logo {
        height: 60px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-text {
        font-size: 1rem;
    }
    
    .form-section {
        padding: 40px 0;
    }
    
    .candidate-form {
        padding: 20px;
    }
}

/* Loading states */
.form-input:invalid {
    border-color: var(--error-red);
}

.form-input:valid {
    border-color: var(--success-green);
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.submit-btn:focus,
.radio-label:focus-within,
.checkbox-label:focus-within {
    outline: 2px solid var(--primary-purple);
    outline-offset: 2px;
}

