/* Business Registration Styles */

/* Registration Header */
.registration-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.registration-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.registration-header p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Registration Steps */
.registration-steps {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

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

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 60px;
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.step.active:not(:last-child)::after {
    background: #28a745;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.step.active .step-number {
    background: #28a745;
    border-color: #28a745;
}

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

.step-label {
    font-size: 0.875rem;
    text-align: center;
    max-width: 80px;
}

/* Registration Section */
.registration-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.registration-form {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Form Steps */
.form-step {
    display: none;
}

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

.form-step h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.form-step p {
    color: #666;
    margin-bottom: 2rem;
}

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.document-upload {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.document-upload:hover {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
}

.document-info h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.document-info p {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Upload Area */
.upload-area {
    position: relative;
}

.upload-area input[type="file"] {
    display: none;
}

.upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px dashed #007bff;
    border-radius: 8px;
    background: #f8f9ff;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #007bff;
    font-weight: 500;
}

.upload-label:hover {
    background: #e6f3ff;
    border-color: #0056b3;
}

.upload-label svg {
    width: 20px;
    height: 20px;
}

.upload-preview {
    margin-top: 1rem;
    padding: 0.75rem;
    background: #e8f5e8;
    border-radius: 6px;
    color: #28a745;
    font-size: 0.875rem;
    display: none;
}

.upload-preview.show {
    display: block;
}

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

.review-section h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-section p {
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

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

.review-section strong {
    color: #333;
    display: inline-block;
    width: 200px;
}

/* Confirmation Content */
.confirmation-content {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    margin-bottom: 2rem;
}

.confirmation-content h2 {
    color: #28a745;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.confirmation-content p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.registration-details {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: left;
}

.registration-details p {
    margin-bottom: 0.5rem;
}

.registration-details strong {
    color: #333;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.form-navigation button {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-navigation button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-header h1 {
        font-size: 2rem;
    }
    
    .registration-steps {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .registration-form {
        padding: 1.5rem;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .form-navigation button {
        width: 100%;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error States */
.error {
    border-color: #dc3545 !important;
}

.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success States */
.success {
    border-color: #28a745 !important;
}

.success-message {
    color: #28a745;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Checkbox Styles */
.form-group label input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

.form-group label {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

/* File Upload Progress */
.upload-progress {
    margin-top: 0.5rem;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
}

.upload-progress-bar {
    height: 100%;
    background: #007bff;
    width: 0%;
    transition: width 0.3s ease;
}

/* Document Status */
.document-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

.document-status.uploaded {
    background: #d4edda;
    color: #155724;
}

.document-status.pending {
    background: #fff3cd;
    color: #856404;
}

.document-status.error {
    background: #f8d7da;
    color: #721c24;
}
