/* ========================================
   INTERACTIVE ONBOARDING STYLES
   ======================================== */

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    margin: 0;
    padding: 20px;
}

.onboarding-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

/* Progress Bar */
.progress-container {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    padding: 2rem;
    color: white;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: white;
    width: 20%;
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}

/* Steps */
.step {
    padding: 3rem 2rem;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

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

.step-header {
    margin-bottom: 2rem;
}

.step-header h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.step-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Step 1: Strategy Selection */
.strategy-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.strategy-card {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.strategy-card:hover {
    border-color: #667eea;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
    transform: translateY(-4px);
}

.strategy-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.strategy-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.strategy-card h3 {
    font-size: 1.2rem;
    color: #1a1a1a;
    margin: 0.5rem 0;
}

.strategy-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
}

.strategy-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
    font-size: 0.9rem;
}

.strategy-details li {
    padding: 0.3rem 0;
    color: #666;
}

.strategy-info {
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
    margin-top: 1rem;
}

.strategy-card .select-strategy {
    width: 100%;
    margin-top: 1rem;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a1a;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="range"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input[type="range"] {
    padding: 0;
    height: 6px;
    cursor: pointer;
}

.slider-track {
    margin: 1rem 0;
}

.help-text {
    font-size: 0.85rem;
    color: #999;
    margin-top: 0.3rem;
}

.example {
    font-size: 0.85rem;
    color: #667eea;
    margin-top: 0.5rem;
    font-weight: 500;
}

.help-link {
    color: #667eea;
    text-decoration: none;
}

.help-link:hover {
    text-decoration: underline;
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.radio-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

/* Account Info */
.account-info {
    background: #f0f4ff;
    border-left: 4px solid #667eea;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1.5rem;
}

.account-info p {
    margin: 0.3rem 0;
    color: #333;
    font-size: 0.95rem;
}

.account-info .small {
    color: #999;
    font-size: 0.85rem;
}

/* Skill Selector */
.skill-recommendation {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-recommendation p {
    margin: 0;
    color: #856404;
}

.view-pack-btn {
    white-space: nowrap;
    margin-left: 1rem;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.filter-tab:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-tab.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}

.skill-card {
    border: 2px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.skill-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.skill-card.selected {
    border-color: #667eea;
    background: #f0f4ff;
}

.skill-name {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.3rem;
}

.skill-type {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.skill-description {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.skill-price {
    font-weight: bold;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.skill-checkbox {
    display: flex;
    align-items: center;
    margin-top: auto;
}

.skill-checkbox input {
    margin-right: 0.5rem;
}

/* Selected Skills Summary */
.selected-skills-summary {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.selected-skills-summary h3 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
}

.selected-list {
    margin-bottom: 1rem;
    max-height: 150px;
    overflow-y: auto;
}

.selected-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
}

.selected-item:last-child {
    border-bottom: none;
}

.selected-item-name {
    color: #1a1a1a;
    font-weight: 500;
}

.selected-item-price {
    color: #667eea;
    font-weight: bold;
}

.selected-item-remove {
    background: none;
    border: none;
    color: #f44336;
    cursor: pointer;
    font-size: 1rem;
}

.empty {
    color: #999;
    text-align: center;
    padding: 1rem 0;
}

.total-price {
    text-align: right;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
}

/* Risk Parameters */
.risk-form {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.risk-summary {
    background: #f0f4ff;
    border: 1px solid #e0e8ff;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.risk-summary h4 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
}

.risk-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.risk-summary li {
    padding: 0.5rem 0;
    color: #333;
    font-size: 0.95rem;
}

.risk-rating {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e8ff;
    color: #667eea;
    font-weight: 600;
}

/* Review Summary */
.review-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.review-card {
    background: #f5f5f5;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
}

.review-card h3 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
}

.review-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.review-card li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.review-card li:last-child {
    border-bottom: none;
}

.review-card strong {
    color: #1a1a1a;
}

.review-total {
    text-align: right;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #ddd;
    font-weight: bold;
    color: #667eea;
    font-size: 1.1rem;
}

/* Deployment Info */
.deployment-info {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
    color: #2e7d32;
}

.deployment-info p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* Next Steps */
.next-steps {
    background: #f0f4ff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.next-steps h3 {
    margin: 0 0 1rem 0;
    color: #1a1a1a;
}

.next-steps ol {
    margin: 0;
    padding-left: 1.5rem;
    color: #666;
}

.next-steps li {
    margin-bottom: 0.5rem;
}

/* Success Screen */
.success-screen {
    text-align: center;
    padding: 3rem 2rem !important;
}

.success-content {
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.success-screen h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.success-screen > p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

.success-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.success-card {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
}

.success-card h3 {
    margin: 0 0 0.5rem 0;
    color: #1a1a1a;
}

.success-card p {
    margin: 0.5rem 0 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

.success-tip {
    color: #667eea;
    font-weight: 600;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: white;
    color: #333;
    border: 1px solid #ddd;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-outline {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-outline:hover {
    background: #f0f4ff;
}

.btn-link {
    background: none;
    color: #667eea;
    text-decoration: underline;
    padding: 0;
}

.btn-link:hover {
    color: #5568d3;
}

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Step Actions */
.step-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: auto;
}

.step-actions .btn {
    min-width: 120px;
}

.skip-btn {
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .onboarding-container {
        border-radius: 0;
        margin: -20px;
        min-height: 100vh;
    }

    .step {
        padding: 2rem 1.5rem;
        min-height: auto;
    }

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

    .strategy-cards {
        grid-template-columns: 1fr;
    }

    .review-summary {
        grid-template-columns: 1fr;
    }

    .step-actions {
        flex-direction: column-reverse;
    }

    .step-actions .btn {
        width: 100%;
    }

    .success-cards {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}
