/* Mobile: horizontally scrollable packages row and tweaks */
.packages-row {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
}
.packages-row::-webkit-scrollbar {
    height: 6px;
}
.packages-row::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
.package-card-horizontal {
    scroll-snap-align: start;
}
@media (max-width: 768px) {
    .package-card-horizontal {
        min-width: 85%;
        max-width: 85%;
    }
}
@media (max-width: 480px) {
    .package-card-horizontal {
        min-width: 90%;
        max-width: 90%;
    }
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
    .budget-amount {
        font-size: 1rem;
    }
    .budget-remaining {
        font-size: 0.85rem;
    }
}
/* VR Equipment Configurator Styles */

/* Global Configurator Styles */
.configurator-main {
    padding-top: 0;
    padding-bottom: 0; /* sticky nav handles its own space */
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: relative; /* anchor for absolute nav footer at page end */
}

/* Configurator Footer */
.configurator-footer {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 0;
    position: relative;
    z-index: 99;
    margin-top: 80px; /* Account for fixed navbar */
}

.configurator-footer .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.configurator-footer .footer-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.configurator-footer .separator {
    color: #cbd5e1;
}

.configurator-footer .support-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.configurator-footer .support-link:hover {
    color: var(--secondary-color);
}

/* Progress Header */
.progress-header {
    position: static;
    background: var(--primary-color);
    border-bottom: 2px solid #e2e8f0;
    padding: 1.5rem 0 1.5rem; /* 24px top padding to create space above circles */
    z-index: 100;
    flex-shrink: 0;
    will-change: top;
}

/* Mobile: maintain sticky offset only */
@media (max-width: 768px) {
    .progress-header { top: var(--header-height); }
}

.progress-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.progress-tracker {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0; /* remove extra vertical space */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.progress-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    line-height: 1;
}

/* Budget Progress Bar */
.budget-progress-container {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-bottom: 2px solid #f59e0b;
    padding: 1rem 0;
    margin: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    max-height: 200px;
    opacity: 1;
    transform: translateY(0);
    animation: slideDown 0.4s ease-out;
}

.budget-progress-container.hidden {
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    visibility: hidden !important;
    transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease, padding 0.3s ease, visibility 0.3s ease !important;
}

@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
        transform: translateY(-20px);
        padding: 0;
    }
    to {
        max-height: 200px;
        opacity: 1;
        transform: translateY(0);
        padding: 1rem 0;
    }
}

.budget-progress {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

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

.budget-label {
    font-weight: 600;
    color: #92400e;
}

.budget-amount {
    font-weight: 700;
    color: #92400e;
    font-size: 1.1rem;
}

.budget-bar {
    width: 100%;
    height: 8px;
    background: #fbbf24;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.budget-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #ef4444 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.budget-remaining {
    text-align: center;
    font-weight: 600;
    color: #92400e;
    font-size: 0.9rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.progress-step.active .step-number {
    background: #fff;
    color: var(--primary-color);
    transform: none; /* disable growth */
}

.progress-step.completed .step-number {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid transparent;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.25rem; /* tighten spacing so circle sits lower */
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-label {
    font-size: 0.9rem;
    color: #fff;
    text-align: center;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #fff;
    font-weight: 600;
}

.progress-line {
    width: 50px;
    height: 2px;
    background: rgba(255,255,255,0.5);
    margin: 0 0.5rem;
    margin-top: -12px; /* pull line closer to circles without clipping */
    flex: 0 0 auto;
}

/* Main Content Layout */
.configurator-content {
    flex: 1;
    padding: 0; /* allow nav footer to overlap underlying footer */
    overflow-y: auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    min-height: calc(100vh - 240px);
}

.config-main {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: visible;
}

/* Step Content */
.config-step {
    display: none;
    animation: fadeIn 0.5s ease;
}

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

.config-step.validation-error {
    animation: shake 0.5s ease;
    border: 2px solid #ef4444;
    border-radius: 12px;
}

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

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

.step-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.step-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.step-note {
    color: #64748b;
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Headset Selection (Step 1) */
.headset-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.headset-brand {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.headset-brand:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.headset-brand.selected {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.headset-brand h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.headset-brand p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.headset-models {
    space-y: 1rem;
}

.model-option {
    margin-bottom: 1rem;
}

.model-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.model-option label {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
    position: relative;
}

.model-option label:hover {
    border-color: var(--primary-color);
    background: #f0f9ff;
}

/* Headset info badge */
.info-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    aspect-ratio: 1 / 1;
    flex: 0 0 32px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    line-height: 1;
    font-size: 14px;
}
.info-badge:hover { background: var(--secondary-color); }

.model-option input[type="checkbox"]:checked + label {
    border-color: var(--primary-color);
    background: #eff6ff;
    font-weight: 600;
    position: relative;
}

.model-option input[type="checkbox"]:checked + label::before {
    content: '✓';
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.model-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    text-align: left;
    min-width: 0; /* Allow text to wrap */
}

.model-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
    line-height: 1.3;
}

.model-desc {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.model-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    line-height: 1.3;
    text-align: right;
    flex-shrink: 0;
    margin-left: auto;
    align-self: flex-start;
    min-width: 120px;
}

.edu-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    color: #92400e;
    font-size: 0.9rem;
}

.model-image {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 0.5rem;
    overflow: hidden;
}

.model-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

/* Storage Selection (Step 2) */
.storage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.storage-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    transition: all 0.3s ease;
    height: 100%;
}

.storage-option.selected .storage-card {
    border-color: var(--primary-color);
    background: #eff6ff;
}

.storage-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.storage-card-header { display:flex; align-items:center; justify-content:space-between; gap:0.5rem; }
.ar-inline-btn {
    border:none;
    background: #7c3aed;
    color:#fff;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-weight: 700;
    cursor:pointer;
}
.ar-inline-btn:hover { background: #6d28d9; }

/* Theme the model-viewer AR button within the configurator modal */
#ar-model-viewer {
    --ar-button-background-color: #7c3aed;
    --ar-button-foreground-color: #ffffff;
}

.storage-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.capacity-table h4 {
    margin-bottom: 1rem;
    color: #1e293b;
    font-size: 1.1rem;
}

.capacity-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: inherit;
    text-align: left;
}

.capacity-btn:hover {
    border-color: var(--primary-color);
    background: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.capacity-btn.selected {
    border-color: var(--primary-color);
    background: #eff6ff;
    box-shadow: 0 0 0 1px var(--primary-color);
}

.capacity-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
}

.capacity-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.75rem;
}

.capacity-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    margin-left: 0.75rem;
}

.capacity-text {
    font-weight: 500;
    color: #1e293b;
}

.capacity-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.1rem;
    line-height: 1.2;
}

/* MDM Selection (Step 3) */
.mdm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.tier-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Small circular info badge in top-left of tier card */
#mhms-card .info-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 32px;
    height: 32px;
    cursor: pointer;
}
#mhms-card .info-badge:hover { background: var(--secondary-color); }

.tier-card.featured {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.required-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-select.required {
    background: #dc2626;
    border-color: #dc2626;
    color: white;
    cursor: not-allowed;
}

.tier-select.required:hover {
    background: #dc2626;
    border-color: #dc2626;
    transform: none;
}

.mdm-notice {
    text-align: center;
    padding: 1rem 2rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    margin-top: 2rem;
    color: #6b7280;
}

.mdm-notice i {
    margin-right: 0.5rem;
    color: #9ca3af;
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tier-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.tier-subtitle {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.tier-price {
    margin-bottom: 1.5rem;
}

.tier-price .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.tier-price .period {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 auto 0;
    text-align: left;
}

.tier-features li {
    padding: 0.5rem 0;
    color: #374151;
    position: relative;
    padding-left: 1.5rem;
}

.tier-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.tier-select {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tier-select:hover {
    background: var(--primary-color);
    color: white;
}

.tier-select.selected {
    background: var(--primary-color);
    color: white;
}

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

.arborxr-link {
    text-align: center;
    margin-top: 1.5rem;
}

.arborxr-link a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 500;
}

/* Software Selection (Step 4) */
.software-categories {
    margin-bottom: 2rem;
}

.category-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.category-tag {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
}

.category-tag.career { background: #f59e0b; }
.category-tag.architecture { background: #10b981; }
.category-tag.design { background: #3b82f6; }
.category-tag.skills { background: #8b5cf6; }
.category-tag.engineering { background: #ef4444; }

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.software-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    transition: all 0.3s ease;
}

.software-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.software-card.selected {
    border-color: var(--primary-color);
    background: #eff6ff;
}

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

.software-header h4 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
}

.category-indicators {
    display: flex;
    gap: 0.25rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
}

.indicator.active {
    background: var(--primary-color);
}

.software-card p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.software-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

/* Keep long notes and the trailing checkbox inside the card */
.software-controls .installation-note {
    grid-column: 1 / -1;
}
.software-controls .checkbox-label:last-child {
    grid-column: 1 / -1;
}
/* Right-align quantity in wide layouts */
.software-controls .license-quantity {
    justify-self: end;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .software-controls {
        grid-template-columns: 1fr;
    }
    .software-controls .license-quantity {
        justify-self: start;
    }
}

.checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
    max-width: 100%;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.license-quantity {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 100%;
}

.quantity-input {
    width: 60px;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-align: center;
}

.trial-badge {
    background: #dcfce7;
    color: #166534;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.software-note {
    margin-top: 2rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #3b82f6;
    border-radius: 8px;
    text-align: center;
    color: #1e40af;
}

/* Setup Support (Step 5) */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.package-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    transition: all 0.3s ease;
    position: relative;
    min-height: 450px;
    max-height: none; /* allow contents to grow */
    display: flex;
    flex-direction: column;
    overflow: visible; /* don't clip badges or select row */
    margin-bottom: 1rem;
}

.package-card.premium {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.required-badge, .premium-badge {
    position: absolute;
    top: -12px;
    right: 1rem;
    padding: 0.75rem 1rem 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.required-badge {
    background: var(--error-color);
}

.premium-badge {
    background: #f59e0b;
}

.package-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.package-features {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow: visible;
}

.package-features li {
    padding: 0.5rem 0;
    color: #374151;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.4;
}

.package-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.package-price {
    margin: 1.5rem 0;
    text-align: center;
}

.package-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.package-price .period {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.package-select {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-color);
    justify-content: center;
    margin-top: auto;
}

.package-select input[type="checkbox"] {
    display: none;
}

.package-select .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.package-select input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
}

.package-select input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Add-ons (Step 6) */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.addon-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
    transition: all 0.3s ease;
    text-align: center;
}

.addon-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.addon-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.addon-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.addon-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.addon-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #f8fafc;
    color: var(--primary-color);
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
}

.qty-input {
    width: 50px;
    height: 32px;
    border: none;
    text-align: center;
    font-weight: 500;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.toggle-switch input[type="checkbox"]:checked + .slider {
    background-color: var(--primary-color);
}

.toggle-switch input[type="checkbox"]:checked + .slider:before {
    transform: translateX(26px);
}

.addon-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Review Section (Step 7) */
.order-review {
    max-width: 800px;
    margin: 0 auto;
}

.review-section {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    background: white;
    overflow: hidden;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.review-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    margin: 0;
    font-size: 1.2rem;
}

.edit-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.edit-btn:hover {
    background: var(--primary-color);
    color: white;
}

.review-content {
    padding: 1.5rem;
    color: #374151;
    line-height: 1.6;
}

.pricing-summary {
    margin-top: 2rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.pricing-breakdown {
    max-width: 400px;
    margin: 0 auto;
}

.price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0;
    color: #374151;
}

.price-line.discount {
    color: var(--success-color);
}

.price-line.total {
    border-top: 2px solid #d1d5db;
    margin-top: 1rem;
    padding-top: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.order-actions {
    margin-top: 2rem;
    text-align: center;
}

.terms-checkbox {
    margin-bottom: 1.5rem;
}

.terms-checkbox label {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    color: #374151;
    flex-wrap: wrap;
    text-align: left;
    max-width: 100%;
}

.terms-checkbox input[type="checkbox"] {
    display: none;
}

.terms-checkbox .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.terms-checkbox input[type="checkbox"]:checked + .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.terms-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons button {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Disabled state for secondary buttons (e.g., Export PDF) */
.btn-secondary:disabled {
    background: #e5e7eb !important;
    border-color: #e5e7eb !important;
    color: #9ca3af !important;
    cursor: not-allowed;
}

.btn-primary {
    border: 2px solid var(--primary-color);
    background: var(--primary-color);
    color: white !important;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-primary:disabled {
    background: #d1d5db;
    border-color: #d1d5db;
    cursor: not-allowed;
}

/* Customer Details Styling */
.customer-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    color: #475569;
    min-width: 130px;
    flex-shrink: 0;
}

.detail-row .value {
    color: #1e293b;
    text-align: right;
    flex: 1;
    font-weight: 500;
}

/* Package Details Styling */
.package-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.package-type h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.package-description {
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.package-price-large {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 2px solid var(--primary-color);
}

.config-summary {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    line-height: 1.8;
}

.config-summary strong {
    color: var(--primary-color);
}

.package-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #e0f2fe;
    padding: 1rem;
    border-radius: 8px;
    color: #0369a1;
    font-size: 0.9rem;
    border-left: 4px solid #0284c7;
}

.package-note i {
    color: #0284c7;
    font-size: 1.1rem;
}

/* Configuration Sidebar */
.config-sidebar {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.config-sidebar::-webkit-scrollbar {
    width: 6px;
}

.config-sidebar::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

.config-sidebar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.config-sidebar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.config-sidebar > * {
    flex-shrink: 0;
}

/* Price Sidebar (legacy support) */
.price-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    min-height: 0;
}

.price-widget h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.price-widget .price-breakdown {
    margin-bottom: 1rem;
}

.price-widget .price-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.95rem;
}

.price-widget .price-line.total {
    border-top: 2px solid #e2e8f0;
    margin-top: 1rem;
    padding-top: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.price-widget hr {
    border: none;
    height: 1px;
    background: #e2e8f0;
    margin: 1rem 0;
}

.device-count {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.9rem;
}

.device-count span {
    font-weight: 600;
    color: var(--primary-color);
}

/* CUSTOMER INFORMATION STEP */
.customer-info-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
    min-height: 0;
    overflow: visible;
}

.info-section-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-section-full {
    width: 100%;
}

@media (max-width: 768px) {
    .info-section-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* PACKAGE SELECTION STEP */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    min-height: 0;
    overflow: visible;
}

.custom-configurator {
    white-space: nowrap;
    overflow: visible;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 2rem;
    flex-shrink: 0;
}

/* StarBorder Effect for Custom Build Button */
.star-border-container {
    display: inline-block;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    width: auto;
    max-width: 300px;
    margin: 2rem auto 3.5rem; /* lift away from base bar */
    padding: 1rem;
}

.border-gradient-bottom {
    position: absolute;
    width: 130%;
    height: 45%;
    opacity: 0.6;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    animation: star-movement-bottom linear infinite alternate;
    z-index: 0;
    filter: blur(4px);
    background: radial-gradient(circle at center bottom, rgba(249, 115, 22, 0) 0%, rgba(249, 115, 22, 0.6) 60%, rgba(249, 115, 22, 0) 100%) !important;
}

.border-gradient-top {
    position: absolute;
    opacity: 0.6;
    width: 130%;
    height: 45%;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    animation: star-movement-top linear infinite alternate;
    z-index: 0;
    filter: blur(4px);
    background: radial-gradient(circle at center top, rgba(249, 115, 22, 0) 0%, rgba(249, 115, 22, 0.6) 60%, rgba(249, 115, 22, 0) 100%) !important;
}

.inner-content {
    position: relative;
    border: 2px solid #f97316;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    color: white;
    font-size: 16px;
    text-align: center;
    padding: 18px 32px;
    border-radius: 20px;
    z-index: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.35), inset 0 0 12px rgba(249, 115, 22, 0.1);
    white-space: nowrap;
}

.inner-content:hover {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.6), 0 8px 25px rgba(249, 115, 22, 0.4), inset 0 0 30px rgba(249, 115, 22, 0.2);
    border-color: #fb923c;
}

@keyframes star-movement-bottom {
    0% {
        transform: translate(0%, 0%);
        opacity: 1;
    }
    100% {
        transform: translate(-100%, 0%);
        opacity: 0;
    }
}

@keyframes star-movement-top {
    0% {
        transform: translate(0%, 0%);
        opacity: 1;
    }
    100% {
        transform: translate(100%, 0%);
        opacity: 0;
    }
}

.package-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.package-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    flex: 1;
    overflow: visible;
}

.package-content .package-features {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    overflow: visible;
}

.feature-tag {
    background: #e2e8f0;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #cbd5e1;
}

/* Category Filter Pills */
.category-legend {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tag {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: #f1f5f9;
    color: #64748b;
}

.category-tag.career {
    background: #fef3c7;
    color: #92400e;
}

.category-tag.architecture {
    background: #dcfce7;
    color: #166534;
}

.category-tag.design {
    background: #dbeafe;
    color: #1e40af;
}

.category-tag.skills {
    background: #f3e8ff;
    color: #7c3aed;
}

.category-tag.engineering {
    background: #fef2f2;
    color: #dc2626;
}

.category-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-tag.active {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.category-tag.career.active {
    border-color: #92400e;
    box-shadow: 0 4px 12px rgba(146, 64, 14, 0.3);
}

.category-tag.architecture.active {
    border-color: #166534;
    box-shadow: 0 4px 12px rgba(22, 101, 52, 0.3);
}

.category-tag.design.active {
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

.category-tag.skills.active {
    border-color: #7c3aed;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.category-tag.engineering.active {
    border-color: #dc2626;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Add-ons Grid */
.addons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.addon-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.addon-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.addon-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.addon-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.addon-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.quantity-selector span {
    margin-right: 0.5rem;
    color: #374151;
    font-weight: 500;
}

.addon-quantity {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    text-align: center;
}

.addon-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

/* Payment Options */
.payment-options {
    margin: 2rem 0;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    background: #f8fafc;
}

.payment-options h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.3rem;
}

.payment-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.payment-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.payment-card.disabled {
    opacity: 0.6;
    filter: grayscale(0.2);
}

.payment-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.payment-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.payment-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.payment-card p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.payment-note {
    font-size: 0.9rem;
    color: #374151;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
    background: #f1f5f9;
    border-radius: 0.5rem;
}

.payment-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: auto;
}

.payment-btn.card-btn {
    background: var(--success-color);
    color: white;
}

.payment-btn.card-btn:hover {
    background: #059669;
}

.payment-card.disabled .payment-btn.card-btn {
    background: #9ca3af;
    cursor: not-allowed;
}

.payment-card.disabled .payment-btn.card-btn:hover {
    background: #9ca3af;
}

.payment-btn.invoice-btn {
    background: var(--primary-color);
    color: white;
}

.payment-btn.invoice-btn:hover {
    background: var(--secondary-color);
}

/* Disabled state for payment buttons */
.payment-btn:disabled {
    background: #e5e7eb !important;
    color: #9ca3af !important;
    opacity: 1 !important;
    cursor: not-allowed;
    filter: none !important;
}

.payment-btn.invoice-btn:disabled { background: #e5e7eb !important; color: #9ca3af !important; }
.payment-btn.card-btn:disabled { background: #e5e7eb !important; color: #9ca3af !important; }
.payment-btn:disabled:hover { background: #e5e7eb !important; color: #9ca3af !important; }

@media (max-width: 768px) {
    .payment-cards {
        grid-template-columns: 1fr;
    }
}

.package-badge {
    position: absolute;
    top: 0.5rem; /* keep inside card */
    right: 0.75rem;
    background: #059669;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.info-section {
    background: white;
    padding: 1.25rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    min-height: 0;
    overflow: visible;
    height: fit-content;
}

.info-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Newsletter opt-in layout and checkbox overrides */
.newsletter-opt-in input[type="checkbox"] {
    width: auto;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.newsletter-opt-in input[type="checkbox"]:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border: 0;
    box-shadow: none;
}

.newsletter-opt-in {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.newsletter-opt-in label {
    margin-bottom: 0;
}

.budget-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.budget-inputs input {
    flex: 1;
}

.budget-inputs span {
    color: #64748b;
    font-weight: 500;
}

.use-case-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.use-case-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.use-case-option:hover {
    background-color: #f8fafc;
    border-color: var(--primary-color);
}

.use-case-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.use-case-option .checkmark {
    position: relative;
    height: 18px;
    width: 18px;
    background-color: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 3px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.use-case-option input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.use-case-option input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.section-note {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* CONFIGURATION CHOICE */
.configuration-choice {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    text-align: center;
}

.configuration-choice h3 {
    color: #1e293b;
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.choice-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.choice-card {
    padding: 2rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.choice-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.choice-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.choice-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* FLOATING ICONS */
.support-icon {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
}

.support-icon a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 2rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
    transition: all 0.3s ease;
}

.support-icon a:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
}

.support-icon .icon-label {
    font-weight: 500;
    font-size: 0.9rem;
}

.basket-icon {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.basket-icon button {
    position: relative;
    background: #fb923c;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(251, 146, 60, 0.3);
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.basket-icon button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
    color: white;
}

.basket-icon .fas {
    font-size: 1.5rem;
}

.basket-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #dc2626;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

/* PACKAGE MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 1rem;
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h2 {
    color: #1e293b;
    margin: 0;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #f8fafc;
    color: #1e293b;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

/* New horizontal package layout */
.packages-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    justify-content: center;
    flex-wrap: nowrap;
    /* constrain to container width to avoid oversized gutters on desktop */
    width: auto;
    margin-left: 0;
    margin-right: 0;
}

/* Add horizontal padding for swipe area */
.packages-row { padding-left: 0.75rem; padding-right: 0.75rem; }

/* Ensure hover lift doesn't visually tuck under the step header in Step 1 */
.predefined-packages .packages-row { padding-top: 0.5rem; }

.package-card-horizontal {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: visible; /* allow hover lift and badge to show */
    /* natural height so content (bullets/details) are fully visible */
    min-height: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 320px;
    min-width: 260px;
    /* avoid transform scaling which created large visual gutters */
    transform-origin: center top;
    transform: none;
}

/* Header row inside package card */
.package-card-horizontal .package-header-horizontal {
    display: flex;
    flex-direction: column; /* stack title, price, info vertically */
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* Tier image (rounded square) displayed at top of each package card */
.package-tier-image {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.package-tier-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.package-card-horizontal .package-header-horizontal h3 {
    width: 100%;
    text-align: center; /* center the package title */
    margin: 0;
}

/* Keep header content within card on narrow widths */
.package-card-horizontal .package-header-horizontal .package-price {
    width: 100%;
    text-align: center;
    margin: 0.5rem 0 0.25rem;
}

.package-card-horizontal .package-info-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    aspect-ratio: 1 / 1;
    flex: 0 0 32px; /* prevent stretch in flex header */
    padding: 0; /* ensure perfect circle on buttons */
    border-radius: 50%;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 14px;
}

.package-card-horizontal .package-info-btn:hover { background: var(--secondary-color); }

/* Modal overlay for package info */
.modal-overlay.blurred { position: fixed; inset: 0; background: rgba(0,0,0,0.35); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 10000; }

.package-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
    z-index: 2; /* rise above siblings while hovering */
}

.package-card-horizontal.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
    transform: translateY(-3px);
}

/* Desktop: maintain natural size (no transform scaling) */

.custom-configuration-section {
    text-align: center;
    padding: 2rem 2rem 4.5rem; /* extra bottom space for glow */
    background: linear-gradient(135deg, #f0f9ff 0%, #dbeafe 100%);
    border: 2px dashed var(--primary-color);
    border-radius: 1rem;
    margin-top: 1.5rem;
    position: relative;
}

.custom-configuration-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.custom-configuration-section p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Package tier image in horizontal cards */
.package-tier-image {
    width: 100%;
    height: 140px;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.package-tier-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

/* Keep select button at the bottom of each package card */
.package-card-horizontal .package-select { margin-top: auto; }

/* Remove bullet points from package cards */
.package-card-horizontal ul,
.package-card ul,
.package-highlights {
    list-style: none;
    padding: 0;
    margin: 0;
}

.package-card-horizontal li,
.package-card li,
.package-highlights li {
    padding: 0.25rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.package-card-horizontal li:before,
.package-card li:before,
.package-highlights li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

.package-card {
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    overflow: visible; /* keep inner elements visible */
    transition: all 0.3s ease;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.package-card.featured {
    border-color: var(--primary-color);
    position: relative;
}

.package-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
}

.package-header {
    background: linear-gradient(135deg, var(--primary-color), #ea580c);
    color: white;
    padding: 2rem;
    text-align: center;
}

.package-header h3,
.package-header .package-price,
.package-header .package-subtitle {
    color: white !important;
}

.package-card.bronze .package-header {
    background: linear-gradient(135deg, #cd7f32, #b8860b);
}

.package-card.silver .package-header {
    background: linear-gradient(135deg, #c0c0c0, #a8a8a8);
}

.package-card.gold .package-header {
    background: linear-gradient(135deg, #ffd700, #ffb300);
}

.package-header h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.package-price {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.package-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

.package-content {
    padding: 2rem;
}

.package-description {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.package-includes h4 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.package-includes ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.package-includes li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8fafc;
    color: #64748b;
    position: relative;
    padding-left: 1.5rem;
}

.package-includes li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

.package-includes li:last-child {
    border-bottom: none;
}

.package-price-display {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1.5rem;
}

.package-select {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-footer {
    padding: 1rem 2rem 2rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
}

/* Navigation Footer */

.nav-footer {
    background: white;
    border-top: 2px solid #e2e8f0;
    padding: 1.5rem 0;
    position: sticky;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
    width: 100%;
    transform: translateY(0);
    transition: transform 160ms ease;
}

.nav-footer.at-footer { }

/* Ensure site footer overlays the configurator nav footer on this page */
#main-footer { position: static; z-index: auto; }

.nav-buttons {
    display: flex;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-buttons button {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 120px;
}

.nav-buttons button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Ensure 'Back' label is visually centered like 'Next' by taking the icon out of flow */
#prev-btn {
    position: static;
}

/* removed icon-specific rule since arrows were removed */

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        height: auto;
        overflow: visible;
    }
    
    .config-sidebar,
    .price-sidebar {
        position: static;
        order: 1; /* ensure summary follows content */
        height: auto;
        overflow: visible;
        padding-top: 0;
        padding-bottom: 0;
    }
    
    .config-main {
        height: auto;
        min-height: 500px;
    }
    
    .mdm-grid {
        grid-template-columns: 1fr;
    }
    
    .tier-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .progress-tracker {
        overflow-x: auto;
        padding: 0 1rem 0.5rem; /* add a little more bottom pad so labels aren't clipped */
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 0.75rem;
        /* prevent vertical scrolling within the header */
        overflow-y: visible;
    }

    /* hide horizontal scrollbar visuals on mobile while retaining swipe */
    .progress-tracker { scrollbar-width: none; }
    .progress-tracker::-webkit-scrollbar { height: 0; }

    .progress-step { scroll-snap-align: start; }
    
    /* Provide space under the tracker for labels positioned absolutely */
    .progress-header { padding-bottom: 2.25rem; overflow: visible; }
    .progress-header .container { overflow: visible; }
    
    .progress-step {
        min-width: 80px;
        /* Keep the step container sized to the circle so the line centers correctly */
        position: relative;
    }
    
    .step-label {
        font-size: 0.8rem;
        /* Place labels below the circle without affecting row alignment */
        position: absolute;
        top: calc(100% + 6px);
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
    }
    
    .progress-line {
        width: 40px;
        margin: 0 0.5rem;
        /* Center the line vertically relative to the circle */
        margin-top: 0;
        align-self: center;
    }
    
    /* Remove extra space beneath the circle so alignment is tight */
    .step-number { margin-bottom: 0; }
    
    .headset-grid,
    .storage-grid,
    .mdm-grid,
    .software-grid,
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .config-main {
        padding: 1rem;
    }
    
    .step-header h2 {
        font-size: 1.5rem;
    }
    
    .category-legend {
        flex-wrap: wrap;
    }
    
    .addon-controls {
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-buttons {
        flex-direction: column-reverse;
        gap: 1rem;
    }
    /* Make Back/Next the same width on mobile */
    .nav-buttons button { width: 100%; }

    /* Add horizontal padding around the buttons container on mobile */
    .nav-footer .container { padding: 0 1rem; }

    /* Ensure the sticky footer aligns to the bottom of its container, not the last button */
    .nav-buttons { padding-bottom: 0.5rem; }
    /* Ensure content isn't covered by sticky bottom nav */
    .configurator-content { padding-bottom: 6.5rem; }
    .order-review { padding-bottom: 1rem; }
    .order-actions { margin-bottom: 5rem; }
    .custom-configuration-section { padding: 1.25rem 1rem 4.5rem; }
    
    .model-option label {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .model-image {
        width: 100px;
        height: 100px;
        align-self: center;
    }
    
    .model-info {
        align-items: center;
        text-align: center;
    }
    
    .model-price {
        margin-left: 0;
        font-size: 1.2rem;
    }
}

/* Improve Step 1 packages layout on mobile by stacking vertically */
@media (max-width: 768px) {
    .predefined-packages .packages-row {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 1rem;
        overflow-x: visible;
        scroll-snap-type: none;
        padding-left: 0;
        padding-right: 0;
    }
    .predefined-packages .package-card-horizontal {
        min-width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .configurator-content {
        padding: 1rem 0;
    }
    
    .config-main {
        padding: 1rem;
    }
    
    .price-widget {
        padding: 1rem;
    }
    
    .step-header h2 {
        font-size: 1.3rem;
    }
    
    .nav-buttons button {
        padding: 0.5rem 1rem;
        min-width: 100px;
        font-size: 0.9rem;
    }
    
    /* Prev button uses the same padding as other nav buttons */
    
    .customer-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .package-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .choice-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .packages-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .support-icon,
    .basket-icon {
        bottom: 1rem;
    }
    
    .support-icon {
        left: 1rem;
    }
    
    .basket-icon {
        right: 1rem;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .budget-inputs {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .budget-inputs span {
        text-align: center;
    }
    /* Review page header/buttons stack */
    .review-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .review-header .edit-btn { width: 100%; text-align: center; }
    .pricing-breakdown { max-width: 100%; }
    .quote-actions { display: flex; flex-direction: column; align-items: stretch; gap: 0.5rem; }
    .quote-actions button { width: 100%; }
    #export-pdf { margin-left: 0 !important; }
}

/* Storage Solution - Headset Quantity Selection */
.headset-quantity-section {
    margin-bottom: 3rem;
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.headset-quantity-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: center;
}

.selected-headset-display {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 1rem;
    border: 2px solid #e2e8f0;
}

.headset-display-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.headset-image {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.headset-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.headset-info h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.headset-info p {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.quantity-controls {
    text-align: center;
    flex-shrink: 0;
}

.quantity-controls h4 {
    color: #374151;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.quantity-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.qty-btn {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

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

.qty-input {
    width: 80px;
    height: 45px;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: #374151;
}

.total-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0;
}

/* Storage Notification */
.storage-notification {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 1rem;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out;
}

.storage-notification.hidden {
    display: none;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.notification-content i {
    color: #f59e0b;
    font-size: 1.5rem;
}

.notification-content span {
    color: #92400e;
    font-weight: 600;
    font-size: 1.1rem;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .selected-headset-display {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .headset-display-card {
        flex-direction: column;
        gap: 1rem;
    }
    
    .headset-image {
        width: 80px;
        height: 80px;
    }
    
    .quantity-input-group {
        gap: 0.5rem;
    }
    
    .qty-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    .qty-input {
        width: 60px;
        height: 40px;
    }
}

/* Storage Space Suggestion Modal */
.storage-modal {
    max-width: 500px;
    text-align: center;
}

.storage-modal .modal-header h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.storage-suggestion-content {
    padding: 2rem 1rem;
}

.storage-icon {
    margin-bottom: 1.5rem;
}

.storage-icon i {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.storage-modal p {
    font-size: 1.2rem;
    color: #374151;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.suggestion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.suggestion-actions button {
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.suggestion-actions .btn-secondary {
    background: #e2e8f0;
    color: #374151;
}

.suggestion-actions .btn-secondary:hover {
    background: #cbd5e1;
    transform: translateY(-2px);
}

.suggestion-actions .btn-primary {
    background: var(--primary-color);
    color: white;
}

.suggestion-actions .btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

@media (max-width: 480px) {
    .suggestion-actions {
        flex-direction: column;
    }
    
    .suggestion-actions button {
        width: 100%;
    }
}

/* Inline Quantity Controls for Headset Selection */
.quantity-controls-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    justify-content: center;
}

.qty-btn-small {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qty-btn-small:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.qty-btn-small:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.qty-input-small {
    width: 50px;
    height: 32px;
    border: 2px solid #e2e8f0;
    border-radius: 0.375rem;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #374151;
    background: white;
}

.qty-input-small:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Update model info to accommodate quantity controls */
.model-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: center;
    text-align: center;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .qty-btn-small {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .qty-input-small {
        width: 40px;
        height: 28px;
        font-size: 0.85rem;
    }
    
    .quantity-controls-inline {
        gap: 0.3rem;
        margin-top: 0.5rem;
    }
}

/* Order Items in Sidebar */
.order-items {
    margin-bottom: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.empty-cart {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 1rem 0;
}

.order-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: #f8fafc;
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.item-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.3;
}

.item-info p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.item-remove {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.item-remove:hover {
    background: #fef2f2;
    color: #dc2626;
}

.item-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn-mini {
    width: 24px;
    height: 24px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.qty-btn-mini:hover {
    border-color: var(--primary-color);
    background: #f0f9ff;
}

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

.qty-input-mini {
    width: 40px;
    height: 24px;
    text-align: center;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    font-size: 0.8rem;
}

.item-price {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Scrollbar for order items */
.order-items::-webkit-scrollbar {
    width: 4px;
}

.order-items::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 2px;
}

.order-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.order-items::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Responsive styles for capacity buttons */
@media (max-width: 768px) {
    .capacity-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .capacity-info {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .capacity-price {
        align-self: flex-end;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .capacity-btn {
        padding: 0.625rem;
        margin-bottom: 0.5rem;
    }

    .capacity-text {
        font-size: 0.85rem;
        line-height: 1.3;
    }

    .capacity-price {
        font-size: 0.95rem;
    }
}

/* AR Preview Section */
.ar-preview-section {
    margin: 2rem 0;
    padding: 0 1rem;
}

.ar-preview-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ar-preview-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.ar-icon {
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.ar-content {
    flex: 1;
}

.ar-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.ar-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.ar-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.ar-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.ar-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.ar-btn i {
    font-size: 1rem;
}

/* Responsive AR Preview */
@media (max-width: 768px) {
    .ar-preview-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .ar-icon {
        font-size: 2rem;
    }
    
    .ar-content h4 {
        font-size: 1.125rem;
    }
    
    .ar-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .ar-preview-section {
        margin: 1.5rem 0;
        padding: 0 0.5rem;
    }
    
    .ar-preview-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .ar-icon {
        font-size: 1.75rem;
    }
    
    .ar-content h4 {
        font-size: 1rem;
    }
    
    .ar-content p {
        font-size: 0.85rem;
    }
}

/* Budget Progress Visual Indicators */
.budget-fill.near-budget {
    background-color: #f59e0b; /* amber-500 */
}

.budget-fill.over-budget {
    background-color: #dc2626; /* red-600 */
}

/* Form Hint Styling */
.form-hint {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.25rem;
}