/* ==========================================================================
   Registration — two-column sign-up

   Left is a fixed rail carrying the headline and the step list; right is the
   form. The old single 800px column left most of a desktop screen empty and
   gave the reader no sense of how much was left to fill in.

   The form is not run through jQuery Steps: the blade marks it
   data-wizard="false", so login.js keeps its validation and skips the step
   machinery. The numbered `section`s are therefore just headings and fields.

   Class names inside the two partials (reg-section, reg-nature-*) and the
   Bootstrap markup they emit are unchanged; this file restyles them.
   ========================================================================== */

:root {
    /* ink */
    --rg-ink:         #0a0f1a;
    --rg-ink-2:       #1e293b;
    --rg-muted:       #64748b;
    --rg-faint:       #94a3b8;
    /* lines and surfaces */
    --rg-line:        #e6eaf0;
    --rg-line-2:      #eef1f6;
    --rg-bg:          #f6f7f9;
    --rg-surface:     #ffffff;
    /* accent */
    --rg-accent:      #0e9f5a;
    --rg-accent-2:    #0b8149;
    --rg-accent-soft: #e9f8f0;
    --rg-accent-line: #a5e0c2;
    --rg-danger:      #d02b2b;
    /* rail */
    --rg-rail-ink:    #f1f5f9;
    --rg-rail-muted:  #93a5bd;
    /* shape */
    --rg-r:           18px;
    --rg-r-sm:        13px;
    --rg-r-xs:        11px;
    /* elevation, layered rather than one flat drop */
    --rg-e1:          0 1px 2px rgba(10, 15, 26, .04);
    --rg-e2:          0 1px 2px rgba(10, 15, 26, .04),
                      0 8px 16px -12px rgba(10, 15, 26, .18),
                      0 26px 50px -34px rgba(10, 15, 26, .28);
    --rg-ring:        0 0 0 4px rgba(14, 159, 90, .13);
    --rg-rail-w:      clamp(340px, 32vw, 470px);
    --rg-font:        "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont,
                      "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body.reg-page {
    background: var(--rg-bg) !important;
    font-family: var(--rg-font);
}

.reg-flush { padding: 0 !important; }
.reg-flush > .row { margin: 0; }

/* The layout pins its own logo and links to the viewport corners in white,
   which is invisible here. The blade lays the same pieces out itself. */
.reg-flush > .row > .tw-absolute { display: none; }

/* --------------------------------------------------------------------------
   Shell
   -------------------------------------------------------------------------- */
.reg-shell {
    display: flex;
    align-items: stretch;
    min-height: 100vh;
    font-family: var(--rg-font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--rg-ink-2);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Left rail
   ========================================================================== */
.reg-aside {
    position: relative;
    flex: 0 0 var(--rg-rail-w);
    width: var(--rg-rail-w);
    color: var(--rg-rail-ink);
    overflow: hidden;
    background:
        radial-gradient(120% 82% at 8% 4%,   rgba(20, 184, 120, .30) 0%, transparent 56%),
        radial-gradient(96% 74% at 96% 22%,  rgba(56, 189, 248, .16) 0%, transparent 60%),
        radial-gradient(120% 92% at 22% 104%, rgba(14, 159, 90, .34) 0%, transparent 62%),
        linear-gradient(168deg, #101c2c 0%, #0a121e 46%, #060b14 100%);
}

/* A fine grain over the gradient. Without it a large flat blend bands badly on
   an 8-bit panel, which is exactly the sort of thing that reads as cheap. */
.reg-aside::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .5;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
}

/* Hairline where the rail meets the form. */
.reg-aside::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .02));
}

.reg-aside-inner {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 46px 44px 46px;
    min-height: 100vh;
}

/* --- brand ---------------------------------------------------------------- */
.reg-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.reg-brand img {
    display: block;
    height: 32px;
    width: auto;
}

.reg-brand span,
.reg-brand:hover span,
.reg-brand:focus span {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.005em;
    color: #fff;
    text-decoration: none;
}

/* --- headline ------------------------------------------------------------- */
.reg-aside-copy h1 {
    margin: 0 0 14px;
    font-family: var(--rg-font);
    font-size: clamp(30px, 2.9vw, 42px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -.033em;
    color: #fff;
}

.reg-aside-copy p {
    margin: 0;
    max-width: 33ch;
    font-size: 15px;
    line-height: 1.62;
    color: var(--rg-rail-muted);
}

/* --- step list, on glass -------------------------------------------------- */
.reg-steps-wrap {
    position: relative;
    padding: 20px 20px 18px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--rg-r);
    background: rgba(255, 255, 255, .045);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

@supports (backdrop-filter: blur(1px)) {
    .reg-steps-wrap { backdrop-filter: blur(8px); }
}

.reg-steps-label {
    display: block;
    margin-bottom: 15px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--rg-rail-muted);
}

.reg-steps {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* The line the markers sit on. */
.reg-steps::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
}

.reg-step {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -.006em;
    color: var(--rg-rail-muted);
    transition: color .22s cubic-bezier(.4, 0, .2, 1);
}

/* Only ground already covered can be jumped back to. */
.reg-step.is-reachable { cursor: pointer; }
.reg-step.is-reachable:hover { color: #fff; }

.reg-step-num {
    position: relative;
    z-index: 1;
    flex: none;
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #101c2c;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16);
    font-size: 11px;
    font-weight: 700;
    color: var(--rg-rail-muted);
    transition: background .22s cubic-bezier(.4, 0, .2, 1),
                box-shadow .22s cubic-bezier(.4, 0, .2, 1),
                color .22s cubic-bezier(.4, 0, .2, 1);
}

.reg-step.is-on { color: #fff; }

.reg-step.is-on .reg-step-num {
    background: linear-gradient(180deg, #14b877, var(--rg-accent));
    box-shadow: 0 0 0 5px rgba(14, 159, 90, .16), 0 4px 12px -4px rgba(14, 159, 90, .9);
    color: #04150c;
}

.reg-step.is-done { color: #cbd8e6; }

.reg-step.is-done .reg-step-num {
    background: rgba(14, 159, 90, .16);
    box-shadow: inset 0 0 0 1px rgba(20, 184, 120, .6);
    color: #6fe0a8;
}

/* --- trust list ----------------------------------------------------------- */
.reg-trust {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.reg-trust li {
    position: relative;
    padding-left: 25px;
    font-size: 13px;
    letter-spacing: -.005em;
    color: var(--rg-rail-muted);
}

.reg-trust li::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 5px;
    width: 13px;
    height: 7px;
    border-left: 1.8px solid #14b877;
    border-bottom: 1.8px solid #14b877;
    transform: rotate(-45deg);
}

/* --- decorative receipt --------------------------------------------------- */
.reg-figure {
    margin-top: auto;
    perspective: 900px;
}

.reg-figure-card {
    display: grid;
    gap: 11px;
    width: 190px;
    padding: 20px 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .03));
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .85), inset 0 1px 0 rgba(255, 255, 255, .12);
    transform: rotateX(6deg) rotateY(-11deg);
}

@supports (backdrop-filter: blur(1px)) {
    .reg-figure-card { backdrop-filter: blur(6px); }
}

.reg-figure-bar {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .19);
}

.reg-figure-bar--head { width: 58%; height: 9px; background: rgba(255, 255, 255, .38); }
.reg-figure-bar--short { width: 62%; }

.reg-figure-rule {
    display: block;
    height: 1px;
    margin: 3px 0;
    background: rgba(255, 255, 255, .13);
}

.reg-figure-bar--total {
    width: 74%;
    height: 11px;
    background: linear-gradient(90deg, #14b877, rgba(20, 184, 120, .28));
}

/* ==========================================================================
   Right column
   ========================================================================== */
.reg-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--rg-bg);
}

.reg-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 17px 44px;
    border-bottom: 1px solid var(--rg-line);
    background: rgba(246, 247, 249, .82);
}

@supports (backdrop-filter: blur(1px)) {
    .reg-topbar { backdrop-filter: saturate(150%) blur(10px); }
}

.reg-topbar-hint {
    margin-right: auto;
    font-size: 13.5px;
    letter-spacing: -.005em;
    color: var(--rg-muted);
}

.reg-topbar-right {
    display: flex;
    align-items: center;
    gap: 9px;
}

.reg-signin {
    display: inline-flex;
    align-items: center;
    height: 38px;
    padding: 0 18px;
    border: 1px solid var(--rg-line);
    border-radius: 999px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 700;
    letter-spacing: -.005em;
    color: var(--rg-ink);
    text-decoration: none;
    box-shadow: var(--rg-e1);
    transition: border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .1s ease;
}

.reg-signin:hover,
.reg-signin:focus {
    border-color: var(--rg-accent-line);
    color: var(--rg-accent-2);
    text-decoration: none;
    box-shadow: 0 6px 14px -8px rgba(10, 15, 26, .35);
}

.reg-signin:active { transform: translateY(1px); }

/* The shared language picker is built for the layout's dark gradient: its
   summary carries `tw-text-white`, invisible on this light bar. Restyled here
   to match the Sign in pill rather than forked into a copy. */
.reg-topbar-right > details { margin: 0 !important; }

.reg-topbar-right > details > summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--rg-line);
    border-radius: 999px;
    background: #fff;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--rg-ink) !important;
    cursor: pointer;
    list-style: none;
    box-shadow: var(--rg-e1);
    transition: border-color .16s ease, color .16s ease;
}

.reg-topbar-right > details > summary::-webkit-details-marker { display: none; }

.reg-topbar-right > details > summary:hover {
    border-color: var(--rg-accent-line);
    color: var(--rg-accent-2) !important;
}

.reg-main-inner {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 44px 96px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.reg-section {
    position: relative;
    margin-bottom: 22px;
    padding: 32px 34px 14px;
    background: var(--rg-surface);
    border: 1px solid var(--rg-line);
    border-radius: var(--rg-r);
    box-shadow: var(--rg-e2);
    scroll-margin-top: 96px;
    animation: rg-rise .5s cubic-bezier(.22, .8, .3, 1) both;
}

/* One section at a time once the wizard is running. The attribute alone would
   do it, but Bootstrap sets `display` on enough things that it is worth being
   explicit here. */
.reg-section[hidden] { display: none !important; }

@keyframes rg-rise {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

.reg-section-head {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--rg-line-2);
}

.reg-section-num {
    flex: none;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff, var(--rg-accent-soft));
    border: 1px solid var(--rg-accent-line);
    box-shadow: 0 2px 6px -3px rgba(14, 159, 90, .5);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--rg-accent-2);
}

.reg-section-head h2 {
    margin: 3px 0 4px;
    font-family: var(--rg-font);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.026em;
    color: var(--rg-ink);
}

.reg-section-head p {
    margin: 0;
    max-width: 62ch;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--rg-muted);
}

/* ==========================================================================
   Nature cards
   ========================================================================== */
.reg-nature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.reg-nature-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 17px 18px;
    /* It is a `label`, so it must not inherit field-label styling. */
    text-transform: none;
    letter-spacing: normal;
    background: #fff;
    border: 1px solid var(--rg-line);
    border-radius: var(--rg-r-sm);
    font-weight: 400;
    cursor: pointer;
    box-shadow: var(--rg-e1);
    transition: border-color .16s ease, box-shadow .16s ease, transform .12s ease, background .16s ease;
}

.reg-nature-card:hover {
    border-color: var(--rg-accent-line);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -16px rgba(10, 15, 26, .5);
}

.reg-nature-card:active { transform: translateY(0); }

/* The radio still carries the value and the required rule; it just is not
   what the reader clicks. */
.reg-nature-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.reg-nature-card.is-on {
    border-color: var(--rg-accent);
    background: linear-gradient(180deg, var(--rg-accent-soft) 0%, #fff 58%);
    box-shadow: 0 0 0 3px rgba(14, 159, 90, .1), 0 12px 24px -18px rgba(14, 159, 90, .8);
}

/* Keyboard users get the same ring the mouse users see. */
.reg-nature-card input[type="radio"]:focus-visible + .reg-nature-text {
    outline: 2px solid var(--rg-accent);
    outline-offset: 4px;
    border-radius: 5px;
}

.reg-nature-text {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
}

.reg-nature-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: -.014em;
    color: var(--rg-ink);
}

/* The icon gets a tile of its own rather than floating loose next to text. */
.reg-nature-ico {
    flex: none;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--rg-accent-soft);
    border: 1px solid var(--rg-accent-line);
    font-size: 12.5px;
    color: var(--rg-accent-2);
    transition: background .16s ease, color .16s ease;
}

.reg-nature-card.is-on .reg-nature-ico {
    background: linear-gradient(180deg, #14b877, var(--rg-accent));
    border-color: transparent;
    color: #fff;
}

.reg-nature-blurb {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--rg-muted);
}

.reg-nature-tick {
    flex: none;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(180deg, #14b877, var(--rg-accent));
    color: #fff;
    font-size: 10px;
    opacity: 0;
    transform: scale(.6);
    box-shadow: 0 4px 10px -4px rgba(14, 159, 90, .9);
    transition: opacity .18s ease, transform .22s cubic-bezier(.3, 1.4, .5, 1);
}

.reg-nature-card.is-on .reg-nature-tick { opacity: 1; transform: scale(1); }

/* --- what gets configured -------------------------------------------------- */
.reg-nature-side {
    margin-bottom: 22px;
    padding: 17px 19px;
    background: linear-gradient(180deg, #fbfcfd, var(--rg-bg));
    border: 1px solid var(--rg-line-2);
    border-radius: var(--rg-r-sm);
}

.reg-nature-side h5 {
    margin: 0 0 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--rg-faint);
}

.reg-nature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
}

.reg-nature-list.is-hidden { display: none; }

.reg-nature-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--rg-ink-2);
}

.reg-nature-list li .fa-check {
    margin-top: 3px;
    font-size: 9px;
    color: var(--rg-accent);
}

.reg-nature-note {
    margin: 13px 0 0;
    font-size: 12.5px;
    color: var(--rg-faint);
}

/* ==========================================================================
   Fields

   The partial emits Bootstrap input-groups: a grey `input-group-addon` box
   welded to the left of the control. That two-tone box is the single most
   dated thing on the page, so the addon is lifted out of the flow and floated
   inside the field as a plain icon, and the control gets the room back.
   ========================================================================== */
.reg-section .row { margin-left: -9px; margin-right: -9px; }
.reg-section [class*="col-md-"] { padding-left: 9px; padding-right: 9px; }

.reg-section .form-group { margin-bottom: 20px; }

/* Scoped to the field label specifically. A nature card is itself a `label`,
   and a blanket rule here restyled every word inside one. */
.reg-section .form-group > label {
    display: block;
    margin-bottom: 7px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -.004em;
    color: var(--rg-ink-2);
}

/* Bootstrap floats `.input-group .form-control`, so a plain block wrapper
   collapses to nothing and the absolute icon has no box to centre against.
   Flex gives the wrapper a real height and keeps the float out of it. */
.reg-section .input-group {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.reg-section .input-group > .form-control,
.reg-section .input-group > .select2-container {
    float: none;
    flex: 1 1 auto;
    min-width: 0;
}

.reg-section .input-group-addon {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 3;
    width: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 0;
    font-size: 13px;
    color: var(--rg-faint);
    pointer-events: none;
    transition: color .16s ease;
}

.reg-section .form-control {
    display: block;
    width: 100%;
    height: 50px;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid var(--rg-line);
    border-radius: var(--rg-r-xs);
    box-shadow: inset 0 1px 2px rgba(10, 15, 26, .035);
    font-family: var(--rg-font);
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: -.006em;
    color: var(--rg-ink);
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.reg-section .input-group > .form-control { padding-left: 46px; }

.reg-section .form-control::placeholder {
    color: var(--rg-faint);
    font-weight: 400;
}

.reg-section .form-control:hover { border-color: #d6dde7; }

.reg-section .form-control:focus {
    border-color: var(--rg-accent);
    box-shadow: var(--rg-ring), inset 0 1px 2px rgba(10, 15, 26, .02);
    outline: none;
}

/* The icon lights up with the field it belongs to. */
.reg-section .input-group:focus-within .input-group-addon { color: var(--rg-accent); }

/* File input: a drop-zone rather than a bare browser control. */
.reg-section input[type="file"] {
    display: block;
    width: 100%;
    padding: 14px 15px;
    background: linear-gradient(180deg, #fbfcfd, var(--rg-bg));
    border: 1.5px dashed #d6dde7;
    border-radius: var(--rg-r-xs);
    font-size: 13px;
    color: var(--rg-muted);
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease;
}

.reg-section input[type="file"]:hover {
    border-color: var(--rg-accent-line);
    background: var(--rg-accent-soft);
}

.reg-section .text-danger { font-size: 12.5px; color: var(--rg-danger); }
.reg-section .help-block { font-size: 12.5px; color: var(--rg-muted); }

/* Checkbox rows read as one line, not a stack. */
.reg-section .input-check-box {
    width: 16px;
    height: 16px;
    margin-right: 9px;
    vertical-align: -3px;
    accent-color: var(--rg-accent);
}

.reg-section .form-group > label:has(> .input-check-box) {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--rg-ink-2);
}

.reg-section .terms_condition {
    font-weight: 700;
    color: var(--rg-accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

/* --- Select2, on currency / country / timezone ----------------------------- */
.reg-section .select2-container { width: 100% !important; }

.reg-section .select2-container .select2-selection--single {
    height: 50px;
    background: #fff;
    border: 1px solid var(--rg-line);
    border-radius: var(--rg-r-xs);
    box-shadow: inset 0 1px 2px rgba(10, 15, 26, .035);
    transition: border-color .16s ease, box-shadow .16s ease;
}

.reg-section .input-group .select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 46px;
}

.reg-section .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    padding-left: 15px;
    padding-right: 30px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--rg-ink);
}

.reg-section .select2-container .select2-selection--single .select2-selection__placeholder { color: var(--rg-faint); }
.reg-section .select2-container .select2-selection--single .select2-selection__arrow { height: 48px; right: 8px; }

.reg-section .select2-container--focus .select2-selection--single,
.reg-section .select2-container--open .select2-selection--single {
    border-color: var(--rg-accent);
    box-shadow: var(--rg-ring);
}

/* --- jQuery validate ------------------------------------------------------- */
.reg-section .form-control.error,
.reg-section input.error {
    border-color: var(--rg-danger);
    box-shadow: 0 0 0 4px rgba(208, 43, 43, .1);
}

.reg-section label.error {
    margin-top: 6px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: -.005em;
    text-transform: none;
    color: var(--rg-danger);
}

/* ==========================================================================
   Submit
   ========================================================================== */
.reg-submit {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    margin-top: 4px;
    padding: 24px 28px;
    background: var(--rg-surface);
    border: 1px solid var(--rg-line);
    border-radius: var(--rg-r);
    box-shadow: var(--rg-e2);
    animation: rg-rise .5s cubic-bezier(.22, .8, .3, 1) .22s both;
}

.reg-submit [hidden] { display: none !important; }

/* Continue and Register are the same button in two moods. */
.reg-btn-go {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 30px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #16b06a 0%, var(--rg-accent) 52%, var(--rg-accent-2) 100%);
    font-family: var(--rg-font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -.008em;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 12px 26px -12px rgba(14, 159, 90, .9), inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: box-shadow .18s ease, transform .1s ease, filter .18s ease;
}

.reg-btn-go:hover {
    filter: brightness(1.05);
    box-shadow: 0 18px 34px -14px rgba(14, 159, 90, .95), inset 0 1px 0 rgba(255, 255, 255, .22);
}

.reg-btn-go:active { transform: translateY(1px); }

.reg-btn-go svg {
    width: 17px;
    height: 17px;
    transition: transform .2s cubic-bezier(.3, 1.2, .5, 1);
}

.reg-btn-go:hover svg { transform: translateX(3px); }
.reg-btn-go#reg_finish:hover svg { transform: none; }

.reg-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 52px;
    padding: 0 22px;
    border: 1px solid var(--rg-line);
    border-radius: 999px;
    background: #fff;
    font-family: var(--rg-font);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -.006em;
    color: var(--rg-ink-2);
    cursor: pointer;
    box-shadow: var(--rg-e1);
    transition: border-color .16s ease, color .16s ease, transform .1s ease;
}

.reg-btn-ghost:hover {
    border-color: #d6dde7;
    color: var(--rg-ink);
}

.reg-btn-ghost:active { transform: translateY(1px); }

.reg-btn-ghost svg {
    width: 16px;
    height: 16px;
    transition: transform .2s cubic-bezier(.3, 1.2, .5, 1);
}

.reg-btn-ghost:hover svg { transform: translateX(-3px); }

.reg-progress {
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--rg-faint);
    font-variant-numeric: tabular-nums;
}

.reg-submit-note {
    font-size: 13.5px;
    letter-spacing: -.005em;
    color: var(--rg-muted);
}

.reg-submit-note a {
    font-weight: 700;
    color: var(--rg-accent-2);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1.5px;
}

/* ==========================================================================
   Narrow screens — the rail becomes a header
   ========================================================================== */
@media (max-width: 991px) {
    .reg-shell { display: block; min-height: 0; }

    .reg-aside { flex: none; width: auto; }

    .reg-aside-inner {
        position: static;
        min-height: 0;
        gap: 20px;
        padding: 30px 22px 32px;
    }

    .reg-aside-copy h1 { font-size: 28px; }
    .reg-aside-copy p { max-width: none; font-size: 14.5px; }

    /* Both repeat what is about to be read anyway; on a phone that is a
       screenful of nothing before the first field. */
    .reg-steps-wrap,
    .reg-trust,
    .reg-figure { display: none; }

    .reg-topbar { padding: 13px 20px; }
    .reg-topbar-hint { display: none; }
    .reg-main-inner { padding: 24px 18px 68px; }
    .reg-section { padding: 24px 20px 8px; border-radius: 15px; }
    .reg-section-head { gap: 12px; margin-bottom: 22px; padding-bottom: 18px; }
    .reg-section-head h2 { font-size: 18px; }
    .reg-nature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .reg-submit { padding: 18px; }
    .reg-submit button { width: 100%; justify-content: center; }
    .reg-section .row { margin-left: 0; margin-right: 0; }
    .reg-section [class*="col-md-"] { padding-left: 0; padding-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .reg-section,
    .reg-submit { animation: none !important; }

    .reg-nature-card,
    .reg-nature-tick,
    .reg-nature-ico,
    .reg-step,
    .reg-step-num,
    .reg-submit button,
    .reg-submit button svg { transition: none !important; }

    .reg-nature-card:hover { transform: none; }
}
