:root {
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #0f3460;
    --accent-bright: #e94560;
    --text: #2d3436;
    --text-light: #636e72;
    --bg: #f8f9fa;
    --white: #ffffff;
    --border: #dee2e6;
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --orange: #fd7e14;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 24px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px;
}

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

.header h1 {
    font-size: 28px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 4px;
}

.header .subtitle {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

.card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.card h2 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg);
}

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

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group .question-text {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-style: italic;
}

select,
input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23636e72' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

select:focus,
input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(15, 52, 96, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

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

.btn-primary:hover {
    background: var(--primary);
    box-shadow: var(--shadow);
}

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

.btn-danger:hover {
    background: #d63851;
}

.btn-block {
    display: block;
    width: 100%;
}

.score-display {
    text-align: center;
    padding: 32px;
    margin-bottom: 24px;
}

.score-number {
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.score-label {
    font-size: 14px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tier-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 12px;
}

.tier-low {
    background: #d4edda;
    color: var(--success);
}

.tier-medium {
    background: #fff3cd;
    color: #856404;
}

.tier-high {
    background: #ffe0cc;
    color: var(--orange);
}

.tier-critical {
    background: #f8d7da;
    color: var(--danger);
}

.score-low { color: var(--success); }
.score-medium { color: #856404; }
.score-high { color: var(--orange); }
.score-critical { color: var(--danger); }

.flash-messages {
    margin-bottom: 20px;
}

.flash {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 8px;
}

.flash-error {
    background: #f8d7da;
    color: var(--danger);
    border: 1px solid #f5c6cb;
}

.flash-info {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.flash-success {
    background: #d4edda;
    color: var(--success);
    border: 1px solid #c3e6cb;
}

.success-container {
    text-align: center;
    padding: 48px 24px;
}

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

.success-container h2 {
    border: none;
    padding: 0;
    margin-bottom: 12px;
}

.success-container p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
}

.progress-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.progress-step {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
}

.progress-step.active {
    background: var(--accent);
}

.progress-step.completed {
    background: var(--success);
}

.email-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid var(--bg);
}

.email-section h3 {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 8px;
}

.email-section p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.footer {
    text-align: center;
    padding: 32px 0;
    font-size: 12px;
    color: var(--text-light);
}
