/* ── Guest Nav Bar ─────────────────────────────────────────────────────────── */

.guest-nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3.75rem;
    background: #ffffff;
    border-bottom: 2px solid var(--club-primary, #3F6F60);
    box-shadow: 0 1px 4px rgba(63,111,96,0.10);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    z-index: 100;
    padding: 0 1.5rem;
}

.guest-nav-logo {
    height: 2.625rem;
    width: auto;
}

.guest-nav-name {
    color: var(--club-primary, #3F6F60);
    font-size: 0.9375rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .guest-nav-name { display: none; }
}

/* ── Question Block ───────────────────────────────────────────────────────── */

.question-block {
    margin-bottom: 1.75rem;
    padding: 1.25rem 1rem;
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
}

/* Scale grid: remove horizontal padding so header and radio rows fill the card edge-to-edge */
.scale-question-block {
    padding-left: 0;
    padding-right: 0;
}

.scale-question-block .question-text {
    padding: 0 1rem;
}

.scale-question-block .scale-mobile-header {
    border-radius: 0;
}

.scale-question-block .scale-card:last-child {
    margin-bottom: 0;
}

.question-text {
    font-size: 1rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 0.625rem;
    line-height: 1.45;
}

.badge-benchmark {
    display: inline-block;
    background: #ebf4ff;
    color: #2b6cb0;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 1.25rem;
    margin-bottom: 0.625rem;
}

/* ── Choice (SingleChoice / MultiChoice) ────────────────────────────────── */

.choice-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.choice-btn {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.625rem 0.875rem;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    color: #2d3748;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}

.choice-btn:hover {
    border-color: #90cdf4;
    background: #ebf8ff;
}

.choice-btn--selected {
    border-color: #3182ce;
    background: #ebf4ff;
    color: #1a365d;
    font-weight: 600;
}

.choice-btn--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.choice-limit-hint {
    font-size: 0.82rem;
    color: #718096;
    margin: 0 0 0.5rem;
}

.choice-limit-reached {
    color: #c05621;
    font-weight: 600;
}

.choice-radio,
.choice-check {
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #3182ce;
}

/* ── NPS ─────────────────────────────────────────────────────────────────── */

.nps-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 10px;
}

.nps-buttons {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.nps-btn {
    min-height: 2.75rem;
    padding: 0.375rem 0.125rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, border-color 0.15s;
    width: 100%;
}

@media (max-width: 480px) {
    .nps-buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.25rem;
    }

    .nps-btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.125rem;
    }
}

.nps-btn:active { transform: scale(0.94); }

.nps-btn--detractor  { background: #fff5f5; color: #c53030; }
.nps-btn--passive    { background: #fffff0; color: #975a16; }
.nps-btn--promoter   { background: #f0fff4; color: #276749; }

.nps-btn--selected   { border-color: currentColor; transform: scale(1.08); }

.nps-selected-label {
    font-size: 0.875rem;
    color: #4a5568;
    margin: 0.25rem 0 0;
}

/* ── Scale Grid — Mobile (default) ──────────────────────────────────────── */


.scale-grid-desktop { display: none; }

.scale-mobile-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    margin-bottom: 0.375rem;
    background: var(--club-primary-tint, #e8f0ee);
    border-radius: 0.5rem;
    border-bottom: 2px solid #c5d9d4;
}

.scale-mobile-header-labels {
    display: flex;
    flex-direction: row;
    gap: 0.125rem;
}

.scale-mobile-header .scale-option-label {
    flex: 1;
    min-width: 0;
    font-weight: 600;
    color: var(--club-primary, #3F6F60);
}

.scale-mobile-header-hint {
    font-size: 0.62rem;
    color: #5a7a70;
    text-align: center;
    font-style: italic;
    margin: 0;
}

.scale-card {
    padding: 0.5rem 0.375rem;
    background: #f7fafc;
    border-radius: 0.625rem;
    margin-bottom: 0.625rem;
}

.scale-card-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0 0 0.625rem;
}

.scale-options {
    display: flex;
    flex-direction: row;
    gap: 0.125rem;
}

.scale-option-col {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 0.375rem;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    padding: 0.25rem 0.125rem;
}

.scale-option-label {
    font-size: .75rem;
    color: #4a5568;
    text-align: center;
    line-height: 1.2;
    word-break: keep-all;
    overflow-wrap: normal;
}

.scale-option-label--clickable {
    cursor: pointer;
    user-select: none;
}

.scale-option-label--clickable:hover {
    color: var(--club-primary, #3F6F60);
    font-weight: 600;
}

.scale-option-col input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--club-primary, #3F6F60);
    margin: 0;
    flex-shrink: 0;
}

/* ── Scale Grid — Desktop ────────────────────────────────────────────────── */

@media (min-width: 768px) {
    .scale-grid-mobile  { display: none; }
    .scale-grid-desktop { display: block; overflow-x: auto; }
}

.scale-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.scale-table thead th {
    padding: 0.5rem 0.375rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.8rem;
    color: #4a5568;
    background: #f7fafc;
    border-bottom: 2px solid #e2e8f0;
}

.scale-table-label-col { width: 40%; text-align: left !important; }
.scale-table-option-col { min-width: 70px; }
.scale-table-option-col--clickable { cursor: pointer; user-select: none; }
.scale-table-option-col--clickable:hover { background: var(--club-primary-tint, #e8f0ee); color: var(--club-primary, #3F6F60); }

.scale-table tbody tr:hover td { background: #f7fafc; }

.scale-table-label {
    padding: 0.625rem 0.5rem;
    color: #2d3748;
    border-bottom: 1px solid #f0f0f0;
}

.scale-table-cell {
    padding: 0.375rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    vertical-align: middle;
}

.scale-table-cell input[type="radio"] {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    accent-color: var(--club-primary, #3F6F60);
    margin: 0;
}



/* ── Survey Title Bar ─────────────────────────────────────────────────────── */

.survey-title-bar {
    position: fixed;
    top: 3.75rem;
    left: 0;
    right: 0;
    background: var(--club-primary, #3F6F60);
    color: var(--club-primary-text, #ffffff);
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.625rem 1rem;
    z-index: 99;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.02em;
}

/* ── Survey Layout (guest pages — bypasses DevExpress MainLayout) ─────────── */

.survey-layout {
    width: 100%;
    min-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Fix MainLayout (authenticated survey) mobile squashing */
.app-layout,
.page-content {
    min-width: 0 !important;
    overflow-x: hidden;
}

/* ── Survey Shell ─────────────────────────────────────────────────────────── */

.survey-shell {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 0.75rem 3.75rem;
}

/* Guest survey uses SurveyLayout (no MainLayout offset), so fixed chrome
   (guest-nav-bar 3.75rem + survey-title-bar ~2.4rem) must be accounted for */
.survey-layout .survey-shell {
    padding-top: 7rem;
}

.survey-layout .survey-header {
    top: 6.375rem;
}

@media (max-width: 640px) {
    .survey-shell {
        padding-left: 0.375rem;
        padding-right: 0.375rem;
    }
}

.survey-header {
    position: sticky;
    top: 2.75rem;
    background: #fff;
    z-index: 10;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

.survey-header::before {
    content: '';
    position: absolute;
    top: -0.375rem;
    left: 0;
    right: 0;
    height: 0.375rem;
    background: #fff;
}

.survey-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--club-primary, #3F6F60);
    margin: 0 0 0.25rem;
}

/* ── Survey Footer ───────────────────────────────────────────────────────── */

.survey-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #f7fafc;
    border-top: 1px solid #e2e8f0;
    z-index: 100;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.07);
}

.survey-progress-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: #4a5568;
}

.survey-progress-section,
.survey-progress-questions {
    font-weight: 500;
}

.survey-progress-pct {
    font-weight: 700;
    color: #276749;
}

.survey-nav {
    display: flex;
    gap: 0.625rem;
    margin-top: 1.5rem;
}

.survey-nav .dxbl-btn {
    flex: 1;
    min-height: 3.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.625rem;
}

.survey-nav .dxbl-btn-primary {
    background-color: var(--club-primary, #3F6F60);
    border-color: var(--club-primary, #3F6F60);
    color: var(--club-primary-text, #fff);
}

.survey-nav .dxbl-btn-primary:hover,
.survey-nav .dxbl-btn-primary:focus {
    background-color: #2d5448;
    border-color: #2d5448;
    color: #fff;
}

/* ── Profile step ────────────────────────────────────────────────────────── */

.profile-step-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem 1.75rem;
}

@media (max-width: 767px) {
    .profile-step-card {
        max-width: none;
        margin: -4rem -0.75rem 0;
        border-radius: 0;
        box-shadow: none;
        min-height: calc(100dvh - 3.75rem);
        padding: 3rem 1.5rem 2.5rem;
    }
}

.profile-step-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--club-primary, #3F6F60);
    margin: 0 0 0.375rem;
}

.profile-step-sub {
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
}

.profile-step-form {
    margin-top: 1.25rem;
}

.survey-tips-list {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.survey-tips-list li {
    position: relative;
    padding-left: 1.5em;
    color: #374151;
    font-size: 0.93rem;
    line-height: 1.55;
}

.survey-tips-list li::before {
    content: "+";
    position: absolute;
    left: 0;
    color: var(--club-primary, #3F6F60);
    font-weight: 700;
}

/* ── Anonymous toggle row ────────────────────────────────────────────────── */

.anon-toggle-row {
    display: flex;
    align-items: center;
    padding: 0.875rem 1.125rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
}

.anon-toggle-checkbox {
    width: 100%;
}

.anon-toggle-label-text {
    display: block;
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.anon-toggle-label-sub {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.125rem;
}


/* ── Amenity Gate Prompt ─────────────────────────────────────────────────── */

.amenity-gate-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem 1.75rem;
    text-align: center;
}

.amenity-gate-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 0.625rem;
    line-height: 1.4;
}

.amenity-gate-hint {
    color: #6b7280;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 1.75rem;
}

.amenity-gate-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Survey Answer Report ────────────────────────────────────────────────── */

.survey-answer-report {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1px 6px rgba(0,0,0,0.07);
    padding: 1.75rem 1.5rem;
    margin-bottom: 2.5rem;
    font-size: 0.9rem;
    color: #1f2937;
}

/* ── SurveyAnswerReport ──────────────────────────────────────────────────── */

.sar-header { margin-bottom: 1.25rem; }

.sar-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--club-primary, #3F6F60);
    margin: 0 0 0.375rem;
}

.sar-meta {
    font-size: 0.82rem;
    color: #6b7280;
    margin: 0 0 0.75rem;
}

.sar-rule {
    border: none;
    border-top: 2px solid var(--club-primary, #3F6F60);
    margin: 0;
}

.sar-section { margin-top: 1.25rem; }

.sar-section-header {
    background: var(--club-primary, #3F6F60);
    color: var(--club-primary-text, #fff);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.4375rem 0.75rem;
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

/* Standard question block (stacked) */
.sar-question-block {
    padding: 0.625rem 0.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.sar-question-block:last-child { border-bottom: none; }

.sar-q-text {
    font-size: 0.84rem;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 0.375rem;
}

/* Pill badges */
.sar-pills { display: flex; flex-wrap: wrap; gap: 0.375rem; }

.sar-pill {
    display: inline-block;
    background: var(--club-primary, #3F6F60);
    color: var(--club-primary-text, #fff);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 999px;
    line-height: 1.3;
}

.sar-pill-green { background: var(--club-primary, #3F6F60); }
.sar-pill-amber { background: #d97706; }
.sar-pill-red   { background: #dc2626; }

.sar-skipped {
    font-size: 0.84rem;
    color: #9ca3af;
}

/* Open-ended answer block */
.sar-open-block {
    background: #f9fafb;
    border-left: 3px solid var(--club-primary, #3F6F60);
    padding: 0.5rem 0.75rem;
    border-radius: 0 0.25rem 0.25rem 0;
    font-size: 0.9rem;
    color: #1f2937;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* NPS dot scale */
.sar-nps-wrap { display: flex; flex-direction: column; gap: 0.375rem; }

.sar-nps-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.sar-nps-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    font-size: 0.78rem;
    font-weight: 600;
    color: #6b7280;
    background: #fff;
}

.sar-nps-dot.selected {
    background: var(--club-primary, #3F6F60);
    border-color: var(--club-primary, #3F6F60);
    color: var(--club-primary-text, #fff);
}

.sar-nps-caption {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--club-primary, #3F6F60);
}

/* Scale grid / DirectionScale block */
.sar-scale-block {
    padding: 0.625rem 0.25rem;
    border-bottom: 1px solid #f3f4f6;
}

.sar-scale-block:last-child { border-bottom: none; }

.sar-scale-header {
    font-style: italic;
    color: #374151;
    background: #eaf3f0;
    padding: 0.375rem 0.625rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
}

.sar-scale-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.375rem 0.5rem;
    border-bottom: 1px solid #f9fafb;
}

.sar-scale-item:last-child { border-bottom: none; }

.sar-scale-label {
    font-size: 0.85rem;
    color: #374151;
    flex: 1;
    line-height: 1.3;
}

/* Confidential notice */
.sar-confidential-notice {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    text-align: center;
    color: #6b7280;
    font-style: italic;
    font-size: 0.9rem;
    margin: 0.5rem 0;
}

.sar-footer {
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.78rem;
    color: #9ca3af;
    text-align: center;
}

/* ── Print styles ────────────────────────────────────────────────────────── */

@media print {
    .top-navbar,
    .survey-title-bar,
    .survey-footer,
    .completion-actions { display: none !important; }

    .page-content { padding: 0 !important; }

    .survey-shell {
        padding: 0 !important;
        max-width: none !important;
    }

    .survey-answer-report {
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
    }
}
