/**
 * Geofencing Wizard Styles
 *
 * Mirrors the UX patterns from onboarding-wizard.css
 * Uses Artemis Design System tokens for consistency
 *
 * @version 1.0.0
 * @created January 20, 2026
 */

/* ==========================================================================
   CSS Variables - Wizard Theme
   ========================================================================== */

:root {
    /* Primary Wizard Colors - Platform Purple Accent */
    --wizard-primary: #8b5cf6;
    --wizard-primary-hover: #7c3aed;
    --wizard-primary-light: rgba(139, 92, 246, 0.15);
    --wizard-success: #10b981;
    --wizard-success-hover: #059669;
    --wizard-warning: #f59e0b;
    --wizard-danger: #ef4444;

    /* Step States */
    --step-pending: #4b5563;
    --step-active: var(--wizard-primary);
    --step-completed: var(--wizard-success);

    /* Zone Colors */
    --zone-conversion: #3b82f6;
    --zone-conversion-bg: rgba(59, 130, 246, 0.15);
    --zone-target: #f97316;
    --zone-target-bg: rgba(249, 115, 22, 0.15);
    --zone-business: #a08dd6;

    /* Light Mode Surfaces */
    --wizard-bg: #f9fafb;
    --wizard-card-bg: #ffffff;
    --wizard-border: #e5e7eb;
    --wizard-text: #1f2937;
    --wizard-text-muted: #6b7280;
    --wizard-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --wizard-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* Sizing */
    --wizard-radius: 12px;
    --wizard-radius-sm: 8px;
    --wizard-radius-full: 9999px;
    --wizard-transition: all 0.3s ease;
    --wizard-max-width: 1000px;

    /* Spacing */
    --wizard-space-xs: 0.25rem;
    --wizard-space-sm: 0.5rem;
    --wizard-space-md: 1rem;
    --wizard-space-lg: 1.5rem;
    --wizard-space-xl: 2rem;
    --wizard-space-2xl: 3rem;
}

/* Dark Mode - Platform Matching Colors */
.dark-mode,
[data-theme="dark"] {
    /* Cloudline Modern Night Sky - Platform Colors */
    --wizard-bg: #0F1419;
    --wizard-card-bg: #1A1F2E;
    --wizard-border: rgba(96, 165, 250, 0.2);
    --wizard-text: #f9fafb;
    --wizard-text-muted: #9ca3af;
    --wizard-shadow: 0 4px 6px -1px rgba(30, 58, 138, 0.3), 0 2px 4px -2px rgba(30, 58, 138, 0.3);
    --wizard-shadow-lg: 0 10px 15px -3px rgba(30, 58, 138, 0.4), 0 4px 6px -4px rgba(30, 58, 138, 0.4);

    /* Purple Accent for Dark Mode */
    --wizard-primary: #a08dd6;
    --wizard-primary-hover: #8e7cc3;
    --wizard-primary-light: rgba(160, 141, 214, 0.2);

    /* Step States */
    --step-pending: rgba(96, 165, 250, 0.3);
    --step-active: #a08dd6;
}

/* ==========================================================================
   Base Layout
   ========================================================================== */

.geofencing-wizard-page {
    min-height: 100vh;
    background: var(--wizard-bg);
    color: var(--wizard-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.geofencing-wizard-container {
    max-width: var(--wizard-max-width);
    margin: 0 auto;
    padding: var(--wizard-space-lg);
}

.geofencing-wizard-header {
    text-align: center;
    margin-bottom: var(--wizard-space-xl);
}

.geofencing-wizard-header h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--wizard-text);
    margin-bottom: var(--wizard-space-sm);
}

.geofencing-wizard-header p {
    color: var(--wizard-text-muted);
    font-size: 1rem;
}

/* ==========================================================================
   Progress Indicator - Platform Design Language
   ========================================================================== */

.wizard-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--wizard-space-xl);
    padding: var(--wizard-space-lg);
    background: var(--wizard-card-bg);
    border-radius: var(--wizard-radius);
    border: 1px solid var(--wizard-border);
}

.wizard-progress-track {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.wizard-step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: var(--wizard-transition);
    padding: 0 var(--wizard-space-md);
}

.wizard-step-indicator:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 24px);
    width: 48px;
    height: 2px;
    background: var(--step-pending);
    transition: var(--wizard-transition);
}

.wizard-step-indicator.completed:not(:last-child)::after {
    background: var(--step-completed);
}

.wizard-step-indicator.active:not(:last-child)::after {
    background: linear-gradient(90deg, var(--step-active) 0%, var(--step-pending) 100%);
}

.wizard-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--step-pending);
    background: var(--wizard-card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--wizard-text-muted);
    transition: var(--wizard-transition);
    position: relative;
    z-index: 1;
}

.wizard-step-indicator:hover .wizard-step-circle {
    border-color: var(--wizard-primary);
    color: var(--wizard-primary);
}

.wizard-step-indicator.active .wizard-step-circle {
    background: linear-gradient(135deg, #a08dd6 0%, #8b5cf6 100%);
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.wizard-step-indicator.completed .wizard-step-circle {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    border-color: transparent;
    color: white;
}

.wizard-step-indicator.completed .wizard-step-circle::before {
    content: '\2713';
    font-weight: bold;
}

.wizard-step-indicator.completed .wizard-step-number {
    display: none;
}

.wizard-step-label {
    margin-top: var(--wizard-space-sm);
    font-size: 0.6875rem;
    color: var(--wizard-text-muted);
    text-align: center;
    max-width: 64px;
    transition: var(--wizard-transition);
    line-height: 1.3;
    white-space: nowrap;
}

.wizard-step-indicator.active .wizard-step-label {
    color: var(--wizard-primary);
    font-weight: 600;
}

.wizard-step-indicator.completed .wizard-step-label {
    color: var(--step-completed);
}

/* ==========================================================================
   Step Content Container - Platform Design
   ========================================================================== */

.wizard-steps-container {
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 500px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

.wizard-step-content {
    background: var(--wizard-card-bg);
    border-radius: var(--wizard-radius);
    padding: var(--wizard-space-xl);
    box-shadow: var(--wizard-shadow);
    border: 1px solid var(--wizard-border);
}

/* Step Title Styling */
.wizard-step-content h2 {
    color: var(--wizard-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--wizard-space-sm);
}

.wizard-step-content > p:first-of-type {
    color: var(--wizard-text-muted);
    font-size: 0.9375rem;
    margin-bottom: var(--wizard-space-lg);
}

/* Info Box Styling */
.info-box,
.wizard-info-box {
    background: var(--wizard-primary-light);
    border: 1px solid var(--wizard-primary);
    border-radius: var(--wizard-radius-sm);
    padding: var(--wizard-space-md);
    margin-top: var(--wizard-space-lg);
}

.info-box h4,
.wizard-info-box h4 {
    color: var(--wizard-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--wizard-space-xs);
    display: flex;
    align-items: center;
    gap: var(--wizard-space-sm);
}

.info-box p,
.wizard-info-box p {
    color: var(--wizard-text-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
    margin: 0;
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wizard-step.slide-in-right {
    animation: slideInRight 0.3s ease;
}

.wizard-step.slide-in-left {
    animation: slideInLeft 0.3s ease;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.wizard-form-group {
    margin-bottom: var(--wizard-space-lg);
}

.wizard-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wizard-text);
    margin-bottom: var(--wizard-space-sm);
}

.wizard-form-label.required::after {
    content: ' *';
    color: var(--wizard-danger);
}

.wizard-form-help {
    font-size: 0.75rem;
    color: var(--wizard-text-muted);
    margin-top: var(--wizard-space-xs);
}

.wizard-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--wizard-border);
    border-radius: var(--wizard-radius-sm);
    background: var(--wizard-bg);
    color: var(--wizard-text);
    transition: var(--wizard-transition);
    min-height: 48px; /* Touch-friendly */
}

.wizard-input:focus {
    outline: none;
    border-color: var(--wizard-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.wizard-input::placeholder {
    color: var(--wizard-text-muted);
}

.wizard-input.error {
    border-color: var(--wizard-danger);
}

.wizard-input.success {
    border-color: var(--wizard-success);
}

.wizard-textarea {
    min-height: 100px;
    resize: vertical;
}

/* ==========================================================================
   Goal Selection Cards (Step 1) - Platform Design
   ========================================================================== */

.goal-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--wizard-space-md);
    margin-top: var(--wizard-space-md);
}

.goal-card {
    padding: var(--wizard-space-xl);
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius);
    background: var(--wizard-card-bg);
    cursor: pointer;
    transition: var(--wizard-transition);
    text-align: center;
}

.goal-card:hover {
    border-color: var(--wizard-primary);
    transform: translateY(-4px);
    box-shadow: var(--wizard-shadow-lg);
}

.goal-card.selected {
    border-color: var(--wizard-primary);
    background: var(--wizard-primary-light);
    box-shadow: 0 0 0 2px var(--wizard-primary);
}

.goal-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a08dd6 0%, #8e7cc3 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin: 0 auto var(--wizard-space-md);
}

.goal-card.selected .goal-card-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.goal-card-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--wizard-primary);
    margin-bottom: var(--wizard-space-xs);
}

.goal-card-description {
    font-size: 0.8125rem;
    color: var(--wizard-text-muted);
    line-height: 1.4;
}

/* ==========================================================================
   Zone Cards (Steps 2 & 3)
   ========================================================================== */

.zone-input-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--wizard-space-lg);
}

.zone-form {
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-md);
}

.zone-address-input {
    position: relative;
}

.zone-address-input .wizard-input {
    padding-right: 3rem;
}

.zone-address-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--wizard-card-bg);
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-sm);
    box-shadow: var(--wizard-shadow-lg);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.zone-address-autocomplete.visible {
    display: block;
}

.zone-autocomplete-item {
    padding: var(--wizard-space-sm) var(--wizard-space-md);
    cursor: pointer;
    transition: var(--wizard-transition);
}

.zone-autocomplete-item:hover {
    background: var(--wizard-primary-light);
}

.zone-radius-selector {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-md);
}

.zone-radius-slider {
    flex: 1;
    -webkit-appearance: none;
    height: 8px;
    background: var(--wizard-border);
    border-radius: var(--wizard-radius-full);
    outline: none;
}

.zone-radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--wizard-primary);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--wizard-transition);
}

.zone-radius-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

.zone-radius-value {
    min-width: 80px;
    text-align: right;
    font-weight: 600;
    color: var(--wizard-primary);
}

/* Zone Search Radius Selector (Step 4) */
.zone-search-radius-list {
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-md);
}

.zone-search-radius-item {
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-sm);
    padding: var(--wizard-space-md);
    background: var(--wizard-bg);
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius);
    transition: var(--wizard-transition);
}

.zone-search-radius-item:hover {
    border-color: var(--wizard-primary-light);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.1);
}

.zone-search-radius-info {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-sm);
}

.zone-search-radius-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--wizard-radius-sm);
    font-size: 0.875rem;
}

.zone-search-radius-icon.conversion {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.25) 100%);
    color: #3b82f6;
}

.zone-search-radius-icon.target {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.25) 100%);
    color: var(--wizard-primary);
}

.zone-search-radius-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.zone-search-radius-name {
    font-weight: 600;
    color: var(--wizard-text);
    font-size: 0.9375rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zone-search-radius-address {
    font-size: 0.8125rem;
    color: var(--wizard-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.zone-search-radius-selector {
    display: flex;
    flex-wrap: wrap;
    gap: var(--wizard-space-xs);
    margin-top: var(--wizard-space-xs);
}

.radius-pill {
    padding: 0.375rem 0.75rem;
    background: var(--wizard-bg);
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-full);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--wizard-text-muted);
    cursor: pointer;
    transition: var(--wizard-transition);
    white-space: nowrap;
}

.radius-pill:hover:not(:disabled) {
    border-color: var(--wizard-primary);
    color: var(--wizard-primary);
    background: var(--wizard-primary-light);
}

.radius-pill.active {
    background: linear-gradient(135deg, var(--wizard-primary) 0%, #7c3aed 100%);
    border-color: var(--wizard-primary);
    color: white;
}

.radius-pill:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive adjustments for radius pills */
@media (max-width: 576px) {
    .zone-search-radius-item {
        padding: var(--wizard-space-sm);
    }

    .zone-search-radius-selector {
        gap: 6px;
    }

    .radius-pill {
        padding: 0.3125rem 0.625rem;
        font-size: 0.75rem;
    }
}

.zone-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--wizard-space-sm);
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #a08dd6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: var(--wizard-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--wizard-transition);
    min-height: 48px;
}

.zone-add-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.zone-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Mini Map */
.zone-mini-map {
    border-radius: var(--wizard-radius);
    overflow: hidden;
    border: 1px solid var(--wizard-border);
    min-height: 300px;
    background: #e5e7eb;
}

/* Zone List */
.zone-list {
    margin-top: var(--wizard-space-lg);
}

.zone-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--wizard-space-md);
}

.zone-list-title {
    font-weight: 600;
    font-size: 1rem;
}

.zone-list-count {
    font-size: 0.875rem;
    color: var(--wizard-text-muted);
}

.zone-cards {
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-sm);
}

.zone-card {
    display: flex;
    align-items: center;
    padding: var(--wizard-space-md);
    background: var(--wizard-card-bg);
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-sm);
    transition: var(--wizard-transition);
}

.zone-card:hover {
    border-color: var(--wizard-primary);
}

.zone-card.conversion {
    border-left: 4px solid var(--zone-conversion);
}

.zone-card.target {
    border-left: 4px solid var(--zone-target);
}

.zone-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--wizard-space-md);
    font-size: 1.25rem;
}

.zone-card.conversion .zone-card-icon {
    background: var(--zone-conversion-bg);
    color: var(--zone-conversion);
}

.zone-card.target .zone-card-icon {
    background: var(--zone-target-bg);
    color: var(--zone-target);
}

.zone-card-info {
    flex: 1;
}

.zone-card-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--wizard-text);
    margin-bottom: 2px;
}

.zone-card-details {
    font-size: 0.75rem;
    color: var(--wizard-text-muted);
}

.zone-card-actions {
    display: flex;
    gap: var(--wizard-space-sm);
}

.zone-action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: var(--wizard-radius-sm);
    background: transparent;
    color: var(--wizard-text-muted);
    cursor: pointer;
    transition: var(--wizard-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zone-action-btn:hover {
    background: var(--wizard-border);
    color: var(--wizard-text);
}

.zone-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.1);
    color: var(--wizard-danger);
}

/* Empty State */
.zone-empty-state {
    text-align: center;
    padding: var(--wizard-space-2xl);
    color: var(--wizard-text-muted);
}

.zone-empty-icon {
    font-size: 3rem;
    margin-bottom: var(--wizard-space-md);
    opacity: 0.5;
}

.zone-empty-text {
    font-size: 0.875rem;
}

/* ==========================================================================
   Business Type Grid (Step 4)
   ========================================================================== */

.business-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--wizard-space-md);
    margin-bottom: var(--wizard-space-lg);
}

.business-type-card {
    padding: var(--wizard-space-md);
    border: 2px solid var(--wizard-border);
    border-radius: var(--wizard-radius-sm);
    background: var(--wizard-card-bg);
    cursor: pointer;
    transition: var(--wizard-transition);
    text-align: center;
}

.business-type-card:hover {
    border-color: var(--wizard-primary);
    transform: translateY(-2px);
}

.business-type-card.selected {
    border-color: var(--zone-business);
    background: var(--wizard-primary-light);
    box-shadow: 0 0 0 2px var(--zone-business);
}

.business-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a08dd6 0%, #8e7cc3 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin: 0 auto var(--wizard-space-sm);
}

.business-type-card.selected .business-type-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.business-type-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--wizard-text);
}

/* Search Button */
.business-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--wizard-space-sm);
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #a08dd6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    border-radius: var(--wizard-radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wizard-transition);
}

.business-search-btn:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.business-search-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Business Results */
.business-results {
    margin-top: var(--wizard-space-lg);
}

.business-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--wizard-space-md);
    padding-bottom: var(--wizard-space-sm);
    border-bottom: 1px solid var(--wizard-border);
}

.business-results-count {
    font-size: 0.875rem;
    color: var(--wizard-text-muted);
}

.business-select-all {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-sm);
    font-size: 0.875rem;
    color: var(--wizard-primary);
    cursor: pointer;
}

.business-list {
    max-height: 400px;
    overflow-y: auto;
}

.business-item {
    display: flex;
    align-items: center;
    padding: var(--wizard-space-md);
    border-bottom: 1px solid var(--wizard-border);
    transition: var(--wizard-transition);
}

.business-item:hover {
    background: var(--wizard-primary-light);
}

.business-item-checkbox {
    width: 20px;
    height: 20px;
    margin-right: var(--wizard-space-md);
    accent-color: var(--zone-business);
}

.business-item-info {
    flex: 1;
}

.business-item-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--wizard-text);
}

.business-item-address {
    font-size: 0.75rem;
    color: var(--wizard-text-muted);
}

.business-item-distance {
    font-size: 0.75rem;
    color: var(--zone-business);
    font-weight: 500;
}

/* ==========================================================================
   Full Map Review (Step 5)
   ========================================================================== */

.map-review-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--wizard-space-lg);
    min-height: 500px;
}

.map-review-container {
    border-radius: var(--wizard-radius);
    overflow: hidden;
    border: 1px solid var(--wizard-border);
    min-height: 500px;
}

.map-review-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-md);
}

.map-stats-card {
    padding: var(--wizard-space-md);
    background: var(--wizard-card-bg);
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-sm);
}

.map-stats-label {
    font-size: 0.75rem;
    color: var(--wizard-text-muted);
    margin-bottom: var(--wizard-space-xs);
}

.map-stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-text);
}

.map-stats-value.conversion {
    color: var(--zone-conversion);
}

.map-stats-value.target {
    color: var(--zone-target);
}

.map-stats-value.business {
    color: var(--zone-business);
}

.map-legend {
    padding: var(--wizard-space-md);
    background: var(--wizard-card-bg);
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-sm);
}

.map-legend-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: var(--wizard-space-sm);
}

.map-legend-item {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-sm);
    font-size: 0.75rem;
    margin-bottom: var(--wizard-space-xs);
}

.map-legend-color {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.map-legend-color.conversion {
    background: var(--zone-conversion);
}

.map-legend-color.target {
    background: var(--zone-target);
}

.map-legend-color.business {
    background: var(--zone-business);
}

.map-edit-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-sm);
}

.map-edit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--wizard-space-sm);
    padding: 0.75rem;
    background: transparent;
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-sm);
    color: var(--wizard-text);
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--wizard-transition);
}

.map-edit-btn:hover {
    border-color: var(--wizard-primary);
    color: var(--wizard-primary);
}

/* ==========================================================================
   Review Summary (Step 6)
   ========================================================================== */

.review-summary {
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-lg);
}

.review-section {
    background: var(--wizard-card-bg);
    border: 1px solid var(--wizard-border);
    border-radius: var(--wizard-radius-sm);
    overflow: hidden;
}

.review-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--wizard-space-md);
    background: var(--wizard-border);
    cursor: pointer;
}

.review-section-title {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-sm);
    font-weight: 600;
    font-size: 0.875rem;
}

.review-section-edit {
    font-size: 0.75rem;
    color: var(--wizard-primary);
    text-decoration: none;
}

.review-section-edit:hover {
    text-decoration: underline;
}

.review-section-content {
    padding: var(--wizard-space-md);
}

.review-item {
    display: flex;
    justify-content: space-between;
    padding: var(--wizard-space-sm) 0;
    border-bottom: 1px solid var(--wizard-border);
}

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

.review-item-label {
    color: var(--wizard-text-muted);
    font-size: 0.875rem;
}

.review-item-value {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Contact Form */
.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--wizard-space-md);
}

.contact-form .wizard-form-group.full-width {
    grid-column: 1 / -1;
}

/* Terms Checkbox */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--wizard-space-sm);
    margin-top: var(--wizard-space-lg);
}

.terms-checkbox input {
    margin-top: 4px;
    accent-color: var(--wizard-primary);
}

.terms-checkbox label {
    font-size: 0.875rem;
    color: var(--wizard-text-muted);
}

.terms-checkbox a {
    color: var(--wizard-primary);
}

/* ==========================================================================
   Navigation Buttons
   ========================================================================== */

.wizard-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--wizard-space-xl);
    padding-top: var(--wizard-space-lg);
    border-top: 1px solid var(--wizard-border);
}

.wizard-nav-left,
.wizard-nav-right {
    display: flex;
    gap: var(--wizard-space-md);
}

.wizard-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.wizard-btn {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-sm);
    padding: 0.875rem 1.5rem;
    border-radius: var(--wizard-radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wizard-transition);
    min-height: 48px;
    border: none;
}

.wizard-btn-secondary {
    background: transparent;
    border: 1px solid var(--wizard-border);
    color: var(--wizard-text);
}

.wizard-btn-secondary:hover {
    border-color: var(--wizard-text);
}

.wizard-btn-primary {
    background: linear-gradient(135deg, #a08dd6 0%, #8b5cf6 100%);
    color: white;
    border: none;
}

.wizard-btn-primary:hover {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.wizard-btn-success {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
    border: none;
}

.wizard-btn-success:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.wizard-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.wizard-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--wizard-space-2xl);
}

.wizard-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--wizard-border);
    border-top-color: var(--wizard-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.wizard-loading-text {
    margin-top: var(--wizard-space-md);
    color: var(--wizard-text-muted);
    font-size: 0.875rem;
}

/* Progress Bar */
.wizard-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--wizard-border);
    border-radius: var(--wizard-radius-full);
    overflow: hidden;
    margin-top: var(--wizard-space-sm);
}

.wizard-progress-fill {
    height: 100%;
    background: var(--wizard-primary);
    transition: width 0.3s ease;
}

/* ==========================================================================
   Toast Notifications
   ========================================================================== */

.wizard-toast-container {
    position: fixed;
    bottom: var(--wizard-space-lg);
    right: var(--wizard-space-lg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--wizard-space-sm);
}

.wizard-toast {
    display: flex;
    align-items: center;
    gap: var(--wizard-space-sm);
    padding: var(--wizard-space-md) var(--wizard-space-lg);
    background: var(--wizard-card-bg);
    border-radius: var(--wizard-radius-sm);
    box-shadow: var(--wizard-shadow-lg);
    animation: slideInRight 0.3s ease;
}

.wizard-toast.success {
    border-left: 4px solid var(--wizard-success);
}

.wizard-toast.error {
    border-left: 4px solid var(--wizard-danger);
}

.wizard-toast.warning {
    border-left: 4px solid var(--wizard-warning);
}

.wizard-toast-icon {
    font-size: 1.25rem;
}

.wizard-toast.success .wizard-toast-icon {
    color: var(--wizard-success);
}

.wizard-toast.error .wizard-toast-icon {
    color: var(--wizard-danger);
}

.wizard-toast-message {
    font-size: 0.875rem;
    color: var(--wizard-text);
}

.wizard-toast-close {
    margin-left: var(--wizard-space-md);
    background: none;
    border: none;
    color: var(--wizard-text-muted);
    cursor: pointer;
}

/* ==========================================================================
   Success Animation
   ========================================================================== */

.wizard-success-animation {
    text-align: center;
    padding: var(--wizard-space-2xl);
}

.wizard-success-icon {
    width: 80px;
    height: 80px;
    background: var(--wizard-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--wizard-space-lg);
    animation: successPop 0.5s ease;
}

.wizard-success-icon i {
    font-size: 2.5rem;
    color: white;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.wizard-success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--wizard-text);
    margin-bottom: var(--wizard-space-sm);
}

.wizard-success-message {
    color: var(--wizard-text-muted);
    margin-bottom: var(--wizard-space-lg);
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .geofencing-wizard-container {
        padding: var(--wizard-space-md);
    }

    .wizard-progress {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: var(--wizard-space-sm);
    }

    .wizard-step-indicator:not(:last-child)::after {
        width: 40px;
    }

    .wizard-step-label {
        display: none;
    }

    .wizard-step-content {
        padding: var(--wizard-space-md);
    }

    .zone-input-section {
        grid-template-columns: 1fr;
    }

    .zone-mini-map {
        min-height: 200px;
    }

    .map-review-layout {
        grid-template-columns: 1fr;
    }

    .map-review-container {
        min-height: 300px;
    }

    .contact-form {
        grid-template-columns: 1fr;
    }

    .wizard-navigation {
        flex-wrap: wrap;
        gap: var(--wizard-space-md);
    }

    .wizard-nav-left,
    .wizard-nav-right {
        width: 100%;
        justify-content: center;
    }

    .wizard-nav-center {
        position: static;
        transform: none;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .goal-cards-grid {
        grid-template-columns: 1fr;
    }

    .business-type-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .wizard-step-circle {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .wizard-step-indicator:not(:last-child)::after {
        top: 16px;
        left: calc(50% + 16px);
        width: 30px;
    }

    .business-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .wizard-btn {
        padding: 0.75rem 1rem;
        font-size: 0.813rem;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

.text-muted {
    color: var(--wizard-text-muted);
}

.mt-md {
    margin-top: var(--wizard-space-md);
}

.mt-lg {
    margin-top: var(--wizard-space-lg);
}

.mb-md {
    margin-bottom: var(--wizard-space-md);
}

.mb-lg {
    margin-bottom: var(--wizard-space-lg);
}

/* Advanced Mode Link */
.advanced-mode-link {
    text-align: center;
    margin-top: var(--wizard-space-xl);
    padding-top: var(--wizard-space-lg);
    border-top: 1px solid var(--wizard-border);
}

.advanced-mode-link a {
    color: var(--wizard-text-muted);
    font-size: 0.875rem;
    text-decoration: none;
}

.advanced-mode-link a:hover {
    color: var(--wizard-primary);
    text-decoration: underline;
}

/* ==========================================================================
   Google Places Autocomplete Dropdown Styling
   ========================================================================== */

/* The autocomplete dropdown is rendered by Google in a .pac-container element */
.pac-container {
    background-color: var(--wizard-card-bg, #ffffff);
    border: 1px solid var(--wizard-border, #e5e7eb);
    border-radius: var(--wizard-radius-sm, 8px);
    box-shadow: var(--wizard-shadow-lg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    z-index: 10000 !important;
    margin-top: 4px;
}

.pac-item {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--wizard-text, #1f2937);
    border-top: 1px solid var(--wizard-border, #e5e7eb);
    line-height: 1.4;
}

.pac-item:first-child {
    border-top: none;
}

.pac-item:hover,
.pac-item-selected {
    background-color: var(--wizard-primary-light, rgba(139, 92, 246, 0.15));
}

.pac-item-query {
    color: var(--wizard-text, #1f2937);
    font-weight: 500;
}

.pac-matched {
    font-weight: 600;
    color: var(--wizard-primary, #8b5cf6);
}

.pac-icon {
    margin-right: 8px;
}

/* Dark mode for Google Places autocomplete */
.dark-mode .pac-container,
[data-theme="dark"] .pac-container {
    background-color: var(--wizard-card-bg, #1A1F2E);
    border-color: var(--wizard-border, rgba(96, 165, 250, 0.2));
}

.dark-mode .pac-item,
[data-theme="dark"] .pac-item {
    color: var(--wizard-text, #f9fafb);
    border-top-color: var(--wizard-border, rgba(96, 165, 250, 0.2));
}

.dark-mode .pac-item:hover,
.dark-mode .pac-item-selected,
[data-theme="dark"] .pac-item:hover,
[data-theme="dark"] .pac-item-selected {
    background-color: var(--wizard-primary-light, rgba(160, 141, 214, 0.2));
}

.dark-mode .pac-item-query,
[data-theme="dark"] .pac-item-query {
    color: var(--wizard-text, #f9fafb);
}

.dark-mode .pac-matched,
[data-theme="dark"] .pac-matched {
    color: var(--wizard-primary, #a08dd6);
}

/* Hide the "powered by Google" logo in dark mode for cleaner look */
.dark-mode .pac-logo::after,
[data-theme="dark"] .pac-logo::after {
    filter: invert(1) brightness(0.8);
}
