/* CodeDNA - Project Wizard Styles */

:root {
    --wizard-neon-green: #00FF66;
    --wizard-black: #000000;
    --wizard-dark: #0A0A0A;
    --wizard-darker: #1a1a1a;
    --wizard-glow: 0 0 10px var(--wizard-neon-green),
                    0 0 20px var(--wizard-neon-green),
                    0 0 30px var(--wizard-neon-green);
}

/* Modal Base */
.wizard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: none;
}

.wizard-modal.active {
    display: flex;
}

.wizard-modal * {
    cursor: none !important;
}

.wizard-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.wizard-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    background: var(--wizard-darker);
    border: 2px solid var(--wizard-neon-green);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--wizard-glow);
    overflow-y: auto;
    animation: wizardSlideIn 0.4s ease-out;
}

@keyframes wizardSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button */
.wizard-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 102, 0.1);
    border: 2px solid var(--wizard-neon-green);
    border-radius: 50%;
    color: var(--wizard-neon-green);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.wizard-close:hover {
    background: rgba(0, 255, 102, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.5);
    transform: rotate(90deg);
}

/* Progress Bar */
.wizard-progress {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 255, 102, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--wizard-neon-green);
    border-radius: 10px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px var(--wizard-neon-green);
}

.progress-text {
    text-align: center;
    color: var(--wizard-neon-green);
    font-size: 14px;
    font-weight: 600;
}

/* Wizard Content */
.wizard-content {
    min-height: 400px;
    margin-bottom: 30px;
}

.wizard-content.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.wizard-step {
    color: #ffffff;
}

.step-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 32px;
    color: var(--wizard-neon-green);
    text-shadow: 0 0 20px var(--wizard-neon-green);
    margin-bottom: 10px;
}

.step-subtitle {
    color: #cccccc;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Step 1 - Project Types */
.project-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.project-type-card {
    background: rgba(0, 255, 102, 0.05);
    border: 2px solid rgba(0, 255, 102, 0.3);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-type-card:hover {
    border-color: var(--wizard-neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
    transform: translateY(-5px);
}

.project-type-card.selected {
    background: rgba(0, 255, 102, 0.15);
    border-color: var(--wizard-neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.5);
}

.project-type-card .card-icon {
    font-size: 48px;
    color: var(--wizard-neon-green);
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--wizard-neon-green);
}

.project-type-card h3 {
    font-family: 'Exo 2', sans-serif;
    font-size: 18px;
    color: var(--wizard-neon-green);
    margin-bottom: 8px;
}

.project-type-card p {
    color: #cccccc;
    font-size: 14px;
}

/* Step 2 - Budget & Timeline */
.form-section {
    margin-bottom: 35px;
}

.form-label {
    display: block;
    color: var(--wizard-neon-green);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.form-label i {
    margin-right: 8px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}

.option-card {
    background: rgba(0, 255, 102, 0.05);
    border: 2px solid rgba(0, 255, 102, 0.3);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-card:hover {
    border-color: var(--wizard-neon-green);
    box-shadow: 0 0 15px rgba(0, 255, 102, 0.3);
}

.option-card.selected {
    background: rgba(0, 255, 102, 0.15);
    border-color: var(--wizard-neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
}

.option-label {
    color: var(--wizard-neon-green);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.option-desc {
    color: #999;
    font-size: 13px;
}

/* Step 3 - Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.service-card {
    background: rgba(0, 255, 102, 0.05);
    border: 2px solid rgba(0, 255, 102, 0.3);
    border-radius: 15px;
    padding: 25px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    position: relative;
    min-height: 120px;
}

.service-card:hover {
    border-color: var(--wizard-neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
    transform: translateY(-5px);
}

.service-card.selected {
    background: rgba(0, 255, 102, 0.15);
    border-color: var(--wizard-neon-green);
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.5);
}

.service-card i {
    font-size: 36px;
    color: var(--wizard-neon-green);
    text-shadow: 0 0 10px var(--wizard-neon-green);
}

.service-card span {
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
}

.service-card .check-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--wizard-neon-green);
    color: var(--wizard-black);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 0 15px var(--wizard-neon-green);
}

.service-card.selected .check-icon {
    display: flex;
    animation: checkPop 0.3s ease;
}

@keyframes checkPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Step 4 - Description */
.wizard-textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 102, 0.3);
    border-radius: 10px;
    padding: 15px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    transition: all 0.3s ease;
}

.wizard-textarea:focus {
    outline: none;
    border-color: var(--wizard-neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
}

.char-counter {
    text-align: right;
    color: #888;
    font-size: 13px;
    margin-top: 8px;
}

.char-counter span {
    color: var(--wizard-neon-green);
    font-weight: 600;
}

/* Step 5 - Contact Info */
.wizard-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(0, 255, 102, 0.3);
    border-radius: 10px;
    padding: 15px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

.wizard-input:focus {
    outline: none;
    border-color: var(--wizard-neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
}

.wizard-input::placeholder {
    color: #666;
}

/* Navigation Buttons */
.wizard-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding-top: 20px;
    border-top: 2px solid rgba(0, 255, 102, 0.2);
}

.wizard-btn {
    padding: 15px 35px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
}

.wizard-btn-primary {
    background: var(--wizard-neon-green);
    color: var(--wizard-black);
    box-shadow: 0 0 20px var(--wizard-neon-green);
    margin-left: auto;
}

.wizard-btn-primary:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--wizard-neon-green);
}

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

.wizard-btn-secondary {
    background: rgba(0, 255, 102, 0.1);
    color: var(--wizard-neon-green);
    border: 2px solid var(--wizard-neon-green);
}

.wizard-btn-secondary:hover {
    background: rgba(0, 255, 102, 0.2);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
}

/* Success Screen */
.wizard-success {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    font-size: 80px;
    color: var(--wizard-neon-green);
    margin-bottom: 30px;
    animation: successPulse 1s ease-in-out;
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 20px var(--wizard-neon-green);
    }
    50% {
        transform: scale(1.2);
        text-shadow: 0 0 40px var(--wizard-neon-green);
    }
}

.wizard-success h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 36px;
    color: var(--wizard-neon-green);
    margin-bottom: 20px;
}

.wizard-success p {
    color: #cccccc;
    font-size: 18px;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Error Message */
.wizard-error {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 15px;
    color: #ff6666;
    margin-bottom: 20px;
    display: none;
    animation: errorShake 0.5s ease;
}

@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.wizard-error i {
    margin-right: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-container {
        width: 95%;
        padding: 30px 20px;
        max-height: 95vh;
    }

    .step-title {
        font-size: 24px;
    }

    .project-types-grid {
        grid-template-columns: 1fr;
    }

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

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

    .wizard-navigation {
        flex-direction: column;
    }

    .wizard-btn-primary {
        margin-left: 0;
        order: -1;
    }
}

/* Scrollbar Styling */
.wizard-container::-webkit-scrollbar {
    width: 8px;
}

.wizard-container::-webkit-scrollbar-track {
    background: rgba(0, 255, 102, 0.1);
    border-radius: 10px;
}

.wizard-container::-webkit-scrollbar-thumb {
    background: var(--wizard-neon-green);
    border-radius: 10px;
}

.wizard-container::-webkit-scrollbar-thumb:hover {
    background: #00cc52;
}
