/*
 * Customer-facing respondent journey: invitation redemption, interview and
 * completion. Matches the public DEMO visual identity without exposing its
 * scenarios, internal navigation or engine metadata.
 * Operator layout (interview.css / operator.js) is intentionally untouched.
 */
.respondent-access,
.customer-interview {
    --customer-navy: #10263d;
    --customer-navy-soft: #285779;
    --customer-orange: #d97706;
    --customer-orange-hover: #bd6504;
    --customer-orange-soft: #fff2df;
    --customer-text: #152536;
    --customer-muted: #5f6d79;
    --customer-border: #d9e1e8;
    --customer-shadow: 0 0.6rem 1.8rem rgba(16, 38, 61, 0.08);
    --customer-focus: #b96800;
    font-family: Arial, Helvetica, system-ui, sans-serif;
    background: linear-gradient(180deg, #f8fafc 0%, #f2f5f8 100%);
    color: var(--customer-text);
}

/* Brand components shared by access page and respondent interview. */
.respondent-brand {
    display: none;
    align-items: baseline;
    gap: 0.55rem;
    white-space: nowrap;
}
.respondent-brand-mark {
    color: var(--customer-orange);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.045em;
}
.respondent-brand-name {
    color: var(--customer-navy);
    font-size: 1rem;
    font-weight: 700;
}
.respondent-brand-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.22rem 0.52rem;
    border-radius: 999px;
    background: var(--customer-orange-soft);
    color: #8c4a00;
    font-size: 0.7rem;
    font-weight: 750;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.respondent-kicker {
    display: block;
    margin-bottom: 0.75rem;
    color: #ffd49e;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Public invitation-code entry page. */
.respondent-access {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}
.respondent-access *,
.customer-interview * {
    box-sizing: border-box;
}
.respondent-access-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4.7rem;
    padding: 0.85rem max(1.25rem, calc((100vw - 1100px) / 2));
    border-bottom: 1px solid var(--customer-border);
    background: #fff;
    box-shadow: 0 0.15rem 0.8rem rgba(16, 38, 61, 0.04);
}
.respondent-access .respondent-brand,
.customer-interview .respondent-brand {
    display: flex;
}
.respondent-access-language {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.respondent-access-language label {
    color: var(--customer-muted);
    font-size: 0.82rem;
    font-weight: 600;
}
.respondent-access-language select {
    min-width: 7rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--customer-border);
    border-radius: 0.55rem;
    background: #fff;
    color: var(--customer-navy);
    font: inherit;
}
.respondent-access-main {
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(19rem, 0.97fr);
    gap: clamp(1rem, 2.8vw, 2rem);
    align-items: stretch;
    width: min(1100px, calc(100% - 2.25rem));
    margin: clamp(1.5rem, 5vh, 4rem) auto;
}
.respondent-access-hero,
.customer-interview .respondent-welcome {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 1.15rem;
    background: linear-gradient(125deg, var(--customer-navy) 12%, var(--customer-navy-soft));
    color: #fff;
    box-shadow: var(--customer-shadow);
}
.respondent-access-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 26rem;
    padding: clamp(2rem, 4.2vw, 3.4rem);
}
.respondent-access-hero h1,
.customer-interview .respondent-welcome h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: -0.035em;
    line-height: 1.08;
}
.respondent-access-hero p,
.customer-interview .respondent-welcome p {
    max-width: 43ch;
    margin: 1.25rem 0 0;
    color: #e4edf4;
    font-size: 1.02rem;
    line-height: 1.65;
}
.respondent-access-visual {
    display: flex;
    gap: 0.6rem;
    margin-top: 2.6rem;
}
.respondent-access-visual span,
.customer-interview .respondent-welcome-art span {
    display: block;
    height: 0.42rem;
    width: 2.2rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.32);
}
.respondent-access-visual span:first-child,
.customer-interview .respondent-welcome-art span:first-child {
    width: 4.25rem;
    background: #ee8a18;
}
.respondent-access-card {
    position: relative;
    align-self: center;
    width: 100%;
    padding: clamp(1.4rem, 3vw, 2.6rem);
    overflow: hidden;
    border: 1px solid var(--customer-border);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: var(--customer-shadow);
}
.respondent-access-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.3rem;
    background: var(--customer-orange);
}
.respondent-access-step,
.customer-interview .respondent-question-heading {
    display: inline-block;
    margin-bottom: 0.6rem;
    color: var(--customer-orange);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}
.respondent-access-card h2 {
    margin: 0 0 0.8rem;
    color: var(--customer-navy);
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    line-height: 1.2;
}
.respondent-access-card > p {
    color: var(--customer-muted);
    line-height: 1.6;
}
.respondent-access-card form {
    margin-top: 1.5rem;
}
.respondent-access-card label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--customer-navy);
    font-size: 0.9rem;
    font-weight: 700;
}
.respondent-access-card input {
    display: block;
    width: 100%;
    padding: 0.87rem 0.95rem;
    border: 1px solid #b8c8d3;
    border-radius: 0.55rem;
    background: #fff;
    color: var(--customer-text);
    font: inherit;
    letter-spacing: 0.025em;
}
.respondent-access-card button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-top: 1.1rem;
    padding: 0.95rem 1.15rem;
    border: 1px solid var(--customer-orange);
    border-radius: 0.55rem;
    background: var(--customer-orange);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}
.respondent-access-card button:hover:not(:disabled) {
    border-color: var(--customer-orange-hover);
    background: var(--customer-orange-hover);
}
.respondent-access-card button:disabled {
    opacity: 0.62;
    cursor: wait;
}
.respondent-access-card #message {
    min-height: 1.3rem;
    margin: 1rem 0 0;
    color: var(--customer-navy-soft);
    font-size: 0.9rem;
}
.respondent-access-card #message[role="alert"] {
    color: #a94132;
    font-weight: 600;
}
.respondent-access-card .respondent-access-notice {
    margin: 1.1rem 0 0;
    padding: 0.9rem 1rem;
    border-radius: 0.6rem;
    background: #eef4f8;
    color: var(--customer-muted);
    font-size: 0.84rem;
}
.respondent-access-footer {
    margin-top: auto;
    padding: 1.5rem;
    color: var(--customer-muted);
    font-size: 0.8rem;
    text-align: center;
}
.respondent-access :focus-visible,
.customer-interview :focus-visible {
    outline: 3px solid var(--customer-focus);
    outline-offset: 3px;
}

/* Respondent role only; operator, interviewer and demo views are untouched. */
.customer-interview .app-header {
    min-height: 4.7rem;
    padding: 0.8rem clamp(1rem, 3vw, 2.75rem);
    border-bottom: 1px solid var(--customer-border);
    background: #fff;
    box-shadow: 0 0.15rem 0.8rem rgba(16, 38, 61, 0.04);
}
.customer-interview .internal-brand,
.customer-interview .public-brand,
.customer-interview #engine-version,
.customer-interview #gateway-status,
.customer-interview #current-user,
.customer-interview #operator-nav,
.customer-interview #login-button,
.customer-interview .header-actions > label,
.customer-interview .header-actions > a {
    display: none !important;
}
.customer-interview #ui-language {
    width: auto;
    min-width: 7.2rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--customer-border);
    border-radius: 0.55rem;
    background: #fff;
    color: var(--customer-text);
}
.customer-interview #logout-button {
    border: 1px solid var(--customer-border);
    border-radius: 0.55rem;
    background: #fff;
    color: var(--customer-navy);
    font-size: 0.86rem;
    font-weight: 650;
}
.customer-interview .shell {
    width: min(950px, calc(100% - 2rem));
    margin: clamp(1.25rem, 3vw, 2.5rem) auto 3rem;
}
.customer-interview .screen[hidden],
.customer-interview .respondent-welcome[hidden] {
    display: none !important;
}
.customer-interview .screen {
    padding: 0;
    border: 0;
    background: transparent;
}
.respondent-welcome,
.respondent-start-notice,
.respondent-question-heading,
.respondent-complete-symbol {
    display: none;
}
.customer-interview .respondent-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 13.5rem;
    margin-bottom: 1.35rem;
    padding: clamp(1.5rem, 3vw, 2.4rem);
}
.customer-interview .respondent-welcome h2 {
    font-size: clamp(1.6rem, 3.1vw, 2.4rem);
}
.customer-interview .respondent-welcome p {
    margin-top: 0.8rem;
    font-size: 0.94rem;
}
.customer-interview .respondent-welcome-art {
    display: flex;
    gap: 0.35rem;
    transform: rotate(-90deg);
    opacity: 0.82;
}
.customer-interview .respondent-welcome-art span {
    width: 0.42rem;
    height: 2.5rem;
}
.customer-interview .respondent-welcome-art span:first-child {
    width: 0.42rem;
    height: 3.8rem;
}
.customer-interview .public-interview-start,
.customer-interview #screen-interview,
.customer-interview #screen-complete {
    width: min(820px, 100%);
    margin: 0 auto;
    padding: clamp(1.4rem, 3.4vw, 2.7rem);
    border: 1px solid var(--customer-border);
    border-radius: 1.15rem;
    background: #fff;
    box-shadow: var(--customer-shadow);
}
.customer-interview .public-interview-start {
    margin-top: 0;
}
.customer-interview .public-interview-start h1,
.customer-interview #screen-interview h1,
.customer-interview #screen-complete h1 {
    margin-top: 0;
    color: var(--customer-navy);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    line-height: 1.25;
}
.customer-interview .public-interview-start > p,
.customer-interview #screen-complete > p {
    color: var(--customer-muted);
    line-height: 1.6;
}
.customer-interview .respondent-start-notice {
    display: block;
    margin: 1rem 0 0;
    color: var(--customer-muted);
    font-size: 0.82rem;
}
.customer-interview .field > label {
    color: var(--customer-navy);
}
.customer-interview .field select,
.customer-interview #response-value,
.customer-interview #note {
    padding: 0.85rem 0.95rem;
    border: 1px solid #b8c8d3;
    border-radius: 0.55rem;
    background: #fff;
    color: var(--customer-text);
}
.customer-interview button.primary {
    border-color: var(--customer-orange);
    border-radius: 0.55rem;
    background: var(--customer-orange);
    color: #fff;
    font-weight: 700;
}
.customer-interview button.primary:hover:not(:disabled) {
    border-color: var(--customer-orange-hover);
    background: var(--customer-orange-hover);
}
.customer-interview .respondent-question-heading {
    display: inline-block;
    margin-bottom: 0.95rem;
}
.customer-interview .question-meta {
    margin-bottom: 1.15rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--customer-border);
    color: var(--customer-muted);
    font-weight: 600;
}
.customer-interview #question-required {
    color: var(--customer-navy-soft);
}
.customer-interview .answer-container {
    display: grid;
    gap: 0.65rem;
    margin: 1.75rem 0;
}
.customer-interview .choice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    min-height: 3.35rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--customer-border);
    border-radius: 0.65rem;
    background: #fff;
    cursor: pointer;
    line-height: 1.5;
    transition: border-color 120ms ease, background-color 120ms ease;
}
.customer-interview .choice:hover {
    border-color: #c9914a;
    background: #fffcf7;
}
.customer-interview .choice:has(input:checked) {
    border-color: var(--customer-orange);
    background: #fff7eb;
}
.customer-interview .choice input {
    flex: 0 0 auto;
    width: 1.1rem;
    height: 1.1rem;
    margin: 0.15rem 0 0;
    accent-color: var(--customer-orange);
}
.customer-interview .choice:has(input:disabled) {
    cursor: default;
}
.customer-interview .navigation {
    align-items: center;
    border-top-color: var(--customer-border);
}
.customer-interview .navigation button,
.customer-interview .completion-actions button {
    min-height: 2.9rem;
    padding: 0.75rem 1.15rem;
    border-radius: 0.55rem;
}
.customer-interview .interview-completion-notice {
    border-color: #b6d9c7;
    border-radius: 0.7rem;
    background: #ecf7f1;
    color: #235b3f;
}
.customer-interview #screen-complete {
    text-align: center;
}
.customer-interview .respondent-complete-symbol {
    display: grid;
    place-items: center;
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 1.3rem;
    border-radius: 999px;
    background: #ecf7f1;
    color: #27734d;
    font-size: 2.25rem;
    font-weight: 800;
}
.customer-interview .completion-actions {
    justify-content: center;
    margin-top: 1.75rem;
}
.customer-interview .message {
    border-radius: 0.65rem;
}
@media (max-width: 800px) {
    .respondent-access-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
        max-width: 39rem;
    }
    .respondent-access-hero {
        min-height: 0;
        padding: 1.7rem 2rem;
    }
    .respondent-access-hero h1 {
        font-size: clamp(1.75rem, 6vw, 2.4rem);
    }
    .respondent-access-visual {
        margin-top: 1.35rem;
    }
}
@media (max-width: 600px) {
    .respondent-brand {
        gap: 0.4rem;
    }
    .respondent-brand-mark {
        font-size: 1.4rem;
    }
    .respondent-brand-name {
        font-size: 0.89rem;
    }
    .respondent-brand-tag {
        font-size: 0.61rem;
    }
    .respondent-access-header {
        min-height: 4rem;
        padding: 0.75rem 0.9rem;
    }
    .respondent-access-language {
        gap: 0.3rem;
    }
    .respondent-access-language label {
        display: none;
    }
    .respondent-access-language select {
        min-width: 5.7rem;
        padding: 0.5rem;
    }
    .respondent-access-main {
        width: calc(100% - 1.25rem);
        margin: 0.85rem auto 1.5rem;
    }
    .respondent-access-card {
        padding: 1.55rem 1.2rem;
    }
    .customer-interview .app-header {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        padding: 0.65rem 0.85rem;
    }
    .customer-interview .header-actions {
        flex-wrap: nowrap;
        gap: 0.35rem;
    }
    .customer-interview #ui-language {
        min-width: 5.8rem;
        padding: 0.55rem 0.4rem;
        font-size: 0.82rem;
    }
    .customer-interview #logout-button {
        padding: 0.55rem 0.6rem;
    }
    .customer-interview .shell {
        width: calc(100% - 1rem);
        margin-top: 0.8rem;
    }
    .customer-interview .respondent-welcome {
        min-height: 0;
        margin-bottom: 0.85rem;
        padding: 1.45rem;
    }
    .customer-interview .respondent-welcome-art {
        display: none;
    }
    .customer-interview .public-interview-start,
    .customer-interview #screen-interview,
    .customer-interview #screen-complete {
        padding: 1.5rem 1.15rem;
    }
    .customer-interview .navigation {
        flex-direction: row;
        align-items: center;
        gap: 0.4rem;
    }
    .customer-interview .navigation-right {
        justify-content: flex-end;
    }
    .customer-interview .navigation button {
        padding: 0.75rem 0.85rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    .customer-interview .choice {
        transition: none;
    }
}
