:root {
    --primary: #0284c7;
    --primary-hover: #0369a1;
    --primary-light: #f0f9ff;
    --primary-border: #bae6fd;
    --primary-active: #0c4a6e;
    --secondary: #0d9488;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --border-hover: #cbd5e1;
    --danger: #ef4444;
    --success: #10b981;
    --radius-lg: 16px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
}

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

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Header & Nav */
header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    letter-spacing: -0.01em;
}

.brand small {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
}

nav {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

nav a:hover {
    color: var(--primary);
}

.inline {
    display: inline-block;
}

/* Hero Section */
.hero {
    margin: 2.75rem 0 2rem;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--primary-border);
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    margin-bottom: 0.85rem;
}

h1 {
    font-size: 2.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 0.85rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.65rem;
    line-height: 1.45;
}

p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Cards */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.card.center {
    text-align: center;
    padding: 3.5rem 2rem;
}

.card.narrow {
    max-width: 440px;
    margin: 3.5rem auto;
    padding: 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

/* Question Cards */
.question {
    border-left: 4px solid var(--primary);
}

.hint {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: -0.15rem;
    margin-bottom: 1.15rem;
    line-height: 1.45;
}

/* Form Inputs */
label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #334155;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    background-color: #ffffff;
    transition: all 0.2s ease;
    margin-top: 0.4rem;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
    color: #94a3b8;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Options (Radio & Checkbox Cards) */
.options {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: 1.15rem 0;
}

.option {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1.15rem;
    background: #ffffff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
    user-select: none;
}

.option:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.option:has(input:checked) {
    background: var(--primary-light);
    border-color: var(--primary);
    color: #0369a1;
    font-weight: 600;
}

/* Custom styled inputs for checkboxes and radios */
.option input[type="radio"],
.option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #cbd5e1;
    border-radius: 4px;
    outline: none;
    background-color: #ffffff;
    cursor: pointer;
    display: grid;
    place-content: center;
    transition: all 0.15s ease;
    flex-shrink: 0;
    margin: 0;
}

.option input[type="radio"] {
    border-radius: 50%;
}

.option input[type="checkbox"]:hover,
.option input[type="radio"]:hover {
    border-color: var(--primary);
}

.option input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.option input[type="checkbox"]:checked::before {
    content: "";
    width: 0.55rem;
    height: 0.35rem;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg) translate(1px, -1px);
}

.option input[type="radio"]:checked {
    border-color: var(--primary);
}

.option input[type="radio"]:checked::before {
    content: "";
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background-color: var(--primary);
}

.option span {
    line-height: 1.45;
}

.sub {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.85rem;
}

/* Matrix Likert Scale */
.matrix {
    display: grid;
    gap: 0.85rem;
    margin: 1.15rem 0;
}

.matrix-row {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

@media(min-width: 640px) {
    .matrix-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    .matrix-row > div:first-child {
        max-width: 62%;
        font-weight: 500;
        font-size: 0.925rem;
        color: #1e293b;
    }
}

.rating {
    display: flex;
    gap: 0.5rem;
}

.rating label {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    cursor: pointer;
}

.rating input {
    display: none;
}

.rating span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: var(--radius-sm);
    background: #ffffff;
    border: 1.5px solid var(--border);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: all 0.15s ease;
}

.rating label:hover span {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.rating input:checked + span {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

/* Buttons */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
    background: var(--primary-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.btn.secondary {
    background: #ffffff;
    color: #334155;
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.btn.secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.btn.wide {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.05rem;
}

.link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    font-weight: 600;
    padding: 0;
    text-decoration: none;
}

.link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Alerts */
.alert {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 0.9rem 1.25rem;
    border-radius: var(--radius-sm);
    margin: 1.5rem 0;
    font-size: 0.925rem;
    font-weight: 500;
}

/* Dashboard & KPIs */
.heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 1.5rem;
}

.actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.kpis .card {
    margin-bottom: 0;
    text-align: center;
    padding: 1.5rem;
}

.kpis span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.kpis strong {
    font-size: 2rem;
    color: var(--primary);
    font-weight: 800;
}

/* Charts & Progress Bars */
.bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.925rem;
    margin-top: 0.85rem;
    margin-bottom: 0.35rem;
    color: #334155;
}

.bar-track {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.85rem;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    margin: 1.15rem 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

th, td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border);
}

th {
    background: #f8fafc;
    font-weight: 700;
    color: #475569;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: #f8fafc;
}

/* Quotes / Open text answers */
.quote {
    background: #f8fafc;
    border-left: 3px solid var(--primary);
    padding: 0.85rem 1.15rem;
    margin: 0.65rem 0;
    font-size: 0.925rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #334155;
}

/* Thanks page check icon & code */
.check {
    width: 68px;
    height: 68px;
    background: #dcfce7;
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem;
    font-weight: bold;
}

.code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 2.15rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin: 1.25rem 0;
    border: 2px dashed #7dd3fc;
}

/* Editor question block */
.edit-question {
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.35rem;
    margin-bottom: 1.15rem;
}

/* Footer */
footer {
    margin-top: auto;
    padding: 2.5rem 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
    border-top: 1px solid var(--border);
    line-height: 1.6;
}
