* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    min-height: 600px;
}

/* Header */
header {
    background: #2c3e50;
    color: white;
    padding: 2rem;
    text-align: center;
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Progress Indicator */
.progress-container {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 25%;
}

.progress-text {
    font-weight: 600;
    color: #495057;
    text-align: center;
}

/* Steps */
.step {
    display: none;
    padding: 2rem;
    min-height: 400px;
}

.step.active {
    display: block;
}

.step-content h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.step-content p {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Role Cards */
.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.role-card {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.role-card:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.role-card.selected {
    border-color: #28a745;
    background: #d4edda;
}

.role-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.role-card h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.role-card p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Grade Options */
.grade-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.option-card {
    cursor: pointer;
    display: block;
}

.option-card input[type="radio"] {
    display: none;
}

.card-content {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.option-card:hover .card-content {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.option-card input[type="radio"]:checked + .card-content {
    border-color: #28a745;
    background: #d4edda;
}

.grade-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.card-content h3 {
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.card-content p {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

/* Checkbox */
.checkbox-label {
    display: flex !important;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    border-color: #007bff;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 4px;
    margin-right: 0.75rem;
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #007bff;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 3px;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Navigation */
.navigation {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-btn-hidden {
    display: none !important;
}

/* Results */
.results-header {
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.checklist-container {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    margin-top: 1rem;
}

.checklist-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.checklist-header h1 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.checklist-info {
    color: #6c757d;
    font-size: 1rem;
}

.checklist-section {
    margin-bottom: 2rem;
}

.checklist-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.checklist-items {
    list-style: none;
}

.checklist-items li {
    padding: 0.75rem 0;
    border-bottom: 1px dotted #e9ecef;
    position: relative;
    padding-left: 2rem;
}

.checklist-items li::before {
    content: '☐';
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    color: #007bff;
}

.checklist-items li:last-child {
    border-bottom: none;
}

.emergency-contacts {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 1rem;
    margin-top: 2rem;
}

.emergency-contacts h4 {
    color: #856404;
    margin-bottom: 0.5rem;
}

/* Print Styles */
@media print {
    body {
        background: white;
        padding: 0;
    }
    
    .container {
        box-shadow: none;
        max-width: none;
    }
    
    .step:not(#results) {
        display: none !important;
    }
    
    .navigation,
    .progress-container,
    .action-buttons {
        display: none !important;
    }
    
    .checklist-container {
        border: none;
        padding: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .container {
        border-radius: 8px;
    }
    
    header {
        padding: 1.5rem;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .step {
        padding: 1.5rem;
    }
    
    .role-grid,
    .grade-options {
        grid-template-columns: 1fr;
    }
    
    .navigation {
        padding: 1.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
}
