/* Form Wizard Styles */

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 150px;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.15);
    border: 2px solid rgba(99, 102, 241, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.step.active .step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15), 0 4px 20px rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.step.completed .step-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
}

.step.completed .step-number::after {
    content: '✓';
    position: absolute;
    font-size: 1.2rem;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.step.active .step-label,
.step.completed .step-label {
    color: rgba(255, 255, 255, 0.9);
}

.step-connector {
    position: absolute;
    top: 22px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(99, 102, 241, 0.2);
    z-index: 1;
}

.step:last-child .step-connector {
    display: none;
}

.step.completed .step-connector {
    background: linear-gradient(90deg, #10b981 0%, rgba(99, 102, 241, 0.2) 100%);
}

/* Form Steps Container */
.form-step {
    animation: fadeIn 0.3s ease;
    padding: 1.5rem 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-align: center;
}

.form-step > p {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-step-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    justify-content: space-between;
}

.btn-step {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-step-back {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-step-back:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-2px);
}

.btn-step-next {
    background: var(--primary-gradient);
    color: white;
}

.btn-step-next:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-step-submit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-step-submit:hover {
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

/* Fund Type grid and cards */
.fund-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

.fund-type-card {
    position: relative;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.fund-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.fund-type-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.fund-type-card input[type="radio"]:checked + .fund-type-icon,
.fund-type-card input[type="radio"]:checked ~ .fund-type-icon {
    transform: scale(1.1);
}

.fund-type-card:has(input[type="radio"]:checked) {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-light);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.fund-type-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    display: block;
}

.fund-type-name {
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.fund-type-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.4;
}

/* Mode selection cards */
.mode-selection-grid {
    display: grid;
    gap: 1.75rem;
    margin: 2rem 0;
}

.mode-card {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mode-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.mode-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.mode-card:has(input[type="radio"]:checked) {
    background: rgba(99, 102, 241, 0.15);
    border-color: var(--primary-light);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.mode-recommended {
    position: absolute;
    top: -12px;
    right: 15px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
    z-index: 2;
}

.mode-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
}

.mode-title span:first-child {
    font-size: 1.8rem;
}

.mode-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 1rem;
}

.mode-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mode-features li {
    padding: 0.6rem 0;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.mode-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Mode card disabled state */
.mode-card.mode-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.7);
}

.mode-card.mode-disabled::after {
    content: '🔒 Locked';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

/* Wallet Warning */
.wallet-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 2px solid rgba(245, 158, 11, 0.4);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.warning-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.warning-content {
    flex: 1;
}

.warning-content strong {
    display: block;
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.warning-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .step-indicator {
        margin-bottom: 1.5rem;
    }
    
    .step-number {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.75rem;
    }
    
    .fund-type-grid {
        grid-template-columns: 1fr;
    }
    
    .form-step h3 {
        font-size: 1.2rem;
    }
    
    .form-step-buttons {
        flex-direction: column;
    }
    
    .btn-step {
        width: 100%;
    }
    
    .mode-card.mode-disabled::after {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .wallet-warning {
        flex-direction: column;
        padding: 1rem;
    }
    
    .warning-icon {
        font-size: 1.5rem;
    }
    
    .warning-content strong {
        font-size: 1rem;
    }
    
    .warning-content p {
        font-size: 0.85rem;
    }
}
