/* ============================================
   3D Print Service — Enhanced Wizard v2 Styles
   ============================================ */

/* ===== WIZARD PROGRESS BAR ===== */
.ps-wizard-progress {
    margin-bottom: 32px;
}
.ps-progress-track {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}
.ps-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #34d399, #8b5cf6);
    border-radius: 2px;
    transition: width 0.5s ease;
}
.ps-steps-labels {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}
.ps-step-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: #6b6b7b;
    transition: color 0.3s;
    text-align: center;
    flex: 1;
}
.ps-step-label.active {
    color: #a78bfa;
    font-weight: 600;
}
.ps-step-label.done {
    color: #22c55e;
}
@media (max-width: 520px) {
    .ps-steps-labels { gap: 2px; }
    .ps-step-label { font-size: 0.6rem; }
}

/* ===== STEP TRANSITIONS ===== */
.ps-step {
    display: none;
    animation: psStepIn 0.35s ease;
}
.ps-step.active {
    display: block;
}
@keyframes psStepIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== STEP DESCRIPTION ===== */
.ps-step-desc {
    color: #8a8aa0;
    font-size: 0.9rem;
    margin: -12px 0 20px;
    line-height: 1.5;
}

/* ===== ENHANCED DROPZONE ===== */
.ps-dropzone {
    border: 2px dashed rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    background: rgba(255,255,255,0.02);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.ps-dropzone:hover {
    border-color: rgba(139,92,246,0.4);
    background: rgba(139,92,246,0.03);
}
.ps-dropzone.dragover {
    border-color: #34d399;
    background: rgba(52,211,153,0.04);
    box-shadow: 0 0 40px rgba(52,211,153,0.08);
}
.ps-dropzone-inner {
    position: relative;
    z-index: 2;
}
.ps-upload-icon {
    color: #8b5cf6;
    margin-bottom: 16px;
    opacity: 0.8;
}
.ps-dropzone-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e0e0f0;
    margin: 0 0 4px;
}
.ps-dropzone-sub {
    font-size: 0.9rem;
    color: #8a8aa0;
    margin: 0 0 16px;
}
.ps-browse {
    color: #a78bfa;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ===== FILE BADGES ===== */
.ps-file-badges {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 14px;
    flex-wrap: wrap;
}
.ps-file-badge {
    font-size: 0.68rem;
    font-weight: 600;
    color: #c4b5fd;
    background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.2);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

/* ===== ANALYSIS FEEDBACK ===== */
.ps-analysis-feedback {
    margin-top: 20px;
    padding: 18px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    animation: psFadeIn 0.4s ease;
}
@keyframes psFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.ps-file-info {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ps-file-icon {
    font-size: 2rem;
    flex-shrink: 0;
}
.ps-file-name {
    font-weight: 600;
    color: #f0f0f8;
    font-size: 0.92rem;
    word-break: break-all;
}
.ps-file-meta {
    font-size: 0.78rem;
    color: #8888a0;
    margin-top: 3px;
}
.ps-analysis-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}
.ps-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.ps-status-dot.uploading {
    background: #8b5cf6;
    animation: psPulse 1.2s infinite;
}
.ps-status-dot.done {
    background: #22c55e;
}
.ps-status-dot.slicing {
    background: #f59e0b;
    animation: psPulse 1.2s infinite;
}
@keyframes psPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.ps-status-text {
    font-size: 0.88rem;
    color: #c4b5fd;
    font-weight: 500;
}
.ps-analysis-sub {
    font-size: 0.78rem;
    color: #6b6b7b;
    margin-top: 6px;
    padding-left: 20px;
}

/* ===== MATERIAL GRID ===== */
.ps-materials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.ps-material-card {
    display: block;
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 18px;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.ps-material-card:hover {
    border-color: rgba(139,92,246,0.3);
    background: rgba(139,92,246,0.04);
    transform: translateY(-2px);
}
.ps-material-card.selected {
    border-color: #8b5cf6;
    background: rgba(139,92,246,0.08);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.1);
}
.ps-mat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.ps-mat-color {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid rgba(255,255,255,0.15);
    display: block;
}
.ps-mat-tech {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #22c55e;
    background: rgba(34,197,94,0.12);
    padding: 3px 8px;
    border-radius: 4px;
}
.ps-mat-name {
    font-weight: 600;
    color: #f0f0f8;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.ps-mat-desc {
    font-size: 0.78rem;
    color: #8a8aa0;
    line-height: 1.4;
    margin-bottom: 8px;
}
.ps-mat-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a78bfa;
    font-family: 'Space Grotesk', monospace;
}
.ps-mat-commercial {
    font-size: 0.72rem;
    color: #f59e0b;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===== FINISHING GRID ===== */
.ps-finishing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.ps-finish-card {
    display: block;
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px 16px;
    background: rgba(255,255,255,0.02);
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.ps-finish-card:hover {
    border-color: rgba(52,211,153,0.3);
    background: rgba(52,211,153,0.04);
}
.ps-finish-card.selected {
    border-color: #34d399;
    background: rgba(52,211,153,0.08);
    box-shadow: 0 0 0 3px rgba(52,211,153,0.1);
}
.ps-finish-card input {
    position: absolute;
    opacity: 0;
}
.ps-finish-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.ps-finish-name {
    font-weight: 600;
    color: #e0e0f0;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.ps-finish-desc {
    font-size: 0.72rem;
    color: #8a8aa0;
    line-height: 1.4;
    margin-bottom: 10px;
}
.ps-finish-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: #34d399;
    font-family: 'Space Grotesk', monospace;
}

/* ===== PRICE CARD ===== */
.ps-price-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.ps-price-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ps-price-model {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #e0e0f0;
    font-size: 0.9rem;
}
.ps-price-model-icon {
    font-size: 1.2rem;
}
.ps-price-volume {
    font-size: 0.78rem;
    color: #8a8aa0;
    background: rgba(255,255,255,0.04);
    padding: 4px 12px;
    border-radius: 20px;
}
.ps-price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ps-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    font-size: 0.85rem;
}
.ps-price-label {
    color: #a0a0b0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ps-price-label small {
    font-size: 0.72rem;
    color: #6b6b7b;
}
.ps-price-value {
    color: #e0e0f0;
    font-weight: 500;
    font-family: 'Space Grotesk', monospace;
    text-align: right;
}
.ps-price-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 8px 0;
}
.ps-price-subtotal .ps-price-value {
    font-weight: 600;
    color: #f0f0f8;
}
.ps-price-total {
    padding-top: 12px;
    border-top: 2px solid rgba(255,255,255,0.12);
}
.ps-price-total .ps-price-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e0e0f0;
}
.ps-price-total .ps-price-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #34d399;
}
.ps-price-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px 16px;
    background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.15);
    border-radius: 8px;
    font-size: 0.78rem;
    color: #f59e0b;
}
.ps-price-note svg {
    flex-shrink: 0;
    color: #f59e0b;
}

/* ===== ORDER CHOICES ===== */
.ps-order-choices {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.ps-order-choice {
    flex: 1;
    min-width: 240px;
    text-decoration: none;
}
.ps-choice-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 28px 20px;
    border-radius: 14px;
    border: 2px solid;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    font-family: inherit;
}
.ps-choice-buy {
    border-color: #34d399;
    color: #34d399;
    background: rgba(52,211,153,0.06);
}
.ps-choice-buy:hover {
    background: rgba(52,211,153,0.12);
    transform: translateY(-2px);
}
.ps-choice-quote {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139,92,246,0.06);
}
.ps-choice-quote:hover {
    background: rgba(139,92,246,0.12);
    transform: translateY(-2px);
}
.ps-choice-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}
.ps-choice-title {
    font-size: 1.05rem;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}
.ps-choice-desc {
    font-size: 0.78rem;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1.4;
}

/* ===== STEP NAVIGATION ===== */
.ps-step-nav {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.ps-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}
.ps-btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
}
.ps-btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed, #5558e3);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(139,92,246,0.3);
}
.ps-btn-ghost {
    background: rgba(255,255,255,0.05);
    color: #a0a0b0;
    border: 1px solid rgba(255,255,255,0.1);
}
.ps-btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    color: #e0e0f0;
}

/* ===== FILE INPUT FIX ===== */
#ps-file-input {
    position: absolute !important;
    top: 0; left: 0; width: 100% !important; height: 100% !important;
    opacity: 0 !important; cursor: pointer !important;
    z-index: 10 !important; display: block !important;
    margin: 0 !important; padding: 0 !important; border: 0 !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 520px) {
    .ps-materials-grid { grid-template-columns: 1fr; }
    .ps-finishing-grid { grid-template-columns: 1fr; }
    .ps-dropzone { padding: 32px 20px; }
    .ps-price-card { padding: 16px; }
    .ps-order-choices { flex-direction: column; }
    .ps-order-choice { min-width: auto; }
    .ps-step-nav { flex-direction: column; }
    .ps-step-nav .ps-btn { width: 100%; text-align: center; }
}
