/* Custom Order Wizard Styles */
.custom-order-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(15px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.custom-order-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.wizard-container {
    width: 90%;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.wizard-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.wizard-close:hover {
    color: white;
}

/* Progress Bar */
.wizard-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 30px;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.wizard-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #C9A961, #F4E2B2);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(201, 169, 97, 0.5);
}

/* Steps */
.step-content {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: slideUp 0.5s ease;
    width: 100%;
}

.step-content.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.step-question {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.2rem;
    color: #C9A961;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.step-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 25px;
    line-height: 1.4;
    max-width: 80%;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    width: 100%;
}

.option-card-label {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.option-card-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #C9A961;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.radio-hidden:checked+.option-card-label {
    background: rgba(201, 169, 97, 0.15);
    border-color: #C9A961;
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.2);
}

.radio-hidden {
    display: none;
}

.option-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background: #222;
    /* Placeholder bg */
}

.option-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: white;
    font-weight: 500;
}

/* Inputs */
.custom-text-input,
.custom-number-input,
.custom-textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    width: 100%;
    transition: border-color 0.3s;
}

.custom-textarea {
    min-height: 100px;
    resize: vertical;
}

.custom-text-input:focus,
.custom-number-input:focus,
.custom-textarea:focus {
    border-color: #C9A961;
    outline: none;
    background: rgba(255, 255, 255, 0.12);
}

/* Navigation Buttons */
.wizard-actions {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-wizard {
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.7);
}

.btn-back:hover {
    border-color: white;
    color: white;
}

.btn-next {
    background: linear-gradient(135deg, #C9A961 0%, #B8935A 100%);
    color: black;
    box-shadow: 0 4px 15px rgba(201, 169, 97, 0.3);
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 97, 0.5);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: #555;
    color: #888;
}

/* Summary & Generation */
.summary-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    width: 100%;
    text-align: left;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.summary-key {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.summary-val {
    color: #C9A961;
    font-weight: 600;
    text-align: right;
}

.ai-generation-box {
    margin-top: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.generated-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    background: #111;
    border-radius: 12px;
    border: 1px dashed rgba(201, 169, 97, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.final-design-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeIn 1s ease;
}

.loading-pulse {
    width: 60px;
    height: 60px;
    background: #C9A961;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
}

.btn-generate {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    /* Green for go */
    color: white;
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 16px;
}

.btn-generate:hover {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}