/* Survey respondent UI - kiosk styles */

:root {
    --brand: #0d6efd;
    --card-border: #dfe3e8;
    --bg: #f4f6f9;
    --muted: #5b6572;
}

body.kiosk {
    min-height: 100vh;
    background: var(--bg);
}

/* Live clock (top-left) */
.kiosk-clock {
    position: fixed;
    top: 14px;
    left: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    color: var(--muted);
    pointer-events: none;
}

.kiosk-clock-time {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2733;
}

.kiosk-clock-date {
    font-size: .8rem;
    text-transform: capitalize;
}

/* Language selector */
.lang-bar {
    position: fixed;
    top: 14px;
    right: 16px;
    z-index: 10;
    display: flex;
    gap: .5rem;
}

.flag-btn {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
    cursor: pointer;
    line-height: 0;
    overflow: hidden;
    opacity: .75;
    transition: opacity .15s, border-color .15s, transform .05s;
}

.flag-btn:hover {
    opacity: 1;
}

.flag-btn.active {
    opacity: 1;
    border-color: var(--brand);
}

.flag-btn .flag {
    width: 42px;
    height: 28px;
    display: block;
}

/* Screens */
.screen {
    max-width: 880px;
    margin: 0 auto;
}

.screen-title {
    text-align: center;
    font-weight: 700;
    margin: 1.5rem 0 2rem;
}

/* Welcome */
.welcome {
    padding-top: 2.5rem;
}

.welcome-hello {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.welcome-intro {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 2rem;
}

.select-title {
    font-weight: 700;
    margin: 1.5rem 0 1.5rem;
}

.btn-cta {
    font-size: 1.4rem;
    font-weight: 700;
    padding: .9rem 3rem;
    border-radius: 999px;
}

/* Back button (circular with arrow) */
.btn-back {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand);
    transition: transform .05s, box-shadow .15s;
    margin-bottom: .5rem;
}

.btn-back:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.btn-back:active {
    transform: scale(.94);
}

.btn-back svg {
    width: 26px;
    height: 26px;
}

.question-dept {
    text-align: center;
    font-weight: 700;
    color: var(--brand);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: .5rem;
}

.question-text {
    text-align: center;
    font-weight: 700;
    margin: 1rem 0 2.5rem;
    line-height: 1.3;
}

.welcome-intro strong {
    color: #1f2733;
}

/* Choice grid (departments / surveys) */
.grid-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.choice-btn {
    display: block;
    width: 100%;
    padding: 2rem 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    background: #fff;
    border: 2px solid var(--card-border);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .15s, transform .05s;
}

.choice-btn:hover {
    border-color: var(--brand);
}

.choice-btn:active {
    transform: scale(.99);
}

/* Faces scale */
.scale-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.face-btn {
    background: none;
    border: none;
    cursor: pointer;
    text-align: center;
    padding: .5rem;
    border-radius: 14px;
    transition: transform .08s;
}

.face-btn:hover {
    transform: translateY(-4px);
}

.face-btn svg {
    width: 84px;
    height: 84px;
    display: block;
    margin: 0 auto;
}

.face-label {
    display: block;
    margin-top: .6rem;
    font-size: .95rem;
    color: var(--muted);
}

/* NPS scale */
.nps-wrap {
    width: 100%;
}

.nps-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

.nps-btn {
    width: 64px;
    height: 64px;
    font-size: 1.4rem;
    font-weight: 700;
    background: #fff;
    border: 2px solid var(--card-border);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, transform .05s;
}

.nps-btn:hover {
    border-color: var(--brand);
}

.nps-btn:active {
    transform: scale(.95);
}

.nps-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    color: var(--muted);
    font-size: .9rem;
}

/* Stars scale */
.stars-wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.stars-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: .4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    transition: transform .1s ease;
}

.star-btn:hover {
    transform: translateY(-4px) scale(1.06);
}

.star-btn:active {
    transform: scale(.96);
}

.star-svg {
    width: 84px;
    height: 84px;
    display: block;
    /* Soft gold by default so it clearly reads as a tappable star on touch. */
    fill: #ffe08a;
    transition: fill .12s ease, filter .12s ease, transform .12s ease;
}

.star-btn.on .star-svg {
    fill: #f7b500;
    filter: drop-shadow(0 4px 8px rgba(247, 181, 0, .5));
    transform: scale(1.04);
}

.star-num {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--muted);
}

.star-btn.on .star-num {
    color: #1f2733;
}

@media (max-width: 520px) {
    .star-svg { width: 58px; height: 58px; }
    .stars-row { gap: .5rem; }
}

/* Follow-up comment */
.comment-box {
    max-width: 560px;
    margin: 0 auto;
}

.comment-input {
    width: 100%;
    font-size: 1.15rem;
    padding: 1rem 1.1rem;
    border: 2px solid var(--card-border);
    border-radius: 14px;
    resize: vertical;
    background: #fff;
    outline: none;
    transition: border-color .15s;
}

.comment-input:focus {
    border-color: var(--brand);
}

.comment-box .btn-cta {
    margin-top: 1.5rem;
}

.comment-error {
    margin-top: 1rem;
    color: #d64545;
    font-weight: 600;
}

.thanks-emoji {
    font-size: 5rem;
    margin: 3rem 0 1rem;
}

.closed-emoji {
    font-size: 5rem;
    margin: 4rem 0 1rem;
}
.closed-time {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 2rem;
    color: #1f2733;
}
.closed-date {
    font-size: 1.1rem;
    color: var(--muted);
    text-transform: capitalize;
    margin-top: .25rem;
}

.status-message {
    text-align: center;
    margin-top: 2rem;
    color: var(--muted);
}

/* Idle timeout modal */
.idle-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20, 28, 38, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.idle-box {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    max-width: 440px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}

.idle-title {
    font-weight: 800;
    margin-bottom: 1rem;
}

.idle-text {
    font-size: 1.2rem;
    color: var(--muted);
    margin-bottom: 1.75rem;
}

.idle-countdown {
    font-weight: 800;
    color: var(--brand);
    font-size: 1.4rem;
}

/* Respect the visibility set by the kiosk on survey screens. */
.kiosk-clock[hidden] {
    display: none !important;
}
