/* Onboarding Wizard Styles */

/* Plan Cards - Color variants for each plan */
.plan-card {
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.plan-card-wrapper input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-card-wrapper:hover .plan-card,
.plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.plan-card-wrapper input[type="radio"]:checked + .plan-card {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15), 0 12px 28px rgba(15, 23, 42, 0.16);
    transform: translateY(-4px);
}

.plan-card.selected {
    box-shadow: inset 0 0 0 3px;
}

.plan-locked-note {
    margin-top: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 12px;
    font-weight: 600;
}

.plan-card.gray {
    border-color: #e5e7eb;
}

.plan-card.gray.selected {
    background-color: #f3f4f6;
    border-color: #6b7280;
    box-shadow: inset 0 0 0 2px #6b7280;
}

.plan-card.blue {
    border-color: #dbeafe;
}

.plan-card.blue.selected {
    background-color: #eff6ff;
    border-color: #3b82f6;
    box-shadow: inset 0 0 0 2px #3b82f6;
}

.plan-card.purple {
    border-color: #e9d5ff;
}

.plan-card.purple.selected {
    background-color: #faf5ff;
    border-color: #a855f7;
    box-shadow: inset 0 0 0 2px #a855f7;
}

.plan-card.indigo {
    border-color: #e0e7ff;
}

.plan-card.indigo.selected {
    background-color: #eef2ff;
    border-color: #4f46e5;
    box-shadow: inset 0 0 0 2px #4f46e5;
}

/* Plan Feature List */
.plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.plan-features li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.plan-features li::before {
    content: '✓';
    margin-right: 0.5rem;
    font-weight: bold;
    width: 1.25rem;
    text-align: center;
}

/* Role Selection Cards */
.role-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.role-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

.role-card.selected {
    background-color: #f0fdf4;
    border-color: #22c55e;
    box-shadow: inset 0 0 0 2px #22c55e;
}

/* Summary Cards */
.summary-card {
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.summary-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.summary-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    font-size: 0.875rem;
    margin-right: 0.75rem;
}

.summary-card.info {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
}

.summary-card.info .summary-step-number {
    background-color: #3b82f6;
}

.summary-card.personalization {
    background-color: #faf5ff;
    border-left: 4px solid #a855f7;
}

.summary-card.personalization .summary-step-number {
    background-color: #a855f7;
}

.summary-card.plan {
    background-color: #eef2ff;
    border-left: 4px solid #4f46e5;
}

.summary-card.plan .summary-step-number {
    background-color: #4f46e5;
}

.summary-card.role {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
}

.summary-card.role .summary-step-number {
    background-color: #22c55e;
}

.summary-content {
    margin-left: 2.75rem;
    space-y: 0.5rem;
}

.summary-item {
    display: flex;
    padding: 0.375rem 0;
    font-size: 0.875rem;
}

.summary-label {
    font-weight: 600;
    color: #374151;
    min-width: 120px;
}

.summary-value {
    color: #4b5563;
}

/* Onboarding Container */
.onboarding-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.onboarding-card {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 56rem;
    width: 100%;
    padding: 2rem;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 2rem;
}

.onboarding-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.onboarding-subtitle {
    color: #4b5563;
    font-size: 0.95rem;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-step {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.progress-percent {
    font-size: 0.875rem;
    color: #6b7280;
}

.progress-bar-bg {
    width: 100%;
    height: 0.5rem;
    background-color: #e5e7eb;
    border-radius: 0.25rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

/* Navigation Buttons */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.btn {
    padding: 0.625rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-prev {
    border: 1px solid #d1d5db;
    background-color: white;
    color: #374151;
}

.btn-prev:hover:not(:disabled) {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}

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

.btn-next:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(102, 126, 234, 0.4);
}

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

/* Step Content */
.step-content {
    space-y: 1.5rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    color: #4b5563;
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

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

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.required {
    color: #ef4444;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    ring: 2px solid #667eea;
    border-color: transparent;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.1);
}

.form-help-text {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #6b7280;
}

/* Checkbox and Radio Styling */
.checkbox-group,
.radio-group {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
}

.checkbox-input,
.radio-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    margin-right: 0.75rem;
}

.checkbox-label,
.radio-label {
    font-size: 0.95rem;
    color: #374151;
    cursor: pointer;
}

/* Info Boxes */
.info-box {
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.info-box-blue {
    background-color: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e3a8a;
}

.info-box-yellow {
    background-color: #fefce8;
    border-left: 4px solid #eab308;
    color: #713f12;
}

.info-box-green {
    background-color: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #15803d;
}

/* Step 3 - Plan Grid */
.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.plan-card-wrapper {
    cursor: pointer;
}

.plan-card-wrapper input[type="radio"] {
    display: none;
}

.plan-card-content {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.plan-price-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.plan-name {
    font-size: 1rem;
    font-weight: 700;
    color: #1f2937;
}

.plan-price {
    font-size: 1.5rem;
    font-weight: 700;
}

.plan-price-period {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: normal;
}

.plan-limits {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Step 4 - Role Selection */
.role-card-wrapper {
    cursor: pointer;
    margin-bottom: 1rem;
}

.role-card-wrapper input[type="radio"] {
    display: none;
}

.role-card-content {
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-start;
}

.role-info {
    flex: 1;
}

.role-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.375rem;
}

.role-description {
    font-size: 0.875rem;
    color: #4b5563;
}

.role-badge {
    background-color: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    margin-left: 1rem;
}

/* Admin Email Input */
.admin-email-box {
    background-color: #fefce8;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.admin-email-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.75rem;
    display: block;
}

.admin-email-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

.admin-email-help {
    font-size: 0.75rem;
    color: #92400e;
    margin-top: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .onboarding-card {
        padding: 1.5rem;
    }

    .onboarding-title {
        font-size: 1.5rem;
    }

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

    .nav-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
    }

    .plan-price-header {
        flex-direction: column;
    }

    .plan-price {
        margin-top: 0.75rem;
    }

    .role-card-content {
        flex-direction: column;
    }

    .role-badge {
        margin-left: 0;
        margin-top: 0.75rem;
    }
}

/* Loading State */
.btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* Accessibility */
.form-input:focus,
.form-select:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .onboarding-wrapper {
        background: linear-gradient(135deg, #434343 0%, #000000 100%);
    }

    .onboarding-card {
        background-color: #1f2937;
        color: #f3f4f6;
    }

    .onboarding-title {
        color: #f3f4f6;
    }

    .onboarding-subtitle {
        color: #d1d5db;
    }

    .form-input,
    .form-select {
        background-color: #374151;
        border-color: #4b5563;
        color: #f3f4f6;
    }

    .form-input:focus,
    .form-select:focus {
        border-color: #667eea;
    }

    .form-label {
        color: #e5e7eb;
    }

    .form-help-text {
        color: #9ca3af;
    }
}
