/* ═══════════════════════════════════════════════════════════════
   REEVES CORPORATION — COMMUNITY INSIGHTS
   Design System: Luxury Black, Gold & Champagne
   No gradients. Solid colours only.
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
    /* Brand palette */
    --gold: #BE8D3B;
    --gold-deep: #AE7930;
    --gold-luxury: #D3AA50;
    --champagne: #E7D37D;
    --champagne-pale: #F9F4AB;
    --black: #070707;
    --charcoal: #1F2328;
    --gray-warm: #333B43;
    --white: #FFFFFF;
    --cream: #F9F4AB;
    --gray-light: #E8E8E8;
    --gray-mid: #999999;
    --gray-border: rgba(190, 141, 59, 0.2);

    /* Semantic */
    --bg-primary: #070707;
    --bg-secondary: #1F2328;
    --bg-tertiary: #333B43;
    --bg-card: #1F2328;
    --bg-input: #0F1115;
    --text-primary: #F9F4AB;
    --text-secondary: #E7D37D;
    --text-body: #D4D4D4;
    --text-muted: #888888;
    --text-dark: #070707;
    --accent: #BE8D3B;
    --accent-hover: #D3AA50;
    --accent-active: #AE7930;
    --border: rgba(190, 141, 59, 0.25);
    --border-strong: rgba(190, 141, 59, 0.5);
    --danger: #C0392B;
    --danger-hover: #E74C3C;
    --success: #27AE60;

    /* Typography */
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Radii */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(190, 141, 59, 0.15);

    /* Transitions */
    --t-fast: 150ms ease;
    --t-base: 250ms ease;
    --t-slow: 400ms ease;

    /* Layout */
    --header-h: 72px;
    --max-w: 1200px;
    --sidebar-w: 260px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a { color: var(--gold-luxury); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--champagne); }

img { max-width: 100%; display: block; }

button, input, textarea, select { font: inherit; color: inherit; }

ul { list-style: none; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin-bottom: var(--space-md); }

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

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--t-base);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
    border-color: var(--gold);
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--gold-luxury);
    border-color: var(--gold-luxury);
    color: var(--black);
    transform: translateY(-1px);
    box-shadow: var(--shadow-gold);
}
.btn-primary:active { transform: translateY(0); background: var(--gold-deep); }

.btn-ghost {
    background: transparent;
    color: var(--gold-luxury);
    border-color: var(--border-strong);
}
.btn-ghost:hover {
    background: rgba(190, 141, 59, 0.08);
    border-color: var(--gold);
    color: var(--champagne);
}

.btn-large { padding: 1rem 2.5rem; font-size: 1.0625rem; }
.btn-sm { padding: 0.5rem 1.125rem; font-size: 0.8125rem; }
.btn-block { display: flex; width: 100%; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Header / Navigation ────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 7, 7, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 100%;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-img {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    display: block;
}

.site-header .logo-img {
    height: calc(var(--header-h) - 8px);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.site-nav a {
    color: var(--text-body);
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    position: relative;
    padding: 0.25rem 0;
    transition: color var(--t-fast);
}

.site-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--t-base);
}

.site-nav a:hover { color: var(--gold-luxury); }
.site-nav a:hover::after { width: 100%; }

.nav-admin-link {
    color: var(--gold) !important;
    font-weight: 500;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold-luxury);
    border-radius: 2px;
    transition: all var(--t-base);
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    min-height: calc(100vh - var(--header-h));
}

.hero-content { max-width: 560px; }

.hero-eyebrow {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 0.95;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-decoration {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.hero-image {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: cover;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
}

/* ── Sections ───────────────────────────────────────────────── */
.section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.section-dark {
    max-width: none;
    background: var(--charcoal);
    padding: var(--space-2xl) var(--space-lg);
    margin: 0;
}

.section-dark > * { max-width: var(--max-w); margin-left: auto; margin-right: auto; }

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--gold);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.section-title {
    margin-bottom: var(--space-md);
}

.section-desc {
    color: var(--text-body);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.0625rem;
}

/* ── Survey Cards ───────────────────────────────────────────── */
.survey-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.survey-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    text-decoration: none;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
}

.survey-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform var(--t-base);
}

.survey-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.survey-card:hover::before { transform: scaleY(1); }

.survey-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.survey-card-badge {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
}

.survey-card-time {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.survey-card-title {
    font-size: 1.375rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.survey-card-desc {
    color: var(--text-body);
    font-size: 0.9375rem;
    line-height: 1.6;
    flex-grow: 1;
}

.survey-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.survey-card-arrow {
    color: var(--gold-luxury);
    font-weight: 500;
    transition: transform var(--t-fast);
}

.survey-card:hover .survey-card-arrow { transform: translateX(4px); }

/* ── Empty State ────────────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
    max-width: 480px;
    margin: 0 auto;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--charcoal);
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gold);
}

.empty-state h3 {
    margin-bottom: var(--space-sm);
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

/* ── About Section ──────────────────────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about-text {
    color: var(--text-body);
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding-left: var(--space-lg);
    border-left: 2px solid var(--gold);
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-luxury);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ── CTA Section ────────────────────────────────────────────── */
.section-cta {
    text-align: center;
}

.cta-box {
    max-width: 640px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
}

.cta-box h2 {
    margin-bottom: var(--space-md);
}

.cta-box p {
    font-size: 1.125rem;
    color: var(--text-body);
    margin-bottom: var(--space-xl);
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
    background: var(--charcoal);
    border-top: 1px solid var(--border);
    padding: var(--space-xl) var(--space-lg);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--space-sm);
}

.footer-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-bottom: var(--space-md);
    font-style: italic;
}

.footer-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.footer-dot { color: var(--gold); }

.footer-copy {
    font-size: 0.75rem;
    color: var(--gray-mid);
}

/* ── Survey Intro Page ──────────────────────────────────────── */
.survey-intro-page {
    min-height: calc(100vh - var(--header-h));
    padding: var(--space-xl) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.survey-intro-container {
    max-width: 720px;
    width: 100%;
}

.back-link {
    display: inline-block;
    margin-bottom: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color var(--t-fast);
}
.back-link:hover { color: var(--gold-luxury); }

.survey-intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.survey-intro-header {
    text-align: center;
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-xl);
    border-bottom: 1px solid var(--border);
}

.survey-intro-badge {
    display: inline-block;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    font-weight: 600;
    padding: 0.375rem 1rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.survey-intro-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.15;
}

.survey-intro-meta {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    margin-bottom: var(--space-xl);
}

.meta-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--text-body);
}

.meta-pill-icon { color: var(--gold); font-size: 1rem; }

.survey-intro-body h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
}

.survey-intro-body > p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.survey-intro-custom {
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-input);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
    color: var(--text-body);
    font-size: 0.9375rem;
    line-height: 1.7;
    white-space: pre-wrap;
}

.survey-intro-info { margin-bottom: var(--space-xl); }

.survey-intro-info h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-md);
    color: var(--gold-luxury);
}

.info-list { display: flex; flex-direction: column; gap: var(--space-sm); }

.info-list li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-body);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.info-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
}

.survey-intro-trust {
    padding: var(--space-lg);
    background: var(--bg-input);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xl);
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.trust-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.trust-item strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.trust-item p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.survey-intro-action { text-align: center; }

.survey-intro-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
}

/* ── Survey Form Page ───────────────────────────────────────── */
.survey-form-page {
    min-height: calc(100vh - var(--header-h));
    padding: var(--space-xl) var(--space-lg);
}

.survey-progress-bar {
    max-width: 680px;
    margin: 0 auto var(--space-xl);
    position: sticky;
    top: var(--header-h);
    z-index: 50;
    padding: var(--space-md) 0;
    background: rgba(7, 7, 7, 0.95);
    backdrop-filter: blur(8px);
}

.progress-track {
    height: 4px;
    background: var(--charcoal);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gold);
    border-radius: 2px;
    transition: width var(--t-slow);
}

.progress-text {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-muted);
}

#progressPercent { color: var(--gold); font-weight: 600; }

.survey-form-container {
    max-width: 680px;
    margin: 0 auto;
}

.survey-form-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.survey-form-header h1 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-xs);
}

.survey-form-subtitle {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.survey-step {
    animation: stepFadeIn var(--t-slow);
}

@keyframes stepFadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-questions {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.question-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.question-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.question-number {
    font-family: var(--font-serif);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.05em;
}

.question-required {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-luxury);
    padding: 0.125rem 0.5rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.question-optional {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.125rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.question-text {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: var(--space-xs);
    cursor: pointer;
}

.question-help {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.question-input { margin-top: var(--space-md); }

/* ── Form Inputs ────────────────────────────────────────────── */
.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    transition: border-color var(--t-base), box-shadow var(--t-base);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(190, 141, 59, 0.15);
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--gray-mid);
}

.form-textarea { resize: vertical; min-height: 100px; }

.form-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    margin-bottom: 0;
}

.form-hint strong { color: var(--gold-luxury); }

.form-input-sm { padding: 0.5rem 0.75rem; font-size: 0.8125rem; }

/* ── Option Groups (radio/checkbox) ─────────────────────────── */
.option-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.option-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.875rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--t-fast);
}

.option-item:hover {
    border-color: var(--border-strong);
    background: rgba(190, 141, 59, 0.05);
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-mid);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: all var(--t-fast);
}

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

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

.option-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--black);
}

.option-item input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--black);
    font-size: 0.75rem;
    font-weight: 700;
}

.option-item:has(input:checked) {
    border-color: var(--gold);
    background: rgba(190, 141, 59, 0.08);
}

.option-label {
    font-size: 0.9375rem;
    color: var(--text-body);
    cursor: pointer;
}

/* ── Rating Stars ───────────────────────────────────────────── */
.rating-group {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.rating-star {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--t-fast);
}

.rating-star input[type="radio"] { display: none; }

.rating-star .star {
    font-size: 2rem;
    color: var(--gray-warm);
    transition: all var(--t-fast);
}

.rating-star .rating-num {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rating-star:hover .star { color: var(--gold-luxury); transform: scale(1.1); }

.rating-star:has(input:checked) .star {
    color: var(--gold);
}

.rating-star:has(input:checked) .rating-num {
    color: var(--gold-luxury);
    font-weight: 600;
}

/* ── Step Actions ───────────────────────────────────────────── */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
    gap: var(--space-md);
}

.step-indicator {
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ── Review Step ────────────────────────────────────────────── */
.survey-step-review .review-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.review-header h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.review-header p { color: var(--text-muted); }

.review-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.review-item-question {
    font-size: 0.875rem;
    color: var(--text-muted);
    flex-shrink: 0;
    max-width: 50%;
}

.review-item-answer {
    font-size: 0.9375rem;
    color: var(--text-primary);
    text-align: right;
    font-weight: 500;
}

.review-item-empty { color: var(--text-muted); font-style: italic; font-weight: 400; }

.btn-submit {
    background: var(--gold);
    font-weight: 700;
    font-size: 1.0625rem;
    padding: 1rem 2.5rem;
}

/* ── Thank You Page ─────────────────────────────────────────── */
.thank-you-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
}

.thank-you-container {
    max-width: 560px;
    text-align: center;
}

.thank-you-icon { margin-bottom: var(--space-xl); }

.check-circle { display: inline-block; }

.thank-you-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--space-md);
    color: var(--gold);
}

.thank-you-message {
    font-size: 1.125rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.thank-you-survey-name {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.thank-you-survey-name span { color: var(--gold-luxury); }

.thank-you-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-2xl);
}

.thank-you-footer {
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.thank-you-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Login Page ─────────────────────────────────────────────── */
.login-page {
    min-height: calc(100vh - var(--header-h));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-lg);
}

.login-card {
    max-width: 420px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-lg);
}

.login-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.login-monogram {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--black);
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.75rem;
    border-radius: var(--radius-sm);
}

.login-header h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.login-header p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.login-error {
    padding: 0.75rem 1rem;
    background: rgba(192, 57, 43, 0.1);
    border: 1px solid rgba(192, 57, 43, 0.4);
    border-radius: var(--radius-md);
    color: #E74C3C;
    font-size: 0.875rem;
    margin-bottom: var(--space-lg);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-field label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.form-field .req { color: var(--gold); }

.login-footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.login-footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN PANEL
   ═══════════════════════════════════════════════════════════════ */

.admin-body { background: var(--bg-secondary); }

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* ── Admin Sidebar ──────────────────────────────────────────── */
.admin-sidebar {
    width: var(--sidebar-w);
    background: var(--bg-primary);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 200;
    transition: transform var(--t-base);
}

.admin-sidebar-header {
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border);
}

.admin-sidebar-header .logo {
    margin-bottom: var(--space-xs);
    display: block;
}

.admin-sidebar-header .logo-img {
    height: 48px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.admin-sidebar-subtitle {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.admin-nav {
    flex-grow: 1;
    padding: var(--space-md) var(--space-sm);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.75rem 1rem;
    color: var(--text-body);
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
    transition: all var(--t-fast);
    text-decoration: none;
}

.admin-nav-link:hover {
    background: var(--charcoal);
    color: var(--gold-luxury);
}

.admin-nav-link.active {
    background: rgba(190, 141, 59, 0.1);
    color: var(--gold);
    font-weight: 500;
}

.admin-nav-link.active .nav-icon { color: var(--gold); }

.nav-icon {
    font-size: 0.875rem;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
}

.admin-nav-external { margin-top: var(--space-sm); }

.admin-sidebar-footer {
    padding: var(--space-md);
    border-top: 1px solid var(--border);
}

.admin-logout-btn {
    width: 100%;
    padding: 0.625rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--t-fast);
}

.admin-logout-btn:hover {
    border-color: var(--danger);
    color: var(--danger-hover);
}

/* ── Admin Main ─────────────────────────────────────────────── */
.admin-main {
    flex-grow: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.admin-topbar {
    height: var(--header-h);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0 var(--space-xl);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-page-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.admin-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.admin-menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--gold-luxury);
    border-radius: 2px;
}

.admin-content {
    padding: var(--space-xl);
    flex-grow: 1;
}

/* ── Admin Stats ────────────────────────────────────────────── */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.stat-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--gold);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.stat-card-body {
    display: flex;
    flex-direction: column;
}

.stat-card-value {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

/* ── Admin Section ──────────────────────────────────────────── */
.admin-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    gap: var(--space-md);
    flex-wrap: wrap;
}

.admin-section-header h2 {
    font-size: 1.375rem;
    margin: 0;
}

.admin-section-actions {
    display: flex;
    gap: var(--space-sm);
}

/* ── Admin Table ────────────────────────────────────────────── */
.admin-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-table thead th {
    text-align: left;
    padding: 0.75rem 1rem;
    color: var(--gold);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--border-strong);
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-body);
    vertical-align: top;
}

.admin-table tbody tr {
    transition: background var(--t-fast);
}

.admin-table tbody tr:hover {
    background: rgba(190, 141, 59, 0.04);
}

.survey-name-cell {
    font-weight: 500;
    color: var(--text-primary);
}

.action-cell {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.action-btn {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    color: var(--gold-luxury);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--t-fast);
    white-space: nowrap;
}

.action-btn:hover {
    border-color: var(--gold);
    color: var(--champagne);
    background: rgba(190, 141, 59, 0.08);
}

.action-btn-danger { color: #E74C3C; border-color: rgba(192, 57, 43, 0.3); }
.action-btn-danger:hover { border-color: var(--danger); background: rgba(192, 57, 43, 0.1); }

.action-btn-warn { color: var(--champagne); border-color: var(--border-strong); }

/* ── Badges ─────────────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1px solid;
}

.badge-published {
    color: var(--success);
    border-color: rgba(39, 174, 96, 0.4);
    background: rgba(39, 174, 96, 0.08);
}

.badge-draft {
    color: var(--text-muted);
    border-color: var(--border);
    background: var(--bg-input);
}

/* ── Admin Breadcrumb ───────────────────────────────────────── */
.admin-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.admin-breadcrumb a { color: var(--gold-luxury); }
.admin-breadcrumb a:hover { color: var(--champagne); }

/* ── Filter Bar ─────────────────────────────────────────────── */
.filter-bar {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: flex-end;
    padding: var(--space-md);
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.filter-group label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 500;
}

.filter-actions {
    display: flex;
    gap: var(--space-sm);
    margin-left: auto;
}

/* ── Survey Editor ──────────────────────────────────────────── */
.survey-editor-form {
    max-width: 800px;
    margin: 0 auto;
}

.editor-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.editor-section-title {
    font-size: 1.125rem;
    margin-bottom: var(--space-lg);
    color: var(--gold-luxury);
}

.editor-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: var(--space-md);
}

.form-field-small { max-width: 160px; }

.questions-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.question-editor-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    position: relative;
}

.question-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.question-editor-num {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
}

.question-editor-actions {
    display: flex;
    gap: 0.375rem;
}

.qe-btn {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.875rem;
    transition: all var(--t-fast);
}

.qe-btn:hover { border-color: var(--gold); color: var(--gold-luxury); }
.qe-btn-danger:hover { border-color: var(--danger); color: var(--danger-hover); }

.question-editor-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.question-editor-full { grid-column: 1 / -1; }

.qe-select {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

.qe-checkbox-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
}

.qe-checkbox-row input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-mid);
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: all var(--t-fast);
}

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

.qe-checkbox-row input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: var(--black);
    font-size: 0.6875rem;
    font-weight: 700;
}

.qe-checkbox-row label {
    font-size: 0.875rem;
    color: var(--text-body);
    cursor: pointer;
}

.empty-questions-hint {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.empty-questions-hint.hidden { display: none; }

.editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: var(--space-md);
    padding-top: var(--space-lg);
}

/* ── Response Detail ────────────────────────────────────────── */
.response-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.response-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.response-meta-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 500;
}

.response-meta-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
    font-weight: 500;
}

.response-answers {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.response-answer-item {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.response-answer-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.response-q-num {
    font-family: var(--font-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gold);
}

.response-q-text {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.response-a-value {
    padding-left: var(--space-sm);
    color: var(--text-body);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.response-a-value p { margin: 0; }

.response-skipped {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.875rem;
}

.response-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.response-list li {
    padding-left: 1rem;
    position: relative;
}

.response-list li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.response-rating-display {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.star {
    font-size: 1.25rem;
    color: var(--gray-warm);
}

.star-filled { color: var(--gold); }

.response-rating-num {
    margin-left: var(--space-sm);
    font-size: 0.875rem;
    color: var(--gold-luxury);
    font-weight: 600;
}

/* ── Summary View ───────────────────────────────────────────── */
.summary-overview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: var(--bg-input);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.summary-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-sm);
}

.summary-stat-value {
    font-family: var(--font-serif);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--gold-luxury);
    line-height: 1;
}

.summary-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.5rem;
}

.summary-questions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.summary-question-card {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.summary-question-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.summary-question-header h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 0;
}

.summary-question-meta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 0.75rem;
}

.summary-bar-chart {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.bar-label {
    width: 120px;
    font-size: 0.8125rem;
    color: var(--text-body);
    text-align: right;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bar-track {
    flex-grow: 1;
    height: 24px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}

.bar-fill {
    height: 100%;
    background: var(--gold);
    border-radius: var(--radius-sm);
    transition: width var(--t-slow);
    min-width: 2px;
}

.bar-count {
    width: 36px;
    font-size: 0.8125rem;
    color: var(--gold-luxury);
    font-weight: 600;
    text-align: left;
    flex-shrink: 0;
}

.summary-samples {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.sample-item {
    padding: 0.75rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.6;
    font-style: italic;
}

.sample-more { margin-top: 0.25rem; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: var(--space-2xl);
        min-height: auto;
    }

    .hero-content { margin: 0 auto; }

    .hero-actions { justify-content: center; }

    .hero-decoration { min-height: auto; }

    .hero-image { max-width: 100%; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-field-small { max-width: none; }

    .question-editor-fields {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-h: 60px;
        --space-2xl: 2.5rem;
        --space-3xl: 3.5rem;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
    }

    .site-nav.open { display: flex; }

    .mobile-nav-toggle { display: flex; }

    .header-inner { padding: 0 var(--space-md); }

    .section { padding: var(--space-xl) var(--space-md); }

    .section-dark { padding: var(--space-xl) var(--space-md); }

    .survey-cards {
        grid-template-columns: 1fr;
    }

    .survey-intro-card { padding: var(--space-lg); }

    .survey-form-page { padding: var(--space-md); }

    .question-block { padding: var(--space-md); }

    .step-actions {
        flex-direction: column-reverse;
        gap: var(--space-md);
    }

    .step-actions .btn { width: 100%; }

    .step-indicator { text-align: center; order: -1; }

    .review-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .review-item-question { max-width: 100%; }

    .review-item-answer { text-align: left; }

    /* Admin responsive */
    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open { transform: translateX(0); }

    .admin-main { margin-left: 0; }

    .admin-menu-toggle { display: flex; }

    .admin-content { padding: var(--space-md); }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-section { padding: var(--space-md); }

    .admin-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-bar { flex-direction: column; align-items: stretch; }

    .filter-actions { margin-left: 0; justify-content: flex-end; }

    .editor-section { padding: var(--space-md); }

    .editor-actions { flex-direction: column-reverse; }

    .editor-actions .btn { width: 100%; }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .hero-title { font-size: 2.5rem; }

    .hero-subtitle { font-size: 1rem; }

    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }

    .admin-stats { grid-template-columns: 1fr; }

    .survey-intro-meta { flex-direction: column; gap: var(--space-sm); }

    .meta-pill { justify-content: center; }

    .rating-group { justify-content: center; }

    .rating-star .star { font-size: 1.5rem; }

    .bar-label { width: 80px; font-size: 0.75rem; }

    .login-card { padding: var(--space-lg); }

    .thank-you-actions { flex-direction: column; }
    .thank-you-actions .btn { width: 100%; }
}

/* ── Question Invalid State ─────────────────────────────────── */
.question-block.question-invalid {
    border-color: rgba(192, 57, 43, 0.5);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.question-block.question-invalid .question-text {
    color: #E74C3C;
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gray-warm); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

/* ── Selection ──────────────────────────────────────────────── */
::selection { background: var(--gold); color: var(--black); }

/* ── Focus visible ──────────────────────────────────────────── */
:focus-visible {
    outline: 2px solid var(--gold-luxury);
    outline-offset: 2px;
}
