/* ApplyOps - Onboarding Styles */

.onboarding-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.onboarding-header .logo {
    color: var(--purple-dark);
    text-decoration: none;
}

.onboarding-container {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl) var(--spacing-xl);
    background: var(--gray-50);
}

.onboarding-content {
    max-width: 600px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-3xl);
    box-shadow: var(--shadow-xl);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-3xl);
    padding-bottom: var(--spacing-2xl);
    border-bottom: 2px solid var(--gray-100);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--purple-dark);
    color: var(--white);
}

.progress-step.completed .step-circle {
    background: var(--purple-accent);
    color: var(--white);
}

.step-label {
    font-size: 12px;
    color: var(--gray-600);
    font-weight: 500;
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--purple-dark);
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 2px;
    background: var(--gray-200);
    margin: 0 var(--spacing-xs);
    margin-bottom: 24px;
}

/* Onboarding Steps */
.onboarding-step {
    display: none;
}

.onboarding-step.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    margin-bottom: var(--spacing-2xl);
}

.step-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--purple-dark);
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.step-description {
    font-size: 1.125rem;
    color: var(--gray-600);
}

/* Form Styles */
.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    font-weight: 600;
    color: var(--gray-900);
    font-size: 15px;
}

.optional-label {
    font-weight: 400;
    color: var(--gray-500);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-accent);
    box-shadow: 0 0 0 3px rgba(107, 77, 140, 0.1);
}

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

.field-hint {
    font-size: 13px;
    color: var(--gray-500);
}

/* File Upload */
.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: var(--spacing-2xl);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--gray-50);
}

.file-upload-area:hover {
    border-color: var(--purple-accent);
    background: var(--white);
}

.file-upload-area.dragover {
    border-color: var(--purple-accent);
    background: rgba(107, 77, 140, 0.05);
}

.upload-prompt svg {
    color: var(--gray-400);
    margin-bottom: var(--spacing-md);
}

.upload-text {
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.upload-hint {
    font-size: 13px;
    color: var(--gray-500);
}

.file-selected {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--purple-dark);
    color: var(--white);
    border-radius: var(--radius-md);
}

.file-selected svg {
    flex-shrink: 0;
}

.file-name {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    text-align: left;
}

.remove-file {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.remove-file:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Materials Notice */
.materials-notice {
    display: flex;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--blue-light);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--purple-accent);
}

.materials-notice svg {
    color: var(--purple-accent);
    flex-shrink: 0;
}

.materials-notice p {
    font-size: 14px;
    color: var(--gray-700);
    font-weight: 500;
    margin: 0;
}

/* Consent Section */
.consent-section {
    padding: var(--spacing-2xl);
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    cursor: pointer;
    position: relative;
}

.consent-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    background: var(--white);
}

.consent-checkbox input:checked ~ .checkmark {
    background: var(--purple-dark);
    border-color: var(--purple-dark);
}

.consent-checkbox input:checked ~ .checkmark::after {
    content: '✓';
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
}

.consent-text {
    font-size: 15px;
    color: var(--gray-900);
    font-weight: 500;
    line-height: 1.6;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.form-actions .btn-secondary {
    flex: 1;
}

.form-actions .btn-primary {
    flex: 2;
}

.btn-secondary {
    background: var(--white);
    border: 2px solid var(--gray-300);
    color: var(--gray-700);
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--gray-50);
    border-color: var(--gray-400);
}

/* Success State */
.success-container {
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-xl);
    background: var(--green-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon svg {
    color: #10B981;
}

.success-container h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--purple-dark);
    margin-bottom: var(--spacing-md);
}

.success-description {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.6;
}

/* Loading State */
.btn-primary:disabled,
.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary.loading {
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid var(--white);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Error Messages */
.error-message {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-top: var(--spacing-md);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .onboarding-container {
        padding: var(--spacing-xl) var(--spacing-md);
    }

    .onboarding-content {
        padding: var(--spacing-xl);
    }

    .progress-indicator {
        padding-bottom: var(--spacing-lg);
    }

    .step-label {
        font-size: 10px;
    }

    .step-circle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .progress-line {
        margin-bottom: 16px;
    }

    .step-header h1 {
        font-size: 1.75rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-secondary,
    .form-actions .btn-primary {
        flex: 1;
    }
}
