/* Explain: Styles for the multi-step custom design form. */
.design-form {
    border-radius: 2.4rem;
    padding: clamp(1.5rem, 4vw, 2.75rem);
}

.wizard-progress {
    height: 6px;
    margin-top: 1.5rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--gold-soft);
}

.wizard-progress-bar {
    height: 100%;
    width: 25%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 400ms ease;
}

.wizard-step {
    display: none;
}

.wizard-step.is-active {
    display: block;
    animation: wizardFade 400ms ease;
}

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

.wizard-step-label {
    color: var(--gold-dark);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.wizard-step-title {
    margin-top: 0.4rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 500;
    line-height: 1.15;
}

.wizard-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.wizard-option {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.wizard-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.wizard-option span {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--field-bg);
    padding: 0.5rem 1.15rem;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 250ms ease;
}

.wizard-option input:checked + span {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--button-text);
    box-shadow: var(--shadow-button);
}

.wizard-option input:focus-visible + span {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.wizard-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

.file-drop {
    position: relative;
    display: block;
    cursor: pointer;
    border: 1.5px dashed var(--glass-border);
    border-radius: 1.6rem;
    background: var(--field-bg);
    padding: 1.5rem;
    text-align: center;
    transition: border-color 250ms ease, background 250ms ease;
}

.file-drop:hover {
    border-color: var(--primary-color);
    background: rgba(251, 248, 241, 0.9);
}

.file-drop input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.file-drop-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    pointer-events: none;
}

.file-drop-inner i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.file-drop-text {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 500;
}

.file-drop-hint {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.file-preview-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.file-preview-wrap img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
}

.file-status.success {
    color: #4E7A4A;
}

.file-status.error {
    color: #A6483A;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.consent-row input {
    flex-shrink: 0;
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.25rem;
    accent-color: var(--primary-color);
}

.design-success {
    text-align: center;
    border: 1px solid var(--glass-border);
    border-radius: 2.4rem;
    background: linear-gradient(145deg, rgba(251, 248, 241, 0.92), rgba(255, 255, 255, 0.62));
    padding: clamp(2rem, 5vw, 3.5rem);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    animation: wizardFade 500ms ease;
}

.design-success i {
    color: var(--primary-color);
    font-size: 3rem;
}

@media (max-width: 639px) {
    .wizard-actions {
        flex-direction: column-reverse;
    }

    .wizard-actions .btn {
        width: 100%;
    }
}