﻿:root {
    --wsu-crimson: #a60f2d;
    --wsu-crimson-dark: #7f0b22;
    --wsu-gray-90: #262626;
    --wsu-gray-70: #4d4d4d;
    --wsu-gray-50: #737373;
    --wsu-gray-40: #a6a6a6;
    --wsu-gray-30: #c7c7c7;
    --wsu-gray-20: #d9d9d9;
    --wsu-gray-10: #f1f1f1;
    --wsu-white: #ffffff;
    --focus-color: #005fcc;
    --card-radius: 1.5rem;
    --control-radius: 1rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient( 145deg, #f7f7f7 0%, #eeeeee 55%, #e3e3e3 100% );
    color: var(--wsu-gray-90);
    font-family: Arial, Helvetica, sans-serif;
}
.kiosk-page {
    width: 100%;
    min-height: 100vh;
}
.kiosk-panel {
    width: 100%;
}
.kiosk-field {
    max-width: 500px;
    margin: 0 auto 1.5rem;
}

.kiosk-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: .5rem;
    text-align: center;
}
.kiosk-section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.kiosk-input {
    width: 100%;
    height: 70px;
    padding: 0 1rem;
    border: 2px solid #bdbdbd;
    border-radius: 14px;
    font-size: 1.2rem;
    text-align: center;
    background: #fff;
}

.checkin-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

    .checkin-actions .kiosk-button {
        width: 220px;
    }

    .kiosk-input:focus {
        border-color: #981e32;
        outline: none;
        box-shadow: 0 0 0 4px rgba(152,30,50,.12);
    }
.checkin-section {
    width: 100%;
    }

.kiosk-card-header {
    background: #981e32;
    color: white;
    text-align: center;
    padding: 1.5rem 1rem;
}

.kiosk-page-title {
    font-size: clamp(1.8rem, 3vw, 2.75rem);
    font-weight: 700;
    line-height: 1.1;
}

.kiosk-page-subtitle {
    margin-top: .75rem;
    font-size: 1.35rem;
}

.kiosk-title {
    font-size: 44px;
    margin: 0 0 12px 0;
    line-height: 1.1;
    display: block;
}

.kiosk-error {
    color: #b00020;
    margin: 10px 0;
    font-size: 18px;
    display: block;
}

.field {
    margin: 12px 0 18px 0;
}

    .field label {
        display: block;
        font-size: 22px;
        font-weight: 700;
        margin-bottom: 8px;
    }

    .field .hint {
        color: #666;
        font-size: 16px;
        margin-top: 6px;
    }

.actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    /* Key fix */
    align-items: center;
}

    .actions .submitbutton,
    .actions .backButton,
    .actions .emailButton,
    .actions input[type="submit"],
    .actions button {
        min-width: 180px;
    }

.keypad-wrap {
    display: flex;
    justify-content: center;
    margin: 10px 0 18px 0;
}

.kiosk-content {
    padding: 1.5rem;
}

.checkin-label {
    margin-bottom: .25rem;
}

.checkin-help {
    margin-bottom: .75rem;
}

.checkin-id-field {
    margin-bottom: 1rem;
}
.kiosk-header {
    padding: 1.5rem 2rem;
    background: linear-gradient( 135deg, var(--wsu-crimson) 0%, var(--wsu-crimson-dark) 100% );
    color: white;
    text-align: center;
}

.welcome-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
}

.kiosk-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    background: #ffffff;
    border-radius: 50%;
    padding: 8px;
    display: block;
    margin: 0 auto 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.kiosk-switch-user {
    text-align: center;
    margin-bottom: .5rem;
    font-size: 1rem;
}

    .kiosk-switch-user a {
        font-weight: 700;
        color: var(--wsu-crimson);
    }

.kiosk-dropdown {
    width: 100%;
    max-width: 500px;
    height: 70px;
    border: 2px solid #bdbdbd;
    border-radius: 14px;
    padding: 0 .75rem;
    background: #fff;
    font-size: 1.15rem;
    display: block;
    margin: 0 auto;
}

.kiosk-textarea {
    width: 100%;
    max-width: 700px;
    min-height: 140px;
    border: 2px solid #bdbdbd;
    border-radius: 14px;
    padding: 1rem;
    font-size: 1rem;
    resize: none;
}

    .kiosk-textarea:focus,
    .kiosk-dropdown:focus {
        border-color: var(--wsu-crimson);
        outline: none;
        box-shadow: 0 0 0 4px rgba(166,15,45,.12);
    }
.welcome-text {
    color: white;
    font-size: clamp(1.45rem,4vw,2rem);
    font-weight: 750;
    line-height: 1.2;
}

.page-heading {
    margin: 0 0 0.5rem;
    color: var(--wsu-gray-90);
    font-size: clamp(1.65rem, 5vw, 2.35rem);
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
}

.page-instructions {
    max-width: 42rem;
    margin: 0 auto 1.75rem;
    color: var(--wsu-gray-70);
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
}

.question-section {
    text-align: center;
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--wsu-gray-20);
}

.question-section--first {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.question-heading {
    display: block;
    margin: 0 0 1rem;
    color: var(--wsu-gray-90);
    font-size: clamp(1.15rem, 3vw, 1.35rem);
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
}

.selection-list {
    width: 100%;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 0.7rem;
}

    .selection-list tbody {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .selection-list tr {
        display: contents;
    }

    .selection-list td {
        position: relative;
        display: flex;
        min-width: 0;
        padding: 0;
    }

    .selection-list input[type="radio"],
    .selection-list input[type="checkbox"] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .selection-list label {
        width: 100%;
        min-height: 4.75rem;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        padding: 1rem 1.25rem;
        background: var(--wsu-white);
        border: 2px solid var(--wsu-gray-20);
        border-radius: var(--control-radius);
        box-shadow: 0 0.25rem 0 rgba(0, 0, 0, 0.13);
        color: var(--wsu-gray-90);
        cursor: pointer;
        font-size: clamp(1rem, 2.5vw, 1.15rem);
        font-weight: 700;
        line-height: 1.35;
        text-align: center;
        touch-action: manipulation;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

        .selection-list label:hover {
            background: var(--wsu-gray-10);
            border-color: var(--wsu-gray-40);
        }

    .selection-list input:checked + label {
        background: #fbeef1;
        border-color: var(--wsu-crimson);
        box-shadow: 0 0.25rem 0 var(--wsu-crimson-dark), 0 0 0 3px rgba(166, 15, 45, 0.12);
        color: var(--wsu-crimson-dark);
    }

    .selection-list input:focus-visible + label {
        border-color: var(--focus-color);
        outline: 4px solid rgba(0, 95, 204, 0.22);
        outline-offset: 2px;
    }

    .selection-list input:disabled + label {
        background: var(--wsu-gray-10);
        border-color: var(--wsu-gray-20);
        color: var(--wsu-gray-50);
        cursor: not-allowed;
        box-shadow: none;
    }

.reason-list tbody {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--wsu-gray-90);
    font-size: 1.05rem;
    font-weight: 700;
}

.text-entry {
    width: 100%;
    min-height: 7rem;
    padding: 0.9rem 1rem;
    background: var(--wsu-white);
    border: 2px solid var(--wsu-gray-40);
    border-radius: 0.85rem;
    color: var(--wsu-gray-90);
    font-size: 1.05rem;
    line-height: 1.45;
    resize: vertical;
}

    .text-entry:focus {
        border-color: var(--focus-color);
        outline: 4px solid rgba(0, 95, 204, 0.2);
        outline-offset: 2px;
    }

.validation-message {
    max-width: 34rem;
    display: block;
    margin: 0.65rem auto 0;
    padding: 0.8rem 1rem;
    background: var(--error-background);
    border: 2px solid var(--error-color);
    border-radius: 0.7rem;
    color: var(--error-color);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

    .validation-message:empty {
        display: none;
    }

.form-actions {
    display: flex;
    justify-content: center;
    padding: 2rem;
    border-top: 1px solid var(--wsu-gray-20);
}

.action-button {
    width: 100%;
    min-height: 4.5rem;
    padding: 0.9rem 1.25rem;
    border-radius: var(--control-radius);
    cursor: pointer;
    font-size: clamp(1.15rem, 3vw, 1.4rem);
    font-weight: 750;
    line-height: 1.2;
    touch-action: manipulation;
}

.action-button--primary {
    background: var(--wsu-crimson);
    border: 3px solid var(--wsu-crimson);
    box-shadow: 0 0.32rem 0 var(--wsu-crimson-dark);
    color: var(--wsu-white);
}

    .action-button--primary:hover {
        background: var(--wsu-crimson-dark);
        border-color: var(--wsu-crimson-dark);
    }

.action-button--secondary {
    background: var(--wsu-white);
    border: 3px solid var(--wsu-gray-70);
    box-shadow: 0 0.32rem 0 var(--wsu-gray-30);
    color: var(--wsu-gray-90);
}

    .action-button--secondary:hover {
        background: var(--wsu-gray-10);
    }

.action-button:active {
    box-shadow: 0 0.08rem 0 rgba(0, 0, 0, 0.25);
    transform: translateY(0.22rem);
}

.action-button:focus-visible {
    outline: 4px solid rgba(0, 95, 204, 0.25);
    outline-offset: 3px;
}

.kiosk-button {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 4.5rem;
    padding: 0.9rem 1.25rem;
    border-radius: var(--control-radius);
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 750;
    line-height: 1.2;
    touch-action: manipulation;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.kiosk-screen {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
}

.kiosk-card {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

.kiosk-button-primary {
    background-color: var(--wsu-crimson);
    border: 3px solid var(--wsu-crimson);
    box-shadow: 0 0.32rem 0 var(--wsu-crimson-dark);
    color: #fff;
}

    .kiosk-button-primary:hover {
        background: var(--wsu-crimson-dark);
        border-color: var(--wsu-crimson-dark);
    }

.kiosk-button-secondary {
    background: var(--wsu-white);
    border: 3px solid var(--wsu-gray-70);
    box-shadow: 0 0.32rem 0 var(--wsu-gray-30);
    color: var(--wsu-gray-90);
}

    .kiosk-button-secondary:hover {
        background: var(--wsu-gray-10);
    }

.kiosk-button-exit {
    background: #666;
    border: 3px solid #666;
    color: #fff;
}

    .kiosk-button-exit:hover {
        background: #555;
    }

.kiosk-button:active {
    box-shadow: 0 0.08rem 0 rgba(0, 0, 0, 0.25);
    transform: translateY(0.22rem);
}

.kiosk-button:focus-visible {
    outline: 4px solid rgba(0, 95, 204, 0.25);
    outline-offset: 3px;
}

#btnSubmit {
    display: block;
    width: 500px;
    max-width: 100%;
    height: 75px;
    margin: 0 auto;
    font-size: 1.5rem;
}
/* =========================================================
   Tutoring Checkout Survey
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

    body.checkout-page {
        margin: 0;
        padding: 24px;
        background: #f3f4f6;
        color: #2a2a2a;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 18px;
        line-height: 1.45;
    }

.checkout-form {
    width: 100%;
    margin: 0;
}

.survey-container {
    width: min(1500px, 100%);
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid #dedede;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* ---------- Header ---------- */

.survey-header {
    margin-bottom: 26px;
    text-align: center;
}

.survey-eyebrow {
    margin: 0 0 4px;
    color: #a60f2d;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.survey-header h1 {
    margin: 0;
    color: #2a2a2a;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
}

.survey-introduction {
    margin: 10px 0 0;
    color: #555555;
    font-size: 1.1rem;
}

/* ---------- Consultant selection ---------- */

.consultant-section {
    margin-bottom: 24px;
    padding: 22px;
    background: #f6f6f6;
    border: 1px solid #dddddd;
    border-left: 7px solid #a60f2d;
    border-radius: 14px;
}

.section-heading,
.feedback-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.section-heading h2,
.feedback-heading h2 {
    margin: 0;
    color: #2a2a2a;
    font-size: 1.2rem;
    line-height: 1.35;
}

.required-note,
.optional-note {
    flex: 0 0 auto;
    color: #666666;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.required-note {
    color: #a60f2d;
}

.consultant-dropdown {
    display: block;
    width: 100%;
    min-height: 58px;
    padding: 10px 46px 10px 16px;
    color: #222222;
    background-color: #ffffff;
    border: 2px solid #767676;
    border-radius: 10px;
    font: inherit;
    font-size: 1.05rem;
    cursor: pointer;
}

    .consultant-dropdown:focus {
        outline: 4px solid rgba(166, 15, 45, 0.25);
        outline-offset: 2px;
        border-color: #a60f2d;
    }

/* ---------- Question grid ---------- */

.survey-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.question-card {
    min-width: 0;
    margin: 0;
    padding: 22px;
    background: #fafafa;
    border: 1px solid #d7d7d7;
    border-radius: 16px;
}

    .question-card legend {
        display: block;
        width: 100%;
        margin: 0 0 18px;
        padding: 0;
        color: #2a2a2a;
        font-size: 1.12rem;
        font-weight: 700;
        line-height: 1.4;
    }

/* ---------- Rating choices ---------- */

.rating-options {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

    /*
    RadioButtonList with RepeatLayout="Flow" renders a series
    of input and label elements instead of a layout table.
*/

    .rating-options input[type="radio"] {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        opacity: 0;
        pointer-events: none;
    }

    .rating-options label {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 62px;
        margin: 0;
        padding: 9px 8px;
        color: #333333;
        background: #ffffff;
        border: 2px solid #b7b7b7;
        border-radius: 10px;
        font-size: 0.87rem;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        cursor: pointer;
        user-select: none;
        transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
    }

        .rating-options label:hover {
            background: #f4e7eb;
            border-color: #a60f2d;
        }

    .rating-options input[type="radio"]:focus + label {
        outline: 4px solid rgba(166, 15, 45, 0.32);
        outline-offset: 2px;
    }

    .rating-options input[type="radio"]:checked + label {
        color: #ffffff;
        background: #a60f2d;
        border-color: #a60f2d;
        box-shadow: 0 4px 10px rgba(166, 15, 45, 0.22);
    }

    .rating-options input[type="radio"]:active + label {
        transform: scale(0.98);
    }

/* ---------- Feedback ---------- */

.feedback-card {
    display: flex;
    flex-direction: column;
}

.feedback-label {
    display: block;
    margin-bottom: 10px;
    color: #444444;
    font-size: 0.98rem;
}

.feedback-textbox {
    display: block;
    width: 100%;
    min-height: 150px;
    padding: 14px;
    color: #222222;
    background: #ffffff;
    border: 2px solid #767676;
    border-radius: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    resize: vertical;
}

    .feedback-textbox:focus {
        outline: 4px solid rgba(166, 15, 45, 0.25);
        outline-offset: 2px;
        border-color: #a60f2d;
    }

.field-help {
    margin: 9px 0 0;
    color: #606060;
    font-size: 0.82rem;
}

/* ---------- Validation ---------- */

.validation-summary {
    margin: 0 0 22px;
    padding: 16px 20px;
    color: #7a0019;
    background: #fff0f3;
    border: 2px solid #a60f2d;
    border-radius: 12px;
    font-weight: 700;
}

    .validation-summary ul {
        margin: 8px 0 0;
        padding-left: 26px;
    }

.field-validation,
.submission-error {
    display: block;
    margin-top: 9px;
    color: #a60f2d;
    font-size: 0.92rem;
    font-weight: 700;
}

    .submission-error:empty {
        display: none;
    }

/* ---------- Actions ---------- */

.survey-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #dddddd;
    text-align: center;
}

.survey-submit-button,
.return-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    min-height: 62px;
    padding: 14px 28px;
    color: #ffffff;
    background: #a60f2d;
    border: 2px solid #a60f2d;
    border-radius: 10px;
    box-shadow: 0 5px 12px rgba(166, 15, 45, 0.22);
    font: inherit;
    font-size: 1.1rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

    .survey-submit-button:hover,
    .return-button:hover {
        color: #ffffff;
        background: #7a0019;
        border-color: #7a0019;
    }

    .survey-submit-button:focus,
    .return-button:focus {
        outline: 4px solid rgba(166, 15, 45, 0.32);
        outline-offset: 3px;
    }

    .survey-submit-button:active,
    .return-button:active {
        transform: translateY(1px);
    }

    .survey-submit-button:disabled {
        color: #ffffff;
        background: #767676;
        border-color: #767676;
        box-shadow: none;
        cursor: default;
    }

/* ---------- Unavailable state ---------- */

.survey-unavailable {
    max-width: 700px;
    margin: 20px auto;
    padding: 32px;
    background: #f7f7f7;
    border: 1px solid #dddddd;
    border-radius: 16px;
    text-align: center;
}

    .survey-unavailable h2 {
        margin: 0 0 12px;
        font-size: 1.6rem;
    }

    .survey-unavailable p {
        margin: 0 0 24px;
        color: #555555;
    }

/* ---------- Responsive adjustments ---------- */

@media (max-width: 1200px) {
    .rating-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    body.checkout-page {
        padding: 14px;
    }

    .survey-container {
        padding: 22px;
        border-radius: 18px;
    }

    .survey-grid {
        grid-template-columns: 1fr;
    }

    .rating-options {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .rating-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .rating-options label {
            min-height: 58px;
        }

    .section-heading,
    .feedback-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .survey-submit-button,
    .return-button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    body.checkout-page {
        padding: 8px;
        font-size: 16px;
    }

    .survey-container {
        padding: 16px;
        border-radius: 14px;
    }

    .question-card,
    .consultant-section {
        padding: 16px;
    }

    .rating-options {
        grid-template-columns: 1fr;
    }
}

/* Reduce animation for users who request it. */
@media (prefers-reduced-motion: reduce) {
    .rating-options label,
    .survey-submit-button,
    .return-button {
        transition: none;
    }
}

