/* JCE Tools - Modern Professional Design */

:root {
    /* Color Palette - Modern & Professional */
    --bg-primary: #0a0e27;
    --bg-secondary: #1a1f3a;
    --bg-card: #252b48;
    --accent-primary: #fbbf24;
    --accent-secondary: #f59e0b;
    --accent-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);

    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --border-subtle: rgba(251, 191, 36, 0.1);
    --border-medium: rgba(251, 191, 36, 0.2);
    --border-strong: rgba(251, 191, 36, 0.4);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(251, 191, 36, 0.15);

    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Effect */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: backgroundMove 60s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Main Container */
.wizard-container {
    width: 100%;
    max-width: 800px;
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle);
    z-index: 1;
    animation: containerFadeIn 0.6s var(--transition-base);
}

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

/* Top Accent Bar */
.wizard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.5);
}

/* Header */
.wizard-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.wizard-header img {
    max-width: 100px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.3));
    transition: transform var(--transition-base);
}

.wizard-header img:hover {
    transform: scale(1.05) rotate(2deg);
}

.wizard-header h1 {
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

/* Progress Bar */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    position: relative;
    padding: 0 1rem;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 2px;
    width: 100%;
    background: var(--border-subtle);
    z-index: 1;
}

.progress-bar-line {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: 2px;
    background: var(--accent-gradient);
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    z-index: 2;
    width: 0;
    transition: width 0.5s var(--transition-base);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 3;
    text-align: center;
}

.progress-step-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition-base);
    position: relative;
}

.progress-step-dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: -1;
}

.progress-step.active .progress-step-dot {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    border-color: transparent;
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
    transform: scale(1.1);
}

.progress-step.active .progress-step-dot::before {
    opacity: 0.3;
}

.progress-step-label {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color var(--transition-base);
}

.progress-step.active .progress-step-label {
    color: var(--accent-primary);
}

/* Step Container */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: stepFadeIn 0.5s var(--transition-base);
}

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

.step-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

/* Selection Grid */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.selection-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-subtle);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.selection-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 0;
}

.selection-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-md);
}

.selection-card.selected {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2), var(--shadow-md);
}

.selection-card.selected::before {
    opacity: 0.05;
}

.selection-card > * {
    position: relative;
    z-index: 1;
}

.selection-card i {
    font-size: 3rem;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    transition: transform var(--transition-base);
}

.selection-card:hover i {
    transform: scale(1.1);
}

.selection-card h5 {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.selection-card p,
.selection-card .description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: all var(--transition-base);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.1);
    background: var(--bg-primary);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* Input Group (Quantity Selector) */
.input-group {
    display: flex;
    align-items: center;
    gap: 0;
}

.input-group input {
    text-align: center;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.input-group button {
    background: var(--bg-secondary);
    border: 2px solid var(--border-subtle);
    color: var(--accent-primary);
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.input-group button:first-child {
    border-radius: 12px 0 0 12px;
}

.input-group button:last-child {
    border-radius: 0 12px 12px 0;
}

.input-group button:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

/* Summary Card */
.summary {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-subtle);
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-item span:first-child {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.summary-item span:last-child {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.summary-total {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--border-medium);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-total span:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.summary-total span:last-child {
    font-size: 1.75rem;
    font-weight: 700;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
}

.btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform var(--transition-base);
}

.btn:hover::before {
    transform: translateX(0);
}

.btn-secondary {
    background: var(--bg-secondary);
    border: 2px solid var(--border-medium);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: var(--bg-primary);
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(251, 191, 36, 0.4);
    transform: translateY(-2px);
}

.btn:disabled {
    background: var(--bg-secondary);
    color: var(--text-muted);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.btn:disabled:hover {
    transform: none;
}

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

    .wizard-header h1 {
        font-size: 2rem;
    }

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

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

    .wizard-footer {
        flex-direction: column-reverse;
    }

    .btn {
        width: 100%;
    }

    .progress-step-dot {
        width: 32px;
        height: 32px;
    }

    .progress-step-label {
        font-size: 0.75rem;
    }
}

/* Loading State */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.btn.loading {
    pointer-events: none;
    animation: pulse 1.5s ease-in-out infinite;
}
