/* Business Registration Page - RTL Optimized Styles */

/* Page Layout Fixes */
.business-registration-page #main {
    position: relative !important;
    height: auto !important;
    min-height: 100vh;
    padding-top: 80px;
}

/* Hide search wrapper on business registration page */
.business-registration-page .header-search-wrapper.novis_search {
    display: none !important;
}

/* Form Container */
.business-reg-form {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Form Sections */
.form-section {
    margin-bottom: 30px;
    padding: 25px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
    border-bottom: 2px solid #40B69E;
    padding-bottom: 10px;
    font-weight: 600;
}

/* Form Rows */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 250px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Tajawal', sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #40B69E;
    box-shadow: 0 0 0 3px rgba(64, 182, 158, 0.1);
}

/* RTL Social Input Group Fix */
.social-input-group {
    position: relative;
}

.social-input-group i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 16px;
}

.social-input-group input {
    padding-right: 40px;
    padding-left: 15px;
}

/* Checkbox Group - RTL Optimized */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    accent-color: #40B69E;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
}

/* Radio Group - RTL Optimized */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    align-items: center;
}

.radio-group > label:first-child {
    font-weight: 500;
    color: #2c3e50;
    margin-left: 10px;
}

.radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-item input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #40B69E;
}

.radio-item label {
    margin: 0;
    cursor: pointer;
    font-size: 14px;
}

/* Submit Button */
.submit-btn {
    background: #40B69E;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
    margin-top: 20px;
    font-family: 'Tajawal', sans-serif;
}

.submit-btn:hover {
    background: #35a088;
    transform: translateY(-2px);
}

/* Floating WhatsApp - RTL Fixed */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.floating-whatsapp:hover {
    background: #128c7e;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
}

.form-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
}

.form-header p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

.step {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s;
}

.step.active {
    background: #40B69E;
    color: white;
    box-shadow: 0 4px 10px rgba(64, 182, 158, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .business-registration-page #main {
        padding-top: 70px;
    }
    
    .business-reg-form {
        margin: 20px 15px;
        padding: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-group {
        min-width: 100%;
    }
    
    .form-section {
        padding: 20px 15px;
    }
    
    .radio-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .form-header h2 {
        font-size: 22px;
    }
    
    .form-header p {
        font-size: 14px;
    }
    
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .business-reg-form {
        margin: 10px;
        padding: 15px;
    }
    
    .step {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .submit-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
}

/* Select Dropdown Styling */
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 35px;
}

/* Textarea Styling */
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Placeholder Styling */
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #adb5bd;
    font-size: 13px;
}

/* Focus States for Accessibility */
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid #40B69E;
    outline-offset: 2px;
}

/* Error States (if needed) */
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}
