/* ================================
   Vault Creation Wizard Modal
   ================================ */

.vault-wizard-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vault-wizard-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.vault-wizard-modal.show {
    opacity: 1;
}

.wizard-container {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.vault-wizard-modal.show .wizard-container {
    transform: scale(1);
}

.wizard-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wizard-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* Step Progress */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    padding: 2rem 3rem 1rem;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-step.active:not(:last-child)::after {
    background: var(--color-accent-blue);
}

.progress-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}

.progress-step.active .progress-number {
    background: var(--color-accent-blue);
    color: white;
}

.progress-step.completed .progress-number {
    background: #10B981;
    color: white;
}

.progress-label {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
}

.progress-step.active .progress-label {
    color: var(--color-accent-blue);
    font-weight: 600;
}

/* Wizard Content */
.wizard-content {
    padding: 3rem;
    max-height: calc(90vh - 200px);
    overflow-y: auto;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

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

.step-header {
    margin-bottom: 2rem;
}

.step-number {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.step-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

.step-description {
    font-size: 0.95rem;
    color: #666;
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

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

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s;
    font-family: inherit;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(187, 153, 84, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Toggle Buttons */
.toggle-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.toggle-btn {
    flex: 1;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    color: #333;
    text-align: center;
}

.toggle-btn:hover {
    border-color: var(--color-accent-blue);
    background: var(--color-accent-blue);
    color: white;
}

.toggle-btn.active {
    border-color: var(--color-accent-blue);
    background: var(--color-accent-blue);
    color: white;
}

/* File Upload */
.file-upload-area {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.file-upload-area:hover {
    border-color: var(--color-accent-blue);
    background: #f8f9ff;
}

.file-upload-area.has-file {
    border-style: solid;
    border-color: #10B981;
    background: #f0fdf4;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.upload-text {
    color: #666;
    font-size: 0.875rem;
}

.file-name {
    margin-top: 0.5rem;
    font-weight: 500;
    color: #10B981;
}

/* Security Questions */
.question-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

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

.question-number {
    font-weight: 600;
    color: #333;
}

.remove-question {
    background: none;
    border: none;
    color: #dc2626;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.25rem 0.5rem;
}

.add-question-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    color: #333;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.add-question-btn:hover {
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
}

/* Info Box */
.info-box {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    color: #e65100;
    font-size: 0.875rem;
}

/* Review Step */
.review-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.review-section-title {
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-label {
    color: #666;
    font-weight: 500;
}

.review-value {
    color: #000;
    font-weight: 500;
}

/* Payment Step */
.payment-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.payment-badge {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-weight: 500;
    font-size: 0.875rem;
    color: #333;
}

.card-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.card-inputs .form-group:first-child {
    grid-column: 1 / -1;
}

/* Wizard Footer */
.wizard-footer {
    display: flex;
    justify-content: space-between;
    padding: 1.5rem 3rem;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.wizard-btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.95rem;
}

.btn-back {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
}

.btn-back:hover {
    background: #f8f9fa;
}

.btn-next,
.btn-submit {
    background: var(--color-accent-blue);
    color: white;
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--color-accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(187, 153, 84, 0.3);
}

.btn-submit {
    background: #10B981;
}

.btn-submit:hover {
    background: #059669;
}

/* Responsive */
@media (max-width: 768px) {
    .wizard-container {
        width: 95%;
        max-height: 95vh;
    }

    .wizard-content {
        padding: 2rem 1.5rem;
    }

    .wizard-footer {
        padding: 1rem 1.5rem;
    }

    .wizard-progress {
        padding: 1.5rem 1rem 1rem;
    }

    .progress-label {
        display: none;
    }

    .card-inputs {
        grid-template-columns: 1fr;
    }

    .toggle-group {
        flex-direction: column;
    }
}