:root {
    --primary-color: #0B3B2C;
    --primary-hover: #134E39;
    --primary-light: rgba(11, 59, 44, 0.08);
    --secondary-color: #F4F7F5;
    --accent-gold: #C5A869;
    --accent-gold-hover: #B09253;
    --accent-gold-light: rgba(197, 168, 105, 0.12);
    --text-main: #111827;
    --text-muted: #4B5563;
    --text-light: #9CA3AF;
    --card-border: #E5E7EB;
    --card-hover-border: #0B3B2C;
    --btn-radius: 9999px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 6px 20px rgba(11, 59, 44, 0.08);
    --shadow-lg: 0 16px 36px rgba(11, 59, 44, 0.12);
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #EFF4F1 0%, #E8EFEA 100%);
    color: var(--text-main);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.customer-container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    background: #FFFFFF;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
}

@media (min-width: 640px) {
    .customer-container {
        min-height: auto;
        width: 100%;
        max-width: 600px;
        margin: 32px auto 40px;
        border-radius: var(--radius-lg);
        border: 1px solid rgba(11, 59, 44, 0.1);
        box-shadow: var(--shadow-lg);
        overflow: hidden;
    }
}

/* Header & Real Estate Branding */
.brand-header {
    padding: 28px 24px 20px;
    background: linear-gradient(180deg, var(--secondary-color) 0%, #FFFFFF 100%);
    border-bottom: 1px solid #F0F3F1;
    position: relative;
}

.brand-header-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 14px;
}

.brand-logo {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    object-fit: contain;
    background: #FFFFFF;
    padding: 6px;
    box-shadow: var(--shadow-md);
    border: 1.5px solid rgba(197, 168, 105, 0.3);
    flex-shrink: 0;
}

.brand-logo-fallback {
    width: 68px;
    height: 68px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    background: var(--primary-color);
    box-shadow: var(--shadow-md);
    flex-shrink: 0;
}

.brand-info {
    flex: 1;
    min-width: 0;
}

.business-name {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    margin: 0 0 4px;
    line-height: 1.25;
}

.business-type-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-gold);
    margin-bottom: 6px;
}

.google-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 9999px;
    padding: 3px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rating-stars {
    color: #F59E0B;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.rating-score {
    font-weight: 700;
    font-size: 0.825rem;
    color: #1F2937;
}

.rating-count {
    font-size: 0.75rem;
    color: #6B7280;
}

.location-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #4B5563;
    background: rgba(11, 59, 44, 0.04);
    padding: 6px 12px;
    border-radius: 8px;
    margin: 4px auto 0;
    width: fit-content;
}

.location-badge i {
    color: var(--accent-gold);
    font-size: 0.875rem;
}

/* 3-Step Progress Indicator */
.step-progress-wrapper {
    padding: 16px 24px;
    background: #FFFFFF;
    border-bottom: 1px solid #F0F3F1;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    max-width: 320px;
    margin: 0 auto;
}

.step-indicator-track {
    position: absolute;
    top: 50%;
    left: 15px;
    right: 15px;
    height: 3px;
    background: #E5E7EB;
    transform: translateY(-50%);
    z-index: 1;
}

.step-indicator-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--primary-color) 100%);
    transition: width 0.35s ease;
}

.step-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid #D1D5DB;
    color: #6B7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    position: relative;
    z-index: 2;
    transition: all 0.25s ease;
}

.step-node.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #FFFFFF;
    box-shadow: 0 0 0 4px var(--primary-light);
}

.step-node.completed {
    border-color: var(--accent-gold);
    background: var(--accent-gold);
    color: #FFFFFF;
}

.step-label-text {
    text-align: center;
    font-size: 0.775rem;
    font-weight: 600;
    color: #4B5563;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 10px;
}

/* Main Content & Panes */
.step-content {
    flex: 1;
    padding: 24px 22px;
}

.step-pane {
    display: none;
    animation: fadeInStep 0.3s ease-out;
}

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

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

.headline-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 8px;
    line-height: 1.35;
}

.headline-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0 0 20px;
    line-height: 1.5;
}

/* STEP 1: Rich Category Cards */
.categories-grid {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 24px;
}

.category-chip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #FFFFFF;
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.category-chip:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.category-chip.selected {
    border-color: var(--primary-color);
    background: #F0F7F4;
    box-shadow: 0 2px 8px rgba(11, 59, 44, 0.12);
}

.category-chip-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.category-chip-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #F3F4F6;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.category-chip.selected .category-chip-icon {
    background: var(--primary-color);
    color: #FFFFFF;
}

.category-chip-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.category-chip-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #111827;
    line-height: 1.3;
}

.category-chip.selected .category-chip-title {
    color: var(--primary-color);
    font-weight: 700;
}

.category-chip-desc {
    font-size: 0.75rem;
    color: #6B7280;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-chip-check {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1.5px solid #D1D5DB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-left: 8px;
    transition: all 0.2s ease;
}

.category-chip.selected .category-chip-check {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF;
}

/* STEP 2: Input & Personalization */
.customer-textarea {
    width: 100%;
    min-height: 110px;
    padding: 14px 16px;
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-main);
    background: #FFFFFF;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    line-height: 1.5;
}

.customer-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.char-counter {
    text-align: right;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 4px;
    margin-bottom: 18px;
}

.option-group {
    margin-bottom: 18px;
}

.option-group-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill-btn {
    border: 1px solid var(--card-border);
    background: #FFFFFF;
    color: #4B5563;
    padding: 7px 14px;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.pill-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pill-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(11, 59, 44, 0.15);
}

/* STEP 3: Suggestions List */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.suggestion-card {
    background: #FFFFFF;
    border: 1.5px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.suggestion-card:hover {
    border-color: var(--accent-gold);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.suggestion-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-gold);
    background: var(--accent-gold-light);
    padding: 3px 9px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.suggestion-text {
    font-size: 0.9375rem;
    color: #1F2937;
    line-height: 1.55;
    margin: 0 0 14px;
}

.suggestion-select-btn {
    width: 100%;
    padding: 8px 14px;
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid rgba(11, 59, 44, 0.15);
    border-radius: var(--btn-radius);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.suggestion-card:hover .suggestion-select-btn {
    background: var(--primary-color);
    color: #FFFFFF;
    border-color: var(--primary-color);
}

/* STEP 4: Review Editor */
.editor-wrapper {
    position: relative;
    margin-bottom: 14px;
}

.editor-textarea {
    width: 100%;
    min-height: 160px;
    padding: 16px;
    border: 1.5px solid var(--primary-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    color: #111827;
    background: #FFFFFF;
    resize: vertical;
    box-shadow: 0 0 0 3px var(--primary-light);
    line-height: 1.6;
}

.authenticity-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin-bottom: 24px;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.45;
}

.authenticity-notice i {
    color: #059669;
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 10px;
}

.btn-primary-action {
    width: 100%;
    padding: 14px 20px;
    background: var(--primary-color);
    color: #FFFFFF;
    border: none;
    border-radius: var(--btn-radius);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(11, 59, 44, 0.25);
    transition: all 0.2s ease;
}

.btn-primary-action:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(11, 59, 44, 0.35);
}

.btn-primary-action:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-secondary-action {
    width: 100%;
    padding: 12px 18px;
    background: #FFFFFF;
    color: #4B5563;
    border: 1.5px solid var(--card-border);
    border-radius: var(--btn-radius);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.btn-secondary-action:hover {
    background: #F9FAFB;
    border-color: #9CA3AF;
    color: #111827;
}

.btn-row {
    display: flex;
    gap: 10px;
}

.btn-row .btn-secondary-action {
    flex: 1;
}

/* Footer Trust Banner */
.footer-trust {
    padding: 16px 20px 24px;
    text-align: center;
    font-size: 0.775rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-top: 1px solid #F0F3F1;
}

.footer-trust i {
    color: #059669;
}

/* Overlays & Modals */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(11, 59, 44, 0.15);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 14px;
}

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

.loading-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.customer-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #111827;
    color: #FFFFFF;
    padding: 12px 20px;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

.customer-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1500;
}

.modal-backdrop.show {
    display: flex;
}

.modal-card {
    background: #FFFFFF;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 440px;
    padding: 24px;
    box-shadow: var(--shadow-lg);
    animation: popModal 0.25s ease-out;
}

@keyframes popModal {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
