:root {
    --navy: #0B1C3F;
    --blue: #1344A0;
    --blue-lt: #1B57D6;
    --gold: #ffcb08cf;
    --gold-lt: #020202;
    --white: #fff;
    --light: #F4F7FC;
    --muted: #6B7280;
    --border: #DDE3EF;
    --success: #14855F;
    --r: 16px;
    --shadow: 0 24px 64px rgba(11, 28, 63, .18), 0 4px 16px rgba(11, 28, 63, .08);
    --tr: .22s cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}


::-webkit-scrollbar {
    width: 5px
}

::-webkit-scrollbar-track {
    background: var(--light)
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px
}

/*  NAVBAR  */
.nav {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: .88rem 0
}



@keyframes bdot {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

.nav-links {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-size: .87rem;
    font-weight: 500;
    transition: var(--tr)
}

.nav-links a:hover {
    color: var(--blue)
}

.btn-back {
    display: flex;
    align-items: center;
    gap: .35rem;
    background: rgba(11, 28, 63, .06);
    border: 1.5px solid var(--border);
    color: var(--muted);
    font-size: .79rem;
    font-weight: 600;
    border-radius: 8px;
    padding: .38rem .88rem;
    text-decoration: none;
    transition: var(--tr)
}

.btn-back:hover {
    border-color: var(--navy);
    color: var(--navy)
}



@keyframes fc {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

.gcw {
    background: #ffc908da;
    border-radius: 5px;
    padding: 2px 8px;
}
.gcw a{
    color: #001c54;
}


/*  FAB ─ */
.fab {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 800;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: .72rem 1.4rem;
    font-size: .85rem;
    font-weight: 700;
    box-shadow: 0 8px 28px rgba(11, 28, 63, .3);
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    transition: var(--tr);
    transform: translateY(110px);
    opacity: 0;
    font-family: "Gilroy", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    letter-spacing: 0px;
}

.fab.show {
    transform: translateY(0);
    opacity: 1
}

.fab:hover {
    background: var(--blue);
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 32px rgba(19, 68, 160, .35)
}

.fab-dot {
    width: 10px;
    height: 10px;
    background: var(--gold);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0
}

.fab-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    animation: rp 1.6s ease-out infinite
}

@keyframes rp {
    0% {
        transform: scale(1);
        opacity: .8
    }

    100% {
        transform: scale(2.2);
        opacity: 0
    }
}


/*  SURVEY TOAST  */
.sv-toast {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 799;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.1rem 1.25rem;
    box-shadow: 0 18px 48px rgba(11, 28, 63, .16);
    max-width: 275px;
    display: none
}

@keyframes stin {
    from {
        opacity: 0;
        transform: translateX(40px)
    }

    to {
        opacity: 1;
        transform: translateX(0)
    }
}

.sv-toast.show {
    display: block;
    animation: stin .38s cubic-bezier(.34, 1.56, .64, 1)
}





.st-title {
    font-size: .87rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .25rem
}

.st-body {
    font-size: .77rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: .75rem
}

.st-btns {
    display: flex;
    gap: .45rem
}

.st-yes {
    flex: 1;
    background: var(--blue);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: .77rem;
    border-radius: 8px;
    padding: .4rem .75rem;
    cursor: pointer;
    transition: var(--tr)
}

.st-yes:hover {
    background: #0f35a0
}

.st-no {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--muted);
    font-size: .77rem;
    font-weight: 600;
    border-radius: 8px;
    padding: .4rem .68rem;
    cursor: pointer;
    transition: var(--tr)
}

.st-no:hover {
    border-color: var(--muted)
}

.st-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    font-size: .8rem
}

/*  MODAL SHELL  */
.modal-content {
    border: none;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.modal-backdrop.show {
    backdrop-filter: blur(5px)
}

@keyframes mup {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.97)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

.modal.show .modal-dialog {
    animation: mup .38s cubic-bezier(.34, 1.56, .64, 1) both
}

/*  SURVEY HEADER  */
.sv-hdr {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    padding: 1.6rem 2rem 1.3rem;
    position: relative;
    overflow: hidden
}

.sv-hdr::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 22px solid rgba(200, 151, 42, .18)
}

.sv-hdr-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .18rem
}

.sv-hdr-sub {
    font-size: .78rem;
    color: rgba(255, 255, 255, .68)
}

.sv-hdr-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, .12);
    border: none;
    color: rgba(255, 255, 255, .68);
    width: 29px;
    height: 29px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--tr);
    z-index: 5
}

.sv-hdr-close:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff
}

/*  SURVEY BODY  */
.sv-body {
    padding: 1.55rem 2rem;
    background: var(--white)
}

.pg-track {
    height: 4px;
    background: var(--border);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: .38rem
}

.pg-fill {
    height: 100%;
    background: var(--blue);
    border-radius: 100px;
    transition: width .42s ease;
    width: 0%
}

.pg-lbl {
    font-size: .7rem;
    color: var(--muted);
    text-align: right;
    margin-bottom: 1.15rem
}

/* question */
.q-blk {
    margin-bottom: 1.2rem
}

.q-lbl {
    font-size: .82rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: .58rem;
    display: flex;
    align-items: flex-start;
    gap: .38rem
}

.q-num {
    min-width: 21px;
    height: 21px;
    background: var(--blue);
    color: #fff;
    border-radius: 5px;
    font-size: .63rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: .06rem
}

/* chips */
.chip-g {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem
}

.chip-o input {
    display: none
}

.chip-o label {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    border: 1.5px solid var(--border);
    border-radius: 100px;
    padding: .35rem .88rem;
    font-size: .79rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    transition: var(--tr);
    user-select: none
}

.chip-o label:hover {
    border-color: var(--blue);
    color: var(--blue)
}

.chip-o input:checked+label {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    font-weight: 600
}

/* stars */
.star-g {
    display: flex;
    flex-direction: column;
    gap: .4rem
}

.star-o input {
    display: none
}

.star-o label {
    display: flex;
    align-items: center;
    gap: .68rem;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: .5rem .95rem;
    cursor: pointer;
    transition: var(--tr);
    font-size: .82rem;
    color: var(--muted)
}

.star-o label:hover {
    border-color: var(--blue);
    background: var(--light)
}

.star-o input:checked+label {
    border-color: var(--gold);
    background: rgba(200, 151, 42, .07);
    color: var(--navy);
    font-weight: 600
}

/* textarea */
.q-ta {
    width: 100%;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: .6rem .86rem;
    font-size: .84rem;
    color: var(--navy);
    resize: vertical;
    min-height: 74px;
    outline: none;
    transition: var(--tr);
    font-family: inherit
}

.q-ta:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(19, 68, 160, .09)
}

#acc-det {
    display: none;
    margin-top: .52rem
}

/* step pages */
.sp {
    display: none
}

.sp.on {
    display: block
}

/* nav */
.sv-nav {
    display: flex;
    gap: .68rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border)
}

.btn-prev {
    flex: 0 0 auto;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--muted);
    font-weight: 600;
    font-size: .87rem;
    padding: .63rem 1.1rem;
    transition: var(--tr)
}

.btn-prev:hover {
    border-color: var(--blue);
    color: var(--blue)
}

.btn-next,
.btn-review {
    flex: 1;
    background: var(--blue);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: .91rem;
    border-radius: 10px;
    padding: .67rem 1.2rem;
    transition: var(--tr)
}

.btn-next:hover,
.btn-review:hover {
    background: #0f35a0;
    transform: translateY(-1px)
}

.sv-scroll {
    max-height: 64vh;
    overflow-y: auto;
    padding-right: 2px
}

.sv-scroll::-webkit-scrollbar {
    width: 4px
}

.sv-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 100px
}

/*  REVIEW PANEL  */
.rv-panel {
    display: none;
    background: var(--white)
}

.rv-hdr {
    background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
    padding: 1.5rem 2rem 1.3rem;
    position: relative
}

.rv-hdr::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 22px solid rgba(200, 151, 42, .18)
}

.rv-hdr-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, .12);
    border: none;
    color: rgba(255, 255, 255, .68);
    width: 29px;
    height: 29px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--tr);
    z-index: 5
}

.rv-hdr-close:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff
}

.rv-hdr-title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: .18rem
}

.rv-hdr-sub {
    font-size: .78rem;
    color: rgba(255, 255, 255, .68)
}

.rv-body {
    padding: 1.4rem 2rem 1.6rem;
    max-height: 72vh;
    overflow-y: auto
}

.rv-body::-webkit-scrollbar {
    width: 4px
}

.rv-body::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 100px
}

.rv-intro {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: 1rem;
    line-height: 1.6
}

.rv-grid {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    margin-bottom: 1.25rem
}

.rv-row {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .68rem .9rem;
    border-radius: 10px;
    background: var(--light);
    border: 1px solid transparent;
    transition: var(--tr)
}

.rv-row:hover {
    border-color: var(--border);
    background: #eef1f8
}

.rv-ico {
    font-size: .95rem;
    flex-shrink: 0;
    margin-top: .06rem
}

.rv-label {
    font-size: .7rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .15rem
}

.rv-val {
    font-size: .84rem;
    font-weight: 600;
    color: var(--navy)
}

.rv-val.blank {
    color: var(--muted);
    font-weight: 400;
    font-style: italic
}

.rv-detail {
    font-size: .75rem;
    color: var(--muted);
    margin-top: .18rem
}

.rv-edit {
    font-size: .75rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 1rem
}

.rv-edit a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600
}

.rv-edit a:hover {
    text-decoration: underline
}

.btn-confirm {
    background: var(--blue);
    border: none;
    color: #fff;
    font-weight: 700;
    font-size: .92rem;
    border-radius: 10px;
    padding: .74rem 1.5rem;
    width: 100%;
    transition: var(--tr)
}

.btn-confirm:hover:not(:disabled) {
    background: #0f35a0;
    transform: translateY(-1px)
}

.btn-confirm:disabled {
    opacity: .55;
    cursor: default
}

.btn-back-edit {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--muted);
    font-weight: 600;
    font-size: .87rem;
    border-radius: 10px;
    padding: .68rem 1.5rem;
    width: 100%;
    margin-top: .55rem;
    transition: var(--tr)
}

.btn-back-edit:hover {
    border-color: var(--blue);
    color: var(--blue)
}

/*  THANK YOU PANEL  */
.ty-panel {
    display: none;
    padding: 2.6rem 2rem 2.2rem;
    text-align: center;
    background: var(--white);
    max-height: 75vh;
    overflow-y: auto
}

.ty-panel::-webkit-scrollbar {
    width: 4px
}

.ty-panel::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px
}

.ty-check {
    width: 70px;
    height: 70px;
    background: rgba(20, 133, 95, .1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    font-size: 2rem;
    color: var(--success);
    animation: pop .5s cubic-bezier(.34, 1.56, .64, 1)
}

@keyframes pop {
    from {
        transform: scale(0);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

.ty-title {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: .45rem
}

.ty-sub {
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.65;
    max-width: 310px;
    margin: 0 auto .5rem
}

.ty-sheet-note {
    font-size: .75rem;
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    margin-bottom: 1.3rem;
    font-weight: 600
}

/* answer summary card */
.ty-answers {
    background: var(--light);
    border-radius: 14px;
    padding: .2rem .2rem;
    margin-bottom: 1.4rem;
    text-align: left
}

.ty-ans-row {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .72rem 1rem;
    border-bottom: 1px solid var(--border)
}

.ty-ans-row:last-child {
    border-bottom: none
}

.ty-ans-ico {
    font-size: .95rem;
    flex-shrink: 0;
    margin-top: .05rem
}

.ty-ans-label {
    font-size: .68rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: .14rem
}

.ty-ans-val {
    font-size: .82rem;
    font-weight: 600;
    color: var(--navy)
}

.ty-ans-val.blank {
    color: var(--muted);
    font-style: italic;
    font-weight: 400
}

.btn-close-ty {
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: .7rem 2rem;
    font-weight: 700;
    font-size: .88rem;
    transition: var(--tr)
}

.btn-close-ty:hover {
    background: var(--blue)
}

/*  ERROR TOAST ─ */
.err-toast {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 2000;
    background: #fff1f0;
    border: 1px solid #ffa39e;
    border-radius: 10px;
    padding: .75rem 1rem;
    font-size: .8rem;
    color: #cf1322;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(220, 53, 69, .15);
    display: none;
    max-width: 300px
}

@media(max-width:768px) {

    .sv-hdr,
    .sv-body,
    .rv-hdr,
    .rv-body,
    .ty-panel {
        padding-left: 1.2rem;
        padding-right: 1.2rem
    }


    .fab {
        bottom: 18px;
        right: 18px
    }

    .nav-links {
        display: none !important
    }
}