:root {
        /* LoadPay brand colors */
        --loadpay-green: #178465;
        --loadpay-blue: #1776DC;
        --loadpay-black: #000000;
        --loadpay-white: #FFFFFF;

        /* Page-level design tokens */
        --brand-color: var(--loadpay-blue);
        --brand-color-dark: var(--loadpay-black);
        --accent-color: var(--loadpay-green);

        --page-background: #F7F9FB;
        --card-background: var(--loadpay-white);

        --primary-text: #17211E;
        --secondary-text: #5F6965;

        --border-color: #D8E1E8;
        --soft-brand-background: #EAF3FC;
    }

    * {
        box-sizing: border-box;
    }

    html,
    body {
        min-height: 100%;
        margin: 0;
    }

    body {
        background: var(--page-background);
        color: var(--primary-text);
        font-family: Arial, Helvetica, sans-serif;
    }

    .survey-page {
        width: 100%;
        min-height: 100vh;
        padding: 32px 20px;
    }

    .survey-header {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 90px;
        margin-bottom: 24px;
    }

    .survey-logo {
        display: block;
        width: auto;
        max-width: 240px;
        max-height: 80px;
        object-fit: contain;
    }

    .survey-container {
        width: 100%;
        max-width: 760px;
        min-height: 460px;
        margin: 0 auto;
        position: relative;
    }

    #pendo-survey-target {
        width: 100%;
        min-height: 460px;
        position: relative;
    }

    .survey-status {
        width: 100%;
        min-height: 400px;
        padding: 48px 32px;

        border: 1px solid var(--border-color);
        border-top: 5px solid var(--brand-color);
        border-radius: 14px;

        background: var(--card-background);
        box-shadow: 0 8px 28px rgba(23, 118, 220, 0.10);

        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        text-align: center;
    }

    .survey-status[hidden] {
        display: none;
    }

    .survey-status h1 {
        margin: 0 0 12px;
        color: var(--brand-color-dark);
        font-size: 25px;
        line-height: 1.3;
    }

    .survey-status p {
        max-width: 520px;
        margin: 0;
        color: var(--secondary-text);
        font-size: 16px;
        line-height: 1.6;
    }

    .survey-spinner {
        width: 50px;
        height: 50px;
        margin-bottom: 24px;

        border: 5px solid var(--soft-brand-background);
        border-top-color: var(--brand-color);
        border-right-color: var(--accent-color);
        border-radius: 50%;

        animation: survey-spin 0.8s linear infinite;
    }

    @keyframes survey-spin {
        to {
            transform: rotate(360deg);
        }
    }

    #survey-loading:not([hidden]) {
        animation: survey-fade-in 0.2s ease-out;
    }

    @keyframes survey-fade-in {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    .survey-status-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 20px;

        border: 2px solid var(--brand-color);
        border-radius: 50%;

        background: var(--soft-brand-background);
        color: var(--brand-color-dark);

        display: flex;
        align-items: center;
        justify-content: center;

        font-size: 28px;
        font-weight: 700;
    }

    .survey-reference {
        margin-top: 18px !important;
        color: var(--secondary-text) !important;
        font-size: 13px !important;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .survey-debug {
        width: 100%;
        max-width: 760px;
        margin: 20px auto 0;
        padding: 16px;

        overflow-wrap: anywhere;

        border: 1px dashed var(--brand-color);
        border-radius: 8px;

        background: var(--card-background);
        color: var(--brand-color-dark);

        font-family: monospace;
        font-size: 13px;
        line-height: 1.5;
        white-space: pre-wrap;
    }

    .survey-debug[hidden] {
        display: none;
    }

    @media (max-width: 600px) {
        .survey-page {
            padding: 22px 14px;
        }

        .survey-header {
            min-height: 70px;
            margin-bottom: 18px;
        }

        .survey-logo {
            max-width: 190px;
            max-height: 65px;
        }

        .survey-container,
        #pendo-survey-target {
            min-height: 380px;
        }

        .survey-status {
            min-height: 350px;
            padding: 38px 22px;
        }

        .survey-status h1 {
            font-size: 22px;
        }
    }

    @media (max-width: 380px) {
        .survey-page {
            padding: 18px 10px;
        }

        .survey-status {
            padding: 32px 18px;
        }

        .survey-status h1 {
            font-size: 21px;
        }

        .survey-status p {
            font-size: 15px;
        }

        .survey-logo {
            max-width: 170px;
        }
    }