
@charset "UTF-8";
@import url('css/fonts.css');

/* Global theme: put in wwwroot/css and link AFTER bootstrap.css in index.html / App.razor.
   Requires Bootstrap 5.3+ and Bootstrap Icons (bi-*). */


:root {
    --bs-font-sans-serif: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Primary = rgb(110, 85, 231) */
    --bs-primary: #6E55E7;
    --bs-primary-rgb: 110, 85, 231;
    --bs-primary-text-emphasis: #2B1470;
    --bs-primary-bg-subtle: #E9E1FF;
    --bs-primary-border-subtle: #E9E1FF;

    --bs-body-color: #1A1033;
    --bs-secondary-color: #655D7E;
    --bs-link-color: #6E55E7;
}

.btn-primary {
    --bs-btn-bg: #6E55E7;
    --bs-btn-border-color: #6E55E7;
    --bs-btn-hover-bg: #5F46DB;
    --bs-btn-hover-border-color: #5F46DB;
    --bs-btn-active-bg: #5238C9;
    --bs-btn-active-border-color: #5238C9;
    --bs-btn-disabled-bg: #6E55E7;
    --bs-btn-disabled-border-color: #6E55E7;
    --bs-btn-focus-shadow-rgb: 110, 85, 231;
}

.form-control:focus,
.form-check-input:focus {
    border-color: #6E55E7;
    box-shadow: 0 0 0 .25rem rgba(110, 85, 231, .16);
}

.form-check-input:checked {
    background-color: #6E55E7;
    border-color: #6E55E7;
}

/* ---------- Shared screen pieces (default / tablet and up) ---------- */

.kyc-screen {
    height: 100%;
    min-height: 0;
    max-width: 480px;
    margin: 0 auto;
    flex: 1;
    min-width: 0;
}

.kyc-logo {
    width: 50px;
    height: 50px;
}

.kyc-seg {
    flex: 1;
    height: 4px;
    border-radius: 2px;
}

.kyc-hero {
    padding: 1.5rem;
}

.kyc-hero-title {
    font-size: 1.5rem;
    line-height: 1.2;
}

.kyc-eyebrow {
    font-size: .75rem;
    letter-spacing: .08em;
    color: #F6F2FF; /* 4.6:1 on #6E55E7 */
}

.kyc-on-primary {
    color: #F6F2FF;
}

.kyc-section-title {
    font-size: 1rem;
    margin: 1.5rem 0 .75rem;
}

.kyc-item {
    gap: 1rem;
    padding: .5rem 1rem;
}

.kyc-item-title {
    font-size: 1rem;
}

.kyc-item-text {
    font-size: .875rem;
}

.kyc-icon {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
}

.kyc-cta {
    height: 56px;
    /* box-shadow: 0 8px 20px rgba(110, 85, 231, .28); */
}

/* Scroll hint — floats over the bottom of the scroll area only when content is cut off */
.kyc-scroll-zone {
    position: relative;
}

.kyc-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 8px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    border: 1px solid var(--bs-primary-border-subtle);
    background: #fff;
    color: var(--bs-primary);
    font-size: .8rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(26, 16, 51, .16);
    cursor: pointer;
    z-index: 6;
    white-space: nowrap;
    animation: kyc-hint-bounce 1.6s ease-in-out infinite;
}

.kyc-scroll-hint .bi {
    font-size: .9rem;
    line-height: 1;
}

.kyc-scroll-zone .has-more-below {
    mask-image: linear-gradient(to bottom, #000 88%, transparent 100%);
}

@keyframes kyc-hint-bounce {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .kyc-scroll-hint {
        animation: none;
    }
}

/* ---------- Phones: smaller type, tighter spacing, shorter page ---------- */

@media (max-width: 575.98px) {
    /* Bootstrap sizes are rem-based, so shrinking the root scales every screen by ~12%.
       Inputs stay >= 16px (form-control-lg = 1.25rem = 17.5px) so iOS doesn't zoom on focus. */
    html {
        font-size: 14px;
    }

    .kyc-logo {
        width: 38px;
        height: 38px;
    }

    .kyc-hero {
        padding: 1rem;
    }

    .kyc-hero-title {
        font-size: 1.2rem;
    }

    .kyc-eyebrow {
        font-size: .68rem;
    }

    .kyc-section-title {
        font-size: .95rem;
        margin: 1rem 0 .5rem;
    }

    .kyc-item {
        gap: .75rem;
        padding: .45rem .75rem;
    }

    .kyc-item-title {
        font-size: .93rem;
        line-height: 1.25;
    }

    .kyc-item-text {
        font-size: .8rem;
        line-height: 1.3;
    }

    .kyc-icon {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .kyc-cta {
        height: 50px;
    }
}

html, body {
    font-family: Onest, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.btn-primary {
    border : none;
}

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;
}



.progress-10 {
    width: 120px;
    height: 60px;
    border-radius: 200px 200px 0 0;
    -webkit-mask: repeating-radial-gradient(farthest-side at bottom,#0000 0,#000 1px 12%,#0000 calc(12% + 1px) 20%);
    background: radial-gradient(farthest-side at bottom, #6e55e7 0 95%,#0000 0) bottom/0% 0% no-repeat #ddd;
    animation: p10 2s infinite steps(6);
}

@keyframes p10 {
    100% {
        background-size: 120% 120%
    }
}

/* ---------- KYC motion: framer-motion-like view + layout smoothing ---------- */
/* Screen enter: applied on a @key-ed wrapper so every _state switch replays it.
   Persistent chrome (logo, CTA) is smoothed separately by the FLIP observer. */
.kyc-view {
    animation: kyc-view-in .34s cubic-bezier(.22, .8, .3, 1) both;
    will-change: opacity, transform;
}

@keyframes kyc-view-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(.985);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Generic appear for conditionally rendered bits (step label, hints). */
.kyc-anim-in {
    animation: kyc-anim-in .28s cubic-bezier(.22, .8, .3, 1) both;
}

@keyframes kyc-anim-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* Smooth expand/collapse for unknown-height blocks (consent error, step rows).
   Grid-rows animates the push itself, so siblings glide instead of snapping. */
.kyc-collapse {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows .32s cubic-bezier(.22, .8, .3, 1),
                opacity .22s ease;
}

.kyc-collapse.open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.kyc-collapse > .kyc-collapse-inner {
    overflow: hidden;
    min-height: 0;
}

/* Validation slots reserve space (no layout shift at all); only the text fades/slides. */
.kyc-val-slot {
    height: 1.2rem;
    max-height: 1.2rem;
    overflow: visible;
}

.kyc-val-msg {
    animation: kyc-anim-in .22s cubic-bezier(.22, .8, .3, 1) both;
}

/* FLIP-animated elements (JS sets transform via WAAPI). Hint only, no visual change. */
[data-layout] {
    will-change: transform;
}

/* Hide scrollbar but keep scrolling (content is never cropped). */
.kyc-noscroll {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.kyc-noscroll::-webkit-scrollbar {
    display: none;
}

/* Gentle stagger for checklist / requirement rows entering with the view. */
.kyc-stagger > * {
    animation: kyc-anim-in .3s cubic-bezier(.22, .8, .3, 1) both;
}

.kyc-stagger > *:nth-child(2) { animation-delay: .04s; }
.kyc-stagger > *:nth-child(3) { animation-delay: .08s; }
.kyc-stagger > *:nth-child(4) { animation-delay: .12s; }
.kyc-stagger > *:nth-child(5) { animation-delay: .16s; }
.kyc-stagger > *:nth-child(n+6) { animation-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
    .kyc-view,
    .kyc-anim-in,
    .kyc-val-msg,
    .kyc-stagger > *,
    .kyc-terms-dialog {
        animation: none;
    }

    .kyc-collapse {
        transition: none;
    }
}

.kyc-terms-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1055;
    background: rgba(26, 16, 51, 0.45);
    display: flex;
}

.kyc-terms-dialog {
    background: #fff;
    width: 100%;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: kyc-terms-rise 0.28s ease-out;
}

@media (min-width: 992px) {
    .kyc-terms-backdrop {
        align-items: center;
        justify-content: center;
        padding: 1.5rem;
    }

    .kyc-terms-dialog {
        width: min(720px, 100%);
        height: auto;
        max-height: 80vh;
        border-radius: 1rem;
        box-shadow: 0 24px 70px rgba(26, 16, 51, 0.25);
    }
}

@keyframes kyc-terms-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.kyc-terms-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.75rem;
    flex-shrink: 0;
}

.kyc-terms-zone {
    flex-grow: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.kyc-terms-body {
    flex-grow: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 1rem;
}

.kyc-terms-section-body p,
.kyc-terms-section-body ul {
    margin-bottom: 0.75rem;
}

.kyc-terms-section-body p:last-child,
.kyc-terms-section-body ul:last-child {
    margin-bottom: 0;
}

.kyc-terms-section-body ul {
    padding-left: 1.25rem;
}

.kyc-terms-section-body ul ul {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.kyc-terms-section-body li {
    margin-bottom: 0.25rem;
}

.kyc-terms-preamble {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.kyc-terms-footer {
    flex-shrink: 0;
    background: #fff;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
}
