@font-face {
    font-family: 'MontSerrat'; /* Name for the font */
    src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'fa-regular'; /* Name for the font */
    src: url('fonts/fa-regular-400.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'fa-solid'; /* Name for the font */
    src: url('fonts/fa-solid-900.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'fa-brands'; /* Name for the font */
    src: url('fonts/fa-brands-400.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    font-family: 'MontSerrat', Helvetica, Arial, sans-serif;
    color: black;
    background-color: white;
}

a, .btn-link {
    color: var(--color-dark-gold);
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}


:root {
    /* Primary Colors */
    --color-black: #000000;
    --color-dark-grey: #030303;
    --color-dark-gold: #856226;
    --color-gold: #be9750;
    --color-white: #FFFFFF;
    --color-sand: #e5ce93;
    --grey-7: #DEDEDE;
    --grey-6: #B0B0B0;
    --grey-5: #E6E6E6;
    --grey-4: #C9C9C9;
    --grey-3: #959595;
    --grey-2: #595959;
    --grey-1: #343434;
    --black-3: #1B1A18;
    --black-2: #161616;
    --black-1: #0E0D0C;
    --attention: #6BBEFF;
    --unhappy: #b71c1c; /* WCAG AA-compliant */
    --unhappy-border: #C8697A;
    --light-pink: #fdecea; /* WCAG AA-compliant */
    --success: #1E9721;
    /* Secondary Colors */
    --color-grey: #666666;
    --color-success-green: #52AE32;
    --color-error-red: #E94F3D;
    --color-hover-button: #AE9050;
    --color-pressed-button: #876D30;
    --hot-coral: #E94F3D;
    --warm-glow: #FBBB21;
    --pacific-blue: #61C3D9;
    --clean-green: #52AE32;
    --rich-ruby: #5F0D2C;
    --royal-purple: #572D87;
    --sunset-orange: #EE7330;
    --midnight-blue: #192A56;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-dark-gold: #B78734;
    }
}

.hot-coral {
    background-color: var(--hot-coral);
}

.warm-glow {
    background-color: var(--warm-glow);
}

.pacific-blue {
    background-color: var(--pacific-blue);
}

.clean-green {
    background-color: var(--clean-green);
}

.rich-ruby {
    background-color: var(--rich-ruby);
}

.royal-purple {
    background-color: var(--royal-purple);
}

.sunset-orange {
    background-color: var(--sunset-orange);
}

.midnight-blue {
    background-color: var(--midnight-blue);
}

.content {
    padding-top: 1.1rem;
    background-color: black;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ===== PAGE COMPONENT STYLES ===== */

.app-version {
    position: fixed;
    bottom: 0;
    left: 0;
    display: block;
    color: silver;
    font-size: 9pt;
    z-index: 1000;
}

/* AdditionalDetails.razor styles */
.ad_root {
    display: grid;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    height: 100vh;
    margin-bottom: 30px;
    width: 100%;
}

.ad_contentRoot {
    display: grid;
    grid-column: 1/-1;
    grid-column-gap: 0px;
    grid-row: 2/2;
    grid-row-gap: 0px;
    height: 100%;
    height: auto;
    justify-content: center;
    overflow: visible;
    overflow-y: auto;
    overflow-x: visible;
}

.ad-stage {
    grid-column: 1/4;
    grid-row: 1;
    top: 0;
    z-index: 1000;
}

.ad_page_content {
    align-content: center;
    align-self: center;
    grid-row: 1;
    min-height: auto;
    min-width: 0;
    height:100%;
    width: 100%;
    overflow: visible;
    overflow-x: visible;
}

.ad-form-container {
    align-content: center;
    align-self: center;
    box-sizing: border-box;
    color: black;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: 20px;
    width: 100%;
    overflow: visible;
    position: relative;
}

    .ad-form-container > div {
        width: 100%;
        margin-bottom: 8px;
    }

.your-details-content {
    width: min(100%, 540px);
}

.your-details-content .compliance-intro {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.gray-rectangle-container {
    align-items: flex-start;
    border-color: #B0B0B0;
    border-width: 1px;
    grid-column: 1/3;
    padding: 16px;
    width: 100%;
}

.form-questions {
    align-content: center;
    align-self: center;
    color: black;
    display: flex;
    flex-direction: column;
    gap: 12px;
    grid-column: 2/2;
    padding: 20px;
}

.phone-input {
    display: flex;
    gap: 8px;
}

.country-code.ad-page {
    background-color: #DEDEDE;
    border: 1px solid #B0B0B0;
    border-radius: 4px;
    color: #030303;
    outline: none;
    padding: 8px;
    transition: border-color 0.3s ease-in-out;
    width: 50%;
    min-height: 40px;
}

    .country-code.ad-page:focus {
        border-color: var( --color-gold);
    }

.phone-number {
    background-color: #DEDEDE;
    border: 1px solid #B0B0B0;
    border-radius: 4px;
    color: #030303;
    flex: 1;
    outline: none;
    padding: 8px;
    transition: border-color 0.3s ease-in-out;
    min-height: 40px;
}

    .phone-number:focus {
        border-color: var( --color-gold);
    }

.email-input {
    background-color: #DEDEDE;
    border: 1px solid #B0B0B0;
    border-radius: 4px;
    color: #030303;
    outline: none;
    padding: 10px;
    transition: border-color 0.3s ease-in-out;
    width: 100%;
    min-height: 40px;
}

    .email-input[type="date"] {
        -webkit-appearance: none;
        appearance: none;
        box-sizing: border-box;
        display: block;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .email-input[type="date"]::-webkit-date-and-time-value {
        min-width: 0;
        text-align: left;
    }

    .email-input:focus {
        border-color: var( --color-gold);
    }

label {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 6px;
}

.gaming-frequency-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 400;
    cursor: pointer;
}

    .gaming-frequency-options label input[type="radio"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        border: 2.5px solid var(--color-sand);
        border-radius: 50%;
        background-color: white;
        transition: all 0.2s ease;
        flex-shrink: 0;
        margin: 0;
        padding: 0;
    }

        .gaming-frequency-options label input[type="radio"]:hover {
            border-color: var(--color-dark-gold);
        }

        .gaming-frequency-options label input[type="radio"]:checked {
            background-color: white;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='3.5' fill='%23c5a649'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: center;
            background-size: 10px;
            border-color: var(--color-dark-gold);
        }

.gaming-frequency-options legend {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 12px;
    padding: 0;
}

.dropdown {
    background-color: var(--grey-7);
    border: 1px solid var(--grey-6);
    border-radius: 4px;
    color: #030303;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    min-height: 40px;
}

    .dropdown:focus {
        border-color: var( --color-dark-grey);
    }

    .dropdown:disabled {
        opacity: .5;
    }

.your-details-content .email-input:focus-visible,
.your-details-content .dropdown:focus-visible,
.your-details-content .gaming-frequency-options input[type="radio"]:focus-visible,
.your-details-content .compliance-checkbox-item input[type="checkbox"]:focus-visible {
    outline: 3px solid #030303;
    outline-offset: 2px;
}

.ad-form-container fieldset legend {
    font-size: 14px;
    font-weight: bold;
}

.gaming-frequency-options {
    border: none;
    padding: 0;
    margin: 0;
}

.two-column-options {
    display: grid;
    gap: 8px 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: none;
    padding: 0;
    margin: 0;
}

    .two-column-options legend {
        grid-column: 1 / -1;
        font-size: 14px;
        font-weight: bold;
        margin-bottom: 12px;
        padding: 0;
    }

    .two-column-options .compliance-checkboxes {
        display: contents;
    }

@media (max-width: 768px) {
    .two-column-options {
        grid-template-columns: 1fr;
        gap: 0px;
    }
}

.header-div {
    align-self: center;
    grid-column: 1/3;
    margin-bottom: 30px;
    text-align: center;
}

.header-label {
    align-self: center;
    color: #030303;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.form-instructions {
    align-self: flex-start;
    color: #5F5F5F;
    font-size: 1rem;
    font-weight: 400;
    text-align: left;
    margin: 0;
    width: 100%;
}

.form-instructions-wrapper {
    width: 100%;
    padding: 0 20px;
    margin-bottom: 12px;
}

    .form-instructions-wrapper h2 {
        margin: 0 0 8px 0;
        font-size: 1rem;
        font-weight: 600;
        color: #5F5F5F;
    }

    .form-instructions-wrapper h3 {
        margin: 0;
        font-size: 0.95rem;
        font-weight: 400;
        color: #5F5F5F;
        line-height: 1.5;
    }

/* Responsive Styles for AdditionalDetails Page */

/* Mobile Responsive Styles (max-width: 576px) */
@media (max-width: 576px) {
    .form-instructions-wrapper {
        padding: 0 16px;
        margin-bottom: 10px;
    }

        .form-instructions-wrapper h2 {
            font-size: 0.9rem;
            margin-bottom: 6px;
        }

        .form-instructions-wrapper h3 {
            font-size: 0.85rem;
            line-height: 1.4;
        }
}

}

.hidden {
    display: none
}

/* Mobile Responsive Styles (max-width: 576px) */
@media (max-width: 576px) {
    /* Adjust root container for mobile */
    .ad_root {
        height: auto;
        min-height: 100vh;
        margin-bottom: 0;
        overflow: visible;
    }

    .ad_contentRoot {
        grid-row: 2 / -1;
        padding: 0;
        overflow: visible;
        overflow-x: visible;
        overflow-y: auto;
    }

    .ad_page_content {
        margin-bottom: 0;
        padding-bottom: 20px;
        overflow: visible;
        overflow-x: visible;
    }

    /* Form container improvements for mobile */
    .ad-form-container {
        padding: 16px;
        gap: 10px;
        overflow: visible;
        position: relative;
        max-width: 100%;
        margin: 0 auto;
    }

    /* Header adjustments for mobile */
    .header-div h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    /* Form instructions for mobile */
    .form-instructions {
        font-size: 13px;
        line-height: 1.4;
    }

    /* Input fields responsive sizing */
    .email-input,
    .dropdown,
    .phone-number {
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 44px; /* Touch target size */
        padding: 12px 10px;
    }

    /* Phone input stack on mobile */
    .phone-input {
        flex-direction: column;
        gap: 10px;
    }

    .country-code.ad-page {
        width: 100%;
        min-height: 44px;
    }

    .phone-number {
        width: 100%;
    }

    /* Label spacing for mobile */
    label {
        font-size: 13px;
        margin-bottom: 6px;
    }

    /* Select dropdown mobile optimization */
    select {
        -webkit-appearance: none;
        appearance: none;
        background-position: right 10px center;
        background-size: 20px;
        padding-right: 35px;
    }
}

/* Tablet Responsive Styles (min-width: 577px and max-width: 1024px) */
@media (min-width: 577px) and (max-width: 1024px) {
    /* Adjust root container for tablet */
    .ad_root {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .ad_contentRoot {
        overflow: visible;
        overflow-x: visible;
        overflow-y: auto;
    }

    .ad_page_content {
        margin-bottom: 10%;
        overflow: visible;
        overflow-x: visible;
    }

    /* Form container for tablet */
    .ad-form-container {
        max-width: 100%;
        padding: 20px;
        gap: 12px;
        overflow: visible;
        position: relative;
    }

    /* Header adjustments for tablet */
    .header-div h1 {
        font-size: 28px;
    }

    /* Form instructions for tablet */
    .form-instructions {
        font-size: 14px;
    }

    .form-instructions-wrapper {
        padding: 0 20px;
        margin-bottom: 12px;
    }

        .form-instructions-wrapper h2 {
            font-size: 1rem;
        }

        .form-instructions-wrapper h3 {
            font-size: 0.95rem;
        }

    /* Input fields sizing for tablet */
    .email-input,
    .dropdown,
    .phone-number {
        font-size: 15px;
        min-height: 44px;
        padding: 11px 10px;
    }

    /* Phone input on tablet - side by side but with better spacing */
    .phone-input {
        gap: 10px;
    }

    .country-code.ad-page {
        min-width: 120px;
    }
}

/* Desktop optimization (min-width: 1025px) */
@media (min-width: 1025px) {
    .ad_root {
        height: 100vh;
    }

    .ad-form-container {
        max-width: 600px;
        margin: 0 auto;
    }

    /* Input fields sizing for desktop */
    .email-input,
    .dropdown,
    .phone-number {
        font-size: 16px;
        min-height: 40px;
        padding: 10px;
    }

    .phone-input {
        gap: 8px;
    }

    .country-code.ad-page {
        width: 50%;
    }
}

/* Landscape orientation for mobile devices */
@media (max-height: 500px) and (orientation: landscape) {
    .ad_root {
        height: auto;
    }

    .ad-form-container {
        padding: 12px 16px;
        gap: 8px;
    }

    .email-input,
    .dropdown,
    .phone-number {
        min-height: 40px;
        padding: 8px;
    }

    .header-div h1 {
        margin-bottom: 5px;
        font-size: 20px;
    }

    .form-instructions {
        font-size: 12px;
        margin-bottom: 5px;
    }
}

/* YourDetailsCompliance Component - Mobile Responsive Styles (max-width: 576px) */
@media (max-width: 576px) {
    .your-details-content {
        width: 100%;
    }

    .your-details-content .ad-form-container {
        padding: 12px;
        gap: 10px;
    }

    .your-details-content .header-div {
        margin-top: 24px;
        margin-bottom: 10px;
    }

    .your-details-content .header-div h1 {
        font-size: 20px;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .your-details-content .compliance-intro {
        box-sizing: border-box;
        padding-inline: 16px;
    }

    .your-details-content label {
        font-size: 14px;
    }

    /* Dropdown and select fields - touch-friendly sizing */
    .your-details-content .dropdown,
    .your-details-content select {
        font-size: 16px; /* Prevents iOS zoom on input */
        min-height: 44px; /* Touch target size */
        padding: 10px 8px;
        width: 100%;
    }

    /* Multi-select dropdowns mobile optimized */
    .your-details-content .multi-select-dropdown {
        font-size: 14px;
        min-height: 44px;
        width: 100%;
        position: relative;
    }

    .your-details-content .multi-select-dropdown-header {
        font-size: 16px;
        min-height: 44px;
        padding: 12px 12px;
    }

    .your-details-content .multi-select-dropdown-content {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 50vh;
        max-width: 100vw;
        width: 100%;
        z-index: 9999;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .your-details-content .multi-select-done-button {
        font-size: 16px;
        min-height: 44px;
    }

    .your-details-content .compliance-checkbox-item label {
        font-size: 16px;
        min-height: 44px;
        padding: 10px 0;
    }

    .your-details-content .two-column-options .compliance-checkbox-item label {
        min-height: 44px;
        padding: 10px 0;
    }

    .your-details-content .gaming-frequency-options label {
        min-height: 44px;
    }

    .your-details-content .compliance-checkbox-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        margin-right: 10px;
    }

    /* Label with help button - maintain side-by-side with wrapping */
    .your-details-content .label-with-help {
        flex-wrap: wrap;
        gap: 6px;
        align-items: flex-start;
    }

    .your-details-content .label-with-help label {
        flex: 1 1 auto;
        min-width: 100px;
        word-break: break-word;
    }

    /* Help button sizing on mobile */
    .your-details-content .label-with-help button {
        font-size: 16px;
        min-width: 40px;
        min-height: 40px;
    }

    /* Form field spacing */
    .your-details-content .ad-form-container > div {
        margin-bottom: 5px;
    }

    /* Instructions text responsive sizing */
    .your-details-content label[style*="text"] {
        font-size: 13px;
        line-height: 1.5;
    }

    .ad_page_content > .header-div {
        margin-top: 24px;
    }
}

/* YourDetailsCompliance Component - Tablet Responsive Styles (min-width: 577px and max-width: 1024px) */
@media (min-width: 577px) and (max-width: 1024px) {
    .your-details-content {
        width: 100%;
    }

    .your-details-content .ad-form-container {
        padding: 16px;
        gap: 12px;
        max-width: 100%;
        margin: 0 auto;
    }

    .your-details-content .header-div {
        margin-bottom: 12px;
    }

    .your-details-content .header-div h1 {
        font-size: 24px;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .your-details-content .compliance-intro {
        box-sizing: border-box;
        padding-inline: 16px;
    }

    .your-details-content label {
        font-size: 15px;
    }

    /* Dropdown and select fields - tablet sizing */
    .your-details-content .dropdown,
    .your-details-content select {
        font-size: 15px;
        min-height: 42px;
        padding: 10px;
        width: 100%;
    }

    /* Multi-select dropdowns tablet optimized */
    .your-details-content .multi-select-dropdown {
        font-size: 15px;
        min-height: 42px;
        width: 100%;
        position: relative;
    }

    .your-details-content .multi-select-dropdown-header {
        font-size: 15px;
        min-height: 42px;
    }

    .your-details-content .multi-select-dropdown-content {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: 55vh;
        width: 100%;
        z-index: 9999;
        overflow-y: auto;
        overflow-x: hidden;
    }

    .your-details-content .multi-select-done-button {
        font-size: 15px;
        min-height: 42px;
    }

    .your-details-content .compliance-checkbox-item label {
        font-size: 15px;
        min-height: 42px;
        padding: 8px 0;
    }

    .your-details-content .two-column-options .compliance-checkbox-item label {
        min-height: 44px;
        padding: 8px 0;
    }

    .your-details-content .gaming-frequency-options label {
        min-height: 44px;
    }

    .your-details-content .compliance-checkbox-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
        margin-right: 10px;
    }

    /* Label with help button - maintain layout */
    .your-details-content .label-with-help {
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .your-details-content .label-with-help label {
        flex: 1 1 auto;
        min-width: 150px;
        word-break: break-word;
    }

    /* Help button sizing on tablet */
    .your-details-content .label-with-help button {
        font-size: 15px;
        min-width: 38px;
        min-height: 38px;
    }

    /* Form field spacing */
    .your-details-content .ad-form-container > div {
        margin-bottom: 8px;
    }

    /* Instructions text sizing */
    .your-details-content label[style*="text"] {
        font-size: 14px;
        line-height: 1.5;
    }
}

/* PinPage.razor styles */
.pin-root {
    display: grid;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    height: 98vh;
    overflow: hidden;
}

.pin-button-container {
    display: grid;
    margin: 20px 0;
    place-items: center;
}

.set-pin-container {
    display: flex;
    font-family: Arial, sans-serif;
    height: 100vh;
}

.steps {
    list-style: none;
    padding: 0;
}

.step {
    font-size: 14px;
    padding: 10px;
}

    .step.completed {
        color: green;
    }

    .step.active {
        font-weight: bold;
    }

.pin-input {
    background-color: #e0e0e0;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    height: 50px;
    outline: none;
    text-align: center;
    width: 50px;
}

.pin-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

    .pin-inputs input {
        background-color: #DEDEDE;
        border: 1px solid #B0B0B0;
        border-radius: 5px;
        font-size: 24px;
        height: 50px;
        text-align: center;
        width: 50px;
    }

.pin-container {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 50px;
}

.h2 {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 10px;
}

.p1 {
    color: #333;
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 400px;
    text-align: center;
}

.pin-box {
    background-color: #DEDEDE;
    border: none;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    height: 97px;
    outline: none;
    text-align: center;
    width: 97px;
}

    .pin-box::-webkit-outer-spin-button,
    .pin-box::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.signature_error_width {
    width: 60%;
}

.full_width {
    width: 100%;
}

.ninty_perc_width {
    width: 90%;
}


/* SignUp.razor styles */
.cp-root {
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-column-gap: 0px;
    height: 100%;
    text-align: center;
    gap: 10px;
    grid-row-gap: 0px;
    margin-bottom: 50px;
    width: 100%;
    padding-inline: 16px;
    box-sizing: border-box;
}

.cp-screen-content {
    display: flex;
    flex-direction: column;
    grid-row: 2/2;
    margin: 20px;
    justify-self: center;
    align-self: center;
    text-align: center;
    grid-row-gap: 15px;
    width: min(calc(100% - 2rem), 700px);
    place-items: center;
}

    .cp-screen-content h1,
    .cp-screen-content h2 {
        margin: 0;
    }

.join-container {
    text-align: center;
    color: #030303;
    width: 100%;
}

.join-title {
    font-size: 20px;
    font-weight: bold;
}

.join-text {
    font-size: 14px;
    line-height: 1.3;
    max-width: 600px;
    margin: 0 auto;
}

.identity-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: min(100%, 400px);
    margin-inline: auto;
}

    .identity-options .primary-button-outline {
        border-radius: 999px;
        min-height: 5em;
        height: auto;
        padding: 0.75em 1.5rem;
        box-sizing: border-box;
    }

.title-centered-text {
    align-self: center;
    text-align: center;
    font-size: 32px;
    font-weight: 600;
    color: #030303;
}

#page-title2 {
    margin-top: 20px;
}

.centered-text {
    align-self: center;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #030303;
}

.cp-screen-content .centered-text {
    white-space: normal;
}

.support-message {
    max-width: 600px;
    margin-top: 40px;
}

/* SignUp.razor mobile responsiveness */
@media (max-width: 768px) {
    .cp-root {
        margin-bottom: 8px;
        padding-inline: 8px;
        gap: 5px;
    }

    .cp-screen-content {
        margin: 10px 8px;
        padding-bottom: 8px;
        box-sizing: border-box;
        width: calc(100% - 1rem);
        gap: 12px;
    }

        .cp-screen-content h1,
        .cp-screen-content h2 {
            margin: 5px 0;
        }

    .join-container {
        padding: 0 8px;
    }

    .join-title {
        font-size: 16px;
    }

    .join-text {
        font-size: 12px;
        max-width: 100%;
    }

    .identity-options {
        width: 100%;
        gap: 12px;
    }

        .identity-options .primary-button-outline {
            min-height: 4em;
            padding: 0.6em 1rem;
            font-size: 13px;
            line-height: 1.3;
        }

    .title-centered-text {
        font-size: 24px;
        font-weight: 600;
        margin: 10px 0;
    }

    .centered-text {
        font-size: 14px;
        line-height: 1.4;
    }

    .support-message {
        margin-top: 20px;
    }
}

/* SignUp.razor tablet responsiveness (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .cp-root {
        margin-bottom: 40px;
        padding-inline: 16px;
        box-sizing: border-box;
    }

    .cp-screen-content {
        margin: 15px auto;
        gap: 14px;
        width: calc(100% - 2rem);
    }

    .join-container {
        padding: 0 10px;
        box-sizing: border-box;
    }

    .join-title {
        font-size: 18px;
    }

    .join-text {
        font-size: 13px;
        max-width: 100%;
    }

    .identity-options {
        width: 100%;
        gap: 13px;
    }

        .identity-options .primary-button-outline {
            min-height: 4.5em;
            padding: 0.7em 1.2rem;
            font-size: 13px;
        }

    .title-centered-text {
        font-size: 28px;
        margin: 12px 0;
    }

    #page-title2 {
        margin-top: 18px;
    }

    .centered-text {
        font-size: 15px;
    }
}

/* Keep identity choices compact on tablet and small desktop viewports. */
@media (min-width: 480px) and (max-width: 1440px) {
    .identity-options {
        width: 50%;
    }
}

/* TermsAndConditions.razor and VerifyIdentity.razor styles */
.tc_root {
    display: grid;
    min-height:45vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto 1fr;
    grid-column-gap: 0px;
    overflow: hidden;
    width: 100%;
    height: 98vh;
    grid-row-gap: 0px;
}

.stage_indicator {
    grid-column: 1/-1;
    grid-row: 1;
}

.contentRoot {
    grid-column: 1/-1;
    grid-row: 2;
    overflow: hidden;
    height: auto;
    background-color: white;
    display: grid;
    padding: 0 50px 0 50px;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto 1fr;
    grid-column-gap: 0px;
    grid-row-gap: 0px;
}

.page_content {
    grid-column: 1/6;
    grid-row: 2;
}

.screen-content {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    grid-column-gap: 0px;
    grid-row-gap: 20px;
    margin: 20px;
    place-items: center;
}

.dark-text-color {
    color: var(--color-dark-grey);
}

.checkbox-text {
    color: var(--color-dark-grey);
    font-size: 18px;
    font-weight: 600;
    align-content: center;
}

.terms-privacy-titles {
    align-self: center;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.tc_root .compliance-intro {
    width: 85%;
    text-align: center;
}

    .tc_root .compliance-intro.loyalty-agreement {
        text-align: left;
    }

        .tc_root .compliance-intro.loyalty-agreement ul {
            margin: 0;
            padding-left: 24px;
        }

        .tc_root .compliance-intro.loyalty-agreement li {
            margin-bottom: 12px;
        }

@media (max-width: 768px) {
    .terms-privacy-titles {
        text-align: center;
        align-self: center
    }

    .tc_root .compliance-intro {
        width: 100%;
    }
}

.terms-smaller {
    font-size: 1rem;
    font-weight: 400;
}

.consent {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    width: 90%;
}

.signature-hint {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.button-agree {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 60px;
    border: 2px solid var(--grey-6);
    border-radius: 30px;
    background-color: transparent;
    color: var(--grey-6);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease-in-out;
}

.error-box {
    box-sizing: border-box;
    width: 100%;
    min-height: 140px;
    align-items: flex-start;
    padding: 16px 15px;
    border: 1px solid var(--unhappy-border);
    border-radius: 5px;
    background-color: var(--light-pink);
    color: var(--unhappy);
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
}

.error-icon {
    flex: 0 0 auto;
    margin-right: 12px;
    font-size: 18px;
    line-height: 1.4;
}

.error-message {
    display: block;
    margin: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    line-height: 1.45;
}

.checkbox-container {
    display: flex;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
    justify-content: center;
    align-self: center;
    padding: 10px 50px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    margin-top: 20px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
    margin-right: 15px;
    margin-top: 4px;
}

.custom-divider {
    width: 100%;
    border: none;
    border-top: 1px solid var(--color-dark-grey);
    margin: 20px 0;
}

.scrollable-content-box {
    max-height: 45vh;
    min-height: 20vh;
    max-width: 90%;
    overflow-y: auto;
    border: 1px solid #e0ddd6;
    border-radius: 4px;
    padding: 16px 20px;
    background-color: #f7f6f3;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

    .scrollable-content-box::-webkit-scrollbar {
        width: 6px;
    }

    .scrollable-content-box::-webkit-scrollbar-track {
        background: transparent;
    }

    .scrollable-content-box::-webkit-scrollbar-thumb {
        background-color: var(--color-primary, #c9a227);
        border-radius: 3px;
    }

.signature-section {
    grid-column: 1/-1;
    grid-row: 3/3;
    display: flex;
    flex-direction: column;
    justify-items: center;
    place-items: center;
    margin-top: 30px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.signature-label {
    place-items: start;
    width: 80%;
}

.signature-error {
    width: 60%;
}

.signature-pad {
    width: 80%;
    height: 100px;
    border: 1px solid #ccc;
}

.full_width {
    width: 100%;
}


.agree-button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    grid-column: 1/6;
    height: auto;
    margin-bottom: 20px;
    grid-row: 3;
}

/* VerifyIdentity.razor styles */
.verify-identity-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 24px;
    color: var(--color-dark-gold);
    text-align: left;
    margin: 0;
}

.verify-identity-text {
    font-size: 22px;
    line-height: 24px;
    color: var(--color-black);
    text-align: left;
    margin: 0;
}

@media (max-width: 768px) {
    .contentRoot {
        grid-column: 1/-1;
        grid-row: 2/2;
        overflow: hidden;
        height: auto;
        background-color: white;
        display: grid;
        padding: 0;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto 1fr;
        grid-column-gap: 0px;
        grid-row-gap: 0px;
    }

    /* Center heading on mobile */
    .page_content h1 {
        text-align: center;
    }

    .scrollable-content-box {
        max-height: 40vh;
        overflow-y: auto;
        border: 1px solid #e0ddd6;
        border-radius: 4px;
        padding: 12px 16px;
        background-color: #f7f6f3;
        margin-bottom: 10px;
    }

    /* Make consent copy wider - remove horizontal padding */
    .checkbox-container {
        margin: 20px 10px;
        padding: 10px 0;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Center copy under signature box */
    .signature-hint {
        text-align: center;
        width: 100%;
        font-size: 14px;
    }

    .signature-label {
        width: 100%;
        text-align: center;
        font-size: 16px;
    }

    .signature-pad {
        width: 90%;
        height: 150px;
        border: 1px solid #ccc;
    }

    .signature-section {
        margin-top: 15px;
        margin-bottom: 15px;
    }

    .agree-button-container {
        padding: 10px;
        margin-bottom: 10px;
    }

    .checkbox-text {
        font-size: 14px;
        line-height: 1.3;
    }

    .error-message {
        font-size: 14px;
        margin-left: 10px;
        margin-right: 10px;
        width: auto;
    }

    .ninty_perc_width {
        width: 90%;
    }
}

/* Extra small screens - iPhone SE, etc */
@media (max-width: 390px) {
    .page_content {
        overflow-y: hidden;
        height: 100vh;
        display: flex;
        flex-direction: column;
    }

        .page_content h1 {
            font-size: 20px;
            margin-bottom: 10px;
        }

    .scrollable-content-box {
        max-height: 25vh;
        overflow-y: auto;
        border: 1px solid #e0ddd6;
        border-radius: 4px;
        padding: 10px 12px;
        background-color: #f7f6f3;
        margin-bottom: 8px;
    }

    .terms-smaller {
        font-size: 0.75rem;        
        line-height: 1.2;
    }

    .terms-privacy-titles {
        font-size: 1.3rem;
        margin-top: 4px;
        margin-bottom: 6px;
    }

    .checkbox-container {
        margin: 10px 8px;
        padding: 8px 0;
    }

    .checkbox-text {
        font-size: 13px;
        line-height: 1.3;
    }

    .signature-section {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .signature-pad {
        width: 85%;
        height: 120px;
    }

    .signature-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .signature-hint {
        font-size: 12px;
        margin-top: 8px;
    }

    .primary-button {
        font-size: 14px;
        padding: 10px 20px;
        height: auto;
    }

    .agree-button-container {
        padding: 8px;
        margin-bottom: 8px;
    }

    .error-message {
        font-size: 12px;
        margin-left: 8px;
        margin-right: 8px;
    }
}

.terms-and-conditions-root .contentRoot {
    min-height: 0;
    overflow: hidden;
    padding: 0 clamp(0px, 3vw, 50px);
}

.terms-and-conditions-root {
    min-height: 480px;
    overflow-x: hidden;
    overflow-y: auto;
}

.terms-and-conditions-root .page_content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: clamp(8px, 2vh, 16px);
    height: auto;
    min-height: 0;
    margin: 20px;
    overflow: hidden;
}

.terms-and-conditions-root .page_content h1 {
    flex: 0 0 auto;
    margin: 0;
}

.terms-and-conditions-root .scrollable-content-box {
    align-self: center;
    box-sizing: border-box;
    flex: 1 1 auto;
    max-height: 45vh;
    min-height: 20vh;
    width: 90%;
    margin: 0;
}

.terms-and-conditions-root .checkbox-container {
    align-self: stretch;
    flex: 0 0 auto;
    justify-content: flex-start;
    margin: 0;
    padding: 0 clamp(0px, 3vw, 50px);
}

.terms-and-conditions-root .fancy-checkbox,
.terms-and-conditions-root .checkbox-text {
    min-width: 45vh;
    width: 100%;
}

/* LoyaltyOptIn.razor styles */
.loi_root {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: auto auto;
    min-height: 100vh;
    width: 100%;
}

.loi_stage {
    grid-column: 1 / 6;
    grid-row: 1;
}

.loi_contentRoot {
    display: flex;
    grid-row: 2;
    grid-column: 2 / 5;
    flex-direction: column;
    align-items: center;
}

.loi_rewards-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px;
    max-width: 640px;
    border-radius: 8px;
    width: 100%;
    text-align: center;
}

.loi_qr-code {
    height: 150px;
    margin-bottom: 15px;
    margin-top: 50px;
}

@media (max-width: 768px) {
    .loi_root {
        grid-template-columns: minmax(0, 1fr);
    }

    .loi_stage {
        grid-column: 1;
        grid-row: 1;
    }

    .loi_contentRoot {
        box-sizing: border-box;
        grid-column: 1;
        grid-row: 2;
        min-width: 0;
        padding: 0 16px 24px;
        width: 100%;
    }

    .loi_qr-code {
        display: none;
    }

    .loi_rewards-container {
        padding: 0;
    }
}

.toggle-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.heading {
    box-sizing: border-box;
    max-width: 412px;
    margin-top: 40px;
    align-self: center;
    width: 100%;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #030303;
}

.sub-heading {
    box-sizing: border-box;
    max-width: 640px;
    min-width: 0;
    margin-top: 20px;
    align-self: center;
    width: 100%;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: #030303;
}

.join-heading {
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #030303;
    text-align: center;
    margin: 20px 0;
}

.regular-text {
    box-sizing: border-box;
    max-width: 640px;
    min-width: 0;
    margin-top: 20px;
    align-self: center;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: #030303;
}

.divider {
    width: 100%;
    color: #B0B0B0;
}

/* MarketingPreferences.razor styles */
.mp-root {
    display: grid;
    grid-template-rows: auto auto 1fr;
    overflow: auto;
    height: 98vh;
    width: 100%;
}

.mp-contentRoot {
    grid-row: 2 / 2;
    min-height: 100%;
    width: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    color: black;
    padding: 16px;
    width: 100%;
    max-width: 500px;
    margin-top: 30px;
    min-height: fit-content;
    align-items: center;
}

.input-common {
    background-color: var(--grey-7);
    border: 1px solid var(--grey-6);
    color: #030303;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease-in-out;
    padding: 8px;
    width: 100%;
}

    .input-common:focus {
        border-color: var( --color-gold);
    }

.country-code.mp-page {
    width: 45%;
}

.email-input.mp-input, .dropdown.mp-input {
    padding: 10px;
}

.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.contact-text, .consent-text {
    font-size: 13px;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #030303;
    font-weight: 400;
}

.text-common {
    color: #030303;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

.marketing-intro {
    font-weight: 600;
}

.mp-intro {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.mp-intro .header-div {
    margin-bottom: 0;
}

.mp-intro .sub-heading {
    margin-bottom: 0;
}

.mp-intro + .form-container {
    margin-top: 0;
}

.contact-heading {
    display: block;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #030303;
}

@media (max-width: 768px) {
    .contact-heading {
        display: block;
        text-align: center;
        font-size: 20px;
        font-weight: 600;
        margin-left: 30px;
        margin-right: 30px;
        margin-bottom: 20px;
        color: #030303;
    }
}

.custom-hr {
    height: 1px;
    background-color: var(--grey-6);
    border: none;
    margin-top: 24px;
    margin-bottom: 0;
}

.custom-hr-bottom {
    height: 1px;
    background-color: var(--grey-6);
    margin: 0;
    border: none;
}

.button-divider {
    height: 1px;
    background-color: var(--grey-6);
    width: 100%;
    border: none;
}

.main-div {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: center;
}

.button-div {
    height: auto;
    width: 100%;
    margin-top: 0px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preference-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    max-width: 500px;
}

.preference-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
}

    .preference-row.opt-in-all {
        border: none;
        background-color: transparent;
    }

    .preference-row span {
        font-size: 14px;
        font-weight: 400;
        color: #030303;
        flex: 1;
    }

.choice-group {
    display: flex;
    gap: 12px;
}

.preference-row.opt-in-all .choice-group .choice-placeholder {
    visibility: hidden;
    pointer-events: none;
}

.choice {
    padding: 8px 20px;
    border: 1px solid var( --color-gold);
    background-color: white;
    color: var( --color-gold);
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .choice:hover {
        border-color: var( --color-gold);
        background-color: rgba(179, 141, 47, 0.1);
    }

    .choice.selected {
        background-color: var( --color-gold);
        color: white;
        border-color: var( --color-gold);
    }

.fine-print {
    text-align: center;
    font-size: 11px;
    color: #030303;
    margin: 30px 0 30px 0;
    line-height: 1.6;
    font-weight: 400;
}

.statement-label {
    display: block;
    margin: 30px 0 8px 0;
    font-size: 13px;
    font-weight: 600;
    color: #030303;
    text-align: center;
}

    .statement-label small {
        display: block;
        font-size: 11px;
        font-weight: 400;
        color: #666;
        margin-top: 4px;
    }

.fine-print + .statement-label {
    margin-top: 0;
}

.select-wrap {
    width: 100%;
    max-width: 500px;
    margin-bottom: 30px;
    margin-top: 12px;
}

    .select-wrap select {
        width: 100%;
        padding: 10px;
        border: 1px solid var(--grey-6);
        border-radius: 4px;
        background-color: var(--grey-7);
        color: #030303;
        cursor: pointer;
        font-size: 14px;
    }

        .select-wrap select:focus {
            outline: none;
            border-color: var( --color-gold);
        }

/* Outline Version */
.primary-button-outline {
    background-color: white;
    color: var(--color-dark-gold); /* Gold color */
    border: 2px solid var(--color-dark-gold);
    height: 40px;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 0 2rem;
    font-size: 1rem;
    font-weight:800;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
}

    /* Outline Hover */
    .primary-button-outline:hover {
        background-color: #f5e7d0; /* Light beige */
        color: var(--color-dark-gold); /* Darker gold */
    }

    .primary-button-outline:focus-visible {
        outline: 3px solid #030303;
        outline-offset: 3px;
    }

    .primary-button-outline:disabled {
        cursor: not-allowed;
        opacity: 0.6;
    }

    /* Outline Pressed */
    .primary-button-outline:active {
        
        background-color: #e8d8ba; /* Slightly darker beige */
    }

/* Normal State */
.primary-button {
    background-color: var(--color-dark-gold); /* Gold color */
    color: white;
    width: auto;
    border: none;
    height: 40px;
    text-transform: uppercase;
    border-radius: 20px;
    padding: 0 10px;
    font-size: 16px;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
}

    /* Hover State */
    .primary-button:hover {
        background-color: var(--color-hover-button); /* Lighter gold */
    }

    /* Pressed State */
    .primary-button:active {
        background-color: var(--color-pressed-button); /* Darker gold */
    }

    .primary-button:disabled {
        background-color: var(--grey-4); /* Darker gold */
    }


.continue-button {
    padding: 12px 40px;
    min-height: 44px;
    margin-top: 30px;
    background-color: transparent;
    color: var( --color-dark-gold);
    border: 2px solid var(--color-dark-gold);
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

    .continue-button:not(:disabled):focus-visible {
        outline: 3px solid #030303;
        outline-offset: 3px;
    }

    .continue-button:hover:not(:disabled) {
        background-color: rgba(179, 141, 47, 0.1);
        border-color: var( --color-dark-gold);
    }

    .continue-button:disabled {
        background-color: transparent;
        color: var( --color-dark-gold);
        border: 2px solid var( --color-dark-gold);
        cursor: not-allowed;
        outline: none;
        opacity: 0.7;
    }

    .continue-button:not(:disabled) {
        background-color: var( --color-dark-gold);
        color: var(--color-white);
        border: 2px solid var( --color-dark-gold);
        cursor: pointer;
    }

        .continue-button:not(:disabled):hover {
            background-color: #A67D1F;
            border-color: #A67D1F;
            box-shadow: 0 2px 8px rgba(179, 141, 47, 0.3);
        }


@media (max-width: 768px) {
    .mp-root {
        height: auto;
        min-height: 100vh;
        margin-bottom: 10%;
    }

    .mp-contentRoot {
        width: 90%;
        min-height: 100%;
        margin-top: 10%;
    }

    .form-container {
        width: 90%;
        margin-top: 10px;
        padding: 12px;
        max-width: 100%;
    }

    /* Mobile preference list adjustments */
    .preference-list {
        max-width: 100%;
    }

    .preference-row {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 8px;
        align-items: flex-start;
    }

        .preference-row span {
            font-size: 13px;
            min-width: 120px;
            flex: 0 1 auto;
        }

        .preference-row.opt-in-all span {
            font-size: 13px;
        }

    /* Mobile choice group adjustments */
    .choice-group {
        gap: 8px;
        flex-wrap: wrap;
        flex: 1 1 auto;
        min-width: 140px;
    }

    .choice {
        padding: 6px 14px;
        font-size: 11px;
        flex: 1 1 auto;
        min-width: 50px;
        white-space: nowrap;
    }

    .twobuttontoggle_btn:focus-visible {
        outline: 3px solid #030303;
        outline-offset: 3px;
    }

    /* Mobile phone input adjustments */
    .phone-input {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
    }

    .country-code {
        grid-column: 1;
        font-size: 12px;
        padding: 8px 4px;
    }

    .phone-input input[type="tel"] {
        grid-column: 2;
        font-size: 14px;
    }

    /* Mobile statement label */
    .statement-label {
        font-size: 13px;
        margin: 20px 0 8px 0;
    }

        .statement-label small {
            font-size: 11px;
        }

    /* Mobile select wrap */
    .select-wrap {
        max-width: 100%;
        margin-bottom: 20px;
        margin-top: 10px;
    }

        .select-wrap select {
            font-size: 13px;
            padding: 8px;
        }

    /* Mobile text adjustments */
    .contact-heading {
        font-size: 20px;
        margin-left: 15px;
        margin-right: 15px;
        margin-bottom: 15px;
    }

    .text-common {
        font-size: 12px;
    }

    .fine-print {
        font-size: 10px;
        margin: 20px 10px;
    }

    .contact-text, .consent-text {
        font-size: 12px;
        margin-bottom: 12px;
    }

    /* Mobile input common */
    .input-common {
        padding: 6px 8px;
        font-size: 13px;
    }

    .button-div {
        margin-top: 10px;
    }
}

/* Tablet adjustments (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .mp-contentRoot {
        width: 85%;
    }

    .form-container {
        width: 85%;
        max-width: 600px;
    }

    .preference-list {
        max-width: 100%;
    }

    .preference-row {
        padding: 12px 10px;
        gap: 15px;
    }

        .preference-row span {
            font-size: 13px;
            min-width: 130px;
        }

    .choice-group {
        gap: 10px;
    }

    .choice {
        padding: 7px 16px;
        font-size: 12px;
    }

    /* Tablet phone input layout */
    .phone-input {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 10px;
    }

    .country-code {
        font-size: 13px;
    }

    .phone-input input[type="tel"] {
        font-size: 14px;
    }

    .select-wrap {
        max-width: 100%;
    }

        .select-wrap select {
            font-size: 13px;
        }

    .contact-heading {
        font-size: 19px;
    }

    .fine-print {
        font-size: 10px;
        margin: 25px 0;
    }

    .statement-label {
        font-size: 13px;
        margin: 25px 0 10px 0;
    }
}

/* AccountCreatedPage.razor styles */
.root {
    display: flex;
    flex-direction: column;
    overflow: auto;
    height: 100%;
}

.stage {
    flex-shrink: 0;
    margin-bottom: 0px;
}

.contentRoot {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    background-color: white;
}

.page_content {
    flex: 1;
    overflow: auto;
}

.welcome-container {
    text-align: center;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.welcome-title {
    font-size: 28px;
    margin-bottom: 20px;
}

.welcome-message {
    margin-bottom: 20px;
}

.welcome-subtitle {
    font-size: 20px;
    color: #333;
    margin: 10px 0 15px 0;
    font-weight: bolder;
}

.membership-number {
    font-size: 16px;
    color: #333;
    margin: 15px 0 20px 0;
}

.account-id {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0;
}

.note-text {
    font-size: 14px;
    color: #555;
}

.suggested-actions h2 {
    font-size: 20px;
    margin-top: 30px;
    font-weight: bold;
}

.action-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.card {
    position: relative;
    width: 250px;
    border-radius: 8px;
    overflow: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

    .card img {
        width: 100%;
        height: 237px;
        object-fit: cover;
    }

.card-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    width: 100%;
    height: 100%;
    padding: 10px;
    text-align: left;
}

    .card-overlay h3 {
        font-size: 16px;
        margin: 0;
    }

    .card-overlay p {
        font-size: 12px;
        margin: 5px 0 0;
    }

.card-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

    .card-title-wrapper h3 {
        margin: 0;
        flex: 1;
    }

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-radius: 50%;
    font-size: 14px;
    color: white;
    margin-left: 10px;
    flex-shrink: 0;
}

.success-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    justify-items: center;
    align-items: center;
    padding: 20px;
    text-align: center;
    margin: 20px auto;
    border-radius: 8px;
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--success);
}

.email-confirmation {
    color: var(--success);
    font-size: 16px;
    font-weight: 500;
    margin: 0;
    line-height: 1.5;
}

    .email-confirmation strong {
        color: var(--success);
        font-weight: 600;
    }

.button-container {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin-top: auto;
}

@media (max-width: 768px) {
    .action-cards {
        flex-direction: column;
        align-items: center;
    }

    .check-icon {
        font-size: 24px;
        margin-right: 5px;
        margin-bottom: 15px;
        align-items: center;
        justify-content: center;
        align-self: center;
    }

    .message-header {
        display: flex;
        flex-direction: column;
        color: #3E6D31;
        font-size: 16px;
        font-weight: 500;
        margin-bottom: 10px;
        width: 100%;
        max-width: 400px;
    }
}

.uppercase-text {
    text-transform: uppercase;
}



.button-agree {
    display: inline-block;
    padding: 10px 30px;
    font-size: 16px;
    font-weight: bold;
    color: black;
    align-items: center;
    background-color: white;
    border: 2px solid black;
    border-radius: 30px;
    cursor: pointer;
    text-align: center;
    outline: none;
    transition: all 0.3s ease-in-out;
}

    .button-agree:hover {
        background-color: var(--color-gold);
        color: white;
    }

    .button-agree:disabled {
        opacity: .3;
    }

/* Normal State */
.secondary-button {
    background-color: transparent;
    color: #000; /* Black */
    border: 2px solid #000;
    border-radius: 20px;
    text-transform: uppercase;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
}

    /* Hover State */
    .secondary-button:hover {
        background-color: #f7f7f7; /* Light gray */
        color: #333; /* Darker gray */
    }

    /* Pressed State */
    .secondary-button:active {
        background-color: #e0e0e0; /* Slightly darker gray */
        color: #000;
    }

/* Common Styles */
.floating-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border-width: thin;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
}

    /* Normal State */
    .floating-button.normal-white {
        background-color: #fff; /* White */
        color: #000; /* Black */
        border: 2px solid #000;
    }

    .floating-button.normal-black {
        background-color: #000; /* Black */
        color: #fff; /* White */
    }

    .floating-button.normal-gold {
        background-color: var(--color-gold); /* Gold */
        color: white;
    }

    /* Pressed State */
    .floating-button.pressed-white {
        background-color: #e0e0e0; /* Light gray */
        color: #000; /* Black */
    }

    .floating-button.pressed-black {
        background-color: #333; /* Dark gray */
        color: white;
    }

    .floating-button.pressed-gold {
        background-color: #a07e4d; /* Darker gold */
        color: white;
    }

.page-background-class {
    position: fixed;
    width: 100vw;
    height: 100vh;
    background-color: black;
    left: 0;
    top: 0;
    z-index: 10;
}

.home_page-background-class {
    background-image: url(images/SKyCityHomePageWhite.png);
    background-size: contain;
    position: fixed;
    background-repeat: no-repeat;
    width: 100vw;
    height: 100vh;
    background-position: center;
    background-color: white;
    left: 0;
    top: 0;
    z-index: 10;
}


/*#region Radiobuttons */
custom-radio {
    display: none;
}

.custom-radio-circle {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
    transition: border-color 0.3s, background-color 0.3s;
}

.custom-radio:checked + .custom-radio-circle {
    background-color: #000;
    border-color: #000;
}

    .custom-radio:checked + .custom-radio-circle::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 8px;
        height: 8px;
        background-color: #fff;
        border-radius: 50%;
    }

.custom-radio:hover + .custom-radio-circle {
    border-color: #999;
}

.custom-radio:disabled + .custom-radio-circle {
    border-color: #eee;
    background-color: #f9f9f9;
}

.radio-text {
    font-size: 14px;
    color: #000;
}

.fancy-checkbox {
    display: flex;
    align-items: flex-start;
    align-content: center;
}

    .fancy-checkbox input[type="checkbox"] {
        display: none;
    }

    .fancy-checkbox span {
        display: grid;
        grid-template-columns: max-content 1fr;
        align-items: start;
    }

        .fancy-checkbox span:before {
            font-family: fa-regular;
            font-style: normal;
            font-size: 24px;
            color: var(--color-gold);
            width: 1em;
            height: 1em;
            content: '\f111';
            margin-right: .3em;
            background: none;
        }

    .fancy-checkbox input[type="checkbox"]:checked ~ span:before {
        content: '\f058';
    }

/*#endregion */


.rounded-paper {
    border-radius: 16px;
    padding: 16px; /* Optional for spacing */
}

.center {
    -moz-align-content: center;
    -o-align-content: center;
    -webkit-align-content: center;
    align-content: center;
}

.footer-button {
    width: 500px;
    text-align: center;
    align-self: center;
    width: 300px;
    border-radius: 50px;
}

.error-box {
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    align-self: start;
    width: 100%;
    height: fit-content;
    min-height: 0;
    padding: 14px 15px;
    border: 1px solid var(--unhappy-border);
    border-radius: 5px;
    background-color: var(--light-pink);
    color: var(--unhappy);
}
.help-box {
    display: none;
}


@media (max-width: 1200px) {
    .help-box {
        background-color: var(--color-gold);
        color: var(--color-white);
        border: 1px solid var(--grey-7);
        padding: 10px 15px;
        border-radius: 5px;
        font-family: Arial, sans-serif;
        font-size: 14px;
        display: inline-block;
        width: 100%;
    }
}

.email-input::placeholder,
.phone-number::placeholder {
    color: var(--unhappy); /* Red placeholder color */
}

.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0, 0, 0.5);
    display: flex;
    z-index: 5000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dialog {
    width: 750px;
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
}

    .dialog .dialog-header {
        display: grid;
        grid-template-columns: 5fr auto;
        align-items: center;
        justify-content: space-between;
        padding: 2rem;
    }

    .dialog .header-text-center {
        text-align: center;
    }

    .dialog .dialog-body {
        padding: 2rem;
    }

    .dialog .dialog-footer {
        padding: 2rem;
    }

.close {
    height: 40px;
    width: 40px;
    background-color: transparent;
    transition: 0.25s ease;
    border-radius: 10px;
    display: flex;
    margin-right: -30px;
    margin-top: -30px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .close:hover {
        background-color: #DDD;
    }

/* Responsive Design for Small Screens */
@media (max-width: 768px) {
    .dialog {
        width: 90%; /* Adjust dialog width to take most of the screen */
        max-width: 500px; /* Set a max width to avoid stretching */
        padding: 1rem;
    }

        .dialog .dialog-header,
        .dialog .dialog-body,
        .dialog .dialog-footer {
            padding: 1rem; /* Reduce padding for better fit on small screens */
        }

        .dialog .dialog-header {
            grid-template-columns: 1fr auto;
        }

        .dialog .header-text-center {
            text-align: center;
            margin-left: 20px;
            grid-column: 1/1;
        }
}

.spinner-that-is-always-spinning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FFFFFFF30;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid black;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    min-width: 40px;
    margin-left: 10px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #B0B0B0;
    transition: .4s;
    border-radius: 20px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

input:checked + .slider {
    background-color: var(--color-gold);
}

    input:checked + .slider:before {
        transform: translateX(20px);
    }

/* Accessibility adaptations */

/* Screen Reader Only */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ===== CUSTOM COMPONENT STYLES ===== */

/* ContinueButton.razor styles */
.btn-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.button-disabled {
    background-color: #b3b3b3;
}

/* Switch.razor styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

    .switch input {
        display: none;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

    .slider::before {
        content: "";
        position: absolute;
        height: 21px;
        width: 21px;
        left: 2px;
        bottom: 2px;
        background-color: white;
        border-radius: 50%;
        transition: transform 0.3s ease;
    }

input:checked + .slider {
    background-color: #c29842;
}

    input:checked + .slider::before {
        transform: translateX(25px);
    }

/* StageIndicator.razor styles */
.si-container {
    display: grid;
    grid-template-columns: 20% 1fr minmax(200px,20%);
    text-align: center;
    gap: 10px;
    padding: env(safe-area-inset-top, 0px) 20px 0;
    position: sticky;
    top: 0;
    width: 100%;
    background-color: white;
    z-index: 100;
}

.si_logo {
    display: flex;
    text-align: left;
    margin: 1em;
    grid-column: 1/1;
    margin-right: 23em;
}

.si_center {
    display: grid;
    justify-content: center;
    grid-column: 2/2;
    align-content: center;
    text-align: center;
}

.si_pagebuttons {
    display: flex;
    grid-column: 3/3;
    padding-right: 20px;
    justify-content: flex-end;
    text-align: right;
}

.si_logo {
    width: 80%;
    max-width: 150px;
}

.si_step_image {
    width: clamp(160px, 100%, 476px);
    max-width: none;
}

@media (max-width: 768px) {
    .si-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 16px;
        padding: env(safe-area-inset-top, 0px) 10px 0;
    }

    .si_logo {
        grid-column: 1/1;
        margin-right: 0;
    }

    .si_center {
        grid-column: 2/2;
    }

    .si_pagebuttons {
        grid-column: 3/3;
        padding-right: 0;
    }
}

@media (max-width: 600px) {
    .si-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "logo"
            "buttons"
            "progress";
        align-items: center;
        margin-bottom: 12px;
    }

    .si_logo {
        grid-area: logo;
        justify-self: center;
        justify-content: center;
    }

    .si_center {
        grid-area: progress;
        min-width: 0;
        width: 100%;
    }

    .si_step_image {
        width: 100%;
        min-width: 0;
    }

    .si_pagebuttons {
        grid-area: buttons;
        justify-content: center;
    }
}

/* PageHeader.razor styles */
.confirmation-text {
    font-size: 20px;
    text-align: center;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 35px;
}

.yes-button {
    width: 200px;
}

.no-button {
    width: 200px;
}

.navigation-container {
    display: grid;
    grid-template-columns: 1fr auto auto 0px;
    gap: 16px;
    padding: 10px 20px;
}

.back-button {
    grid-column: 2/2;
    color: black;
    background: none;
    border: none;
    text-decoration: underline;
}

.cancel-button {
    grid-column: 3/3;
    background: none;
    border: none;
    color: black;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .navigation-container {
        display: grid;
        width: 100%;
        grid-template-columns: auto 1fr auto;
        gap: 16px;
        padding: 0 20px 0 20px;
    }

    .back-button {
        grid-column: 1/1;
        grid-row: 1/1;
    }

    .cancel-button {
        grid-column: 3/3;
    }
}

/* AddressEntry.razor styles */
.gold-link {
    text-decoration: underline;
    margin: 20px 0;
    color: var(--color-gold);
    cursor: pointer;
}

.span-header {
    margin-top: 10px
}

.suggestions-box {
    border: 1px solid #ccc;
    border-radius: 5px;
    background: rgba(230,230,230,0.5);
    z-index: 1000;
}

    .suggestions-box div {
        padding: 5px;
        border-radius: 5px;
        cursor: pointer;
    }

        .suggestions-box div:hover {
            background: #eee;
        }

/* HelpTag.razor styles */
.hide {
    display: none;
}

.showOnlyMobile {
    display: none;
}

@media(max-width: 1200px) {
    .showOnlyMobile {
        display: block;
    }
}

/* HelpButton.razor styles */
.tooltip-container {
    position: relative;
    display: inline-block;
    width: 50%;
}

.help-button {
    width: 1.5em;
    height: 1.5em;
    background-color: var(--color-dark-gold);
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    bottom: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
    border: none;
}

.help-button-inverted {
    background-color: white;
    color: var(--color-dark-gold);
}

.help-button span {
    pointer-events: none;
}

.tooltip-text {
    position: absolute;
    width: fit-content;
    background-color: var(--color-dark-gold);
    color: white;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    white-space: nowrap;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    pointer-events: none;
}

/* LanguageSelector.razor styles */
.button-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-width: 200px;
    margin: 0 auto;
}

/* TileButton.razor styles */
.login-card {
    display: grid;
    grid-template-rows: auto auto;
    gap: 10px;
    justify-items: start;
    align-items: center;
    width: 25rem;
    height: 25rem;
    background-color: var(--color-gold);
    border-radius: 2rem;
    padding: 2rem;
    color: white;
    font-family: MontSerrat, sans-serif;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Popup.razor styles (empty style block) */

/* WaitIndicatorPopup.razor styles */
.spinner-that-is-always-spinning-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.dialog-wait {
    width: 30%;
    height: 30%;
    min-width: 300px;
    min-height: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 1rem;
}

/* TwoButtonToggleControl.razor styles */
.twobuttontoggle_question {
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
    color: var(--color-dark-text);
}

.twobuttontoggle_root {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    grid-column-gap: 20px;
    width: 100%;
    justify-content: center;
}

.twobuttontoggle_btn {
    text-transform: uppercase;
    display: flex;
    min-width: 210px;
    min-height: 65px;
    height: auto;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 20px 28px;
    text-align: center;
    line-height: 1.2;
    border-radius: 50px;
    border: 2px solid var(--color-dark-gold);
    background-color: transparent;
    cursor: pointer;
    outline: none;
    color: var(--color-dark-gold);
    transition: all 0.3s ease;
    white-space: nowrap;
}

    .twobuttontoggle_btn.unselected {
        background-color: transparent;
        color: var(--color-dark-gold);
    }

    .twobuttontoggle_btn:not(.unselected) {
        background-color: var(--color-dark-gold);
        color: white;
    }

        .twobuttontoggle_btn:not(.unselected) .button-text-primary,
        .twobuttontoggle_btn:not(.unselected) .button-text-secondary {
            color: white;
        }

.button-text-primary {
    font-weight: 600;
    font-size: 14px;
}

.button-text-secondary {
    font-weight: 400;
    font-size: 12px;
}

.twobuttontoggle_btn_yes-button {
    grid-column: 1 / 1
}

.twobuttontoggle_btn_no-button {
    grid-column: 2 / 2
}

@media (max-width: 768px) {
    .twobuttontoggle_root {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
        overflow: auto;
        justify-items: center;
        grid-row-gap: 10px;
        width: 100%;
    }

    .twobuttontoggle_btn {
        box-sizing: border-box;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        white-space: normal;
    }

    .twobuttontoggle_btn_yes-button {
        grid-row: 1 / 1;
        grid-column: 1 / 1;
    }

    .twobuttontoggle_btn_no-button {
        grid-row: 2 / 2;
        grid-column: 1 / 1;
    }
}

/* Compliance Questions Styling */
.compliance-questions-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.compliance-question {
    margin-bottom: 30px;
}

    .compliance-question legend {
        font-size: 16px;
        font-weight: 600;
        margin-bottom: 15px;
        color: var(--color-black);
    }

.compliance-yes-no-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

    .compliance-yes-no-buttons button {
        padding: 8px 20px;
        border: 1px solid var(--color-gold);
        background-color: white;
        color: var(--color-gold);
        border-radius: 20px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 600;
        transition: all 0.2s ease;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

        .compliance-yes-no-buttons button:hover {
            border-color: var(--color-gold);
            background-color: rgba(179, 141, 47, 0.1);
        }

        .compliance-yes-no-buttons button.active {
            background-color: var(--color-gold);
            color: white;
            border-color: var(--color-gold);
        }

.compliance-checkboxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.compliance-checkbox-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: var(--color-black);
}

.compliance-checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 2.5px solid var(--color-sand);
    border-radius: 4px;
    background-color: white;
    transition: all 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}
    /*
.compliance-checkbox-item input[type="checkbox"]:hover {
    border-color: var(--color-dark-gold);
    box-shadow: inset 0 0 0 1px var(--color-dark-gold);
}
*/
    .compliance-checkbox-item input[type="checkbox"]:checked {
        background-color: var(--color-white);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.3 8.1l2.4 2.5 5-5.4' fill='none' stroke='%23c5a649' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 16px;
    }

        .compliance-checkbox-item input[type="checkbox"]:checked:hover {
            background-color: #c9993f;
            border-color: #a87d2e;
        }

/*.compliance-checkbox-item input[type="checkbox"]:focus {
    outline: 2px solid var(--color-dark-gold);
    outline-offset: 2px;
}*/

/* Checkbox card container styling */
.compliance-checkbox-card {
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 20px;
    margin-top: 15px;
}

.compliance-checkbox-label {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
    color: var(--color-black);
}

.compliance-checkbox-label-text::after {
    content: " *";
    color: #d32f2f;
}

.compliance-help-icon {
    margin-left: 8px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-sand);
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    color: var(--color-dark-gold);
    cursor: help;
}

@media (max-width: 768px) {
    .compliance-yes-no-buttons {
        flex-direction: column;
    }

        .compliance-yes-no-buttons button {
            width: 100%;
        }

    .compliance-checkbox-card {
        padding: 15px;
    }
}

/* PEP Financial Section Styles */
.pep-financial-section {
    background-color: #f5f5f5;
    border-radius: 8px;
    padding: 30px;
    margin-top: 30px;
    border-left: 4px solid var(--color-gold);
}

    .pep-financial-section .header-div {
        margin-bottom: 15px;
    }

    .pep-financial-section h2 {
        font-size: 22px;
        font-weight: 600;
        margin: 0 0 15px 0;
    }

    .pep-financial-section > div:nth-child(2) {
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.5;
        color: #666;
    }

/* MultiSelectDropdown Styles */
.multi-select-dropdown {
    position: relative;
    width: 100%;
}

.multi-select-dropdown-header {
    width: 100%;
    padding: 8px 16px;
    background-color: var(--grey-7);
    border: 1px solid var(--grey-6);
    border-radius: 4px;
    font-size: 16px;
    color: var(--color-black);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'MontSerrat', Helvetica, Arial, sans-serif;
    transition: all 0.2s ease;
}

    .multi-select-dropdown-header:hover {
        border-color: var(--grey-6);
        background-color: var(--grey-7);
    }

    .multi-select-dropdown-header:focus {
        outline: none;
        border-color: var(--color-dark-grey);
        box-shadow: 0 0 0 3px rgba(197, 166, 73, 0.1);
    }

.multi-select-dropdown-text {
    flex: 1;
    text-align: left;
}

.chevron {
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}
.multi-select-dropdown-icon {
    margin-right: -10px;    
    color: var(--color-dark-grey);
}

.multi-select-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    border: 1px solid var(--grey-6);
    border-top: none;
    border-radius: 0 0 4px 4px;
    padding: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-height: 60vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

    .multi-select-dropdown-content .compliance-checkboxes {
        flex: 1;
        overflow-y: auto;
        padding: 12px;
        min-height: 0;
    }

        .multi-select-dropdown-content .compliance-checkboxes .compliance-checkbox-item {
            padding: 2px 0;
        }

            .multi-select-dropdown-content .compliance-checkboxes .compliance-checkbox-item:last-child {
                padding-bottom: 0;
                border-bottom: none;
            }

.multi-select-done-button {
    padding: 10px 16px;
    background-color: var(--color-gold);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    margin: 8px 12px 8px 12px;
    width: calc(100% - 24px);
    font-family: 'MontSerrat', Helvetica, Arial, sans-serif;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

    .multi-select-done-button:hover {
        background-color: var(--color-hover-button);
    }

    .multi-select-done-button:active {
        background-color: var(--color-pressed-button);
    }

    .multi-select-done-button:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(179, 141, 47, 0.3);
    }

/* Multi-select dropdown overlay - blocks content below on mobile */
.multi-select-dropdown-overlay {
    display: none;
}

@media (max-width: 768px) {
    .multi-select-dropdown {
        position: static;
        overflow: visible;
    }

    .multi-select-dropdown-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        cursor: pointer;
    }

    .multi-select-dropdown-content {
        position: fixed;
        inset: 0;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        margin: auto;
        width: calc(100vw - 32px);
        max-width: 600px;
        max-height: 80vh;
        z-index: 9999;
        background-color: white;
        border: 2px solid var(--color-sand);
        border-radius: 4px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .multi-select-dropdown-content .compliance-checkboxes {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        min-height: 0;
    }

    .multi-select-dropdown-content .compliance-checkboxes .compliance-checkbox-item {
        padding: 8px 0;
    }

    .multi-select-dropdown-header {
        font-size: 16px;
        padding: 12px 12px;
        min-height: 44px;
    }

    .multi-select-done-button {
        font-size: 16px;
        font-weight: 700;
        padding: 14px 16px;
        min-height: 44px;
        margin: 0;
        border-radius: 0;
        width: 100%;
        background-color: var(--color-gold);
        color: white;
        flex-shrink: 0;
    }

    .compliance-checkbox-item label {
        font-size: 16px;
        padding: 8px 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .compliance-checkbox-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
        min-height: 20px;
        margin-right: 10px;
    }

    /* Ensure dropdown doesn't overflow on mobile */
    .multi-select-dropdown {
        overflow: visible;
    }
}

/* Multi-select dropdown tablet styles (577px - 768px) */
@media (min-width: 577px) and (max-width: 768px) {
    .multi-select-dropdown-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 9998;
        cursor: pointer;
    }

    .multi-select-dropdown-content {
        position: fixed;
        inset: 0;
        top: auto;
        bottom: auto;
        left: auto;
        right: auto;
        margin: auto;
        width: calc(100vw - 32px);
        max-width: 700px;
        max-height: 80vh;
        z-index: 9999;
        background-color: white;
        border: 2px solid var(--color-sand);
        border-radius: 4px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .multi-select-dropdown-content .compliance-checkboxes {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
        min-height: 0;
    }

    .multi-select-dropdown-content .compliance-checkboxes .compliance-checkbox-item {
        padding: 8px 0;
    }

    .multi-select-dropdown-header {
        font-size: 15px;
        padding: 12px 12px;
        min-height: 42px;
    }

    .multi-select-done-button {
        font-size: 15px;
        font-weight: 700;
        padding: 14px 16px;
        min-height: 42px;
        margin: 0;
        border-radius: 0;
        width: 100%;
        background-color: var(--color-gold);
        color: white;
        flex-shrink: 0;
    }

    .compliance-checkbox-item label {
        font-size: 15px;
        padding: 8px 0;
        min-height: 42px;
        display: flex;
        align-items: center;
    }

    .compliance-checkbox-item input[type="checkbox"] {
        width: 19px;
        height: 19px;
        min-width: 19px;
        min-height: 19px;
        margin-right: 10px;
    }
}

/* Label with Help Button - positions help button to the right */
.label-with-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

    .label-with-help label {
        flex: 0 0 auto;
        margin: 0;
        white-space: nowrap;
    }

/* Make select and multi-select dropdowns wider than labels */
.ad-form-container select,
.ad-form-container .multi-select-dropdown {
    width: 100%;
}

/* Compliance Question Styles */
.compliance-question {
    margin-bottom: 32px;
}

.question-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #000;
}

.button-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.compliance-button {
    flex: 0 1 auto;
    min-width: 100px;
    padding: 10px 24px;
    border: 2px solid var(--color-gold);
    background-color: white;
    color: var(--color-gold);
    font-size: 14px;
    font-weight: 600;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compliance-button:hover {
    background-color: rgba(179, 141, 47, 0.1);
}

.compliance-button.active {
    background-color: var(--color-gold);
    color: white;
    border-color: var(--color-gold);
}

/* Sub-Question Container (bordered box) */
.sub-question-container {
    border: 2px solid #E8D7B8;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
    
}

.sub-question-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.sub-question-label {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    font-size: 12px;
    font-weight: bold;
    cursor: help;
}

/* Checkbox Group Styles */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
}

.checkbox-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    margin: 0;
    flex: 1;
}

.checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    flex-shrink: 0;
    cursor: pointer;
    border: 2px solid var(--color-gold);
    border-radius: 3px;
    accent-color: var(--color-gold);
}

.checkbox-label-text {
    font-size: 14px;
    color: #000;
    line-height: 1.4;
}

/* Keep the reCAPTCHA badge in the document flow on small screens so it cannot cover page content. */
@media (max-width: 768px) {
    .grecaptcha-badge {
        position: relative !important;
        inset: auto !important;
        display: block;
        margin: 4px auto !important;
        transform: scale(0.8);
        transform-origin: center;
        z-index: 1;
    }
}
