/* ==========================================================================
   BSSA Training Registration Forms — split-panel wizard (v3)
   Shared by SBO, SBE1, SBE2, and Boiler O&M registration pages.
   ========================================================================== */

:root {
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #eef2f7;
    --navy: #0d2c4b;
    --accent: #c41e3a;
    --accent-dark: #9e1830;
    --accent-soft: #fdecef;
    --line: #e2e8f0;
    --line-strong: #cbd5e1;
    --success: #15803d;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --shadow-card: 0 18px 50px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
    --font-head: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --font-body: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --reg-max: 1480px;
    --reg-sidebar: 260px;
}

/* -------------------------------------------------------------------------- */
/* Page shell                                                                 */
/* -------------------------------------------------------------------------- */

body.training-reg-page {
    font-family: var(--font-body);
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(196, 30, 58, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(13, 44, 75, 0.08), transparent 24%),
        linear-gradient(180deg, #eef2f7 0%, #f8fafc 45%, #ffffff 100%);
    line-height: 1.65;
    min-height: 100vh;
    max-width: 100%;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}

body.training-reg-page .form-container,
body.training-reg-page .reg-form-shell,
body.training-reg-page .reg-form-layout,
body.training-reg-page .reg-form-sidebar,
body.training-reg-page .reg-form-card,
body.training-reg-page #regForm,
body.training-reg-page .reg-form-intro,
body.training-reg-page .tab {
    min-width: 0;
    max-width: 100%;
}

body.training-reg-page #ed-556803303 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

body.training-reg-page,
body.training-reg-page.success-mode {
    padding-top: 0 !important;
}

.reg-form-shell {
    width: 100%;
    max-width: min(var(--reg-max), calc(100% - 24px));
    margin: 0 auto;
    padding: 28px clamp(12px, 2vw, 20px) 64px;
    box-sizing: border-box;
}

.reg-form-shell-top {
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-2);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.back-link:hover {
    color: var(--accent);
    border-color: rgba(196, 30, 58, 0.25);
    transform: translateY(-1px);
    text-decoration: none;
}

.back-link i {
    margin-right: 0;
}

/* -------------------------------------------------------------------------- */
/* Split layout                                                               */
/* -------------------------------------------------------------------------- */

.reg-form-layout {
    display: grid;
    grid-template-columns: var(--reg-sidebar) minmax(0, 1fr);
    gap: 0;
    align-items: stretch;
    width: 100%;
    min-width: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.reg-form-layout > * {
    min-width: 0;
    max-width: 100%;
}

.reg-form-sidebar {
    background: linear-gradient(180deg, #0d2c4b 0%, #102f52 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.form-header-container {
    position: relative;
    background: transparent;
    color: #fff;
    padding: 28px 24px 22px;
    text-align: left;
    box-shadow: none;
    border-radius: 0;
}

.form-header-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 24px;
    width: 48px;
    height: 4px;
    border-radius: 999px;
    background: var(--accent);
}

.form-header-container h2 {
    margin: 0;
    padding: 0;
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 800;
    color: #fff !important;
    line-height: 1.15;
    letter-spacing: -0.02em;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.form-header-container p {
    margin: 12px 0 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
}

/* -------------------------------------------------------------------------- */
/* Vertical step progress                                                     */
/* -------------------------------------------------------------------------- */

.steps-wrapper {
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-left: none;
    border-right: none;
    padding: 22px 20px 28px;
    margin: 0;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.steps-track {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.steps-track::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    height: auto;
    right: auto;
    background: rgba(255, 255, 255, 0.14);
    z-index: 0;
}

.step-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
    z-index: 1;
    min-width: 0;
}

.step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.55);
    font-weight: 700;
    font-size: 0.82rem;
    border: 2px solid rgba(255, 255, 255, 0.12);
    transition: all 0.2s ease;
}

.step.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.24);
}

.step.finish {
    background: #fff;
    border-color: #fff;
    color: var(--navy);
}

.step.skipped {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.25);
    box-shadow: none;
}

.step-label {
    margin-top: 0;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: rgba(255, 255, 255, 0.58);
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.step-label.skipped {
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.28);
}

.step-item:has(.step.active) .step-label {
    color: #fff;
}

.step-item:has(.step.finish) .step-label {
    color: rgba(255, 255, 255, 0.92);
}

/* -------------------------------------------------------------------------- */
/* Main form panel                                                            */
/* -------------------------------------------------------------------------- */

.reg-form-card {
    background: var(--surface);
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    min-width: 0;
    width: 100%;
}

#regForm {
    background: transparent;
    margin: 0;
    padding: clamp(20px, 2.5vw, 32px);
    width: 100%;
    min-width: 0;
    max-width: none;
    box-sizing: border-box;
    overflow-x: visible;
}

.reg-form-intro {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    margin-bottom: 28px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.reg-form-intro p {
    margin: 0;
    color: var(--ink-2);
    font-size: 0.94rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.reg-form-intro > p#trainingDateDisplay,
.reg-form-intro > p#closingDateDisplay {
    color: var(--navy);
    font-weight: 700;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
}

/* Programme overview — card layout (not flat Matrix-style list) */
.reg-overview {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.reg-overview-head {
    font-family: var(--font-head);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--navy);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
}

.reg-overview-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 14px;
}

.reg-overview-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    box-shadow: var(--shadow-soft);
}

.reg-overview-panel-title {
    margin: 0 0 12px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ink);
}

.reg-overview-dl {
    margin: 0;
    display: block;
}

.reg-overview-dl dt {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #000;
    margin: 18px 0 0;
    line-height: 1.0;
}

.reg-overview-dl dt:first-child {
    margin-top: 0;
}

.reg-overview-dl dd {
    margin: 8px 0 0;
    font-size: 0.92rem;
    color: var(--ink-2);
    line-height: 1.6;
}

.reg-overview-dl a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.reg-fee-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reg-fee-card {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 2px 12px;
    padding: 12px 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-left: 3px solid var(--navy);
    border-radius: var(--radius-sm);
}

.reg-fee-route {
    grid-column: 1;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy);
}

.reg-fee-amount {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent-dark);
    white-space: nowrap;
}

.reg-fee-note {
    grid-column: 1;
    font-size: 0.78rem;
    color: var(--muted);
}

.reg-download-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.reg-download-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--navy) !important;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: border-color 0.15s, background 0.15s;
}

.reg-download-link::before {
    content: "\f1c1";
    font-family: FontAwesome;
    color: var(--accent);
    font-size: 1rem;
    flex-shrink: 0;
}

.reg-download-link:hover {
    background: var(--accent-soft);
    border-color: rgba(196, 30, 58, 0.25);
    color: var(--accent-dark) !important;
}

.reg-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.reg-checklist li {
    position: relative;
    padding-left: 22px;
    font-size: 0.92rem;
    color: var(--ink-2);
    line-height: 1.5;
}

.reg-checklist li::before {
    content: "\f00c";
    font-family: FontAwesome;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--accent);
    font-size: 0.82rem;
}

.reg-checklist a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: underline;
}

.reg-checklist-intro {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
}

.reg-important {
    color: var(--accent);
}

.reg-checklist-ordered {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 12px;
}

.reg-checklist-ordered > li {
    font-size: 0.92rem;
    color: var(--ink-2);
    line-height: 1.55;
}

.reg-checklist-sub {
    margin: 8px 0 0;
    padding-left: 1.1rem;
    display: grid;
    gap: 6px;
}

.reg-checklist-sub li {
    line-height: 1.5;
}

.reg-deadline {
    color: var(--accent);
}

.reg-notice-copy {
    display: grid;
    gap: 12px;
}

.reg-notice-copy p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink-2);
    line-height: 1.55;
}

.reg-notice-copy a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: underline;
}

.reg-required-note {
    margin: 4px 0 0 !important;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: none;
    padding: 0;
}

.reg-form-intro a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(196, 30, 58, 0.35);
}

.reg-form-intro a:hover {
    color: var(--accent-dark);
}

.reg-form-intro ol,
.reg-form-intro ul {
    margin: 0;
    padding-left: 1.2rem;
}

.reg-form-intro li {
    margin-bottom: 6px;
}

.reg-form-notice {
    background: var(--accent-soft);
    border: 1px solid rgba(196, 30, 58, 0.14);
    border-radius: var(--radius-sm);
    padding: 16px 18px;
    margin-top: 4px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.reg-form-notice > p:first-child {
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 10px !important;
    color: var(--ink);
}

.error {
    color: var(--accent);
    font-size: 0.86rem;
}

/* -------------------------------------------------------------------------- */
/* Form fields                                                                */
/* -------------------------------------------------------------------------- */

label {
    display: block;
    margin-top: 16px;
    margin-bottom: 8px;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.9rem;
}

h3 {
    font-family: var(--font-head);
    color: var(--ink);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
    padding: 0 0 14px;
    border-bottom: none;
    position: relative;
}

h3::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), #f59e0b);
}

h4 {
    color: var(--navy);
    margin-top: 15px;
    margin-bottom: 10px;
    font-family: var(--font-head);
    font-weight: 700;
}

input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 14px 16px;
    font-size: 0.98rem;
    font-family: var(--font-body);
    line-height: 1.45;
    color: var(--ink);
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(196, 30, 58, 0.45);
    box-shadow: 0 0 0 4px rgba(196, 30, 58, 0.12);
    background: #fff;
}

input.invalid,
select.invalid {
    background-color: #fff5f7;
    border-color: var(--accent);
}

.file-upload-box {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 18px 16px;
    margin-bottom: 12px;
    background-color: var(--surface-2);
    border: 2px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    box-sizing: border-box;
    text-align: center;
}

.file-upload-box input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-size: 0.94rem;
    font-family: var(--font-body);
    color: var(--ink);
    background: transparent;
    border: none;
    box-sizing: border-box;
}

.file-upload-box:has(input.invalid) {
    background-color: #fff5f7;
    border-color: var(--accent);
}

select {
    cursor: pointer;
    min-height: 52px;
    padding-right: 44px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

select:hover {
    border-color: var(--line-strong);
}

.tab,
.tab.active {
    width: 100%;
    box-sizing: border-box;
}

#regForm select {
    display: block;
    width: 100%;
    max-width: none;
}

#participantCount {
    margin-bottom: 24px;
}

.tab {
    display: none;
    animation: regSlideIn 0.28s ease;
}

.tab.active {
    display: block;
}

@keyframes regSlideIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.tab p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 8px;
}

/* -------------------------------------------------------------------------- */
/* Radio option cards                                                         */
/* -------------------------------------------------------------------------- */

.option-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 12px 0 6px;
}

.option-card-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin: 0;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background-color: var(--surface-2);
    cursor: pointer;
    font-weight: 600;
    box-sizing: border-box;
    width: 100%;
    transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.option-card:hover {
    border-color: rgba(196, 30, 58, 0.25);
    background-color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-soft);
}

.option-card:has(input:checked) {
    border-color: rgba(196, 30, 58, 0.45);
    background-color: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(196, 30, 58, 0.12);
}

.option-cards input[type="radio"] {
    margin: 4px 0 0;
    width: auto;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.option-card-text {
    flex: 1;
    min-width: 0;
    line-height: 1.5;
    white-space: normal;
}

.individual-note {
    margin: 0;
    font-size: 0.88rem;
    color: var(--muted);
}

/* -------------------------------------------------------------------------- */
/* Bank & HRD sections                                                        */
/* -------------------------------------------------------------------------- */

.bank-details-container {
    display: none;
    margin-top: 0;
    padding: 18px 20px;
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.bank-details-container.active {
    display: block;
}

.bank-details-container h4 {
    color: var(--navy);
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1rem;
}

.bank-info p {
    margin: 8px 0;
    font-size: 0.94rem;
    color: var(--ink-2);
}

.bank-info strong {
    color: var(--navy);
    min-width: 130px;
    display: inline-block;
    font-weight: 700;
}

.payment-instructions-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink-2);
}

.hrd-policy-container {
    display: none;
    width: 100%;
    max-width: 400px;
    margin: 18px auto 0;
    padding: 0;
    background: transparent;
    border: none;
    box-sizing: border-box;
}

.hrd-policy-container.active {
    display: block;
}

.hrd-policy-image-wrap {
    width: 100%;
    padding: 14px;
    background: #faf8f5;
    border: 1px solid #e5e0d8;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(28, 36, 75, 0.12);
    box-sizing: border-box;
}

.hrd-policy-image-wrap img,
.hrd-policy-container img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    border-radius: 10px;
}

.hrd-policy-notice {
    font-size: 0.88rem;
    line-height: 1.65;
    color: #374151;
    margin: 14px 0 0;
    padding: 0 2px;
    text-align: left;
    font-family: Georgia, "Times New Roman", Times, serif;
}

.hrd-policy-notice strong {
    color: #c2410c;
    font-weight: 700;
}

.privacy-policy-container {
    margin-top: 24px;
    padding: 18px 20px;
    background-color: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    width: 100%;
    box-sizing: border-box;
}

.privacy-policy-container label {
    margin-top: 0;
    font-weight: 500;
    line-height: 1.55;
}

.privacy-policy-container input[type="checkbox"] {
    accent-color: var(--accent);
}

/* -------------------------------------------------------------------------- */
/* Participant blocks                                                         */
/* -------------------------------------------------------------------------- */

.participant-block {
    background: var(--surface-2);
    padding: 22px;
    border-radius: var(--radius-md);
    margin-bottom: 18px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.participant-block h4,
.participant-block > strong {
    font-family: var(--font-head);
    color: var(--navy);
    font-size: 1.02rem;
    font-weight: 800;
    margin-bottom: 14px;
    display: block;
}

.mobile-br {
    display: none;
}

/* -------------------------------------------------------------------------- */
/* Buttons                                                                    */
/* -------------------------------------------------------------------------- */

.step-buttons-wrapper {
    position: sticky;
    bottom: 0;
    margin-top: 32px;
    padding: 18px 0 4px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #fff 24%);
    width: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    clear: both;
}

#prevBtn,
#nextBtn,
.reg-btn {
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    border: none;
    padding: 14px 28px;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
}

#nextBtn,
.reg-btn--primary {
    background: linear-gradient(135deg, var(--accent) 0%, #a91530 100%);
    color: #fff;
    box-shadow: 0 10px 24px rgba(196, 30, 58, 0.24);
}

#nextBtn:hover,
.reg-btn--primary:hover {
    background: linear-gradient(135deg, var(--accent-dark) 0%, #861026 100%);
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

#prevBtn,
.reg-btn--secondary {
    background-color: #fff;
    color: var(--ink-2);
    border: 1px solid var(--line-strong);
}

#prevBtn:hover,
.reg-btn--secondary:hover {
    background-color: var(--surface-2);
    border-color: var(--muted);
}

#prevBtn {
    margin-right: auto;
}

#prevBtn,
#nextBtn {
    margin: 0;
}

.reg-btn {
    display: inline-block;
    text-decoration: none;
}

.reg-btn:active {
    transform: translateY(0);
}

/* -------------------------------------------------------------------------- */
/* Success state                                                              */
/* -------------------------------------------------------------------------- */

.success-container {
    display: none;
    max-width: 520px;
    margin: 72px auto;
    padding: 42px 34px;
    background-color: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    position: relative;
    z-index: 10;
    text-align: center;
}

.success-container.active {
    display: block !important;
}

body.success-mode .success-container.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin-top: 80px !important;
    margin-bottom: 50px !important;
}

.success-container h2 {
    color: var(--success);
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 12px;
    text-align: center;
}

.success-container h2::before {
    content: "\f058";
    font-family: FontAwesome;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #ecfdf3;
    font-size: 2rem;
    color: var(--success);
    font-weight: normal;
}

.success-container p {
    color: var(--ink-2);
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 10px;
}

.success-container .reg-id {
    color: var(--navy);
    font-weight: 800;
    font-size: 1.08rem;
}

.form-container {
    display: block !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.form-container.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

body.success-mode .reg-form-layout,
body.success-mode .reg-form-shell-top {
    display: none !important;
}

body.success-mode .form-header-container,
body.success-mode .back-link,
body.success-mode .steps-wrapper,
body.success-mode #regForm,
body.success-mode .reg-form-card {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* -------------------------------------------------------------------------- */
/* Notice modal                                                               */
/* -------------------------------------------------------------------------- */

.training-notice-modal-overlay {
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(4px);
}

.training-notice-modal-box {
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--line);
    font-family: var(--font-body) !important;
    overflow: hidden;
}

.training-notice-modal-head {
    background: var(--navy) !important;
    font-family: var(--font-head) !important;
    font-weight: 800 !important;
}

.training-notice-modal-btn {
    background: var(--accent) !important;
    border-radius: 999px !important;
    font-family: var(--font-head) !important;
    font-weight: 700 !important;
}

.training-notice-modal-btn:hover {
    background: var(--accent-dark) !important;
    filter: none !important;
}

.training-notice-modal-btn:focus {
    outline: 2px solid var(--accent) !important;
    outline-offset: 2px;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                 */
/* -------------------------------------------------------------------------- */

@media screen and (min-width: 993px) {
    .back-link {
        display: inline-flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

@media screen and (min-width: 1200px) {
    :root {
        --reg-sidebar: 280px;
    }

    .reg-form-shell {
        max-width: 100%;
        padding-left: 10px;
        padding-right: 10px;
    }

    #regForm {
        padding: 28px 36px;
    }

    .reg-form-intro {
        padding: 24px 28px;
    }
}

@media (max-width: 900px) {
    .reg-form-shell {
        max-width: 100%;
        width: 100%;
        padding-left: 8px;
        padding-right: 8px;
    }

    .reg-form-layout {
        grid-template-columns: minmax(0, 1fr) !important;
        border-radius: var(--radius-md);
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }

    .reg-form-sidebar,
    .reg-form-card {
        width: 100% !important;
        max-width: 100% !important;
    }

    .reg-form-sidebar {
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .form-header-container {
        padding: 22px 16px 16px;
        max-width: 100%;
    }

    .steps-wrapper {
        padding: 14px 10px 16px;
        width: 100%;
        max-width: 100%;
    }

    .steps-track {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 4px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .steps-track::before {
        display: none;
    }

    .step-item {
        flex: 1 1 0;
        flex-direction: column;
        align-items: center;
        min-width: 0;
        max-width: none;
        width: auto;
        gap: 5px;
    }

    .step {
        width: 26px;
        height: 26px;
        font-size: 0.68rem;
    }

    .step-label {
        font-size: 0.52rem;
        text-align: center;
        line-height: 1.1;
        white-space: normal;
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
    }

    .reg-form-card,
    #regForm {
        width: 100% !important;
        max-width: 100% !important;
    }

    .reg-form-intro {
        padding: 14px 12px;
        width: 100%;
        max-width: 100%;
    }

    .reg-overview-grid {
        grid-template-columns: 1fr;
    }

    .reg-fee-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .reg-fee-amount {
        grid-column: 1;
        grid-row: auto;
        margin-top: 4px;
    }

    .tab,
    .option-card,
    .participant-block,
    .privacy-policy-container,
    .bank-details-container,
    .hrd-policy-container {
        width: 100%;
        max-width: min(400px, 100%);
        margin-left: auto;
        margin-right: auto;
        box-sizing: border-box;
    }
}

@media (max-width: 600px) {
    .reg-form-shell {
        padding: 16px 6px 40px;
    }

    #regForm {
        padding: 14px 10px;
    }

    .reg-form-intro {
        padding: 12px 10px;
    }

    .form-header-container {
        padding: 22px 16px 16px;
    }

    .form-header-container h2 {
        font-size: 1.25rem;
    }

    .steps-wrapper {
        padding: 12px 8px 14px;
    }

    .step-label {
        font-size: 0.52rem;
    }

    .step-buttons-wrapper {
        flex-direction: column-reverse;
        align-items: stretch;
        position: static;
        margin-top: 24px;
        padding-top: 16px;
    }

    #prevBtn,
    #nextBtn {
        width: 100%;
        max-width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .option-card {
        padding: 14px 12px;
    }

    .bank-info strong {
        display: block;
        min-width: 0;
        margin-bottom: 2px;
    }

    .privacy-policy-container {
        padding: 14px 12px;
    }

    h1, h2, h3 {
        word-break: break-word;
    }

    .mobile-br {
        display: inline;
    }
}
