:root {
    --pns-navy: #071b3d;
    --pns-navy-deep: #050d2b;
    --pns-red: #d93b30;
    --pns-red-dark: #b82e24;
    --pns-slate: #1d2b3a;
    --pns-text: #243042;
    --pns-muted: #5b6b7d;
    --pns-surface: #ffffff;
    --pns-surface-soft: #f5f7fb;
    --pns-border: rgba(7, 27, 61, 0.12);
    --pns-shadow: 0 18px 45px rgba(7, 27, 61, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    background: linear-gradient(135deg, var(--pns-navy-deep) 0%, var(--pns-navy) 35%, #122955 100%);
    color: var(--pns-text);
}

.pns-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.pns-shell {
    width: min(100%, 980px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--pns-border);
    border-radius: 24px;
    box-shadow: var(--pns-shadow);
    padding: clamp(24px, 4vw, 52px);
}

.page-header {
    margin-bottom: 28px;
}

.eyebrow {
    display: inline-block;
    margin: 0 0 12px;
    color: var(--pns-red);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1, h2, h3 {
    margin: 0 0 12px;
    color: var(--pns-navy);
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.3rem, 4vw, 3.5rem);
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.2rem);
    letter-spacing: -0.03em;
}

p {
    margin: 0 0 12px;
    line-height: 1.65;
}

.pns-form {
    display: grid;
    gap: 22px;
}

.field-group {
    display: grid;
    gap: 9px;
}

.field-label {
    font-size: 0.96rem;
    font-weight: 700;
    color: var(--pns-slate);
}

.field-input {
    width: 100%;
    border: 1px solid rgba(7, 27, 61, 0.18);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--pns-slate);
    background: #f9fbff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field-input:focus {
    outline: none;
    border-color: rgba(217, 59, 48, 0.82);
    box-shadow: 0 0 0 4px rgba(217, 59, 48, 0.12);
    background: #ffffff;
}

.inline-error {
    display: none;
    color: var(--pns-red-dark);
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 4px;
}

.inline-error.is-visible {
    display: block;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.btn {
    appearance: none;
    border: none;
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--pns-red) 0%, var(--pns-red-dark) 100%);
    color: white;
    box-shadow: 0 10px 20px rgba(217, 59, 48, 0.2);
}

.btn-secondary {
    background: #edf2fb;
    color: var(--pns-navy);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.result-card {
    background: var(--pns-surface-soft);
    border: 1px solid var(--pns-border);
    border-radius: 18px;
    padding: 18px 18px 14px;
}

.section-heading {
    margin: 0 0 10px;
    color: var(--pns-navy);
    font-size: 1.02rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.record-list {
    margin: 0;
    padding-left: 20px;
    color: var(--pns-slate);
}

.record-list li + li {
    margin-top: 8px;
}

.status-text {
    display: inline-block;
    margin: 0 0 10px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 700;
}

.status-text--positive {
    background: rgba(24, 121, 78, 0.1);
    color: #18794e;
}

.status-text--negative {
    background: rgba(217, 59, 48, 0.1);
    color: var(--pns-red-dark);
    border: 1px solid rgba(217, 59, 48, 0.18);
}

.status-text--neutral {
    background: rgba(7, 27, 61, 0.06);
    color: var(--pns-slate);
}

.result-card.negative-result {
    border-color: rgba(217, 59, 48, 0.24);
    background: rgba(217, 59, 48, 0.03);
}

.result-card.positive-result {
    border-color: rgba(24, 121, 78, 0.2);
    background: rgba(24, 121, 78, 0.03);
}

.result-card.negative-result .section-heading,
.result-card.negative-result .record-list li,
.result-card.negative-result .status-text--negative {
    color: var(--pns-red-dark);
}

.result-card.positive-result .section-heading,
.result-card.positive-result .status-text--positive {
    color: #18794e;
}

.pns-link {
    color: var(--pns-red);
    font-weight: 700;
    text-decoration: none;
}

.pns-link:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .pns-page {
        padding: 18px 12px;
    }

    .pns-shell {
        border-radius: 18px;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}
