/* ===================================
   RequestQuote.online - Stylesheet
   Mobile-first responsive design
   =================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #10b981;
    --accent: #f59e0b;
    --danger: #ef4444;
    
    /* Neutrals */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Semantic */
    --text-primary: var(--gray-900);
    --text-secondary: var(--gray-600);
    --text-muted: var(--gray-400);
    --bg-primary: #ffffff;
    --bg-secondary: var(--gray-50);
    --bg-tertiary: var(--gray-100);
    --border-color: var(--gray-200);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --gradient-hero: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Spacing */
    --container-max: 1200px;
    --container-padding: 1rem;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===================================
   Header
   =================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo svg {
    color: var(--primary);
}

.logo-dot {
    color: var(--primary);
}

.nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

.nav a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.nav a:hover {
    color: var(--text-primary);
}

.nav-button {
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-primary) !important;
    transition: background var(--transition-fast);
}

.nav-button:hover {
    background: var(--gray-200);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.25s ease;
    transform-origin: center;
}

/* Hamburger → X animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile nav dropdown */
.nav.mobile-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    animation: slideDown 0.2s ease;
}

.nav.mobile-open a {
    width: 100%;
    padding: 0.75rem 0.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.nav.mobile-open a:last-child {
    border-bottom: none;
}

.nav.mobile-open .nav-button {
    margin-top: 0.25rem;
    width: 100%;
    text-align: center;
    padding: 0.75rem;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    padding: 3rem 0 4rem;
    background: var(--gradient-hero);
}

.hero .container {
    display: grid;
    gap: 3rem;
}

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

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2rem;
}

@media (min-width: 768px) {
    .hero {
        padding: 5rem 0 6rem;
    }
    
    .hero .container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }
    
    .hero-content {
        text-align: left;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        margin: 0 0 2rem;
    }
}

@media (min-width: 1024px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* ===================================
   Request Input Container
   =================================== */
.request-input-container {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .request-input-container {
        margin: 0;
    }
}

/* Privacy Notice */
.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.04));
    border-bottom: 1px solid rgba(34, 197, 94, 0.2);
}

.privacy-icon {
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.privacy-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.privacy-text strong {
    color: var(--text-primary);
}

.privacy-text em {
    font-style: normal;
    color: var(--primary);
    font-weight: 500;
}

.privacy-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.privacy-text a:hover {
    text-decoration: underline;
}

.input-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.input-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.input-tab.active {
    color: var(--primary);
    background: var(--bg-secondary);
}

.input-tab svg {
    width: 20px;
    height: 20px;
}

.input-panel {
    display: none;
    padding: 2rem;
}

.input-panel.active {
    display: block;
}

/* Voice Panel */
#voice-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

/* Conversation Container */
.conversation-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    max-height: 300px;
    min-height: 150px;
}

.conversation-messages {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.conversation-messages:empty::before {
    content: "👋 Hi! I'm here to help you get quotes. Just tap the mic and tell me what you need!";
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 2rem 1rem;
}

/* Chat Bubbles */
.chat-bubble {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    animation: fadeInUp 0.3s ease;
}

.chat-bubble.user {
    align-self: flex-end;
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble.agent {
    align-self: flex-start;
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.chat-bubble.agent.thinking {
    background: var(--bg-tertiary);
}

.chat-bubble.agent.thinking::after {
    content: "...";
    animation: thinking 1.5s infinite;
}

@keyframes thinking {
    0%, 100% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

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

/* Voice Input Area */
.voice-input-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
}

.voice-input-area:has(.voice-button.listening) {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.voice-input-text {
    flex: 1;
    min-width: 0;
}

.voice-button {
    position: relative;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.voice-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.2);
}

.voice-button.listening {
    animation: pulse 1.5s infinite;
}

.voice-button.speaking {
    animation: pulse-speaking 0.3s infinite;
}

.voice-button.speaking .voice-waves span {
    animation-duration: 0.25s;
}

@keyframes pulse-speaking {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); 
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); 
        transform: scale(1.02);
    }
}

.voice-button.listening .voice-icon {
    display: none;
}

.voice-button.listening .voice-waves {
    display: flex;
}

.voice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.voice-waves {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 100%;
}

.voice-waves span {
    width: 4px;
    height: 20px;
    background: white;
    border-radius: 2px;
    animation: wave 0.5s infinite ease-in-out alternate;
}

.voice-waves span:nth-child(2) { animation-delay: 0.1s; }
.voice-waves span:nth-child(3) { animation-delay: 0.2s; }
.voice-waves span:nth-child(4) { animation-delay: 0.3s; }
.voice-waves span:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0% { height: 10px; }
    100% { height: 40px; }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(99, 102, 241, 0); }
}

.voice-instruction {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin: 0;
}

.voice-transcript {
    margin: 0.25rem 0 0 0;
    padding: 0;
    background: transparent;
    font-style: italic;
    color: var(--text-primary);
    font-size: 0.875rem;
    display: none;
}

.voice-transcript:not(:empty) {
    display: block;
}

.voice-status {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Conversation Text Input */
.conversation-input-area {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-top: 1rem;
}

.conversation-text-input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.conversation-text-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

.conversation-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s;
}

.conversation-send-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.conversation-send-btn svg {
    color: white;
}

/* Success/Complete States */
.conversation-complete {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-radius: var(--radius-lg);
    border: 2px solid var(--secondary);
}

.conversation-complete .success-icon {
    width: 64px;
    height: 64px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.conversation-complete h3 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.conversation-complete .tracking-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 500;
}

.conversation-complete .tracking-link:hover {
    background: #059669;
}

/* Text Panel */
.request-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    resize: none;
    transition: border-color var(--transition-fast);
}

.request-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.request-textarea::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Example Chips */
.example-requests {
    margin-top: 2rem;
    text-align: center;
}

.example-requests p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.examples {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.example-chip {
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.example-chip:hover {
    background: var(--primary);
    color: white;
}

@media (min-width: 768px) {
    .example-requests {
        text-align: left;
    }
    
    .examples {
        justify-content: flex-start;
    }
}

/* ===================================
   Hero Guide (What to Include)
   =================================== */
.hero-guide {
    display: none;
    background: white;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
    .hero-guide {
        display: block;
    }
}

.hero-guide h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.guide-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.guide-steps {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.guide-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.guide-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.guide-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.guide-example {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.guide-tip {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.04));
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
}

.guide-tip .tip-icon {
    flex-shrink: 0;
}

.guide-tip span:last-child {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ===================================
   How It Works Section
   =================================== */
.how-it-works {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.step {
    text-align: center;
    max-width: 280px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    color: var(--primary);
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.step-arrow {
    display: none;
    color: var(--gray-300);
}

@media (min-width: 768px) {
    .steps {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .step-arrow {
        display: flex;
        align-items: center;
    }
}

/* ===================================
   Categories Section
   =================================== */
.categories {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.categories h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.category-card p {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.category-more {
    background: var(--bg-tertiary);
}

/* ===================================
   Trust Section
   =================================== */
.trust {
    padding: 3rem 0;
    background: var(--gray-900);
    color: white;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.trust-number {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.trust-label {
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ===================================
   CTA Section
   =================================== */
.cta {
    padding: 4rem 0;
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta p {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: transform var(--transition-fast);
}

.cta-button:hover {
    transform: translateY(-2px);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 4rem 0 2rem;
    background: var(--gray-900);
    color: white;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand .logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.footer-links h4 {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: var(--gray-300);
}

.footer-links a {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-400);
    padding: 0.25rem 0;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    font-size: 0.875rem;
    color: var(--gray-400);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a:hover {
    color: white;
}

.footer-platform a {
    color: var(--primary-light);
}

/* ===================================
   Modal / Wizard
   =================================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Wizard Progress */
.wizard-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-300);
    transition: background var(--transition-fast);
}

.progress-step.active .step-dot,
.progress-step.completed .step-dot {
    background: var(--primary);
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

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

/* Wizard Steps */
.wizard-step {
    display: none;
}

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

.wizard-step h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.optional-tag {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

/* Urgency Options */
.urgency-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.urgency-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
}

.urgency-btn.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

/* Location Input */
.location-input {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.detect-location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--primary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.detect-location-btn:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.location-divider {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.location-fields {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.location-row {
    display: flex;
    gap: 0.75rem;
}

.location-row input {
    flex: 1;
}

/* Contact Options */
.contact-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.contact-option input {
    display: none;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.contact-option input:checked + .option-card {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
}

.option-icon.whatsapp {
    background: #25D366;
    color: white;
}

.option-icon.email {
    background: var(--primary);
    color: white;
}

.option-icon.sms {
    background: var(--secondary);
    color: white;
}

.option-details {
    display: flex;
    flex-direction: column;
}

.option-name {
    font-weight: 600;
}

.option-desc {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.contact-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Simplified Contact Methods (inline radios) */
.contact-methods {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0.5rem 0 1rem;
}

.contact-method {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-method input[type="radio"] {
    accent-color: var(--primary);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.field-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.field-help {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* Photo Upload */
.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--text-secondary);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-area svg {
    margin-bottom: 1rem;
    color: var(--gray-400);
}

.upload-area p {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.upload-area span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.photo-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

/* Wizard Navigation */
.wizard-nav {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.wizard-btn {
    flex: 1;
    padding: 1rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.wizard-prev {
    background: var(--gray-100);
    color: var(--text-secondary);
}

.wizard-prev:hover {
    background: var(--gray-200);
}

.wizard-next,
.wizard-submit {
    background: var(--gradient-primary);
    color: white;
}

.wizard-next:hover,
.wizard-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wizard-submit {
    display: none;
}

/* AI Extraction */
.ai-extraction {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.extracted-category label,
.extracted-description label,
.extracted-urgency label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.extracted-category select,
.extracted-description textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
}

.extracted-category select:focus,
.extracted-description textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ===================================
   Smart Review Cards
   =================================== */
.review-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.review-card:hover {
    border-color: var(--gray-300);
}

.review-card.missing {
    border-color: var(--danger);
    background: #fef2f2;
}

.review-card.missing .card-status {
    color: var(--danger);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
}

.card-header h3 {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-status {
    font-size: 0.875rem;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

.card-status.complete {
    color: var(--secondary);
}

.card-status.partial {
    color: var(--accent);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-body.collapsed {
    display: none;
}

/* Card title and optional label */
.card-title {
    flex: 1;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.card-optional {
    font-size: 0.75rem;
    color: var(--text-muted);
    padding: 0.125rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

.card-expand {
    color: var(--text-muted);
    font-size: 0.75rem;
    cursor: pointer;
}

.card-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

/* Collapsible card */
.review-card.collapsible .card-header {
    cursor: pointer;
}

/* Form field groups */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.field-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.field-group label .required {
    color: var(--danger);
}

.field-group label .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.field-group input,
.field-group select,
.field-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: border-color var(--transition-fast);
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.field-group textarea {
    resize: vertical;
    min-height: 80px;
}

.field-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Field row for side-by-side fields */
.field-row {
    display: flex;
    gap: 0.75rem;
}

.field-row .flex-1 {
    flex: 1;
}

.field-row .flex-2 {
    flex: 2;
}

@media (max-width: 480px) {
    .field-row {
        flex-direction: column;
    }
}

/* Urgency options */
.urgency-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Contact method pills in new layout */
.contact-method-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.method-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.method-pill input {
    display: none;
}

.method-pill:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Detect location button */
.detect-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-bottom: 0.5rem;
}

.detect-location-btn:hover:not(:disabled) {
    background: var(--primary);
    border-style: solid;
    color: white;
}

.detect-location-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Photo upload compact */
.photo-upload-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upload-area-small {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.upload-area-small:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
    font-size: 1.25rem;
    color: var(--primary);
}

.upload-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.photo-preview-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Review footer */
.review-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.privacy-reminder {
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-align: center;
}

.submit-btn {
    width: 100%;
    max-width: 280px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.review-footer .secondary-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.review-footer .secondary-btn:hover {
    color: var(--text-secondary);
}

/* Form rows */
.form-row {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.form-row label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-row label .required {
    color: var(--danger);
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    transition: border-color var(--transition-fast);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

/* Two-column row */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 480px) {
    .form-row-2 {
        grid-template-columns: 1fr;
    }
}

/* Urgency pills */
.urgency-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.urgency-btn {
    flex: 1;
    min-width: 80px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.urgency-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Contact method pills */
.contact-methods {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contact-pill {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

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

.contact-pill input {
    display: none;
}

.contact-pill.active,
.contact-pill:has(input:checked) {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Detect location button */
.detect-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px dashed var(--primary);
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.detect-btn:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.detect-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.detect-btn .spinner {
    animation: spin 1s linear infinite;
}

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

/* Photo upload */
.photo-section {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: 0.5rem;
}

.photo-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0;
}

.photo-section-header h3 {
    flex: 1;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin: 0;
}

.photo-section-header svg {
    transition: transform var(--transition-fast);
}

.photo-section.expanded .photo-section-header svg {
    transform: rotate(180deg);
}

.photo-content {
    display: none;
    padding-top: 0.75rem;
}

.photo-section.expanded .photo-content {
    display: block;
}

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-area p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0.5rem 0 0;
}

.photo-preview {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

.preview-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

/* Missing fields alert */
.missing-alert {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.missing-alert svg {
    flex-shrink: 0;
    color: var(--accent);
}

.missing-alert p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* Submit button */
.wizard-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.wizard-footer .primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    color: white;
    cursor: pointer;
    transition: all var(--transition-fast);
    min-width: 160px;
}

.wizard-footer .primary-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.wizard-footer .primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wizard-footer .secondary-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wizard-footer .secondary-btn:hover {
    background: var(--bg-secondary);
}

.btn-loading {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

.btn-loading .spinner {
    width: 18px;
    height: 18px;
    animation: spin 1s linear infinite;
}

/* Success screen */
.success-screen {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    border-radius: 50%;
    animation: successPop 0.4s ease-out;
}

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

.success-screen h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
}

.success-subtitle {
    color: var(--text-secondary);
    margin: 0 0 0.75rem;
}

.tracking-code {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: monospace;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.success-info {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.success-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.success-actions .primary-btn,
.success-actions .secondary-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.success-actions .primary-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.success-actions .secondary-btn {
    background: var(--bg-primary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Toast notifications */
.toast-error {
    position: fixed;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.25rem;
    background: var(--danger);
    color: white;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10001;
    animation: toastIn 0.3s ease-out;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(1rem);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===================================
   Utilities
   =================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===================================
   Success Overlay
   =================================== */
.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    animation: fadeIn 0.3s ease-out;
}

.success-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: bounce 0.6s ease-out;
}

.success-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.success-card p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.tracking-info {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin: 1rem 0;
}

.tracking-info strong {
    color: var(--primary);
    font-family: monospace;
}

.next-steps {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.success-btn {
    margin-top: 1.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.success-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ===================================
   Improved Wizard Modal
   =================================== */
.modal-content.smart-review {
    max-width: 480px;
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
}

.review-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.review-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.review-icon {
    font-size: 1.25rem;
}

.review-title h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.ai-confidence {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.confidence-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--secondary);
    animation: pulse 2s infinite;
}

.confidence-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Review cards in modal */
.modal-content.smart-review .review-cards {
    padding: 1rem 1.5rem;
    max-height: 55vh;
    overflow-y: auto;
}

.modal-content.smart-review .review-card {
    background: #fafbfc;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.modal-content.smart-review .review-card:last-child {
    margin-bottom: 0;
}

.modal-content.smart-review .card-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
}

.modal-content.smart-review .card-icon {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.modal-content.smart-review .card-title {
    font-size: 0.9375rem;
    font-weight: 600;
}

.modal-content.smart-review .field-group {
    margin-bottom: 0.625rem;
}

.modal-content.smart-review .field-group:last-child {
    margin-bottom: 0;
}

.modal-content.smart-review .field-group label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.modal-content.smart-review input,
.modal-content.smart-review select,
.modal-content.smart-review textarea {
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    border-radius: 8px;
    border: 1px solid #dce0e5;
    background: white;
}

.modal-content.smart-review input:focus,
.modal-content.smart-review select:focus,
.modal-content.smart-review textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Contact method pills */
.modal-content.smart-review .contact-method-pills {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.modal-content.smart-review .method-pill {
    position: relative;
}

.modal-content.smart-review .method-pill input {
    position: absolute;
    opacity: 0;
}

.modal-content.smart-review .method-pill span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 1px solid #dce0e5;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    transition: all 0.15s;
}

.modal-content.smart-review .method-pill input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.modal-content.smart-review .method-pill:hover span {
    border-color: var(--primary);
}

/* Urgency buttons */
.modal-content.smart-review .urgency-options {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.modal-content.smart-review .urgency-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid #dce0e5;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    transition: all 0.15s;
}

.modal-content.smart-review .urgency-btn:hover {
    border-color: var(--primary);
}

.modal-content.smart-review .urgency-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* Location button */
.modal-content.smart-review .detect-location-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 0.75rem;
    transition: all 0.15s;
}

.modal-content.smart-review .detect-location-btn:hover {
    background: var(--primary);
    color: white;
}

/* Missing alert */
.missing-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    margin: 0 1.5rem;
    font-size: 0.875rem;
    color: #92400e;
}

.missing-alert.error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

/* Review footer improvements */
.modal-content.smart-review .review-footer {
    padding: 1rem 1.5rem 1.5rem;
    background: linear-gradient(0deg, #f8fafc 0%, white 100%);
    border-top: 1px solid var(--border-color);
}

.modal-content.smart-review .submit-btn {
    width: 100%;
    max-width: none;
    padding: 1rem;
    font-size: 1.0625rem;
    border-radius: 10px;
}

.modal-content.smart-review .secondary-btn {
    margin-top: 0.25rem;
}

/* Spinner animation */
.spinner {
    animation: spin 1s linear infinite;
}

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