[data-general-registration-v10-4] {
    --grx-navy: #071f45;
    --grx-blue: #0b6fdc;
    --grx-blue-2: #1594f6;
    --grx-yellow: #ffd331;
    --grx-ink: #10233f;
    --grx-muted: #66768a;
    --grx-line: rgba(23, 73, 130, .14);
    --grx-danger: #c83f4d;
    --grx-success: #168153;
}

.grx-page {
    position: relative;
    min-height: calc(100vh - 72px);
    overflow: hidden;
    padding: clamp(1rem, 2vw, 1.6rem) 0 3.5rem;
    color: var(--grx-ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(30, 126, 225, .16), transparent 34rem),
        radial-gradient(circle at 92% 16%, rgba(255, 211, 49, .18), transparent 30rem),
        linear-gradient(180deg, #f8fbff 0%, #edf5fd 100%);
}

.grx-orb { position: absolute; border-radius: 999px; pointer-events: none; filter: blur(2px); }
.grx-orb-a { width: 18rem; height: 18rem; left: -9rem; top: 18rem; background: rgba(16, 116, 217, .11); }
.grx-orb-b { width: 22rem; height: 22rem; right: -11rem; top: 34rem; background: rgba(255, 211, 49, .14); }
.grx-shell { position: relative; z-index: 1; }

.grx-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, .85fr);
    gap: 1.25rem;
    align-items: stretch;
    padding: clamp(1.35rem, 3vw, 2.35rem);
    margin-bottom: 1rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 28px;
    background: linear-gradient(125deg, #061d42 0%, #0b4f92 58%, #0d75c7 100%);
    box-shadow: 0 24px 64px rgba(7,31,69,.22);
}
.grx-eyebrow { display: inline-flex; align-items: center; padding: .42rem .72rem; border-radius: 999px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); color: #ffe16a; font-size: .74rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.grx-hero h1 { margin: .75rem 0 .45rem; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1.04; }
.grx-hero p { max-width: 720px; margin: 0; color: rgba(255,255,255,.75); line-height: 1.7; }
.grx-hero-meta { display: grid; gap: .68rem; }
.grx-hero-meta div { padding: .92rem 1rem; border-radius: 17px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.08); backdrop-filter: blur(12px); }
.grx-hero-meta small { display: block; margin-bottom: .18rem; color: rgba(255,255,255,.6); font-size: .67rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.grx-hero-meta strong { font-size: .95rem; }

.grx-state,
.grx-form,
.grx-result {
    border: 1px solid var(--grx-line);
    border-radius: 27px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 24px 60px rgba(28,70,120,.13);
    backdrop-filter: blur(18px);
}
.grx-state { padding: 1.4rem; }
.grx-state strong { display: block; margin-bottom: .35rem; font-size: 1.2rem; }
.grx-state p { color: var(--grx-muted); }
.grx-state-error { border-color: rgba(200,63,77,.25); background: rgba(255,247,248,.95); }

.grx-wizard {
    display: grid;
    grid-template-columns: 1fr 70px 1fr 70px 1fr;
    align-items: center;
    padding: .9rem 1rem;
    margin: 0 0 1rem;
    border: 1px solid var(--grx-line);
    border-radius: 22px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 14px 36px rgba(23,68,117,.09);
    backdrop-filter: blur(16px);
}
.grx-step { display: flex; align-items: center; gap: .7rem; min-width: 0; padding: .5rem; border: 0; background: transparent; color: var(--grx-muted); text-align: left; cursor: default; }
.grx-step-icon { display: grid; flex: 0 0 auto; place-items: center; width: 42px; height: 42px; border-radius: 14px; border: 1px solid rgba(19,88,158,.12); background: #edf5fd; color: #52749b; transition: background .22s ease, color .22s ease, box-shadow .22s ease, transform .22s ease; }
.grx-step-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.grx-step-copy { min-width: 0; }
.grx-step-copy b, .grx-step-copy small { display: block; }
.grx-step-copy b { color: #294a70; font-size: .86rem; }
.grx-step-copy small { margin-top: .12rem; font-size: .69rem; white-space: nowrap; }
.grx-step.is-active .grx-step-icon { color: #fff; background: linear-gradient(135deg, var(--grx-blue), var(--grx-blue-2)); box-shadow: 0 10px 24px rgba(11,111,220,.28), 0 0 0 5px rgba(11,111,220,.09); }
.grx-step.is-active .grx-step-copy b { color: var(--grx-navy); }
.grx-step.is-complete .grx-step-icon { color: #fff; background: var(--grx-success); }
.grx-step-line { height: 3px; border-radius: 999px; background: linear-gradient(90deg, #d5e4f3, #e8eff7); }

.grx-form { padding: clamp(1rem, 2.5vw, 2rem); }
.grx-panel { animation: grxPanelIn .35s ease both; }
@keyframes grxPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.grx-panel-head { padding: .2rem .2rem 1.2rem; }
.grx-panel-head > span { color: var(--grx-blue); font-size: .73rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.grx-panel-head h2 { margin: .28rem 0 .2rem; font-size: clamp(1.45rem, 2.7vw, 2.05rem); }
.grx-panel-head p { margin: 0; color: var(--grx-muted); }

.grx-card { min-width: 0; margin: 0 0 1rem; padding: clamp(1rem, 2.1vw, 1.45rem); border: 1px solid var(--grx-line); border-radius: 20px; background: rgba(255,255,255,.8); box-shadow: inset 0 1px rgba(255,255,255,.9); }
.grx-card legend { padding: 0 .5rem; color: var(--grx-navy); font-size: .98rem; font-weight: 900; }
.grx-grid { display: grid; gap: .82rem; }
.grx-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grx-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grx-span-2 { grid-column: span 2; }
.grx-span-3 { grid-column: span 3; }
.grx-span-4 { grid-column: span 4; }
.grx-field { min-width: 0; }
.grx-field label { display: block; margin-bottom: .38rem; color: #1e3d61; font-size: .76rem; font-weight: 850; }
.grx-field input,
.grx-field select,
.grx-field textarea { width: 100%; min-height: 46px; padding: .7rem .78rem; border: 1px solid rgba(31,78,130,.18); border-radius: 12px; outline: 0; color: #173555; background: rgba(251,253,255,.98); transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.grx-field textarea { resize: vertical; }
.grx-field input:focus,
.grx-field select:focus,
.grx-field textarea:focus { border-color: rgba(11,111,220,.62); box-shadow: 0 0 0 4px rgba(11,111,220,.1); }
.grx-field input[readonly] { color: #244d75; background: linear-gradient(135deg, #edf6ff, #fbfdff); cursor: not-allowed; }
.grx-field .is-invalid,
.grx-consent input.is-invalid { border-color: var(--grx-danger); box-shadow: 0 0 0 4px rgba(200,63,77,.09); }
.grx-error { display: block; min-height: 1rem; margin-top: .24rem; color: var(--grx-danger); font-size: .68rem; }
.grx-help { margin: -.15rem 0 .9rem; color: var(--grx-muted); font-size: .8rem; }

.grx-parent-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .9rem; }
.grx-parent-card { padding: 1rem; border: 1px solid var(--grx-line); border-radius: 17px; background: linear-gradient(180deg,#fff,#f7fbff); }
.grx-parent-card h3 { margin: 0 0 .8rem; color: var(--grx-navy); font-size: .95rem; }
.grx-sibling-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.grx-sibling-head p { margin: 0; color: var(--grx-muted); font-size: .8rem; }
.grx-sibling-row { display: grid; grid-template-columns: 34px minmax(0,1.2fr) minmax(90px,.45fr) minmax(0,1.2fr) 36px; gap: .65rem; align-items: end; padding: .75rem; margin-top: .65rem; border: 1px solid var(--grx-line); border-radius: 15px; background: rgba(247,251,255,.9); }
.grx-sibling-row > span { align-self: center; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; color: #fff; background: var(--grx-blue); font-weight: 900; }
.grx-remove { width: 34px; height: 34px; margin-bottom: .3rem; border: 0; border-radius: 10px; color: #a62f3b; background: #ffedef; font-size: 1.1rem; cursor: pointer; }
.grx-remove:disabled { opacity: .35; cursor: not-allowed; }

.grx-review-grid,
.grx-result-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; }
.grx-review-grid > div,
.grx-result-grid > div { padding: .9rem; border: 1px solid var(--grx-line); border-radius: 15px; background: linear-gradient(180deg,#fff,#f7fbff); }
.grx-review-grid small,
.grx-result-grid small { display: block; margin-bottom: .2rem; color: var(--grx-muted); font-size: .68rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.grx-review-grid strong,
.grx-result-grid strong { display: block; overflow-wrap: anywhere; color: #16395f; font-size: .9rem; }
.grx-review-note { margin-top: .85rem; padding: .95rem; border-radius: 15px; color: #5c4c13; background: #fff9d8; border: 1px solid rgba(204,168,34,.22); }
.grx-review-note p { margin: .25rem 0 0; line-height: 1.55; }
.grx-consent { display: flex; gap: .7rem; align-items: flex-start; padding: 1rem; margin: 1rem 0 .25rem; border: 1px solid rgba(11,111,220,.15); border-radius: 15px; background: #f1f8ff; color: #355473; font-size: .84rem; line-height: 1.55; }
.grx-consent input { margin-top: .18rem; }

.grx-actions,
.grx-result-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1rem; }
.grx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 45px; padding: .72rem 1rem; border: 0; border-radius: 12px; text-decoration: none; font-weight: 850; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; -webkit-font-smoothing: antialiased; backface-visibility: hidden; }
.grx-btn:hover { transform: translateY(-1px); }
.grx-btn-primary { color: #fff; background: linear-gradient(135deg,#0a60c4,#0d8be8); box-shadow: 0 11px 23px rgba(11,111,220,.23); }
.grx-btn-primary:hover { color: #fff; box-shadow: 0 14px 28px rgba(11,111,220,.29); }
.grx-btn-light { color: #21476d; background: #eaf2fa; }
.grx-btn-small { min-height: 39px; padding: .58rem .78rem; color: #0b5dad; background: #e8f4ff; }
.grx-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.grx-message { padding: .85rem .95rem; margin-top: .8rem; border-radius: 13px; font-size: .84rem; }
.grx-message.is-error { color: #8f2f3a; background: #fff0f2; border: 1px solid rgba(200,63,77,.2); }
.grx-message.is-success { color: #176341; background: #ecfff5; border: 1px solid rgba(22,129,83,.2); }

.grx-result { padding: clamp(1.25rem,3vw,2.2rem); text-align: center; }
.grx-result-check { display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto .8rem; border-radius: 22px; color: #fff; background: linear-gradient(135deg,#0d9d64,#33c788); box-shadow: 0 14px 30px rgba(18,151,94,.25); font-size: 2rem; font-weight: 900; }
.grx-result h2 { margin: .7rem 0 .35rem; font-size: clamp(1.6rem,3vw,2.3rem); }
.grx-result-lead { max-width: 760px; margin: 0 auto 1.1rem; color: var(--grx-muted); }
.grx-payment-note { display: flex; flex-direction: column; gap: .22rem; margin: 1rem 0; padding: 1rem; border-radius: 16px; text-align: left; color: #5a4a0c; background: #fff8cf; border: 1px solid rgba(203,165,23,.24); }
.grx-notification-status { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.grx-notification-status > div { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1rem; border-radius: 14px; background: #f2f7fc; border: 1px solid var(--grx-line); }
.grx-notification-status span { color: var(--grx-muted); font-weight: 800; }
.grx-notification-status b { color: #173b61; }

@media (max-width: 1020px) {
    .grx-hero { grid-template-columns: 1fr; }
    .grx-hero-meta { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .grx-grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .grx-span-3, .grx-span-4 { grid-column: span 2; }
    .grx-review-grid, .grx-result-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
    .grx-page { padding-top: .8rem; }
    .grx-hero, .grx-form, .grx-result { border-radius: 21px; }
    .grx-hero-meta { grid-template-columns: 1fr; }
    .grx-wizard { grid-template-columns: 1fr 34px 1fr 34px 1fr; padding: .72rem .55rem; position: sticky; top: 68px; z-index: 10; }
    .grx-step { justify-content: center; padding: .25rem; }
    .grx-step-copy { display: none; }
    .grx-step-icon { width: 42px; height: 42px; border-radius: 14px; }
    .grx-step-line { height: 2px; }
    .grx-grid-2, .grx-grid-4, .grx-parent-grid, .grx-review-grid, .grx-result-grid, .grx-notification-status { grid-template-columns: 1fr; }
    .grx-span-2, .grx-span-3, .grx-span-4 { grid-column: auto; }
    .grx-sibling-head { align-items: flex-start; flex-direction: column; }
    .grx-sibling-row { grid-template-columns: 32px minmax(0,1fr) 34px; }
    .grx-sibling-row .grx-field { grid-column: 2 / 3; }
    .grx-sibling-row > .grx-remove { grid-column: 3; grid-row: 1; }
    .grx-actions, .grx-result-actions { flex-direction: column-reverse; }
    .grx-actions .grx-btn, .grx-result-actions .grx-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .grx-panel, .grx-btn, .grx-step-icon { animation: none !important; transition: none !important; }
}


/* v10.2 shared-layout integration and full-form visibility */
.grx-reveal { animation: grxReveal .55s ease both; }
@keyframes grxReveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.grx-form-map {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .75rem;
    margin: 0 0 1rem;
}
.grx-form-map > div {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding: .9rem 1rem;
    border: 1px solid var(--grx-line);
    border-radius: 17px;
    background: rgba(255,255,255,.75);
    box-shadow: 0 10px 26px rgba(26,71,121,.08);
    backdrop-filter: blur(14px);
}
.grx-form-map > div > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, var(--grx-blue), var(--grx-blue-2));
    font-size: .78rem;
    font-weight: 900;
}
.grx-form-map p { margin: 0; min-width: 0; }
.grx-form-map b,
.grx-form-map small { display: block; }
.grx-form-map b { color: var(--grx-navy); font-size: .82rem; }
.grx-form-map small { margin-top: .16rem; color: var(--grx-muted); font-size: .7rem; line-height: 1.45; }

.grx-step-complete-note {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: .9rem;
    padding: .95rem 1rem;
    border: 1px solid rgba(11,111,220,.18);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(234,246,255,.95), rgba(248,252,255,.95));
}
.grx-step-complete-note > span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 12px;
    color: #fff;
    background: var(--grx-blue);
    font-weight: 900;
}
.grx-step-complete-note p { margin: 0; }
.grx-step-complete-note b,
.grx-step-complete-note small { display: block; }
.grx-step-complete-note small { margin-top: .18rem; color: var(--grx-muted); line-height: 1.45; }

.grx-payment-preview {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin: 1rem 0;
    padding: 1.1rem;
    border: 1px solid rgba(202,163,18,.25);
    border-radius: 18px;
    background: linear-gradient(135deg, #fff9d9, #fffdf2);
}
.grx-payment-preview-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255,211,49,.38);
    font-size: 1.6rem;
}
.grx-payment-preview span { color: #7d6510; font-size: .7rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.grx-payment-preview h3 { margin: .25rem 0 .3rem; color: #4d4217; font-size: 1rem; }
.grx-payment-preview p { margin: 0; color: #75662b; line-height: 1.55; font-size: .82rem; }

.grx-actions-sticky {
    position: sticky;
    bottom: 12px;
    z-index: 8;
    padding: .72rem;
    margin-left: -.35rem;
    margin-right: -.35rem;
    border: 1px solid rgba(29,77,129,.12);
    border-radius: 17px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 16px 40px rgba(21,59,101,.15);
    backdrop-filter: blur(16px);
}

.grx-panel[hidden],
.grx-result[hidden],
.grx-message[hidden] { display: none !important; }

.grx-field input,
.grx-field select,
.grx-field textarea,
.grx-btn {
    font-family: inherit;
}

/* Never let the registration module restyle the shared site header/footer. */
.site-header,
.site-footer,
.admission-footer { isolation: isolate; }

@media (max-width: 900px) {
    .grx-form-map { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .grx-form-map { display: none; }
    .grx-actions-sticky { bottom: calc(70px + env(safe-area-inset-bottom)); }
    .grx-payment-preview { grid-template-columns: 1fr; text-align: left; }
    .grx-page { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
}


/* v13.1.1 — active root, two-step separator, and validation states */
[data-general-registration-v10-4] .grx-wizard-two-step {
    grid-template-columns: minmax(0, 1fr) minmax(70px, .18fr) minmax(0, 1fr);
}
[data-general-registration-v10-4] .grx-wizard-two-step .grx-step-line {
    position: relative;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe8f5;
    box-shadow: inset 0 1px 2px rgba(7,31,69,.08);
}
[data-general-registration-v10-4] .grx-wizard-two-step .grx-step-line::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--grx-blue), var(--grx-blue-2));
    transition: width .25s ease;
}
[data-general-registration-v10-4] .grx-wizard-two-step.is-step-2 .grx-step-line::after {
    width: 100%;
}
[data-general-registration-v10-4] .grx-field input.is-invalid,
[data-general-registration-v10-4] .grx-field select.is-invalid,
[data-general-registration-v10-4] .grx-field textarea.is-invalid,
[data-general-registration-v10-4] .grx-field input[aria-invalid="true"],
[data-general-registration-v10-4] .grx-field select[aria-invalid="true"],
[data-general-registration-v10-4] .grx-field textarea[aria-invalid="true"] {
    border-color: #c83f4d !important;
    background: #fff7f8 !important;
    box-shadow: 0 0 0 4px rgba(200,63,77,.12) !important;
}
[data-general-registration-v10-4] .grx-field:has(.is-invalid) label,
[data-general-registration-v10-4] .grx-field:has([aria-invalid="true"]) label {
    color: #a92635;
}
[data-general-registration-v10-4] .grx-error:not(:empty) {
    display: block;
    margin-top: .3rem;
    color: #a92635;
    font-size: .72rem;
    font-weight: 750;
}
[data-general-registration-v10-4] .grx-message.is-error {
    border: 1px solid #fecdd3;
    background: #fff1f2;
    color: #9f1239;
}
@media (max-width: 760px) {
    [data-general-registration-v10-4] .grx-wizard-two-step {
        grid-template-columns: minmax(0,1fr) 34px minmax(0,1fr);
    }
}


/* PPDB_V22_0_5_REGISTRATION_RESULT_TEMPLATE_V1 */
.grx-result-lead[data-result-template-body] { white-space: pre-line; }
