@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    --ink: #0f172a;
    --ink-muted: #475569;
    --accent: #2563eb;
    --accent-2: #14b8a6;
    --card: rgba(255, 255, 255, 0.96);
    --border: rgba(148, 163, 184, 0.35);
    --shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background-image:
        radial-gradient(900px 420px at 10% -10%, rgba(37, 99, 235, 0.16), transparent 60%),
        radial-gradient(800px 360px at 95% -8%, rgba(20, 184, 166, 0.16), transparent 60%),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 45%, #ffffff 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

h1, h2, h3, .font-display {
    font-family: 'Fraunces', serif;
    letter-spacing: -0.015em;
}

a {
    transition: color 0.2s ease;
}

input, select, textarea {
    background-color: rgba(255, 255, 255, 0.95);
    border-color: rgba(148, 163, 184, 0.55);
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus, select:focus, textarea:focus {
    border-color: rgba(37, 99, 235, 0.7);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    outline: none;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
}

.survey-shell {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.survey-iframe {
    width: 100%;
    height: clamp(620px, 78vh, 1800px);
    border: 0;
    display: block;
    background: #fff;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, #2563eb 0%, #14b8a6 100%);
    box-shadow: 0 16px 32px rgba(37, 99, 235, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.btn-primary:disabled,
.btn-secondary:disabled,
button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.85);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.nav-panel {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    width: 100%;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-link:hover {
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.1));
    color: #1d4ed8;
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.3);
}

.fade-up {
    opacity: 0;
    transform: translateY(16px);
    animation: fadeUp 0.6s ease forwards;
    animation-delay: var(--delay, 0ms);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

tbody td,
thead th {
    padding: 0.75rem 0.5rem;
}

tbody tr {
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: rgba(15, 23, 42, 0.04);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.badge-success {
    color: #065f46;
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.2);
}

.badge-warning {
    color: #92400e;
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.2);
}

.badge-danger {
    color: #9f1239;
    background: rgba(244, 63, 94, 0.16);
    border-color: rgba(244, 63, 94, 0.2);
}

.badge-info {
    color: #1e3a8a;
    background: rgba(37, 99, 235, 0.16);
    border-color: rgba(37, 99, 235, 0.2);
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .nav-link {
        justify-content: flex-start;
        padding: 0.55rem 0.85rem;
        font-size: 0.85rem;
        background: rgba(15, 23, 42, 0.04);
        border: 1px solid rgba(148, 163, 184, 0.25);
        box-shadow: none;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1.1rem;
    }

    .card {
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
    }

    .survey-iframe {
        height: clamp(560px, 72vh, 1200px);
    }
}

@media (min-width: 768px) {
    .nav-panel {
        margin-top: 0;
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .nav-link {
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0.3rem 0.5rem;
        color: var(--ink-muted);
    }

    .nav-link:hover {
        background: rgba(37, 99, 235, 0.12);
        color: var(--ink);
    }
}

@media (prefers-reduced-motion: reduce) {
    .fade-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
