﻿body {
}

.same-address-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toggle-checkbox {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

    .toggle-checkbox input[type="checkbox"] {
        -webkit-appearance: none;
        appearance: none;
        width: 52px;
        height: 28px;
        margin: 0;
        border-radius: 999px;
        background: #d9dee7;
        border: 1px solid #c8d0db;
        position: relative;
        cursor: pointer;
        transition: all 0.25s ease;
        outline: none;
        vertical-align: middle;
    }

        .toggle-checkbox input[type="checkbox"]::before {
            content: "";
            position: absolute;
            top: 2px;
            left: 2px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
            transition: transform 0.25s ease;
        }

        .toggle-checkbox input[type="checkbox"]:checked {
            background: #0d6efd; /* change to your theme color */
            border-color: #0d6efd;
        }

            .toggle-checkbox input[type="checkbox"]:checked::before {
                transform: translateX(24px);
            }

        .toggle-checkbox input[type="checkbox"]:focus {
            box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.2);
        }

.toggle-text {
    margin-bottom: 0;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

/* Remove spinner arrows - Chrome, Edge, Safari */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove spinner arrows - Firefox */
input[type=number] {
    -moz-appearance: textfield;
}
/* darken background and lock page */
.captcha-modal-backdrop {
    position: fixed;
    inset: 0; /* top:0 right:0 bottom:0 left:0 */
    background-color: rgba(0, 0, 0, 0.4); /* greyed out */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999; /* above everything */
}

/* the white box */
.captcha-modal-dialog {
    background: #fff;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 360px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    font-family: inherit;
}

.form-check-input {
    border: none;
}

.chkSpace label {
    margin-left: 10px;
    cursor: pointer; /* optional, makes label clickable */
}

/* title text */
.captcha-modal-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

/* sub text under captcha */
.captcha-hint {
    margin-top: 0.75rem;
    font-size: .8rem;
    color: #666;
    line-height: 1.2;
}

/* when hidden, we fully remove it visually but keep it in DOM */
.captcha-modal-backdrop.is-hidden {
    display: none;
}


body {
    background: #f7f7fb;
}

.card {
    border-radius: 1rem;
}

.req:after {
    content: " *";
    color: #dc3545;
}

.form-text.error {
    color: #dc3545;
    font-size: .875rem;
}

.sticky-actions {
    position: sticky;
    bottom: 0;
    background: #ffffffcc;
    backdrop-filter: blur(4px);
}

.card-title {
    font-weight: 700; /* keep it bold (or try 600 for semi-bold) */
    color: black; /* use Bootstrap’s primary color */
}

.loading-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    z-index: 2000;
}

.loading-card {
    background: #fff;
    /*background: #dc3545;*/
    padding: 16px 20px;
    border-radius: .75rem;
}

.step-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #6c757d; /* Bootstrap secondary */
    margin-bottom: .25rem;
}

label.required::after {
    content: " *";
    color: red;
}

/* Target only your custom checkbox */
.custom-switch[type="checkbox"] {
    width: 2.5em;
    height: 1.3em;
    background-color: #e9ecef;
    border-radius: 1.5em;
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
}

    .custom-switch[type="checkbox"]::before {
        content: "";
        position: absolute;
        top: 2px;
        left: 2px;
        width: 1em;
        height: 1em;
        background-color: white;
        border-radius: 50%;
        transition: transform 0.3s ease;
    }

.custom-switch:checked {
    background-color: #0d6efd; /* Bootstrap blue */
}

    .custom-switch:checked::before {
        transform: translateX(1.2em);
    }
#recaptchaContainer {
    display: inline-block;
    vertical-align: top;
    /* margin-left: 1rem;*/
}

.vr {
    width: 1px;
    height: 100%;
    background-color: #dee2e6;
    margin: 0 1rem;
    opacity: 0.7;
}

/* ==== PGW-Themed Progress Bar (contained, Bootstrap-friendly) ==== */
/* Brand palette (tweak if you have exact PGW hexes) */
:root {
    --pgw-navy: #003a6b; /* deep navy */
    --pgw-blue: #00a1de; /* light/bright blue */
    --pgw-blue-20: rgba(0, 161, 222, 0.2);
    --pgw-navy-08: rgba(0, 58, 107, 0.08);
}

/* Sticky progress bar that starts below the paragraph, then sticks when scrolled */
/* Base sticky behavior (unchanged) */
.gr-progress-sticky {
    position: sticky;
    top: 10px;
    z-index: 1030;
    /*    background: linear-gradient(to bottom, #ffffff 80%, rgba(255,255,255,0));*/
    background: transparent;
    padding-top: .25rem;
    padding-bottom: .5rem;
    transition: box-shadow .3s ease, transform .3s ease, background .2s ease;
}

    /* When it becomes fixed, span full viewport but keep inner width = .container */
    .gr-progress-sticky.is-fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: #f7f7fb;
        box-shadow: 0 2px 6px rgba(0,0,0,.10);
        /*background: #fff;*/ /* solid so it doesn’t “ghost” over content */
        padding-top: .5rem;
        padding-bottom: .5rem;
    }

/* Keep inner content identical to your form width at all times */
.gr-progress-inner.container {
    /* no extra rules needed: Bootstrap’s container controls width */
}

/* Optional: match your container spacing even when fixed */
.gr-progress-sticky.is-fixed .gr-progress-inner.container {
    margin-top: 0; /* remove the extra my-3 vertical gap when fixed */
}

/* Card styling to feel native with Bootstrap */
.gr-progress-card {
    border: 1px solid var(--pgw-navy-08);
    border-radius: 0.75rem;
}

/* Title + count */
.gr-title {
    font: 600 1rem/1.25 system-ui, Segoe UI, Roboto, Arial, sans-serif;
    color: #1f2937; /* neutral slate */
}

.gr-count {
    color: #6c757d;
    font: 500 .9rem/1 system-ui, Segoe UI, Roboto, Arial, sans-serif;
}


/* Track */
.gr-progress {
    height: 14px;
    background: #eef3f7;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}

/* Fill (animated, gradient) */
.gr-bar {
    height: 100%;
    color: #fff;
    text-align: center;
    font: 700 .72rem/14px system-ui, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: .02em;
    /* PGW gradient + glossy sheen */
    background: linear-gradient(90deg, var(--pgw-navy) 0%, var(--pgw-blue) 100%);
    box-shadow: inset 0 0 12px var(--pgw-blue-20), 0 1px 2px rgba(0,0,0,.06);
    border-radius: 999px;
    transition: width .35s ease, background-position .35s ease, color .2s ease;
    background-size: 200% 100%;
    background-position: 0% 50%;
}

/* Subtle shimmer while progressing */
@media (prefers-reduced-motion: no-preference) {
    .gr-bar {
        animation: grShift 3.5s linear infinite;
    }

    @keyframes grShift {
        0% {
            background-position: 0% 50%;
        }

        100% {
            background-position: 100% 50%;
        }
    }
}

/* Accessibility helpers */
.gr-visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* Invalid focus ring used by your JS marking */
.gr-invalid {
    outline: 2px solid #dc3545 !important;
    outline-offset: 2px;
}

/* Card and bar styles (you already have) */
#gr-progress-wrap .gr-progress-card {
    max-width: 100%;
    margin: 0 auto;
}

/* ensure the sticky bar doesn’t get hidden behind any fixed nav (tweak if you add one) */
@media (min-width: 992px) {
    .gr-progress-sticky {
        top: 0;
    }
}

/* When the bar is scrolled past, pin it to the very top */
.gr-progress-sticky.is-fixed {
    position: fixed;
    top: 0; /* sit at the very top */
    left: 0;
    right: 0;
    z-index: 1030;
    padding-top: .5rem;
    padding-bottom: .5rem;
    background: linear-gradient(to bottom, #ffffff 85%, rgba(255,255,255,0));
    box-shadow: 0 2px 6px rgba(0,0,0,.10);
}

/* keep it centered and contained even when fixed */
#gr-progress-wrap.is-fixed .gr-progress-card {
    max-width: 980px;
    margin: 0 auto;
}


/* === PGW Full-Screen Submitting Overlay (.gr-overlay) === */
.gr-overlay {
    position: fixed;
    inset: 0;
    display: none; /* hidden until JS shows it */
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.85); /* light white/grey haze */
    backdrop-filter: blur(3px);
    z-index: 5000; /* above modals, nav, everything */
}

/* White card in the middle */
.gr-overlay-card {
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    text-align: center;
    max-width: 320px;
    width: 90%;
    box-shadow: 0 20px 45px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.06);
    font-family: inherit;
}

    /* Optional: slightly larger, smoother spinner */
    .gr-overlay-card .spinner-border {
        width: 3rem;
        height: 3rem;
        border-width: 0.3rem;
    }

