/* Mobile Design Evolution Styles */
:root {
    --optum-orange: #FF6900;
    --optum-orange-light: #FF8533;
    --optum-gray-dark: #636363;
    --optum-gray-medium: #9E9E9E;
    --optum-gray-light: #F5F5F5;
    --optum-green: #00A651;
    --optum-red: #D32F2F;
    --optum-blue: #0066CC;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    overflow-x: auto;
}

.evolution-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
.evolution-header {
    text-align: center;
    margin-bottom: 30px;
}

.evolution-header h1 {
    color: var(--optum-gray-dark);
    font-size: 24px;
    margin-bottom: 8px;
}

.evolution-header p {
    color: var(--optum-gray-medium);
    font-size: 14px;
}

/* Version Selector */
.version-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    width: 300px;
    min-width: 300px;
}

.version-btn {
    background: transparent;
    border: none;
    padding: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.version-btn.active {
    background: var(--optum-orange);
    color: white;
}

.version-btn:not(.active):hover {
    background: #f0f0f0;
}

.version-label {
    display: block;
    font-weight: 600;
    font-size: 16px;
}

.version-desc {
    display: block;
    font-size: 12px;
    opacity: 0.8;
}

.abandonment-rate {
    display: block;
    font-size: 10px;
    margin-top: 4px;
    font-weight: 500;
}

/* Main Content Layout */
.main-content {
    display: flex;
    gap: 40px;
    margin-bottom: 30px;
    align-items: flex-start;
    min-height: 800px;
}

/* Phone Frame */
.phone-frame {
    background: #333;
    border: 3px solid #666;
    border-radius: 35px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    flex: 0 0 auto;
    width: 380px;
    height: 750px;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Phone Physical Features */
.phone-notch {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #222;
    border-radius: 0 0 15px 15px;
    z-index: 10;
}

.phone-speaker {
    position: absolute;
    top: 35px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #444;
    border-radius: 2px;
    z-index: 10;
}

.phone-camera {
    position: absolute;
    top: 15px;
    right: 50px;
    width: 12px;
    height: 12px;
    background: #444;
    border-radius: 50%;
    z-index: 10;
}

.phone-screen {
    background: #f8f8f8;
    border: 2px solid #ccc;
    border-radius: 25px;
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-bottom: 15px;
}

.phone-home-button {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #222;
    border: 2px solid #444;
    border-radius: 50%;
    z-index: 10;
}

/* Prototype Versions */
.prototype-version {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    flex-direction: column;
}

.prototype-version.active {
    opacity: 1;
}

/* Mock Header */
.mock-header {
    background: #f0f0f0;
    border-bottom: 2px solid #ccc;
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 600;
}

.battery {
    width: 24px;
    height: 12px;
    border: 1px solid #000;
    border-radius: 2px;
    position: relative;
}

.battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 3px;
    width: 2px;
    height: 6px;
    background: #000;
    border-radius: 0 1px 1px 0;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
}

.nav-bar h2 {
    font-size: 18px;
    color: var(--optum-gray-dark);
}

.back-btn, .help-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--optum-orange);
}

/* Form Content */
.form-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.form-section {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-family: monospace;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 2px solid #999;
    border-radius: 4px;
    font-size: 16px;
    background: white;
    font-family: monospace;
}

.form-input:focus {
    outline: none;
    border-color: var(--optum-orange);
    box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.1);
}

/* Upload Areas */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-area.basic {
    color: var(--optum-gray-medium);
}

.upload-area.basic:hover {
    border-color: #bbb;
}

.upload-area.improved {
    border-color: var(--optum-orange);
    color: var(--optum-orange);
}

.upload-area.improved .upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.upload-area.improved small {
    display: block;
    margin-top: 4px;
    color: var(--optum-gray-medium);
    font-size: 12px;
}

/* Submit Buttons */
.submit-btn {
    width: 100%;
    padding: 16px;
    background: #ddd;
    color: #333;
    border: 2px solid #999;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    font-family: monospace;
}

.submit-btn:hover {
    background: #ccc;
}

.submit-btn.improved {
    background: linear-gradient(135deg, var(--optum-orange) 0%, var(--optum-orange-light) 100%);
}

/* Progress Bar (V3) */
.progress-bar {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.active .step-circle {
    background: var(--optum-orange);
    color: white;
}

.progress-step.active::after {
    background: var(--optum-orange);
}

.step-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    z-index: 1;
    position: relative;
}

.progress-step span {
    font-size: 12px;
    margin-top: 8px;
    color: var(--optum-gray-medium);
}

.progress-step.active span {
    color: var(--optum-orange);
    font-weight: 600;
}

/* Smart Content (V3) */
.smart-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.step-header {
    text-align: center;
    margin-bottom: 30px;
}

.step-header h3 {
    color: var(--optum-gray-dark);
    font-size: 20px;
    margin-bottom: 8px;
}

.step-header p {
    color: var(--optum-gray-medium);
    font-size: 14px;
}

/* Camera Interface */
.camera-interface {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.camera-frame {
    width: 200px;
    height: 250px;
    border: 3px solid var(--optum-orange);
    border-radius: 12px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
                linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.frame-corners::before,
.frame-corners::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid var(--optum-orange);
}

.frame-corners::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
}

.frame-corners::after {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
}

.frame-guide {
    color: var(--optum-orange);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

/* Capture Tips */
.capture-tips {
    margin-bottom: 30px;
}

.tip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fff8f0;
    border-radius: 8px;
    border-left: 4px solid var(--optum-orange);
}

.tip-icon {
    font-size: 18px;
}

/* Smart Button */
.smart-btn {
    width: 100%;
    padding: 16px;
    background: var(--optum-orange);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.smart-btn:hover {
    background: var(--optum-orange-light);
    transform: translateY(-1px);
}

.smart-btn.success {
    background: var(--optum-green);
}

.smart-btn.success:hover {
    background: #00954a;
}

/* Detected Info */
.detected-info {
    margin-bottom: 30px;
}

.detection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 12px;
}

.detection-item label {
    font-weight: 600;
    color: var(--optum-gray-dark);
}

.detected-value {
    color: var(--optum-green);
    font-weight: 600;
}

.smart-suggestion {
    text-align: right;
}

.smart-suggestion span {
    display: block;
    color: var(--optum-orange);
    font-weight: 600;
}

.smart-suggestion small {
    color: var(--optum-gray-medium);
    font-size: 12px;
}

/* Eligibility Check */
.eligibility-check {
    margin-bottom: 30px;
}

.check-result {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
}

.check-result.success {
    background: #e8f5e8;
    border: 1px solid var(--optum-green);
}

.check-icon {
    font-size: 20px;
}

.check-result strong {
    color: var(--optum-green);
    display: block;
    margin-bottom: 4px;
}

.check-result p {
    color: var(--optum-gray-dark);
    font-size: 14px;
}

/* Review Summary */
.review-summary {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

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

.summary-item .label {
    color: var(--optum-gray-medium);
    font-weight: 500;
}

.summary-item .value {
    color: var(--optum-gray-dark);
    font-weight: 600;
}

/* Modals */
.error-modal, .success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.error-content, .success-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    max-width: 300px;
    width: 90%;
}

.error-content h3 {
    color: var(--optum-red);
    margin-bottom: 12px;
}

.success-content h3 {
    color: var(--optum-green);
    margin-bottom: 12px;
}

.success-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.error-content button, .success-content button {
    background: var(--optum-orange);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 16px;
}

/* Metrics Display */
.metrics-display {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.metric-label {
    color: var(--optum-gray-medium);
    font-weight: 500;
}

.metric-value {
    color: var(--optum-gray-dark);
    font-weight: 600;
    font-size: 18px;
}

/* Improvements List */
.improvements-list {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.improvements-list h3 {
    color: var(--optum-gray-dark);
    margin-bottom: 16px;
}

.improvements-list ul {
    list-style: none;
    padding: 0;
}

.improvements-list li {
    padding: 8px 0;
    color: var(--optum-gray-dark);
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 24px;
}

.improvements-list li:last-child {
    border-bottom: none;
}

.improvements-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 20px;
    }

    .version-selector {
        width: 100%;
        flex-direction: row;
        padding: 8px;
    }

    .version-btn {
        flex: 1;
        padding: 12px;
        text-align: center;
    }

    .phone-frame {
        max-width: none;
        align-self: center;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .phone-frame {
        border-radius: 15px;
        padding: 4px;
    }

    .phone-screen {
        border-radius: 12px;
        height: 500px;
    }

    .version-selector {
        flex-direction: column;
        gap: 8px;
    }

    .version-btn {
        padding: 16px;
        text-align: left;
    }
}