/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.nav-subtitle {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Progress Bar */
.progress-container {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 2rem 0;
}

.progress-bar {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.step-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: #2563eb;
    color: white;
}

.progress-step.active .step-label {
    color: #2563eb;
    font-weight: 600;
}

.progress-step.completed .step-number {
    background: #1a1a1a;
    color: white;
}

.progress-step.completed .step-label {
    color: #1a1a1a;
    font-weight: 600;
}

.progress-line {
    width: 80px;
    height: 2px;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.progress-line.completed {
    background: #1a1a1a;
}

/* Main Container */
.step-container {
    min-height: calc(100vh - 200px);
    padding: 3rem 0;
}

.form-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: #6b7280;
    font-size: 1.125rem;
}

/* Form Styles */
.form {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section h3 i {
    color: #2563eb;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    position: relative;
}

.tab-button:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.tab-button.active {
    background: #2563eb;
    border-color: #2563eb;
    color: white;
}

.tab-button.completed {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: white;
}

.tab-button i {
    font-size: 1.25rem;
}

.tab-button span {
    font-size: 0.75rem;
    font-weight: 500;
}

.tab-status {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    color: #10b981;
    font-weight: bold;
}

/* Tab Content */
.tab-contents {
    background: #ffffff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.tab-header i {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.tab-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.tab-header p {
    color: #6b7280;
}

/* Question Groups */
.question-group {
    margin-bottom: 2rem;
}

.question-label {
    display: block;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.radio-option:hover {
    background: #f8fafc;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #2563eb;
    background: #2563eb;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.radio-text {
    font-size: 0.875rem;
    color: #1a1a1a;
}

/* Checkbox Groups */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-option:hover {
    background: #f8fafc;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-option input[type="checkbox"] {
    display: none;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #2563eb;
    background: #2563eb;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-text {
    font-size: 0.875rem;
    color: #1a1a1a;
}

/* Text Inputs */
.text-input,
.textarea-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.textarea-input {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.text-input:focus,
.textarea-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #1d4ed8;
}

.btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.btn-secondary {
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #d1d5db;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #9ca3af;
}

/* Form Actions */
.form-actions,
.tab-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

/* Completion Warning */
.completion-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fef3c7;
    color: #92400e;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-size: 0.875rem;
}

.completion-warning i {
    color: #f59e0b;
}

/* Loading State */
.loading-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 200px);
    background: #ffffff;
}

.loading-content {
    text-align: center;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 2rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.loading-content p {
    color: #6b7280;
}

/* Results */
.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-header i {
    font-size: 3rem;
    color: #2563eb;
    margin-bottom: 1rem;
}

.results-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.results-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.score-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.score-display {
    margin-bottom: 2rem;
}

.score-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 0.5rem;
}

.score-level {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.radar-chart-container {
    display: flex;
    justify-content: center;
}

.action-plan-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

.action-plan-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 1.5rem;
}

.action-plan-card h3 i {
    color: #2563eb;
}

.action-list {
    list-style: none;
    counter-reset: action-counter;
}

.action-list li {
    counter-increment: action-counter;
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-size: 0.875rem;
    line-height: 1.5;
}

.action-list li::before {
    content: counter(action-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Pillars Grid */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.pillar-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.pillar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.pillar-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1a1a1a;
}

.pillar-header i {
    color: #2563eb;
}

.pillar-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2563eb;
}

.pillar-content {
    padding: 1.5rem;
}

.pillar-section {
    margin-bottom: 1.5rem;
}

.pillar-section:last-child {
    margin-bottom: 0;
}

.pillar-section h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
}

.pillar-section h4 i {
    font-size: 0.75rem;
}

.pillar-section h4 i.fa-check-circle {
    color: #10b981;
}

.pillar-section h4 i.fa-exclamation-circle {
    color: #f59e0b;
}

.pillar-section h4 i.fa-lightbulb {
    color: #2563eb;
}

.pillar-section ul {
    list-style: none;
    padding-left: 0;
}

.pillar-section li {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.pillar-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6b7280;
}

/* Results Actions */
.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
}

.modal-header i {
    color: #2563eb;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1a1a1a;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

/* Toast */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #dc2626;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    display: none;
    align-items: center;
    gap: 1rem;
    z-index: 1001;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.toast.show {
    display: flex;
}

.toast.success {
    background: #10b981;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: #2563eb;
}

.footer p {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Error Messages */
.error-message {
    color: #dc2626;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: none;
}

.error-message.show {
    display: block;
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fade-in 0.5s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .form-container,
    .results-container {
        padding: 0 1rem;
    }
    
    .progress-bar {
        gap: 1rem;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    .progress-line {
        width: 40px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .tab-navigation {
        flex-wrap: wrap;
    }
    
    .tab-button {
        min-width: 100px;
        padding: 0.75rem;
    }
    
    .results-overview {
        grid-template-columns: 1fr;
    }
    
    .pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .results-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .toast {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .results-header h2 {
        font-size: 2rem;
    }
    
    .score-number {
        font-size: 2rem;
    }
    
    .form,
    .pillar-card,
    .score-card,
    .action-plan-card {
        padding: 1.5rem;
    }
}