/* Modern Account Opening Form Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.zwmb-account-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.account-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    min-height: 90vh;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Sidebar Navigation */
.account-sidebar {
    width: 300px;
    background: linear-gradient(180deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 40px 30px;
    position: relative;
    overflow: hidden;
}

.sidebar-header {
    text-align: center;
    margin-bottom: 40px;
}

.sidebar-header img {
    max-width: 120px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.sidebar-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 10px;
}

.sidebar-header p {
    font-size: 14px;
    opacity: 0.8;
}

.account-types {
    margin-bottom: 40px;
}

.account-types h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.account-type-item {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 15px;
}

.account-type-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.account-type-item.active {
    background: rgba(255, 255, 255, 0.25);
    border-color: #e74c3c;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.account-type-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.account-type-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.account-type-details p {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
}

.sidebar-progress {
    margin-top: 40px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #e74c3c;
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 20%;
}

/* Main Form Content */
.account-main {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    max-height: 90vh;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    color: #7f8c8d;
    font-size: 16px;
}

/* Form Steps */
.form-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.form-steps::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 30px;
    right: 30px;
    height: 2px;
    background: #ecf0f1;
    z-index: 1;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ecf0f1;
    border: 3px solid #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #7f8c8d;
    font-size: 18px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background: #3498db;
    border-color: #3498db;
    color: white;
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: #27ae60;
    border-color: #27ae60;
    color: white;
}

.step-item.completed .step-circle::after {
    content: '✓';
    font-size: 20px;
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: #7f8c8d;
    text-align: center;
}

.step-item.active .step-label {
    color: #3498db;
}

/* Form Content */
.form-content {
    position: relative;
}

.form-step {
    display: none;
    animation: slideIn 0.3s ease;
}

.form-step.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.step-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
    font-size: 16px;
}

/* Form Groups */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.form-group label.required::after {
    content: ' *';
    color: #e74c3c;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    background: white;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-control.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

/* Radio and Checkbox Groups */
.radio-group, .checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.radio-item, .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

/* File Upload */
.file-upload {
    position: relative;
}

.file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 40px 20px;
    border: 2px dashed #3498db;
    border-radius: 8px;
    text-align: center;
    color: #3498db;
    font-weight: 600;
    background: rgba(52, 152, 219, 0.05);
    transition: all 0.3s ease;
}

.file-upload-label:hover {
    background: rgba(52, 152, 219, 0.1);
}

.file-upload-label i {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

/* Button Group */
.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ecf0f1;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary {
    background: #ecf0f1;
    color: #7f8c8d;
}

.btn-secondary:hover:not(:disabled) {
    background: #d5dbdb;
    color: #2c3e50;
}

.btn-primary {
    background: #3498db;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover:not(:disabled) {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Save & Continue Button */
.btn-save {
    background: #27ae60;
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-save:hover:not(:disabled) {
    background: #219653;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

/* Success Message */
.success-step {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: white;
    font-size: 40px;
    box-shadow: 0 10px 30px rgba(39, 174, 96, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-step h2 {
    font-size: 32px;
    color: #27ae60;
    margin-bottom: 20px;
}

.success-step p {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.reference-number {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 8px;
    display: inline-block;
    margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .account-container {
        flex-direction: column;
    }
    
    .account-sidebar {
        width: 100%;
        padding: 20px;
    }
    
    .account-main {
        max-height: none;
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-steps {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .step-item {
        flex: none;
        width: calc(50% - 10px);
    }
    
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* Loading State */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}