:root {
    --brand-blue: rgb(50, 104, 250);
    --brand-blue-dark: rgb(3, 31, 106);
    --brand-cream: rgb(252, 248, 244);
    --font-family: neighbourSans, "neighbourSans Fallback", -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 720px;
    margin: 0 auto;
    background: var(--brand-cream);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, var(--brand-blue-dark) 0%, var(--brand-blue) 100%);
    color: var(--brand-cream);
    padding: 30px;
    text-align: center;
}

.header h1 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 8px;
}

.header p {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.content {
    padding: 30px;
    background: var(--brand-cream);
    min-height: 400px;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--brand-blue-dark);
    margin-bottom: 16px;
    min-height: 18px;
}

.breadcrumb .step {
    display: inline-block;
    background: rgba(50, 104, 250, 0.12);
    padding: 3px 10px;
    border-radius: 12px;
    margin-right: 6px;
    margin-bottom: 6px;
}

.card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(3, 31, 106, 0.08);
    padding: 30px;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
}

.question-title {
    font-size: 1.3rem;
    color: var(--brand-blue-dark);
    margin-bottom: 10px;
    font-weight: 600;
}

.question-hint {
    color: #5a6373;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 16px 18px;
    border: 2px solid #e5e1da;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 0.98rem;
    color: var(--brand-blue-dark);
    font-family: var(--font-family);
    transition: all 0.15s ease;
}

.option-btn:hover {
    border-color: var(--brand-blue);
    background: rgba(50, 104, 250, 0.06);
}

.option-btn .option-label {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.option-btn .option-desc {
    color: #5a6373;
    font-size: 0.88rem;
}

/* Result card */
.result-card {
    text-align: left;
}

.result-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.badge-on-call { background: rgba(50, 104, 250, 0.12); color: var(--brand-blue-dark); }
.badge-backlog { background: rgba(3, 31, 106, 0.08); color: var(--brand-blue-dark); }
.badge-cross-team-handoff { background: rgba(50, 104, 250, 0.15); color: var(--brand-blue); }
.badge-not-a-defect { background: #eafaf1; color: #1e8449; }
.badge-needs-more-info { background: #f4ecf7; color: #6c3483; }

.result-title {
    font-size: 1.4rem;
    color: var(--brand-blue-dark);
    margin-bottom: 14px;
    font-weight: 600;
}

.result-section {
    margin-bottom: 18px;
}

.result-section h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--brand-blue);
}

.result-section p, .result-section li {
    color: #333f4d;
    line-height: 1.6;
}

.result-section ul {
    padding-left: 20px;
}

.flag-box {
    background: rgba(50, 104, 250, 0.08);
    border-left: 4px solid var(--brand-blue);
    padding: 14px 16px;
    border-radius: 6px;
    margin-top: 10px;
    color: var(--brand-blue-dark);
    font-size: 0.92rem;
}

.copy-box {
    background: var(--brand-cream);
    border: 1px solid #e5e1da;
    border-radius: 6px;
    padding: 16px;
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 0.85rem;
    white-space: pre-wrap;
    color: var(--brand-blue-dark);
    margin-top: 8px;
}

/* Action item checklist */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--brand-cream);
    border: 1px solid #e5e1da;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.92rem;
    color: var(--brand-blue-dark);
    line-height: 1.4;
}

.checklist-item:hover {
    border-color: var(--brand-blue);
}

.checklist-item input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--brand-blue);
}

.checklist-item input[type="checkbox"]:checked ~ span {
    text-decoration: line-through;
    color: #8a8f98;
}

.actions {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    padding: 0 30px 30px;
    background: var(--brand-cream);
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-family);
}

.btn-secondary {
    background: rgba(3, 31, 106, 0.08);
    color: var(--brand-blue-dark);
}

.btn-secondary:hover {
    background: rgba(3, 31, 106, 0.14);
}

.btn-primary {
    background: var(--brand-blue);
    color: var(--brand-cream);
}

.btn-primary:hover {
    background: var(--brand-blue-dark);
}

.footer {
    background: var(--brand-blue-dark);
    color: var(--brand-cream);
    padding: 16px 30px;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.9;
}

.footer code {
    background: rgba(252, 248, 244, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
}

/* Report form */
.report-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-blue-dark);
}

.report-form .required {
    color: var(--brand-blue);
}

.report-form textarea,
.report-form input,
.report-form select {
    font-family: var(--font-family);
    font-size: 0.95rem;
    padding: 10px 12px;
    border: 2px solid #e5e1da;
    border-radius: 6px;
    color: var(--brand-blue-dark);
    font-weight: 400;
    resize: vertical;
}

.report-form textarea:focus,
.report-form input:focus,
.report-form select:focus {
    outline: none;
    border-color: var(--brand-blue);
}

@media (max-width: 600px) {
    .header h1 { font-size: 1.5rem; }
    .content, .card { padding: 20px; }
    .actions { padding: 0 20px 20px; }
}
