/* Enhanced Multi-Page Questionnaire Styles */

/* Force full viewport coverage - override all margins */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    overflow-x: hidden;
}

/* Override any body margins for questionnaire */
body:has(.questionnaire-container.page.active) {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Page Container - Full screen blue background */
.questionnaire-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    z-index: 1;
    margin: 0 !important;
    padding: 0 !important;
    left: 0;
    top: 0;
    box-sizing: border-box;
}

.questionnaire-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(52, 152, 219, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

/* Individual Questionnaire Pages */
.questionnaire-page {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8rem 0 2rem 0;
    margin: 0 !important;
    box-sizing: border-box;
    z-index: 15;
    overflow-y: auto;
    overflow-x: hidden;
}

.questionnaire-page.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 15;
    animation: pageSlideIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageSlideIn {
    0% {
        opacity: 0;
        transform: translateX(100%) scale(0.95);
    }
    60% {
        opacity: 0.8;
        transform: translateX(-5%) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.questionnaire-page.prev {
    transform: translateX(-100%);
    opacity: 0;
}

/* Centered Content Container with proper spacing */
.question-card {
    background: transparent;
    border-radius: 0;
    padding: 0 1rem;
    max-width: 650px;
    width: 100%;
    min-height: auto;
    overflow: visible;
    box-shadow: none;
    border: none;
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 25;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0 auto;
    box-sizing: border-box;
}

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

/* Simplified Header with proper alignment */
.progress-container {
    position: fixed;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(1.5);
    padding: 1.2rem 2rem;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Remove the progress bar completely */
.progress-bar {
    display: none;
}

.progress-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.step-counter {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.6rem 1rem;
    border-radius: 18px;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
    display: flex;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Question Headers - High contrast white text */
.question-header {
    text-align: center;
    margin: 0 auto 2rem auto;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.6);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.question-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.8rem;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.question-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.question-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: gentle-float 3s ease-in-out infinite;
}

@keyframes gentle-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Enhanced Option Cards */
.options-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
    flex: 1;
    align-content: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.options-grid.two-column {
    grid-template-columns: 1fr 1fr;
}

.options-grid.three-column {
    grid-template-columns: repeat(3, 1fr);
}

.option-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(15px);
}

.option-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s ease;
}

.option-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 45px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.6);
    background: rgba(255, 255, 255, 1);
}

.option-card:hover::before {
    left: 100%;
}

.option-card.selected {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(52, 152, 219, 0.4);
}

.option-card.selected .option-icon {
    transform: scale(1.1);
}

.option-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.option-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    line-height: 1.3;
}

.option-description {
    font-size: 1rem;
    opacity: 0.7;
    line-height: 1.4;
    color: #64748b;
    font-weight: 500;
}

/* Custom Neighborhood Input */
.custom-neighborhood {
    position: relative;
}

.custom-neighborhood-input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #3498db;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    background: white;
    color: #2c3e50;
    outline: none;
    animation: slideDown 0.3s ease;
}

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

/* "We're Almost There" Step - Enhanced */
.almost-there-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero-icon-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-icon {
    font-size: 5rem;
    position: relative;
    z-index: 2;
    animation: float 3s ease-in-out infinite;
}

.icon-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-10px) scale(1.05); }
}

@keyframes glow {
    from { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    to { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    line-height: 1.4;
}

.preparation-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.prep-step {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 1.5rem;
    border-radius: 16px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(30px);
}

.prep-step:nth-child(1) { animation-delay: 0.2s; }
.prep-step:nth-child(2) { animation-delay: 0.4s; }
.prep-step:nth-child(3) { animation-delay: 0.6s; }

.prep-step.completed .step-icon {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.prep-step.in-progress .step-icon {
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
}

.step-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.step-icon.loading {
    animation: spin 2s linear infinite;
}

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

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

.step-content h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.step-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Auto-advance progress */
.auto-advance-container {
    margin-top: 3rem;
    text-align: center;
}

.auto-advance-text {
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.auto-advance-progress {
    width: 100%;
    max-width: 300px;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 0 auto;
    overflow: hidden;
}

.auto-advance-bar {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 4px;
}

/* Auto-advance floating notification */
.auto-advance-notification {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.auto-advance-notification.show {
    bottom: 2rem;
}

.notification-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    min-width: 250px;
}

.notification-text {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.notification-icon {
    font-size: 1.2rem;
    animation: bounce-horizontal 1s ease-in-out infinite;
}

@keyframes bounce-horizontal {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.notification-progress {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.notification-bar {
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    width: 100%;
    transition: width 0.1s ease;
    border-radius: 2px;
}

/* Password Creation Styling */
.password-requirements {
    background: rgba(0, 0, 0, 0.7);
    padding: 1.5rem;
    border-radius: 16px;
    margin-top: 1rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.password-requirements p {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-size: 1rem;
}

.password-requirements ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.password-requirements li {
    color: white;
    padding: 0.5rem 0;
    font-size: 1rem;
    position: relative;
    padding-left: 2rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.password-requirements li::before {
    content: '○';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
}

.password-requirements li.valid {
    color: #2ecc71;
}

.password-requirements li.valid::before {
    content: '✓';
    color: #27ae60;
    font-weight: bold;
}

/* Animated Compilation Screen */
.compilation-container {
    text-align: center;
    padding: 2rem 0;
}

.magic-wand-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.magic-wand {
    font-size: 3rem;
    animation: magic-wave 2s ease-in-out infinite;
}

.sparkle-trail {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    border-radius: 50%;
    animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes magic-wave {
    0%, 100% { transform: rotate(-10deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

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

.compilation-title {
    color: white;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.compilation-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.choices-animation-container {
    display: grid;
    gap: 1rem;
    margin: 3rem 0;
    perspective: 1000px;
}

.animated-choice {
    position: relative;
    background: rgba(0, 0, 0, 0.8);
    padding: 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    opacity: 0;
    transform: scale(1.2) rotateY(15deg);
    animation: choiceCollect 0.8s ease-out forwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.choice-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    opacity: 0;
    animation: glow-sweep 2s ease-in-out infinite;
}

@keyframes glow-sweep {
    0% { transform: translateX(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}

.animated-choice .choice-icon {
    font-size: 2rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
}

.animated-choice .choice-text {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.animated-choice:nth-child(1) { animation-delay: 0.2s; }
.animated-choice:nth-child(2) { animation-delay: 0.4s; }
.animated-choice:nth-child(3) { animation-delay: 0.6s; }
.animated-choice:nth-child(4) { animation-delay: 0.8s; }

@keyframes choiceCollect {
    0% {
        opacity: 0;
        transform: scale(1.2) rotateY(15deg) translateY(20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) rotateY(5deg) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateY(0deg) translateY(0px);
    }
}

.choice-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.choice-text {
    flex: 1;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
}

.compilation-progress {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
}

.progress-circle {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 2rem auto;
}

.progress-ring {
    transform: rotate(-90deg);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.progress-ring__circle {
    stroke-dasharray: 251;
    stroke-dashoffset: 251;
    animation: progressFill 3s ease-out forwards;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes progressFill {
    to {
        stroke-dashoffset: 0;
    }
}

.progress-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.progress-inner #progress-percentage {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    display: block;
    margin-bottom: 0.5rem;
}

.progress-dots {
    display: flex;
    gap: 0.3rem;
    justify-content: center;
}

.progress-dots .dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: dot-pulse 1.5s ease-in-out infinite;
}

.progress-dots .dot:nth-child(2) { animation-delay: 0.3s; }
.progress-dots .dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes dot-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.compilation-status {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem 2rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Dashboard Welcome Animation */
.dashboard-welcome {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 1;
    transition: all 0.8s ease-out;
}

.dashboard-welcome.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.welcome-animation-container {
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: welcomeSlideIn 1s ease-out;
}

@keyframes welcomeSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.welcome-badge {
    margin-bottom: 2rem;
}

.welcome-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 60%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    80% { transform: translateY(-5px); }
}

.welcome-title {
    color: white;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.welcome-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.dashboard-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.preview-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: previewFloat 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.preview-card:nth-child(1) { animation-delay: 0.3s; }
.preview-card:nth-child(2) { animation-delay: 0.5s; }
.preview-card:nth-child(3) { animation-delay: 0.7s; }

@keyframes previewFloat {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.preview-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.preview-card p {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.enter-dashboard-btn {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.enter-dashboard-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.enter-dashboard-btn:hover::before {
    left: 100%;
}

.enter-dashboard-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 45px rgba(52, 152, 219, 0.6);
}

/* Main Dashboard Styling */
.main-dashboard {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.main-dashboard.active {
    opacity: 1;
    transform: translateY(0);
}

.preparation-card {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preparation-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.agent-avatar {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agent-photo-small {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.typing-indicator {
    display: flex;
    gap: 0.2rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    animation: typing 1.5s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.3s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.6s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: scale(0.8); }
    30% { opacity: 1; transform: scale(1.2); }
}

.preparation-message h3 {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.agent-note {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.work-progress {
    margin-bottom: 2rem;
}

.prep-item.animated {
    animation: slideInFade 0.8s ease-out forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.prep-item.animated:nth-child(1) { animation-delay: 0.2s; }
.prep-item.animated:nth-child(2) { animation-delay: 0.4s; }
.prep-item.animated:nth-child(3) { animation-delay: 0.6s; }
.prep-item.animated:nth-child(4) { animation-delay: 0.8s; }

@keyframes slideInFade {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.prep-check.completed {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.prep-check.in-progress {
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
    animation: pulse-glow 2s ease-in-out infinite;
}

.prep-check.pending {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.6);
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 5px rgba(52, 152, 219, 0.3); }
    50% { box-shadow: 0 0 20px rgba(52, 152, 219, 0.6); }
}

.estimated-time {
    text-align: center;
    margin: 2rem 0;
}

.time-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.time-icon {
    font-size: 1.2rem;
    animation: tick 1s ease-in-out infinite;
}

@keyframes tick {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

/* Text consistency and readability */
.option-card.selected .option-title,
.option-card.selected .option-description,
.neighborhood-card.selected,
.amenity-tag.selected,
.timeline-card.selected,
.checklist-item.checked {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Ensure smooth transitions for all interactive elements */
.option-card,
.neighborhood-card,
.amenity-tag,
.timeline-card,
.checklist-item,
.form-input,
.form-select,
.nav-button {
    will-change: transform, box-shadow, background;
    transform-origin: center;
}

.preparation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.prep-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    display: block;
    animation: rotate 2s linear infinite;
}

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

.preparation-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    font-weight: 700;
}

.preparation-content p {
    color: #5a6c7d;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.prep-checklist {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.prep-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    margin-bottom: 0.8rem;
}

.prep-check {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1rem;
    font-weight: bold;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.prep-item span:last-child {
    flex: 1;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.preparation-timeline {
    text-align: center;
    background: rgba(52, 152, 219, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 2rem;
}

.preparation-timeline p {
    color: #2c3e50;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.refresh-btn {
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 auto;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #2980b9, #4a90d9);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.4);
}

.refresh-icon {
    animation: spin-slow 3s linear infinite;
}

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

/* Enhanced Form Elements */
.form-group {
    margin-bottom: 1.5rem;
    margin-left: 0;
    margin-right: 0;
}

.form-label {
    display: block;
    font-weight: 600;
    color: white;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.form-input, .form-select {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    color: #2c3e50;
    margin-left: 0;
    margin-right: 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: rgba(52, 152, 219, 0.8);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2), 0 8px 25px rgba(52, 152, 219, 0.15);
    transform: translateY(-2px);
}

/* Budget Slider */
.budget-slider-container {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.budget-display {
    text-align: center;
    margin-bottom: 1.5rem;
}

.budget-range {
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.budget-note {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.dual-range-slider {
    position: relative;
    height: 40px;
    margin: 1rem 0;
}

.range-input {
    position: absolute;
    width: 100%;
    height: 4px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.range-input::-webkit-slider-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    pointer-events: all;
    -webkit-appearance: none;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    border: 3px solid white;
}

.range-input::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #3498db;
    cursor: pointer;
    pointer-events: all;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.range-track {
    position: absolute;
    top: 18px;
    left: 0;
    right: 0;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
}

.range-fill {
    position: absolute;
    top: 18px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Neighborhood Selection */
.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    max-height: none;
    overflow: visible;
}

.neighborhood-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    color: #2c3e50;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neighborhood-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.6);
    background: rgba(255, 255, 255, 1);
}

.neighborhood-card.selected {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4);
}

.neighborhood-card::after {
    content: '✓';
    position: absolute;
    top: 8px;
    right: 8px;
    background: #27ae60;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.neighborhood-card.selected::after {
    opacity: 1;
    transform: scale(1);
}

/* Amenities Selection */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.amenity-tag {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    color: #2c3e50;
    backdrop-filter: blur(15px);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    min-height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amenity-tag:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px) scale(1.03);
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.15);
}

.amenity-tag.selected {
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* Navigation Buttons - Fixed visibility */
.navigation-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.4);
    padding: 1.2rem;
    border-radius: 16px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 140px;
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.nav-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.nav-button:hover::before {
    width: 300px;
    height: 300px;
}

.btn-back {
    background: linear-gradient(135deg, #64748b, #94a3b8);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.btn-back:hover {
    background: linear-gradient(135deg, #475569, #64748b);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(100, 116, 139, 0.4);
}

.btn-continue {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.btn-continue:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #27ae60);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.5);
}

.btn-continue:disabled {
    background: linear-gradient(135deg, #95a5a6, #bdc3c7);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0.7;
}

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

.btn-continue.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hide step indicators since we're using text-only header */
.step-indicators {
    display: none;
}

/* Enhanced Form Styling */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group {
    position: relative;
}

.floating-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #7f8c8d;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 0.5rem;
}

.form-input:focus + .floating-label,
.form-input:not(:placeholder-shown) + .floating-label {
    top: -0.5rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: #3498db;
    background: white;
    font-weight: 600;
}

/* Validation States */
.form-input.valid {
    border-color: #27ae60;
    background: #f8fff8;
}

.form-input.invalid {
    border-color: #e74c3c;
    background: #fff8f8;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.validation-message {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.validation-message.show {
    opacity: 1;
    transform: translateY(0);
}

.validation-message.error {
    background: #fff5f5;
    color: #e74c3c;
    border: 1px solid #fadad7;
}

.validation-message.success {
    background: #f0fff4;
    color: #27ae60;
    border: 1px solid #c3e6cb;
}

/* Timeline Selection */
.timeline-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    color: #2c3e50;
    backdrop-filter: blur(15px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.timeline-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(52, 152, 219, 0.6);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.2);
}

.timeline-card.selected {
    background: linear-gradient(135deg, #3498db, #5dade2);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.03);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.4);
}

.timeline-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-text {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Readiness Checklist - Fix pre-checked state */
.readiness-checklist {
    margin: 2rem 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    padding: 1.2rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #2c3e50;
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-height: 60px;
}

.checklist-item:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(52, 152, 219, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.15);
}

.checklist-item.checked {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.checklist-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid #bdc3c7;
    border-radius: 6px;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: white;
    font-size: 0; /* Hide the default checkmark */
}

.checklist-item.checked .checklist-checkbox {
    background: white;
    border-color: white;
    color: #27ae60;
    font-size: 14px; /* Show checkmark when checked */
}

.checklist-text {
    flex: 1;
    font-weight: 500;
}

/* Contact Form Enhancement */
.contact-form {
    display: grid;
    gap: 1.5rem;
}

.phone-input-group {
    position: relative;
}

.phone-prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #7f8c8d;
    font-weight: 600;
    pointer-events: none;
}

.phone-input {
    padding-left: 3rem;
}

/* Confirmation Page */
.confirmation-summary {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 2px solid #e9ecef;
}

.summary-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.summary-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.summary-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-content {
    color: #5a6c7d;
    line-height: 1.5;
}

.summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.summary-tag {
    background: #3498db;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Mobile Responsive - Fixed centering */
@media (max-width: 768px) {
    .questionnaire-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    .progress-container {
        top: 0.5rem;
        left: 0.5rem;
        right: 0.5rem;
        padding: 1rem 1.5rem;
        min-height: 50px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px) saturate(1.5);
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    }

    .progress-text {
        font-size: 1rem;
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    }

    .step-counter {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        background: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    }

    .questionnaire-page {
        padding: 7rem 0 1rem 0;
        align-items: flex-start;
        justify-content: center;
    }

    .question-card {
        padding: 0 1rem;
        margin: 0 auto;
        height: auto;
        min-height: auto;
        max-width: 100%;
        width: 100%;
        justify-content: flex-start;
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .question-header {
        margin: 0 auto 1.5rem auto;
        padding: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .question-title {
        font-size: 1.5rem;
    }
    
    .question-subtitle {
        font-size: 1rem;
    }
    
    .question-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .option-card {
        min-height: 120px;
        padding: 1.5rem;
    }
    
    .option-title {
        font-size: 1rem;
    }
    
    .option-description {
        font-size: 0.8rem;
    }

    .options-grid.two-column,
    .options-grid.three-column {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        margin-left: 0;
        margin-right: 0;
    }

    .neighborhoods-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-left: 0;
        margin-right: 0;
    }

    .timeline-options {
        grid-template-columns: 1fr;
        margin-left: 0;
        margin-right: 0;
    }

    .navigation-container {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
        margin-left: 0;
        margin-right: 0;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-button {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .feature-highlights {
        gap: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .dashboard-preview {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .welcome-animation-container {
        padding: 2rem 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .compilation-container {
        padding: 1rem;
        margin-left: 0;
        margin-right: 0;
    }

    .animated-choice {
        padding: 0.8rem;
        gap: 0.8rem;
    }

    .budget-slider-container {
        margin-left: 0;
        margin-right: 0;
    }

    .almost-there-content {
        margin-left: 0;
        margin-right: 0;
    }

    .auto-advance-container {
        margin-top: 2rem;
        margin-left: 0;
        margin-right: 0;
    }

    .auto-advance-progress {
        max-width: 250px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .preparation-steps {
        gap: 0.8rem;
    }

    .prep-step {
        padding: 1rem;
        gap: 1rem;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .step-content h3 {
        font-size: 1rem;
    }

    .step-content p {
        font-size: 0.9rem;
    }

    .auto-advance-notification {
        left: 1rem;
        right: 1rem;
        transform: none;
        padding: 0.8rem 1.5rem;
    }

    .notification-text {
        font-size: 0.9rem;
    }

    .notification-content {
        min-width: auto;
    }

    .magic-wand-container {
        margin-bottom: 1rem;
    }

    .magic-wand {
        font-size: 2.5rem;
    }

    .compilation-title {
        font-size: 1.8rem;
    }

    .compilation-subtitle {
        font-size: 1rem;
    }

    .progress-circle {
        width: 80px;
        height: 80px;
    }

    .progress-inner #progress-percentage {
        font-size: 1rem;
    }

    .progress-dots .dot {
        width: 5px;
        height: 5px;
    }

    .compilation-status {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .preparation-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .agent-avatar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .agent-photo-small {
        width: 50px;
        height: 50px;
    }

    .preparation-message h3 {
        font-size: 1.1rem;
    }

    .time-badge {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .refresh-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .amenities-grid {
        margin-left: 0;
        margin-right: 0;
    }

    /* Ensure all content is perfectly centered */
    .options-grid,
    .neighborhoods-grid,
    .amenities-grid,
    .timeline-options,
    .readiness-checklist,
    .contact-form,
    .password-form {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0;
        padding-right: 0;
        box-sizing: border-box;
    }

    .form-input,
    .form-select,
    .option-card,
    .neighborhood-card,
    .amenity-tag,
    .timeline-card,
    .checklist-item {
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
}

/* Accessibility */
.option-card:focus,
.nav-button:focus,
.form-input:focus,
.amenity-tag:focus,
.neighborhood-card:focus,
.timeline-card:focus,
.checklist-item:focus {
    outline: 3px solid rgba(52, 152, 219, 0.6);
    outline-offset: 3px;
    box-shadow: 0 0 0 1px rgba(52, 152, 219, 0.3);
}

/* Animations */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.question-card {
    animation: fadeInScale 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Success States */
.success-checkmark {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #27ae60;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
    animation: successPulse 0.6s ease-out;
}

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

/* Micro-interactions */
.option-card,
.amenity-tag,
.neighborhood-card,
.timeline-card {
    position: relative;
    overflow: hidden;
}

.option-card::after,
.amenity-tag::after,
.neighborhood-card::after,
.timeline-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    pointer-events: none;
}

.option-card:active::after,
.amenity-tag:active::after,
.neighborhood-card:active::after,
.timeline-card:active::after {
    width: 200px;
    height: 200px;
}

/* Subtle background enhancement */
.questionnaire-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}
