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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #F8FAFC;
    color: #0F172A;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.app-container {
    width: 100%;
    max-width: 440px;
    min-height: 100vh;
    background-color: #F8FAFC;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Navigation Header */
.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #0F172A;
    cursor: pointer;
    padding: 8px;
    min-width: 40px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.nav-btn:active {
    background-color: #F1F5F9;
}

.nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #0F172A;
}

/* Segmented Progress Bar */
.progress-track {
    display: flex;
    gap: 4px;
    padding: 12px 20px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
}

.progress-segment {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    background-color: #E2E8F0;
    transition: background-color 0.3s ease;
}

.progress-segment.active {
    background: linear-gradient(90deg, #10B981, #06B6D4);
}

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

.step {
    animation: slideIn 0.3s ease;
}

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

.step-title {
    font-size: 22px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-subtitle {
    font-size: 14px;
    color: #64748B;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Option Pills */
.options-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-size: 15px;
    color: #0F172A;
    font-weight: 500;
}

.option-pill:active {
    transform: scale(0.98);
}

.option-pill.selected {
    border-color: #4F46E5;
    background-color: #EEF2FF;
}

.option-pill.selected .radio-circle {
    border-color: #4F46E5;
    background-color: #4F46E5;
}

.option-pill.selected .radio-circle::after {
    opacity: 1;
}

.radio-circle {
    width: 22px;
    height: 22px;
    border: 2px solid #CBD5E1;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.radio-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #FFFFFF;
    opacity: 0;
    transition: opacity 0.2s ease;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-size: 15px;
    color: #0F172A;
    background-color: #FFFFFF;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
    color: #94A3B8;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    background-color: #4F46E5;
    color: #FFFFFF;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.submit-btn:active {
    transform: scale(0.98);
    background-color: #4338CA;
}

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

.submit-btn.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Success State */
.success-message {
    text-align: center;
    padding: 40px 20px;
}

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

.success-title {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 8px;
}

.success-text {
    font-size: 14px;
    color: #64748B;
    line-height: 1.5;
}

/* Responsive Desktop Centering */
@media (min-width: 441px) {
    body {
        align-items: center;
        padding: 20px 0;
    }

    .app-container {
        min-height: auto;
        border-radius: 16px;
        border: 1px solid #E2E8F0;
        overflow: hidden;
    }

    .content {
        min-height: 500px;
    }
}