/* Wizard Specific Styles */

/* Header modifications for wizard */
.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.back-to-home {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.back-to-home:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--accent);
}

.back-arrow {
    font-size: 1.1rem;
}

@media (max-width: 480px) {
    .back-to-home .back-text {
        display: none;
    }
    
    .back-to-home {
        padding: 0.5rem 0.75rem;
    }
    
    .header-left {
        gap: 0.75rem;
    }
}

.wizard-main {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.wizard-step {
    display: none;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

.step-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 3rem;
}

/* Titles */
.wizard-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.wizard-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 0.5rem 0;
    margin-bottom: 1.5rem;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: var(--accent);
}

/* Initial Choice Buttons */
.initial-choice {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.choice-btn {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.choice-btn:hover {
    border-color: var(--accent);
    background: rgba(0, 168, 255, 0.05);
    transform: translateY(-2px);
}

.choice-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.choice-yes .choice-icon {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.choice-no .choice-icon {
    background: rgba(0, 168, 255, 0.2);
    color: var(--accent);
}

.choice-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.choice-text strong {
    font-size: 1.1rem;
    color: var(--text-primary);
}

.choice-text small {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

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

.unit-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.unit-card:hover {
    border-color: var(--accent);
    background: rgba(0, 168, 255, 0.05);
    transform: translateY(-4px);
}

.unit-image {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.5rem;
}

.unit-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.unit-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.unit-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Model Grid */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.model-grid.with-images {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.model-grid.small {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

.model-card {
    background: rgba(255, 255, 255, 0.02);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

/* Model Image in subcategories */
.model-image {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 0.75rem;
    overflow: hidden;
}

.model-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.model-card:hover {
    border-color: var(--accent);
    background: rgba(0, 168, 255, 0.05);
    transform: translateY(-3px);
}

.model-card.compact {
    text-align: center;
    padding: 1.25rem;
}

.model-card.compact h3 {
    margin: 0;
}

.model-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.model-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.model-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    background: rgba(0, 168, 255, 0.2);
    color: var(--accent);
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.model-badge.large {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.model-specs {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.spec {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.spec-label {
    color: var(--text-secondary);
}

.spec-value {
    color: var(--text-primary);
    font-weight: 500;
}

.model-note {
    font-size: 0.85rem;
    color: var(--accent);
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.model-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Help Box */
.help-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(255, 193, 7, 0.08);
    border: 1px solid rgba(255, 193, 7, 0.2);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.help-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.help-content strong {
    display: block;
    color: #ffc107;
    margin-bottom: 0.25rem;
}

.help-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Info Box */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(0, 168, 255, 0.08);
    border: 1px solid rgba(0, 168, 255, 0.2);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.info-box.success {
    background: rgba(76, 175, 80, 0.08);
    border-color: rgba(76, 175, 80, 0.2);
}

.info-box.success .info-icon {
    color: #4caf50;
}

.info-box.success strong {
    color: #4caf50;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.info-content strong {
    display: block;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.info-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* Not Sure Box */
.not-sure-box {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.not-sure-box p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.help-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

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

/* Result Card */
.result-card {
    background: linear-gradient(135deg, rgba(0, 168, 255, 0.1), rgba(0, 168, 255, 0.02));
    border: 2px solid rgba(0, 168, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.result-card.large {
    padding: 2.5rem;
}

.result-card h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.filter-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.filter-code {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-btn:hover {
    background: #0095e0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.3);
}

.buy-btn.large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.buy-btn .arrow {
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.buy-btn:hover .arrow {
    transform: translateX(4px);
}

/* Result Success */
.result-success {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border-radius: 50%;
    font-size: 2rem;
}

/* Additional Info */
.additional-info {
    margin-top: 2rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    text-align: center;
}

.additional-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Footer */
.wizard-footer {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: auto;
}

.wizard-footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.wizard-footer a {
    color: var(--accent);
    text-decoration: none;
}

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

/* Responsive */
@media (max-width: 768px) {
    .wizard-main {
        padding: 1rem 0;
    }
    
    .step-content {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .initial-choice {
        grid-template-columns: 1fr;
    }
    
    .choice-btn {
        padding: 1.25rem;
    }
    
    .unit-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .unit-image {
        height: 80px;
    }
    
    .model-grid {
        grid-template-columns: 1fr;
    }
    
    .model-grid.small {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .help-box,
    .info-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .unit-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .unit-card {
        padding: 1rem;
    }
    
    .unit-image {
        height: 70px;
    }
    
    .wizard-title {
        font-size: 1.5rem;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .choice-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}
