/* Bark Registration Form Styles */

/* Container */
.bark-registration-container {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Form Header */
.bark-form-header {
    text-align: center;
    margin-bottom: 30px;
}

.bark-form-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
}

.bark-form-header p {
    color: #666;
    font-size: 16px;
}

/* Progress Bar */
.bark-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.bark-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    width: 100%;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 1;
}

.bark-progress-step {
    background: white;
    border: 2px solid #e0e0e0;
    color: #666;
    border-radius: 25px;
    padding: 10px 20px;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.bark-progress-step.active {
    background: #4CAF50;
    border-color: #4CAF50;
    color: white;
}

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

.bark-step.active {
    display: block;
    animation: fadeIn 0.5s;
}

/* Force display for step 2 when coming from service selection */
.bark-step[data-step="2"][style*="display: block"] {
    display: block !important;
}

.bark-step[data-step="1"][style*="display: none"] {
    display: none !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Row and Columns */
.bark-row {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bark-col {
    flex: 1;
    min-width: 200px;
}

/* Form Elements */
.bark-form h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

.bark-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.bark-form input[type="text"],
.bark-form input[type="email"],
.bark-form input[type="password"],
.bark-form input[type="tel"],
.bark-form input[type="number"],
.bark-form input[type="url"],
.bark-form select,
.bark-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border 0.3s ease;
}

.bark-form input:focus,
.bark-form select:focus,
.bark-form textarea:focus {
    border-color: #4CAF50;
    outline: none;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.bark-form input.error,
.bark-form select.error {
    border-color: #f44336;
}

.bark-form select[multiple] {
    height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 10px;
}

/* OTP Container */
.otp-container {
    display: flex;
    gap: 10px;
}

.otp-container input {
    flex-grow: 1;
}

.verified-badge {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 10px;
    font-size: 14px;
}

/* Buttons */
.bark-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 500;
}

.bark-btn:hover {
    background: #43a047;
}

.bark-btn:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
}

.prev-step {
    background: #f1f1f1;
    color: #333;
}

.prev-step:hover {
    background: #e0e0e0;
}

.buttons {
    display: flex;
    justify-content: space-between;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 30px 0;
}

.success-message h3 {
    color: #4CAF50;
    font-size: 24px;
    margin-bottom: 15px;
    border: none;
}

/* Password Strength Meter */
.password-strength-meter {
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    margin-top: 5px;
    transition: all 0.3s ease;
}

.password-strength-meter.very-weak {
    background: #f44336;
    width: 20%;
}

.password-strength-meter.weak {
    background: #ff9800;
    width: 40%;
}

.password-strength-meter.fair {
    background: #ffeb3b;
    width: 60%;
}

.password-strength-meter.good {
    background: #4caf50;
    width: 80%;
}

.password-strength-meter.strong {
    background: #2e7d32;
    width: 100%;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 2px;
    font-weight: 500;
}

.password-strength-text:after {
    content: " password";
}

/* File Upload Styling */
.bark-form input[type="file"] {
    padding: 8px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.bark-form input[type="file"]:hover {
    border-color: #4CAF50;
}

.bark-form input[type="file"]:focus {
    border-color: #4CAF50;
    outline: none;
}

/* Loading States */
.bark-btn.loading {
    position: relative;
    color: transparent;
}

.bark-btn.loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Messages */
.bark-error-message {
    color: #f44336;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.bark-form input.error + .bark-error-message {
    display: block;
}

/* Success States */
.bark-form input.success {
    border-color: #4CAF50;
    background-color: #f1f8e9;
}

/* Radio Buttons */
.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
}

.radio-label input[type="radio"] {
    margin-right: 10px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

/* Company Size Buttons */
.company-size-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.size-btn {
    background: #f1f1f1;
    border: 2px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.size-btn:hover {
    border-color: #4CAF50;
}

.size-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* Service Tags */
.service-tag {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    margin: 5px;
    font-size: 14px;
}

.service-tag.additional {
    background: #666;
    position: relative;
    padding-right: 25px;
}

.remove-service {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-weight: bold;
}

/* Leads Summary */
.leads-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.leads-count {
    text-align: center;
}

.leads-count .count {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #1976d2;
}

.leads-count .label {
    font-size: 14px;
    color: #666;
}

.see-leads-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}

.see-leads-btn:hover {
    background: #43a047;
}

/* Info Text */
.info-text {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* Select2 Customization */
.select2-container--default .select2-selection--single {
    height: 48px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 46px;
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 46px;
}

/* Service Selection Styles */
.service-selection-header {
    text-align: center;
    margin-bottom: 40px;
}

.service-selection-header h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 28px;
    font-weight: 600;
}

.service-search-container {
    margin-bottom: 40px;
}

.service-input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.service-search-input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.service-search-input:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.get-started-btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.get-started-btn:hover {
    background: #43a047;
}

.get-started-btn:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
}

.service-suggestions {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    position: relative;
}

.service-suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.service-suggestion-item:hover {
    background: #f8f9fa;
}

.service-suggestion-item:last-child {
    border-bottom: none;
}

.popular-services-section {
    margin-top: 40px;
}

.popular-services-section h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.popular-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.popular-service-item {
    display: flex;
    align-items: center;
    padding: 5px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.popular-service-item.selected {
    border-color: #4CAF50;
    background: #f1f8e9;
}

.popular-service-item:hover .service-icon { color: black; }
.popular-service-item:hover .service-name { color: black; }

.service-icon {
    font-size: 15px;
    margin-right: 12px;
    width: 24px;
    text-align: center;
	color: #6c7191;
}

.service-name {
    font-size: 14px;
    color: #6c7191;
    font-weight: 500;
}

.service-error {
    color: #f44336;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

.service-success {
    color: #4CAF50;
    font-size: 14px;
    margin-top: 10px;
    display: none;
}

/* Location Fields */
.postcode-input.error,
.service-radius.error {
    border-color: #f44336;
    background-color: #ffebee;
}

.postcode-input.valid {
    border-color: #4CAF50;
    background-color: #f1f8e9;
}

.postcode-input[readonly] {
    background-color: #f5f5f5;
    cursor: not-allowed;
}

.postcode-error {
    display: block;
    color: #f44336;
    font-size: 12px;
    margin-top: 5px;
}

.step_header_col {
    margin-bottom: 25px;
}

.step_header_col h3 {
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
}

.step_header_col p {
    color: #666;
    font-size: 14px;
    margin: 0;
}


.bark-step[data-step="3"] .bark-row.website_radio>.bark-col>div { display: flex; align-items: center; gap: 15px; }
.bark-step[data-step="3"] .bark-row.website_radio>.bark-col>div .radio-label { position: relative; }
.bark-step[data-step="3"] .bark-row.website_radio>.bark-col>div .radio-label input[type="radio"] { margin: 0; position: absolute; width: 100%; height: 100%; left: 0; top: 0; opacity: 0; }
.bark-step[data-step="3"] .bark-row.website_radio>.bark-col>div .radio-label>span { background: white; border: 1px solid #ccc; border-radius: 500px; padding: 5px 30px; }
.bark-step[data-step="3"] .bark-row.website_radio>.bark-col>div .radio-label input[type="radio"]:checked~span, .bark-step[data-step="3"] .bark-row.website_radio>.bark-col>div .radio-label input[type="radio"]:hover~span { background: var(--e-global-color-primary); color: white; }
.bark-step[data-step="3"] .bark-row .company-size-options .size-btn { background: transparent; color: black; border: 1px solid #ccc; padding: 8px 30px; border-radius: 500px; }
.bark-step[data-step="3"] .bark-row .company-size-options .size-btn:hover, .bark-step[data-step="3"] .bark-row .company-size-options .size-btn.active { background: var(--e-global-color-primary); color: white; }
.bark-row.otp-verification .verified-badge { height: 50px; margin: 0; }
.bark-row.otp-verification { display: flex; align-items: flex-end; }
/* Responsive */
@media (max-width: 768px) {
    .bark-col {
        min-width: 100%;
    }
    
    .bark-progress-step {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .bark-btn {
        width: 100%;
    }
    
    .otp-container {
        flex-direction: column;
    }
    
    .otp-container button {
        margin-top: 10px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .company-size-buttons {
        flex-direction: column;
    }
    
    .size-btn {
        width: 100%;
        text-align: center;
    }
    
    .leads-summary {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .service-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .get-started-btn {
        width: 100%;
    }
    
    .popular-services-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-service-item {
        padding: 12px 15px;
    }
}