/* onboarding-form.css V6.0 - CLEANED */
:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --success: #27ae60;
    --warning: #f39c12;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Base styles - ENHANCED */
.simple-onboarding {
    font-family: 'Roboto', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
}

/* Header - ENHANCED */
.onboarding-header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.onboarding-header h1 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.onboarding-header p {
    color: var(--secondary);
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Logo styling */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.logo-icon {
    color: var(--secondary);
    font-size: 2.5rem;
}

/* Form - ENHANCED */
.onboarding-form {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 30px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: start;
    min-height: 800px;
}

/* Form Section - ENHANCED */
.form-section {
    width: 100%;
    animation: fadeIn 0.5s ease;
    min-height: 400px;
}

/* Form content container */
.form-content {
    display: flex;
    flex-direction: column;
}

/* ENSURE progress bar spans both columns */
.progress {
    grid-column: 1 / -1;
    margin-bottom: 30px;
}

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

/* Form Grid - Container for form sections and navigation */
.form-grid {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    min-height: 600px;
    position: relative;
    justify-content: flex-start;
    padding-bottom: 20px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
    font-size: 0.95em;
}

.form-group label.required::after {
    content: " *";
    color: var(--accent);
    font-weight: bold;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    border: 1px solid #ccc;
    padding: 0.5rem;
    border-radius: 4px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Buttons - ENHANCED */
button {
    padding: 12px 25px;
    border: none;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--secondary);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background: #2980b9;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: rgba(52, 152, 219, 0.1);
}

/* Submit Button */
.submit-btn {
    background: var(--success);
    color: white;
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    margin-top: 20px;
}

.submit-btn:hover:not(:disabled) {
    background: #219a52;
}

/* Form Navigation Buttons - SINGLE DEFINITION */
.form-navigation-buttons {
    display: flex !important;
    justify-content: space-between;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 2px solid var(--light);
    width: 100%;
    position: relative;
    background: white;
    z-index: 100;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Checkbox Groups */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid #e9ecef;
    border-radius: var(--border-radius);
    background: #f8f9fa;
    transition: all 0.2s ease;
    width: 100%;
    flex-wrap: wrap;
}

.checkbox-item:hover {
    background: #e9ecef;
    border-color: var(--secondary);
}

.checkbox-item input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checkbox-item label {
    margin: 0;
    cursor: pointer;
    user-select: none;
    flex-grow: 1;
}

/* Keep inputs aligned with their checkboxes */
.checkbox-item input[type="number"],
.checkbox-item input[type="text"] {
    margin-left: auto;
    width: 120px;
    padding: 6px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* For expertise grid specifically */
.expertise-grid .checkbox-item {
    margin-bottom: 0;
    flex-direction: row;
    justify-content: flex-start;
}

.expertise-grid .checkbox-item label {
    flex-grow: 0;
}

/* Staff Count */
.staff-count-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

.staff-count-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.staff-count-item label {
    margin-bottom: 0;
    min-width: 120px;
    font-weight: 500;
}

.staff-count-item input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Signature Pad Styles */
.signature-section {
    margin: 32px 0 0 0;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
}

.signature-container {
    margin: 20px 0;
}

.signature-label-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 8px;
}

.signature-label {
    font-weight: 500;
    margin-bottom: 2px;
}

.signature-wrapper {
    margin-bottom: 10px;
}

.signature-canvas, #signatureCanvas {
    border: 1.5px solid #bbb;
    border-radius: 6px;
    background: #fff;
    width: 100%;
    max-width: 500px;
    height: 150px;
    touch-action: none;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: block;
    margin-bottom: 15px;
}

.signature-actions, .signature-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.signature-actions .btn, .signature-buttons button {
    min-width: 120px;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.signature-status {
    color: var(--success);
    font-weight: 500;
    margin-left: 10px;
    display: flex;
    align-items: center;
}

.signature-status i {
    margin-right: 4px;
}

/* Connection Status */
.connection-status {
    padding: 10px 15px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.connection-status.online {
    background: #e8f5e9;
    color: var(--success);
    border: 1px solid #c8e6c9;
}

.connection-status.offline {
    background: #fff3e0;
    color: var(--warning);
    border: 1px solid #ffe0b2;
}

.connection-status.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Slug Input Styles */
.slug-input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
    background: white;
}

.slug-prefix {
    padding: 12px 15px;
    background: #f8f9fa;
    border-right: 1px solid #ddd;
    color: #666;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.slug-input-group input {
    border: none !important;
    box-shadow: none !important;
    flex: 1;
    padding: 12px 15px !important;
    font-size: 1rem;
    min-width: 0;
}

.slug-input-group input:focus {
    outline: none;
    background: #fafafa;
}

.slug-input-group input.available {
    border-color: var(--success) !important;
}

.slug-input-group input.taken {
    border-color: var(--accent) !important;
}

/* Slug Status Messages - AFTER the input group */
.slug-status {
    padding: 8px 12px;
    border-radius: 4px;
    margin-top: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f4f8;
    border: 1px solid #dde4ec;
}

.slug-status.checking {
    background: #e3f2fd;
    border-color: var(--secondary);
    color: var(--secondary);
}

.slug-status.available {
    background: #e8f5e9;
    border-color: var(--success);
    color: var(--success);
}

.slug-status.own-draft {
    background: #e8f5e9;
    border-color: var(--success);
    color: var(--success);
}

.slug-status.taken, 
.slug-status.error {
    background: #ffebee;
    border-color: #c62828;
    color: #c62828;
}

.slug-status i {
    font-size: 1rem;
}

/* Status Panel */
.onboarding-status-panel {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.onboarding-status-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--primary);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 10px;
}

/* Submission Checklist */
.submission-checklist {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 20px;
    margin: 20px 0;
}

/* Checklist Sections */
.checklist-section {
    margin-bottom: 25px;
}

.checklist-section h4 {
    margin-bottom: 15px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist-section h4 i {
    color: var(--secondary);
}

/* Checklist Items */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #666;
    transition: color 0.3s ease;
}

.checklist-item.complete {
    color: var(--success);
}

.checklist-item i {
    font-size: 1.1rem;
}

.checklist-item i.fa-check-circle {
    color: var(--success);
}

.checklist-item i.fa-circle {
    color: #ddd;
}

/* Submission Status */
.missing-fields, .ready-message {
    padding: 12px 15px;
    border-radius: var(--border-radius);
    margin-top: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.missing-fields {
    background: #fff3e0;
    color: var(--warning);
    border: 1px solid #ffe0b2;
}

.ready-message {
    background: #e8f5e9;
    color: var(--success);
    border: 1px solid #c8e6c9;
}

/* Status Messages */
.status-message.success {
    background: #e8f5e9;
    color: var(--success);
    border: 1px solid #c8e6c9;
}

.status-message.error, .message.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* Small text */
small {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-top: 5px;
}

/* Terms Section Styles */
.terms-section {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

.terms-text {
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: white;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.terms-text ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.terms-text li {
    margin-bottom: 8px;
}

/* Progress Steps */
.step {
    display: inline-block !important;
    padding: 8px 16px;
    margin: 0 5px;
    border-radius: 20px;
    background: #f8f9fa;
    color: #666;
    transition: all 0.3s ease;
}

.step.active {
    background: var(--secondary);
    color: white;
}

.step.completed {
    background: var(--success);
    color: white;
}

/* Company Logo Upload Styling */
.logo-preview {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    background: #f9f9f9;
    text-align: center;
}

.logo-preview img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Logo Upload Field Styling */
.form-group input[type="file"] {
    border: 2px dashed #ddd;
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-group input[type="file"]:hover {
    border-color: var(--secondary);
    background: rgba(52, 152, 219, 0.05);
}

.form-group input[type="file"]:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Expertise Grid Layout */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

/* Section headers styling */
.form-section h3 {
    color: var(--primary);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: var(--secondary);
    font-size: 1.2em;
}

.form-section h4 {
    color: var(--dark);
    margin-bottom: 15px;
    margin-top: 20px;
    font-size: 1.1em;
}

/* Textarea consistent styling */
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    min-height: 80px;
    transition: border 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Logo Upload Styling */
.remove-logo {
    background: #dc3232;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.remove-logo:hover {
    background: #a02622;
}

/* Business Selection Components */
.business-selection-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.business-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.business-option {
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.business-option:hover {
    border-color: var(--secondary);
    background: rgba(52, 152, 219, 0.05);
}

.business-option.selected {
    border-color: var(--secondary);
    background: rgba(52, 152, 219, 0.1);
}

.business-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
}

.business-type {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 8px;
}

.status-badge {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    font-weight: 500;
}

.status-badge.publish {
    background: #e8f5e9;
    color: var(--success);
}

.status-badge.draft {
    background: #fff3e0;
    color: var(--warning);
}

.status-badge.pending {
    background: #e3f2fd;
    color: var(--secondary);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.phase-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.phase {
    padding: 10px 20px;
    border-radius: 20px;
    background: #f8f9fa;
    color: #666;
    transition: all 0.3s ease;
}

.phase.active {
    background: var(--secondary);
    color: white;
}

.phase.completed {
    background: var(--success);
    color: white;
}

.phase.optional {
    background: #fff3e0;
    color: var(--warning);
}

/* Phase Status Panel */
.phase-status-panel {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-top: 30px;
    box-shadow: var(--box-shadow);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .simple-onboarding {
        padding: 10px;
    }
    
    .onboarding-form {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .onboarding-status-panel {
        grid-column: 1;
        grid-row: 2;
        position: static;
        max-height: none;
    }
    
    .form-navigation {
        flex: 0 0 auto;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .progress {
        flex-direction: column;
    }
    
    .form-navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .form-navigation-buttons button {
        width: 100%;
    }
    
    .slug-input-group {
        flex-direction: column;
    }
    
    .slug-prefix {
        border-right: none;
        border-bottom: 1px solid #ddd;
        text-align: center;
    }
    
    .signature-actions, .signature-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .signature-actions .btn, .signature-buttons button {
        width: 100%;
        min-width: 0;
    }
    
    .signature-canvas, #signatureCanvas {
        height: 120px;
        max-width: 100%;
    }
    
    .onboarding-status-panel, .submission-checklist {
        padding: 15px;
        margin: 15px 0;
    }
    
    .staff-count-container {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .business-options-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-indicator,
    .phase-progress {
        flex-direction: column;
        gap: 10px;
    }
    
    .phase {
        text-align: center;
    }
    
    .checkbox-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .checkbox-item input[type="number"],
    .checkbox-item input[type="text"] {
        margin-left: 0;
        width: 100%;
    }
    
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* Radio buttons reuse checkbox styling */
.radio-group .checkbox-item {
    cursor: pointer;
}

.radio-group .checkbox-item input[type="radio"] {
    /* radios can use the same styling as checkboxes */
}

/* Hierarchy Section Styles */
.hierarchy-section {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.radio-group.vertical {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #007cba;
    background: #f0f7ff;
}

.radio-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
}

.radio-label {
    flex: 1;
}

.radio-label strong {
    display: block;
    margin-bottom: 4px;
    color: #2c3338;
}

.radio-label small {
    color: #6c757d;
    font-size: 0.875em;
}

/* Guidance Messages */
.guidance-message {
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.9em;
}

.guidance-message.info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.guidance-message.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.guidance-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Read-only Field Styles */
.read-only-field {
    opacity: 0.8;
}

.read-only-value {
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    min-height: 42px;
    display: flex;
    align-items: center;
}

.read-only-value.placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Slug Validation Styles */
.slug-suggestions {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.slug-suggestions ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.slug-suggestions li {
    margin-bottom: 5px;
}

.slug-suggestions a {
    color: #007cba;
    text-decoration: none;
}

.slug-suggestions a:hover {
    text-decoration: underline;
}

/* Input status indicators */
input.checking {
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 1px #ffc107;
}

input.available, input.own-draft {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 1px #28a745;
}

input.error, input.taken {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px #dc3545;
}

/* Document Preview Styles */
.document-preview {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.document-preview .preview-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.document-preview .preview-item i {
    color: #666;
}

.document-preview .preview-item span {
    flex: 1;
    font-size: 14px;
}

.document-preview .preview-item button {
    background: rgba(220, 50, 50, 0.1);
    color: #dc3232;
    border: 1px solid #dc3232;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
}

/* CSS styles for address search, results, etc. */  /* Address Search Styles */
.address-search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.address-search-container input {
    flex: 1;
}

.search-results {
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
}

.address-results {
    padding: 10px;
}

.address-result {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
}

.address-result:hover {
    background-color: #f5f5f5;
}

.address-result i {
    color: #0073aa;
}

.address-details {
    flex: 1;
}

.address-fields-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.geocode-action {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: center;
}

.selected-address {
    margin: 20px 0;
    padding: 15px;
    background-color: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 5px;
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.address-display {
    font-size: 14px;
}

.coordinates {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}

.map-preview {
    margin: 20px 0;
}

.map-container {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Interactive Map Styles */
.interactive-map-section {
    margin-top: 20px;
}

.map-mode-toggle {
    margin-bottom: 15px;
    text-align: center;
}

.interactive-map-container {
    margin-top: 15px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 400px;
}

.interactive-map-container > div[ref="interactiveMapRef"],
.interactive-map-container > div {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #f8f9fa;
    width: 100% !important;
    height: 400px !important;
    min-height: 400px;
}

div[ref="interactiveMapRef"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #f8f9fa;
}

/* Map header styling */
.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.map-header h4 {
    margin: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-header h4 i {
    color: var(--secondary);
}

/* Map preview section */
.map-preview {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 1px solid #e9ecef;
}

.map-preview h4 {
    margin-top: 0;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.map-preview h4 i {
    color: var(--secondary);
}

/* Leaflet map specific fixes */
.leaflet-container {
    font-family: inherit !important;
    font-size: 14px !important;
    background-color: #f8f9fa !important;
}

.leaflet-control-container {
    font-family: inherit !important;
}

/* Address section specific fixes */
.address-section {
    position: relative;
}

/* Ensure the container is rendered */
.interactive-map-container:not([style*="display: none"]) {
    display: block !important;
}

/* Force visibility for Vue v-if rendered elements */
[v-if] {
    display: block !important;
}

/* =============================================
   BILLING SECTION STYLES (Frontend Onboarding)
   ============================================= */
.billing-explanation {
    margin-bottom: 20px;
}

.separate-billing-details,
.consolidated-billing-details {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin: 15px 0;
    border: 1px solid #e9ecef;
}

.account-number-preview {
    text-align: center;
    padding: 15px;
}

.account-number-display {
    font-family: 'Courier New', monospace;
    font-size: 28px;
    font-weight: bold;
    color: #2c3e50;
    background: white;
    border: 2px dashed #007cba;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    display: inline-block;
}

.account-number-display .prefix {
    color: #007cba;
}

.account-number-display .number {
    color: #28a745;
}

/* Map toggle button */
.map-mode-toggle .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
}

.map-mode-toggle .btn:hover {
    background: #2980b9;
}

.map-mode-toggle .btn i {
    font-size: 1.1em;
}

/* Back to static map button */
.btn-outline.btn-small {
    padding: 6px 12px;
    font-size: 0.9rem;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn-outline.btn-small:hover {
    background: rgba(52, 152, 219, 0.1);
}

/* Debug styles - remove in production */
.debug-border {
    border: 2px solid red !important;
}

.debug-bg {
    background-color: rgba(255, 0, 0, 0.1) !important;
}
#interactive-map-container {
    min-height: 400px;
    width: 100%;
    z-index: 1;
}

.interactive-map-container {
    position: relative;
    z-index: 10;
}

/* =============================================
   ONBOARDING COMPLETE PAGE STYLES
   ============================================= */
.onboarding-complete-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.completion-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.completion-icon {
    text-align: center;
    margin-bottom: 1.5rem;
}

.completion-icon svg {
    display: inline-block;
}

.onboarding-complete-container h1 {
    text-align: center;
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.completion-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.submission-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

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

.summary-item strong {
    color: #555;
}

.next-steps {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f0f7ff;
    border-radius: 8px;
}

.next-steps h2 {
    margin-top: 0;
    color: #1a237e;
}

.next-steps ol {
    margin-left: 1.5rem;
}

.next-steps li {
    margin-bottom: 1.5rem;
}

.next-steps li:last-child {
    margin-bottom: 0;
}

.next-steps strong {
    color: #1a237e;
    display: block;
    margin-bottom: 0.25rem;
}

.completion-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #4CAF50;
    color: white;
    border: 2px solid #4CAF50;
}

.btn-primary:hover {
    background: #3d8b40;
    border-color: #3d8b40;
}

.btn-secondary {
    background: white;
    color: #4CAF50;
    border: 2px solid #4CAF50;
}

.btn-secondary:hover {
    background: #f0f7ff;
}

.btn-tertiary {
    background: #666;
    color: white;
    border: 2px solid #666;
}

.btn-tertiary:hover {
    background: #555;
    border-color: #555;
}

.tips-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #fff8e1;
    border-radius: 8px;
}

.tips-section h3 {
    margin-top: 0;
    color: #1a237e;
}

.tips-section ul {
    margin-left: 1.5rem;
}

.tips-section li {
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .completion-card {
        padding: 1.5rem;
    }
    
    .completion-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .summary-item {
        flex-direction: column;
    }
    
    .summary-item span {
        margin-top: 0.25rem;
    }
}