/* Font Imports - Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance Optimizations */
.oracle-optimized {
    will-change: transform;
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f5dc 0%, #ffffff 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

/* Phase Management */
.phase {
    display: none;
    min-height: 100vh;
    padding: 60px 0;
}

.phase.active {
    display: block;
}

/* Phase 1: Pain Diagnosis - Cream Theme */
#phase1 {
    background: linear-gradient(135deg, #f5f5dc 0%, #ffffff 100%);
    color: #333;
}

.phase-header {
    text-align: center;
    margin-bottom: 60px;
}

.phase-header h1 {
    font-family: 'Vazirmatn', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ff8c00;
    text-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
    text-align: center;
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Form Styles */
.diagnosis-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 25px;
    padding: 50px 40px;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 140, 0, 0.3);
    margin-bottom: 50px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.diagnosis-form:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 30px;
    text-align: center;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    text-align: center;
}

.form-group input {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-group input:hover {
    border-color: rgba(255, 140, 0, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group input:focus {
    outline: none;
    border-color: #ff8c00;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.3);
}

.form-group input::placeholder {
    color: rgba(0, 0, 0, 0.6);
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
}

/* Slider Styles */
.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.slider {
    flex: 1;
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 140, 0, 0.2);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.slider:hover {
    background: rgba(255, 140, 0, 0.3);
    transform: scaleY(1.1);
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff8c00, #ff7f00);
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.4);
    transition: all 0.3s ease;
    border: 3px solid white;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.6);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ff8c00;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

#badLeadsPercentValue {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ff8c00;
    min-width: 50px;
    text-align: center;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #ff8c00 0%, #ff7f00 100%);
    color: white;
    border: none;
    padding: 20px 45px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cta-button::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.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 140, 0, 0.4);
}

.cta-button.large {
    padding: 25px 60px;
    font-size: 1.3rem;
}

/* Loading Spinner */
.loading-spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cta-button.loading .button-text {
    display: none;
}

.cta-button.loading .loading-spinner {
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Diagnosis Results */
.diagnosis-results {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    animation: slideInUp 0.6s ease-out;
}

.diagnosis-results h2 {
    font-family: 'Vazirmatn', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ff0000;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.ekg-graphic {
    margin: 30px 0;
    height: 60px;
    position: relative;
    overflow: hidden;
}

.heartbeat-line {
    width: 100%;
    height: 4px;
    background: #ff0000;
    position: relative;
    animation: heartbeat 2s ease-in-out infinite;
}

.heartbeat-line::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20%;
    width: 20px;
    height: 24px;
    background: #ff0000;
    border-radius: 10px 10px 0 0;
    animation: heartbeat 2s ease-in-out infinite;
}

.heartbeat-line::after {
    content: '';
    position: absolute;
    top: -10px;
    right: 20%;
    width: 20px;
    height: 24px;
    background: #ff0000;
    border-radius: 10px 10px 0 0;
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.5); }
}

/* Dynamic heartbeat animations based on severity */
@keyframes heartbeat-critical {
    0%, 100% { transform: scaleY(1); }
    25% { transform: scaleY(2.5); }
    50% { transform: scaleY(0.5); }
    75% { transform: scaleY(3); }
}

@keyframes heartbeat-high {
    0%, 100% { transform: scaleY(1); }
    30% { transform: scaleY(2); }
    60% { transform: scaleY(0.8); }
    80% { transform: scaleY(2.2); }
}

@keyframes heartbeat-medium {
    0%, 100% { transform: scaleY(1); }
    40% { transform: scaleY(1.8); }
    70% { transform: scaleY(1.2); }
}

@keyframes heartbeat-low {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.3); }
}

.kpi-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
    max-width: 100%;
}

.kpi-item {
    background: rgba(255, 255, 255, 0.95);
    padding: 45px 35px;
    border-radius: 25px;
    border: 2px solid rgba(255, 0, 0, 0.3);
    text-align: center;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.kpi-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.02), rgba(255, 0, 0, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.kpi-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.kpi-item:hover::before {
    opacity: 1;
}

.kpi-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #ff0000;
    margin-bottom: 10px;
    text-align: center;
}

.kpi-label {
    font-size: 1.1rem;
    color: #333;
    text-align: center;
}

.kpi-item.warning {
    grid-column: 1 / -1;
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    text-align: center;
}

.kpi-item.equivalent-employees {
    background: rgba(255, 165, 0, 0.15);
    border: 2px solid #ffa500;
    grid-column: 1 / -1;
    text-align: center;
}

.kpi-item.equivalent-employees .kpi-number {
    color: #ff8c00;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.kpi-item.equivalent-employees .kpi-label {
    color: #333;
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 600;
    text-align: center;
}

.kpi-item.competitive-risk {
    background: rgba(255, 0, 0, 0.1);
    border: 2px solid #ff0000;
    grid-column: 1 / -1;
    text-align: center;
}

.kpi-item.competitive-risk .kpi-text {
    color: #ff0000;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.optional-field {
    opacity: 1;
    border: 2px solid #ff8c00;
    border-radius: 15px;
    padding: 20px;
    margin-top: 15px;
    background: rgba(255, 140, 0, 0.05);
    box-shadow: 0 4px 15px rgba(255, 140, 0, 0.1);
}

.optional-field label {
    color: #ff8c00;
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
    display: block;
    margin-bottom: 15px;
}

.optional-field input {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #ff8c00;
    color: #333;
    text-align: center;
    font-weight: 600;
}

.optional-field input:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.3);
}

.optional-field small {
    color: #ff8c00;
    font-weight: 600;
    text-align: center;
    display: block;
    margin-top: 10px;
}

/* Advanced Mode Styles */
.advanced-mode-toggle {
    text-align: center;
    margin: 20px 0;
}

.advanced-toggle-btn {
    background: rgba(255, 140, 0, 0.1);
    border: 2px solid #ff8c00;
    color: #ff8c00;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    text-align: center;
}

.advanced-toggle-btn:hover {
    background: rgba(255, 140, 0, 0.2);
    transform: translateY(-2px);
}

.advanced-toggle-btn.active {
    background: rgba(255, 140, 0, 0.3);
    border-color: #ff8c00;
}

.toggle-icon {
    font-size: 1.2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.advanced-fields {
    background: rgba(78, 205, 196, 0.05);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.kpi-item.advanced-calculations {
    background: rgba(0, 255, 0, 0.1);
    border: 2px solid #00ff00;
    grid-column: 1 / -1;
    text-align: center;
}

.kpi-item.advanced-calculations .kpi-text {
    color: #00aa00;
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.kpi-item.share-results {
    background: rgba(255, 165, 0, 0.1);
    border: 2px solid #ffa500;
    grid-column: 1 / -1;
    text-align: center;
}

.share-button {
    background: linear-gradient(135deg, #ffa500 0%, #ff8c00 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 165, 0, 0.4);
}

.kpi-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff0000;
    text-align: center;
}

/* Phase 2: Strategic Crossroad */
#phase2 {
    background: linear-gradient(135deg, #f5f5dc 0%, #ffffff 100%);
    color: #333;
}

.choice-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.choice-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 140, 0, 0.2);
    border-radius: 25px;
    padding: 45px 40px;
    cursor: pointer;
    transition: all 0.4s ease;
    backdrop-filter: blur(15px);
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.choice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.05), rgba(255, 140, 0, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.choice-card:hover::before {
    opacity: 1;
}

.choice-card:hover {
    transform: translateY(-5px);
    border-color: #ff8c00;
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.2);
}

.choice-card.selected {
    border-color: #ff8c00;
    background: rgba(255, 140, 0, 0.1);
    box-shadow: 0 20px 40px rgba(255, 140, 0, 0.3);
}

.choice-card h3 {
    font-family: 'Vazirmatn', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ff8c00;
    text-align: center;
}

.choice-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    text-align: center;
}

/* Phase 3: Oracle Verdict */
#phase3 {
    background: linear-gradient(135deg, #f5f5dc 0%, #ffffff 100%);
    color: #333;
}

.verdict-message {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.verdict-message h1 {
    font-family: 'Vazirmatn', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #ff8c00;
    text-align: center;
}

.verdict-message p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #333;
    text-align: center;
}

.success-animation {
    margin-bottom: 40px;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #00ff00;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto;
    animation: checkmarkPulse 2s ease-in-out infinite;
}

@keyframes checkmarkPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Phase 4: Building the Bridge */
#phase4 {
    background: linear-gradient(135deg, #f5f5dc 0%, #ffffff 100%);
    color: #333;
}

.bridge-visualization {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 60px 0;
    position: relative;
}

.current-state, .ideal-state {
    flex: 1;
    text-align: center;
}

.current-state h3, .ideal-state h3 {
    font-family: 'Vazirmatn', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.state-box {
    padding: 30px;
    border-radius: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.state-box.negative {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    color: #ff0000;
    text-align: center;
}

.state-box.positive {
    background: rgba(0, 255, 0, 0.15);
    border: 3px solid #00ff00;
    color: #00aa00;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.2);
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    border-radius: 6px;
    width: 0%;
    transition: width 2s ease-out;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-bar.negative .progress-fill {
    background: linear-gradient(90deg, #ff0000, #cc0000);
}

.progress-bar.positive .progress-fill {
    background: linear-gradient(90deg, #00ff00, #00cc00);
}

@keyframes progressFill {
    0% {
        width: 0%;
        opacity: 0.7;
    }
    100% {
        width: 100%;
        opacity: 1;
    }
}

.gap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 140, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    font-weight: 600;
    color: #333;
    z-index: 2;
    text-align: center;
}

.arc-bridge {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 60px 0;
}

.bridge-column {
    background: linear-gradient(135deg, #ff8c00 0%, #ff7f00 100%);
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    color: white;
    font-weight: 600;
    animation: bridgeRise 1s ease-out;
    animation-fill-mode: both;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.bridge-column::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;
}

.bridge-column:hover::before {
    left: 100%;
}

.bridge-column.clickable {
    cursor: pointer;
}

.bridge-column.clickable:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 140, 0, 0.4);
}

.bridge-column:nth-child(1) { animation-delay: 0.2s; }
.bridge-column:nth-child(2) { animation-delay: 0.4s; }
.bridge-column:nth-child(3) { animation-delay: 0.6s; }

@keyframes bridgeRise {
    0% {
        transform: translateY(100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.bridge-column .letter {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.bridge-column .label {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.bridge-column .sublabel {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
}

.bridge-label {
    text-align: center;
    margin-top: 30px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #ff8c00;
}

.bridge-cta {
    text-align: center;
    margin-top: 40px;
}

.bridge-button {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: white;
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 255, 0, 0.3);
}

.bridge-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 0, 0.4);
    background: linear-gradient(135deg, #00cc00 0%, #00aa00 100%);
}

/* Phase 5: Call to Action */
#phase5 {
    background: linear-gradient(135deg, #f5f5dc 0%, #ffffff 100%);
    color: #333;
}

.service-description {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.service-description p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    text-align: center;
}

.final-question {
    text-align: center;
    margin-bottom: 40px;
}

.final-question h2 {
    font-family: 'Vazirmatn', 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2rem;
    color: #ff8c00;
    margin-bottom: 20px;
    text-align: center;
}

.final-cta {
    text-align: center;
}

/* Bridge Tooltip Styles */
.bridge-tooltip {
    position: fixed;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #4ecdc4;
    border-radius: 15px;
    padding: 20px;
    max-width: 300px;
    backdrop-filter: blur(10px);
    animation: tooltipFadeIn 0.3s ease-out;
}

.tooltip-content h4 {
    color: #4ecdc4;
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-align: center;
}

.tooltip-content p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.tooltip-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.tooltip-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

@keyframes tooltipFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Exit Intent Modal Styles */
.exit-intent-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: modalFadeIn 0.3s ease-out;
}

.exit-intent-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #4ecdc4;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

.exit-intent-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.exit-intent-header h3 {
    color: #4ecdc4;
    font-size: 1.5rem;
    margin: 0;
}

.exit-intent-close {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.exit-intent-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.exit-intent-body p {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.exit-intent-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.exit-intent-form input {
    padding: 15px 20px;
    border: 2px solid rgba(78, 205, 196, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1rem;
    text-align: center;
}

.exit-intent-form input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
}

.exit-intent-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.exit-intent-body small {
    color: #a0a0a0;
    font-size: 0.9rem;
}

@keyframes modalFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes modalSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.slideInUp {
    animation: slideInUp 0.6s ease-out;
}

/* Micro-interactions */
.form-group input:focus {
    transform: scale(1.02);
}

.choice-card.selected {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.3);
}

.kpi-item:hover .kpi-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.bridge-column:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 140, 0, 0.4);
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* Smooth transitions for all interactive elements */
* {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes slideInUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Performance Optimizations for Mobile */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .heartbeat-line {
        animation-duration: 3s;
    }
    
    .bridge-column {
        animation-duration: 1.5s;
    }
    
    .progress-fill {
        transition-duration: 1.5s;
    }
    
    /* Optimize grid layouts */
    .kpi-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }
    
    .kpi-item {
        padding: 25px 20px;
        min-height: 150px;
    }
    
    .kpi-number {
        font-size: 2.5rem;
    }
    
    .kpi-label {
        font-size: 1rem;
    }
    
    .choice-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .bridge-visualization {
        flex-direction: column;
        gap: 20px;
    }
    
    .arc-bridge {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .bridge-column {
        width: 100%;
        max-width: 300px;
        padding: 20px 15px;
    }
    
    .bridge-column .letter {
        font-size: 2rem;
    }
    
    .bridge-column .label {
        font-size: 1rem;
    }
    
    .bridge-column .sublabel {
        font-size: 0.8rem;
    }
    
    .state-box {
        padding: 20px;
        font-size: 1.1rem;
    }
    
    .diagnosis-form {
        padding: 20px 15px;
    }
    
    .phase-header h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
    
    .bridge-button {
        padding: 15px 30px;
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .heartbeat-line {
        animation: none;
    }
    
    .bridge-column {
        animation: none;
    }
}

/* Lazy Loading Support */
.animate {
    animation-play-state: running;
}

.animate-paused {
    animation-play-state: paused;
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .phase {
        padding: 30px 0;
    }
    
    .phase-header h1 {
        font-size: 1.6rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .diagnosis-form {
        padding: 15px 10px;
    }
    
    .kpi-container {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .kpi-item {
        padding: 20px 15px;
        min-height: 120px;
    }
    
    .kpi-number {
        font-size: 2rem;
    }
    
    .kpi-label {
        font-size: 0.9rem;
    }
    
    .form-group input {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .choice-card {
        padding: 25px 20px;
    }
    
    .choice-card h3 {
        font-size: 1.3rem;
    }
    
    .choice-card p {
        font-size: 1rem;
    }
    
    .state-box {
        padding: 15px;
        font-size: 1rem;
    }
    
    .bridge-column {
        padding: 15px 10px;
    }
    
    .bridge-column .letter {
        font-size: 1.8rem;
    }
    
    .bridge-column .label {
        font-size: 0.9rem;
    }
    
    .bridge-column .sublabel {
        font-size: 0.7rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    .bridge-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}
