/* QUOTE WIZARD STYLES */
.wizard-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.wizard-step {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
}

.wizard-step.active {
    color: var(--m-green);
}

.wizard-step::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border-color);
    margin: 0 auto 8px;
    transition: all 0.3s ease;
}

.wizard-step.active::before {
    background: var(--m-green);
    box-shadow: 0 0 10px var(--m-green);
}

.wizard-content {
    min-height: 300px;
    animation: fadeIn 0.4s ease-out;
}

.wizard-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}

.product-preview {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 380px;
}

.product-preview img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.product-preview-label {
    margin-top: 16px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.5;
}

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

    .product-preview {
        order: -1;
        min-height: unset;
    }
}

/* Unified Portal Layout */
.portal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.portal-sidebar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
    position: sticky;
    top: 120px;
}

.portal-sidebar h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
    margin-bottom: 24px;
}

.sidebar-products {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.product-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.product-item.active {
    background: rgba(34, 197, 94, 0.05);
    border-color: rgba(34, 197, 94, 0.2);
}

.product-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #333;
    transition: all 0.3s ease;
}

.product-item.active .dot {
    background: var(--m-green);
    box-shadow: 0 0 10px var(--m-green);
}

.product-item span {
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0.7;
}

.product-item.active span {
    opacity: 1;
    color: #fff;
}

@media (max-width: 1024px) {
    .portal-layout {
        grid-template-columns: 1fr;
    }

    .portal-sidebar {
        position: relative;
        top: 0;
        margin-bottom: 20px;
    }

    .sidebar-products {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 12px;
    }

    .product-item {
        white-space: nowrap;
    }
}

.wizard-field {
    margin-bottom: 24px;
}

.wizard-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.wizard-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    transition: all 0.3s ease;
}

.wizard-input:focus {
    outline: none;
    border-color: var(--m-green);
    background: rgba(255, 255, 255, 0.08);
}

/* Fix for white dropdown on some browsers */
.wizard-input option {
    background-color: #111;
    color: #fff;
}

.wizard-input select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 16px;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.estimate-box {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    margin-top: 24px;
}

.estimate-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--m-green);
    margin: 10px 0;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}