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

:root {
    --ink: #0a1628;
    --deep: #0d2137;
    --teal: #0f766e;
    --teal-light: #14b8a6;
    --emerald: #10b981;
    --slate: #64748b;
    --ghost: #94a3b8;
    --mist: #e2e8f0;
    --cloud: #f1f5f9;
    --white: #ffffff;
    --red: #ef4444;
    --orange: #f59e0b;
    --yellow: #eab308;
    --green: #22c55e;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.25rem 2rem;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
nav .nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ink);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--teal), var(--emerald));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-icon svg {
    width: 18px;
    height: 18px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.nav-link {
    color: var(--slate);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-link:hover {
    color: var(--ink);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1.05rem; }
.btn-full { width: 100%; }
.btn-primary {
    background: linear-gradient(135deg, var(--teal), var(--emerald));
    color: white;
    box-shadow: 0 2px 8px rgba(15, 118, 110, 0.25);
}
.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(15, 118, 110, 0.35);
    transform: translateY(-1px);
}
.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}
.btn-outline {
    background: transparent;
    color: var(--ink);
    border: 1.5px solid var(--mist);
}
.btn-outline:hover {
    border-color: var(--teal-light);
    color: var(--teal);
}

/* HERO */
.hero {
    padding: 10rem 0 5rem;
    text-align: center;
    background: linear-gradient(180deg, var(--cloud) 0%, var(--white) 100%);
}
.hero-badge {
    display: inline-block;
    background: rgba(15, 118, 110, 0.08);
    color: var(--teal);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}
.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.gradient-text {
    background: linear-gradient(135deg, var(--teal), var(--emerald));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 1.2rem;
    color: var(--slate);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3.5rem;
}
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
}
.stat { text-align: center; }
.stat-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--teal);
}
.stat-label {
    font-size: 0.85rem;
    color: var(--ghost);
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--mist);
}

/* SECTIONS */
.section {
    padding: 5rem 0;
}
.section-alt {
    background: var(--cloud);
}
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.section-sub {
    text-align: center;
    color: var(--slate);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* STEPS */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.step-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
}
.step-num {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--teal), var(--emerald));
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.step-card p {
    color: var(--slate);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ASSESSMENT FORM */
.assess-wrapper {
    max-width: 720px;
    margin: 0 auto;
}
.assess-form {
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}
.form-group {
    margin-bottom: 1.25rem;
}
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    margin-bottom: 0.4rem;
}
.form-group select,
.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--mist);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--white);
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 2.5rem;
}
.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--teal-light);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* RESULTS */
.results {
    margin-top: 2rem;
    animation: slideUp 0.4s ease;
}
.results.hidden {
    display: none;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Risk Score Card */
.risk-header {
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}
.risk-route {
    font-size: 0.9rem;
    color: var(--slate);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.risk-route .arrow {
    color: var(--teal-light);
    font-weight: 700;
}
.risk-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 4px solid;
}
.risk-score-circle .score-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}
.risk-score-circle .score-max {
    font-size: 0.8rem;
    color: var(--ghost);
    font-weight: 500;
}
.risk-level-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}
.risk-LOW { border-color: var(--green); }
.risk-LOW .score-num { color: var(--green); }
.risk-LOW + .risk-level-badge { background: rgba(34,197,94,0.1); color: #16a34a; }

.risk-MEDIUM { border-color: var(--yellow); }
.risk-MEDIUM .score-num { color: var(--orange); }
.risk-MEDIUM + .risk-level-badge { background: rgba(245,158,11,0.1); color: #d97706; }

.risk-HIGH { border-color: var(--orange); }
.risk-HIGH .score-num { color: var(--orange); }
.risk-HIGH + .risk-level-badge { background: rgba(245,158,11,0.1); color: #d97706; }

.risk-CRITICAL { border-color: var(--red); }
.risk-CRITICAL .score-num { color: var(--red); }
.risk-CRITICAL + .risk-level-badge { background: rgba(239,68,68,0.1); color: #dc2626; }

/* Result Sections */
.result-section {
    background: var(--white);
    border: 1px solid var(--mist);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}
.result-section h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.result-section h3 .icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}
.icon-treatment { background: rgba(239,68,68,0.1); }
.icon-checklist { background: rgba(15,118,110,0.1); }
.icon-docs { background: rgba(99,102,241,0.1); }
.icon-warnings { background: rgba(245,158,11,0.1); }

.result-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cloud);
}
.result-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.result-item-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.result-item-title .badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.badge-mandatory {
    background: rgba(239,68,68,0.1);
    color: var(--red);
}
.badge-optional {
    background: rgba(100,116,139,0.1);
    color: var(--slate);
}
.result-item-desc {
    font-size: 0.85rem;
    color: var(--slate);
    margin-top: 0.25rem;
    line-height: 1.5;
}
.result-item-authority {
    font-size: 0.8rem;
    color: var(--ghost);
    margin-top: 0.2rem;
}

/* Warning items */
.warning-item {
    background: rgba(245,158,11,0.06);
    border-left: 3px solid var(--orange);
    padding: 0.75rem 1rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--ink);
}
.warning-item:last-child { margin-bottom: 0; }

/* No results message */
.no-rules {
    text-align: center;
    padding: 2rem;
    background: rgba(245,158,11,0.06);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: var(--radius);
}
.no-rules h3 {
    color: var(--orange);
    justify-content: center;
    margin-bottom: 0.5rem;
}
.no-rules p {
    color: var(--slate);
    font-size: 0.95rem;
}

/* COUNTRIES GRID */
.countries-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}
.country-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}
.country-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.country-flag {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.country-card h3 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}
.country-card p {
    font-size: 0.82rem;
    color: var(--slate);
    line-height: 1.5;
}

/* FOOTER */
footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--mist);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-tagline {
    color: var(--ghost);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}
.footer-copy {
    color: var(--ghost);
    font-size: 0.85rem;
}

/* LOADING SPINNER */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    nav { padding: 1rem; }
    .nav-links { gap: 0.75rem; }
    .nav-link { display: none; }
    .hero { padding: 7rem 0 3rem; }
    .hero h1 { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
    .stat-divider { display: none; }
    .steps-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .countries-grid { grid-template-columns: repeat(2, 1fr); }
    .country-card:last-child { grid-column: span 2; }
    .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
    .section { padding: 3rem 0; }
    .assess-form { padding: 1.5rem; }
}
@media (max-width: 480px) {
    .countries-grid { grid-template-columns: 1fr; }
    .country-card:last-child { grid-column: span 1; }
}
