:root {
    --bg-primary: #161619;
    --bg-secondary: #1D1D21;
    --text-primary: #ffffff;
    --text-secondary: #D9D9D9;
    --accent: #018CFF;
    --accent-hover: #0170CC;
    --border: #23262E;
    --success: #50EB97;
    --error: #ef4444;
}

[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #1a1a1a;
    --text-secondary: #7F8794;
    --accent: #018CFF;
    --accent-hover: #0170CC;
    --border: #e0e0e0;
    --success: #50EB97;
    --error: #ef4444;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#themeToggle {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
}

#themeToggle:hover {
    transform: scale(1.1);
    border-color: var(--accent);
}

body[data-theme="dark"] .icon-sun {
    display: none;
}

body[data-theme="light"] .icon-moon {
    display: none;
}

body:not([data-theme]) .icon-sun {
    display: none;
}

.container {
    max-width: 600px;
    width: 100%;
}

.progress-bar {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.progress-fill {
    height: 8px;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.3s ease;
    margin-bottom: 8px;
}

.progress-text {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.question-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    min-height: 300px;
}

.question-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    line-height: 1.4;
}

.question-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    background: var(--bg-primary);
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.option:hover {
    border-color: var(--accent);
    transform: translateX(4px);
}

.option.selected {
    border-color: var(--accent);
    background: var(--accent);
    color: white;
}

.option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.option input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.option label {
    cursor: pointer;
    flex: 1;
    font-size: 16px;
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:disabled {
    background: var(--border);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

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

.btn-secondary:hover {
    border-color: var(--accent);
}

.input-field {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.input-field:focus {
    outline: none;
    border-color: var(--accent);
}

.calendly-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 18px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.calendly-button:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.calendly-button svg {
    width: 24px;
    height: 24px;
}

.completion-message {
    text-align: center;
    padding: 48px 32px;
}

.completion-message h2 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--success);
}

.completion-message p {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.result-card {
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    text-align: left;
}

.result-card h3 {
    color: var(--accent);
    font-size: 24px;
    margin-bottom: 8px;
}

.result-card .score {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.result-card .description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.result-card .recommendations {
    margin-top: 16px;
}

.result-card .recommendations h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.result-card .recommendations ul {
    list-style: none;
    padding: 0;
}

.result-card .recommendations li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-secondary);
}

.result-card .recommendations li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.email-confirmation {
    margin-top: 24px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 8px;
    font-size: 14px !important;
}

.email-confirmation strong {
    color: var(--accent);
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 50%;
    margin-left: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    vertical-align: middle;
    padding: 0;
    flex-shrink: 0;
}

.help-icon:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.1);
    border-color: var(--accent-hover);
}

.help-icon svg {
    width: 18px;
    height: 18px;
}

.help-tooltip {
    position: fixed;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: tooltipFadeIn 0.2s ease;
    max-width: 500px;
}

.help-tooltip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 10px 10px 0 0;
}

.help-tooltip-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.help-tooltip-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.help-tooltip-close:hover {
    background: var(--border);
    color: var(--text-primary);
}

.help-tooltip-content {
    padding: 20px;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

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

@media (max-width: 640px) {
    .question-title {
        font-size: 20px;
    }
    
    .question-container {
        padding: 24px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .help-tooltip {
        left: 10px !important;
        right: 10px !important;
        max-width: none;
        width: auto;
    }
    
    .help-icon {
        width: 28px;
        height: 28px;
    }
}
