/**
 * Company Registration Wizard Styles
 * Consistent with Nettgiro's existing design system
 */

/* Wizard Progress Indicator */
.form-control {
    background-position: right calc(.375em + .1875rem) center;
}

.wizard-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0 30px;
    position: relative;
    padding: 0 20px;
}

.wizard-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.wizard-progress .step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    opacity: 1;
    transition: all 200ms ease;
}

.wizard-progress .step.active,
.wizard-progress .step.completed {
    opacity: 1;
}

.wizard-progress .step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    border-radius: 50%;
    background: #f3f6f7;
    border: 2px solid #e0e0e0;
    font-weight: 500;
    color: #999;
    transition: all 200ms ease;
}

.wizard-progress .step.active .step-number {
    background: #05546c;
    border-color: #05546c;
    color: white;
    box-shadow: 0 2px 8px rgba(5, 84, 108, 0.3);
}

.wizard-progress .step.completed .step-number {
    background: #28a745;
    border-color: #28a745;
    color: white;
}

.wizard-progress .step.completed .step-number::before {
    content: '✓';
    font-size: 20px;
}

.wizard-progress .step.completed .step-number span {
    display: none;
}

.wizard-progress .step-label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-weight: 400;
}

.wizard-progress .step.active .step-label {
    color: #05546c;
    font-weight: 500;
}

/* Wizard Step Container */
.wizard-step {
    display: none;
    animation: fadeIn 300ms ease;
}

.wizard-step.active {
    display: block;
}

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

/* Account Type Selection Cards */
.account-type-selection {
    display: flex;
    gap: 15px;
    margin: 20px 0;
}

.account-type-card {
    flex: 1;
    position: relative;
    cursor: pointer;
}

.account-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-type-card label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: all 200ms ease;
    min-height: 140px;
}

.account-type-card label:hover {
    border-color: #05546c;
    background: #f8fafb;
}

.account-type-card input[type="radio"]:checked + label {
    border-color: #05546c;
    background: #f0f7f9;
    box-shadow: 0 2px 12px rgba(5, 84, 108, 0.15);
}

.account-type-icon {
    font-size: 28px;
    margin-bottom: 12px;
    color: #000000;
}

.account-type-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 5px;
}

.account-type-description {
    font-size: 0.85rem;
    color: #666;
    text-align: center;
}

/* Step Sections */
.wizard-step-section {
    margin-bottom: 25px;
}

.wizard-step-section h5 {
    font-size: 1rem;
    font-weight: 500;
    color: #05546c;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

/* Form Adjustments for Wizard */
.wizard-step .form-group {
    margin-bottom: 1rem;
}

.wizard-step .form-control {
    border-radius: 6px;
}

.wizard-step .invalid-feedback {
    font-size: 0.875rem;
}

/* Success Indicator for Brreg */
#brreg small {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .account-type-selection {
        flex-direction: column;
    }
    
    .wizard-progress {
        padding: 0 10px;
    }
    
    .wizard-progress .step-label {
        font-size: 0.75rem;
    }
    
    .wizard-progress .step-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

