:root {
    --ink: #111218;
    --muted: #58606d;
    --paper: #f7f2ea;
    --accent: #ff7a45;
    --accent-strong: #e4572e;
    --teal: #1f8a70;
    --panel: rgba(255, 255, 255, 0.92);
    --border: rgba(17, 18, 24, 0.12);
    --shadow: 0 20px 40px rgba(17, 18, 24, 0.12);
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, #fff6ea 0%, #f2f7ff 55%, #f7f2ea 100%);
    min-height: 100vh;
}

body[data-theme="dark"] {
    --ink: #f5f6fa;
    --muted: #a6afbf;
    --paper: #0f121a;
    --accent: #ff874f;
    --accent-strong: #ff6b3b;
    --panel: #181c26;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
    background: radial-gradient(circle at top, rgba(255, 135, 79, 0.15), transparent 55%),
        radial-gradient(circle at 20% 80%, rgba(44, 194, 155, 0.18), transparent 50%),
        var(--paper);
}

.questionnaire-page {
    --ink: #0f121a;
    --muted: #5a6270;
    --accent: #ff6b3b;
    --accent-strong: #e0471a;
    --panel: #ffffff;
    --border: rgba(15, 18, 26, 0.08);
    --shadow: 0 20px 40px rgba(15, 18, 26, 0.12);
}

.questionnaire-page[data-theme="dark"] {
    --ink: #f5f6fa;
    --muted: #a6afbf;
    --accent: #ff874f;
    --accent-strong: #ff6b3b;
    --panel: #181c26;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.top-nav {
    background: rgba(247, 242, 234, 0.85);
    backdrop-filter: blur(12px);
}

body[data-theme="dark"] .top-nav {
    background: rgba(24, 28, 38, 0.85);
}

.top-nav a {
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--ink);
}

.brand-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
    background: transparent;
}


.language-switch .form-select {
    border-radius: 999px;
    border-color: rgba(17, 18, 24, 0.1);
    font-weight: 600;
}

.auth-shell {
    padding-bottom: 4rem;
}

.auth-header h1 {
    font-family: "Newsreader", "Times New Roman", serif;
    font-weight: 600;
}

.auth-header p {
    color: var(--muted);
    max-width: 620px;
}

.card-panel {
    background: rgba(255, 255, 255, 0.88);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

body[data-theme="dark"] .card-panel {
    background: rgba(24, 28, 38, 0.9);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.switch {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--panel);
    border-radius: 999px;
    padding: 0.2rem;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.switch-option {
    border: none;
    background: transparent;
    color: var(--muted);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.switch-option.is-active {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 18px rgba(228, 87, 46, 0.2);
}

.section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.plan-option {
    position: relative;
    margin-bottom: 1rem;
}

.plan-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(17, 18, 24, 0.12);
    background: #fff;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.plan-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.plan-meta {
    color: var(--muted);
    margin-bottom: 0;
}

.plan-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--teal);
}

.plan-option input:checked + .plan-card {
    border-color: var(--accent);
    box-shadow: 0 16px 30px rgba(228, 87, 46, 0.18);
    transform: translateY(-2px);
}

.btn-brand {
    background: linear-gradient(120deg, var(--accent), var(--accent-strong));
    border: none;
    box-shadow: 0 10px 20px rgba(228, 87, 46, 0.25);
}

.btn-brand:hover {
    background: linear-gradient(120deg, var(--accent-strong), var(--accent));
}

.login-line {
    color: var(--muted);
    text-align: center;
    margin-bottom: 0;
}

.login-line a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.questionnaire-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.questionnaire-section {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--panel);
}

.section-heading h2 {
    font-family: "Newsreader", "Times New Roman", serif;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.section-heading p {
    color: var(--muted);
    margin-bottom: 1.25rem;
}

.questionnaire-field.is-hidden {
    display: none;
}

.questionnaire-group {
    border-radius: var(--radius-md);
    border: 1px dashed var(--border);
    padding: 1rem;
    background: rgba(255, 255, 255, 0.6);
}

body[data-theme="dark"] .questionnaire-group {
    background: rgba(24, 28, 38, 0.6);
}

.group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.group-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.group-subtitle {
    color: var(--muted);
    margin-bottom: 0;
}

.group-item {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--panel);
    margin-bottom: 1rem;
}

.group-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.75rem;
}

@media (max-width: 991px) {
    .card-panel {
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .plan-card {
        flex-direction: column;
        align-items: flex-start;
    }
}
