:root {
    --blue: #009fe3;
    --blue-dark: #007fb8;
    --ink: #122238;
    --muted: #66778c;
    --line: #dce6ef;
    --soft: #f3f7fa;
    --surface: #ffffff;
    --yellow: #ffc400;
    --green: #38c976;
    --magenta: #d82ab3;
    --danger: #e64968;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    background: #eef4f8;
    color: var(--ink);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 1100;
    height: 76px;
    padding: 0;
    border-bottom: 1px solid rgba(18, 34, 56, .08);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(35, 67, 91, .06);
}

.public-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1760px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
}

.public-brand,
.public-header-inner > a {
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.public-header img,
.public-header-inner img {
    width: 94px;
    height: 58px;
    object-fit: contain;
}

.public-header-status {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 650;
}

.public-header-status a {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease;
}

.public-header-status a:hover,
.public-header-status a:focus-visible {
    color: var(--blue-dark);
    outline: none;
}

.brand-signal {
    display: grid;
    grid-template-columns: repeat(4, 6px);
    gap: 3px;
}

.brand-signal i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
}

.brand-signal i:nth-child(2) { background: var(--yellow); }
.brand-signal i:nth-child(3) { background: var(--green); }
.brand-signal i:nth-child(4) { background: var(--magenta); }

.registration-layout {
    display: grid;
    grid-template-columns: minmax(0, 48%) minmax(620px, 52%);
    width: min(1760px, 100%);
    min-height: calc(100vh - 76px);
    margin: 0 auto;
    border-right: 1px solid var(--line);
    border-left: 1px solid var(--line);
    background: var(--surface);
}

.event-pane {
    min-width: 0;
    border-right: 1px solid var(--line);
    background: #fff;
}

.event-cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 430px;
    padding: 48px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
    isolation: isolate;
}

.event-cover.is-default-cover {
    background-color: #f3f7fa;
    background-position: center 38%;
    background-repeat: no-repeat;
    background-size: min(78%, 680px) auto;
}

.event-cover.is-default-cover::before {
    background: linear-gradient(0deg, rgba(6, 30, 51, .86) 0, rgba(6, 30, 51, .5) 24%, rgba(6, 30, 51, .08) 62%, rgba(6, 30, 51, 0) 100%);
}

.event-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(6, 30, 51, .56);
}

.event-cover::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 124px;
    height: 7px;
    background: var(--yellow);
    box-shadow: -124px 0 0 var(--green), -248px 0 0 var(--magenta), -372px 0 0 var(--blue);
}

.event-cover-copy {
    max-width: 760px;
    color: #fff;
    text-shadow: 0 2px 18px rgba(3, 20, 35, .5);
    animation: public-hero-in .65s ease-out both;
}

.event-cover-copy > span {
    display: block;
    margin-bottom: 12px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.event-cover h1 {
    max-width: 760px;
    margin: 0;
    color: #fff;
    font-size: 42px;
    line-height: 1.12;
    letter-spacing: 0;
}

.event-cover-copy small {
    display: block;
    margin-top: 16px;
    color: rgba(255, 255, 255, .84);
    font-size: 13px;
    font-weight: 650;
}

.event-details {
    padding: 38px 48px 48px;
}

.event-short-description {
    max-width: 900px;
    margin: 0 0 26px;
    color: #273b52;
    font-size: 18px;
    font-weight: 650;
    line-height: 1.55;
}

.event-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.event-facts > span {
    min-width: 0;
    min-height: 92px;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--blue);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 9px 24px rgba(37, 70, 94, .06);
    overflow-wrap: anywhere;
}

.event-facts > span:nth-child(2) { border-top-color: var(--yellow); }
.event-facts > span:nth-child(3) { border-top-color: var(--green); }
.event-facts > span:nth-child(4n) { border-top-color: var(--magenta); }

.event-facts strong {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.event-facts i {
    font-style: normal;
}

#event_remaining_fact #event_remaining {
    color: var(--green);
    font-weight: 400;
}

.event-description {
    margin-top: 32px;
    color: #35485d;
    font-size: 15px;
    line-height: 1.75;
}

.event-description h1,
.event-description h2,
.event-description h3 {
    color: var(--ink);
    line-height: 1.3;
}

.event-description img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 18px auto;
    border-radius: 6px;
}

.event-description table {
    display: block;
    max-width: 100%;
    overflow: auto;
    border-collapse: collapse;
}

.event-description th,
.event-description td {
    padding: 9px 11px;
    border: 1px solid var(--line);
}

.event-description a {
    color: var(--blue-dark);
}

.form-pane {
    min-width: 0;
    padding: 32px 30px 54px;
    background: #fff;
}

.registration-workspace {
    display: block;
}

.registration-flow {
    min-width: 0;
}

.summary-participant {
    display: grid;
    gap: 4px;
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.summary-participant span {
    color: var(--muted);
    font-size: 11px;
}

.summary-participant strong {
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.4;
}

.summary-participant.discount-summary strong {
    color: var(--green);
}

.stepper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 34px;
    border-bottom: 1px solid var(--line);
}

.stepper button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 54px;
    padding: 0 8px 13px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #8996a6;
    font: inherit;
    font-weight: 650;
}

.stepper button b {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8eef3;
    color: #7b899a;
    font-size: 12px;
}

.stepper button.active {
    border-bottom-color: var(--blue);
    color: var(--blue-dark);
}

.stepper button.active b {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(0, 159, 227, .11);
}

.form-step {
    display: none;
    animation: public-step-in .3s ease-out both;
}

.form-step.active {
    display: block;
}

.form-step h2,
.success-panel h2 {
    margin: 0 0 6px;
    color: var(--ink);
    font-size: 27px;
    line-height: 1.25;
}

.form-step > p,
.step-heading p {
    margin: 0 0 27px;
    color: var(--muted);
    line-height: 1.55;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.form-grid label,
.price-field,
.upload-box,
.variant-field,
.discount-field label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    color: #344459;
    font-size: 13px;
    font-weight: 700;
}

.form-grid .wide {
    grid-column: 1 / -1;
}

.form-grid label > small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.phone-input {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 0;
    width: 100%;
}

.phone-input .phone-country {
    border-radius: 6px 0 0 6px;
    text-align: center;
}

.phone-input .phone-local {
    margin-left: -1px;
    border-radius: 0 6px 6px 0;
}

.phone-input .field-validation-error {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d6e1ea;
    border-radius: 6px;
    background-color: var(--soft);
    color: var(--ink);
    font: inherit;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

textarea {
    resize: vertical;
}

select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2352677d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #bdcfdd;
    background-color: #f7fafc;
}

input:focus,
select:focus,
textarea:focus {
    outline: 0;
    border-color: var(--blue);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 159, 227, .11);
}

button.primary,
.link-button.primary,
button.secondary,
.link-button.secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 6px;
    font-weight: 750;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

button.primary,
.link-button.primary {
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
    box-shadow: 0 9px 22px rgba(0, 143, 213, .22);
}

button.secondary,
.link-button.secondary {
    border: 1px solid #cfe4ef;
    background: #edf8fd;
    color: var(--blue-dark);
}

button.primary:hover,
.link-button.primary:hover,
button.secondary:hover,
.link-button.secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(20, 59, 84, .16);
}

button:disabled {
    cursor: not-allowed;
    opacity: .58;
    transform: none !important;
    box-shadow: none !important;
}

.form-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 30px -8px -18px;
    padding: 20px 8px 18px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
}

.step-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.participant-add-row {
    margin-top: 14px;
}

.participant-add-row .secondary {
    width: 100%;
    min-height: 44px;
}

.variant-field + .variant-field {
    margin-top: 16px;
}

.variant-remaining-status {
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
}

.variant-remaining-status.is-full {
    color: var(--danger);
}

.participant-list {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.participant-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 72px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--green);
    border-radius: 7px;
    background: #fff;
}

.participant-list-item.is-incomplete {
    border-left-color: var(--yellow);
    grid-template-columns: 1fr;
}

.participant-list-item.has-duplicate {
    border-color: rgba(239, 68, 93, .42);
    border-left-color: var(--danger);
    background: #fffafb;
}

.participant-duplicate-status {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 9px 11px;
    border-radius: 5px;
    background: #f2f7fa;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.participant-duplicate-status.is-duplicate {
    border: 1px solid rgba(239, 68, 93, .25);
    background: #fff1f3;
    color: #b4233f;
}

.participant-duplicate-status.is-error {
    border: 1px solid rgba(239, 68, 93, .2);
    background: #fff7f8;
    color: #9f2940;
}

.participant-card > .participant-duplicate-status {
    margin-top: 12px;
}

.participant-list-item.is-incomplete .participant-list-actions,
.participant-list-item.is-incomplete .participant-edit {
    width: 100%;
}

.participant-list-item.is-incomplete .participant-edit {
    min-height: 42px;
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font-weight: 700;
}

.participant-list-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.participant-list-identity > div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.participant-list-identity strong,
.participant-list-identity small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.participant-list-identity small {
    color: var(--muted);
}

.participant-number,
.registration-review-number {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e8f6fc;
    color: var(--blue-dark);
    font-weight: 800;
}

.registration-review-person svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.participant-list-actions,
.registration-review-price {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.participant-list-actions button,
.registration-review-price button {
    padding: 5px 7px;
    border: 0;
    background: transparent;
    color: var(--blue-dark);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.participant-list-actions .participant-remove,
.registration-review-price .participant-remove {
    color: var(--danger);
}

.registration-review {
    display: grid;
    gap: 12px;
}

.registration-review-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    padding: 2px 0 8px;
}

.registration-review-meta .summary-participant {
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f7fafc;
}

.registration-review-item {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 13px;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.registration-review-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.registration-review-copy span,
.registration-review-copy small {
    color: var(--muted);
    line-height: 1.4;
}

.registration-review-price {
    align-items: flex-end;
    flex-direction: column;
}

.registration-review-empty {
    padding: 18px;
    border: 1px dashed var(--line);
    color: var(--muted);
    text-align: center;
}

.private-order-notice {
    margin: 14px 0 0;
    padding: 12px 14px;
    border-left: 3px solid var(--blue);
    border-radius: 0 5px 5px 0;
    background: #eef8fd;
    color: #24445c;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.checkout-section {
    margin-bottom: 22px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.checkout-section h3 {
    margin: 0 0 5px;
}

.checkout-section > p {
    margin: 0 0 17px;
    color: var(--muted);
}

.payer-type-choice {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.payer-type-choice legend {
    margin-bottom: 10px;
    font-size: 15px;
    font-weight: 700;
}

.payer-type-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.payer-type-tabs label {
    cursor: pointer;
}

.payer-type-tabs input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payer-type-tabs span {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f5f8fa;
    color: var(--ink);
    font-weight: 700;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

.payer-type-tabs input:checked + span {
    border-color: var(--blue);
    background: #eaf6fc;
    color: #007bb8;
}

.payer-contact-email {
    padding: 14px;
    border-left: 3px solid var(--blue);
    border-radius: 6px;
    background: #f2f9fd;
}

@media (max-width: 600px) {
    .payer-type-tabs { grid-template-columns: 1fr; }
}

.registration-consents-section {
    margin-top: 22px;
    margin-bottom: 0;
}

.registration-consents-section > h3 {
    margin-bottom: 14px;
}

.final-order-summary {
    margin-top: 22px;
}

.public-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(15, 31, 48, .48);
    backdrop-filter: blur(2px);
}

.public-modal-dialog {
    display: flex;
    flex-direction: column;
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(7, 27, 43, .28);
}

.public-modal-header,
.public-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
}

.public-modal-header {
    border-bottom: 1px solid var(--line);
}

.public-modal-header h2 {
    margin: 0 0 3px;
    font-size: 22px;
}

.public-modal-header p {
    margin: 0;
    color: var(--muted);
}

.public-modal-close {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--soft);
    color: var(--muted);
    font: 400 25px/1 Arial, sans-serif;
    cursor: pointer;
}

.public-modal-body {
    min-height: 0;
    padding: 20px;
    overflow-y: auto;
}

.institution-results.is-modal-overlay {
    position: fixed;
    z-index: 3200;
    margin: 0;
}

.public-modal-actions {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
}

.public-modal > .form-error,
.public-modal-dialog > .form-error {
    margin: 0 20px 16px;
    padding: 12px 14px;
}

body.public-modal-open {
    overflow: hidden;
}

.document-consent-control {
    cursor: pointer;
}

.document-consent-name {
    color: var(--blue-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.document-consent-dialog {
    width: min(900px, 100%);
    height: min(900px, calc(100vh - 32px));
    max-height: calc(100vh - 32px);
}

.document-consent-scroll {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    padding: 20px;
    overflow: auto;
    overscroll-behavior: contain;
    background: #e9eef3;
    scrollbar-gutter: stable;
}

.document-consent-scroll:focus-visible {
    outline: 3px solid rgba(0, 143, 213, .22);
    outline-offset: -3px;
}

.document-consent-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 11px;
    color: var(--muted);
    font-weight: 600;
}

.document-consent-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #c9d8e1;
    border-top-color: var(--blue);
    border-radius: 50%;
    animation: document-consent-spin .8s linear infinite;
}

@keyframes document-consent-spin {
    to { transform: rotate(360deg); }
}

.document-consent-pages {
    display: grid;
    justify-items: center;
    gap: 18px;
}

.document-consent-page {
    max-width: 100%;
    overflow: hidden;
    border: 1px solid #d7dee7;
    background: #fff;
    box-shadow: 0 3px 14px rgba(15, 31, 48, .12);
}

.document-consent-page canvas {
    display: block;
    max-width: 100%;
    height: auto !important;
}

.document-consent-frame {
    display: block;
    width: 100%;
    min-height: 320px;
    border: 0;
    background: #fff;
    box-shadow: 0 3px 14px rgba(15, 31, 48, .12);
}

.document-consent-fallback {
    max-width: 560px;
    margin: 70px auto;
    padding: 24px;
    border: 1px solid #d5dee7;
    border-radius: 7px;
    background: #fff;
    text-align: center;
}

.document-consent-fallback p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.55;
}

.document-consent-end {
    margin: 18px auto 2px;
    padding: 9px 14px;
    border-radius: 999px;
    background: #dbe7ed;
    color: #53697a;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.document-consent-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.document-consent-guidance {
    display: grid;
    justify-items: start;
    gap: 9px;
    min-width: 0;
}

.document-consent-guidance > span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.document-consent-open {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #b9dbea;
    border-radius: 6px;
    color: var(--blue);
    background: #f2faff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.document-consent-open:hover,
.document-consent-open:focus-visible {
    border-color: var(--blue);
    background: #e7f6fd;
}

.document-consent-actions > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 700px) {
    .document-consent-modal { padding: 8px; }
    .document-consent-dialog {
        height: calc(100vh - 16px);
        max-height: calc(100vh - 16px);
    }
    .document-consent-scroll { padding: 10px; }
    .document-consent-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .document-consent-actions > div { justify-content: flex-end; }
}

.public-datepicker {
    cursor: pointer;
}

.datepicker-dropdown {
    position: absolute !important;
    z-index: 3200 !important;
    width: 292px;
    max-width: calc(100vw - 24px);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(7, 27, 43, .2);
    color: var(--ink);
    font-family: inherit;
}

.datepicker table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 2px;
    table-layout: fixed;
}

.datepicker td,
.datepicker th {
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
}

.datepicker thead th.prev,
.datepicker thead th.next,
.datepicker .datepicker-switch,
.datepicker tfoot th.clear,
.datepicker td.day,
.datepicker td span.month,
.datepicker td span.year,
.datepicker td span.decade,
.datepicker td span.century {
    cursor: pointer;
}

.datepicker thead th.prev,
.datepicker thead th.next {
    width: 36px;
    color: var(--muted);
    font-size: 17px;
}

.datepicker .datepicker-switch {
    width: auto;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-transform: capitalize;
}

.datepicker thead th.prev:hover,
.datepicker thead th.next:hover,
.datepicker .datepicker-switch:hover {
    background: var(--soft) !important;
    color: var(--blue);
}

.datepicker thead th.dow {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.datepicker tbody td.day {
    color: var(--ink);
}

.datepicker tbody td.day:hover {
    background: var(--soft);
    color: var(--blue);
}

.datepicker tbody td.day.old,
.datepicker tbody td.day.new,
.datepicker tbody td.day.disabled {
    color: #a7b3c1;
}

.datepicker tbody td.day.active,
.datepicker tbody td.day.active:hover {
    background: var(--blue);
    color: #fff;
}

.datepicker .datepicker-months tbody td,
.datepicker .datepicker-years tbody td,
.datepicker .datepicker-decades tbody td,
.datepicker .datepicker-centuries tbody td {
    width: auto;
    height: auto;
    padding: 6px 2px;
}

.datepicker .datepicker-months tbody td::after,
.datepicker .datepicker-years tbody td::after,
.datepicker .datepicker-decades tbody td::after,
.datepicker .datepicker-centuries tbody td::after {
    display: block;
    clear: both;
    content: "";
}

.datepicker td span.month,
.datepicker td span.year,
.datepicker td span.decade,
.datepicker td span.century {
    display: flex;
    float: left;
    align-items: center;
    justify-content: center;
    width: 23%;
    height: 40px;
    margin: 1%;
    border-radius: 6px;
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
}

.datepicker td span.month:hover,
.datepicker td span.year:hover,
.datepicker td span.decade:hover,
.datepicker td span.century:hover {
    background: var(--soft);
    color: var(--blue);
}

.datepicker td span.month.active,
.datepicker td span.year.active,
.datepicker td span.decade.active,
.datepicker td span.century.active {
    background: var(--blue);
    color: #fff;
}

.datepicker td span.old,
.datepicker td span.new,
.datepicker td span.disabled {
    color: #a7b3c1;
}

.datepicker tfoot th.clear {
    height: 36px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.datepicker tfoot th.clear:hover {
    background: var(--soft);
}

.reservation-timer {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    padding: 11px 14px;
    border: 1px solid #c7e7d5;
    border-radius: 6px;
    background: #f0fbf5;
}

.reservation-timer strong {
    color: #188751;
    font-size: 18px;
}

.participant-card,
.upload-box,
.payment-methods,
.pricing-panel,
.service-registration-note,
.bank-transfer-info {
    border-radius: 7px;
}

.participant-card {
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 8px 20px rgba(37, 70, 94, .045);
}

.participant-inline {
    display: block;
    margin: 18px 0;
}
.participant-choice {
    display: flex;
    align-items: center;
    min-height: 48px;
    gap: 10px;
}
.participant-choice input {
    width: 18px;
    height: 18px;
    margin: 0;
    flex: 0 0 auto;
}
.custom-registration-checkbox > span { display: grid; gap: 3px; }
.custom-registration-checkbox small { color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.4; }

.participant-inline .participant-card {
    display: block;
    margin: 0;
}

.participant-inline .participant-title {
    display: none;
}

.public-variant-static {
    display: grid;
    gap: 8px;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--blue);
    border-radius: 6px;
    background: #f8fbfd;
}

.public-variant-static > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.public-variant-static > strong {
    color: var(--ink);
    line-height: 1.45;
}

.public-variant-schedule {
    display: grid;
    gap: 5px;
    padding-top: 6px;
    border-top: 1px solid var(--line);
}

.public-variant-schedule div {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 8px;
}

.participant-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.participant-title h3 {
    margin: 0;
    font-size: 16px;
}

.remove-participant {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #f3c3cc;
    border-radius: 50%;
    background: #fff4f6;
    color: var(--danger);
    font-size: 19px;
}

.consents {
    display: grid;
    gap: 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
}

.consents > .consent-context {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #f8fbfd;
}

.consents > label,
.payment-methods label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    line-height: 1.45;
}

.consents input,
.payment-methods input {
    flex: 0 0 19px;
    width: 19px;
    min-height: 19px;
    margin: 1px 0 0;
    accent-color: var(--blue);
}

.consents > .consent-option:not(.is-required) + .consent-option.is-required {
    margin-top: 5px;
}

.consent-required-mark {
    margin-left: 4px;
    color: var(--danger);
    font-style: normal;
    font-weight: 800;
}

.consent-document-upload,
.consent-document-link {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.consent-document-upload {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
}

.consent-document-upload > strong a,
.consent-document-link a {
    color: var(--blue-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.consent-document-upload > strong,
.consent-document-upload > span {
    grid-column: 1 / -1;
}

.consent-document-upload > span {
    color: #52677d;
    font-size: 12px;
    font-weight: 600;
}

.consent-document-file {
    position: absolute;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.consent-document-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    margin: 0;
    padding: 8px 13px;
    border: 1px solid #b7dff3;
    border-radius: 6px;
    background: #eef9fe;
    color: var(--blue-dark);
    cursor: pointer;
    font-size: 13px;
}

.consent-document-file-button:hover,
.consent-document-file-button.has-file {
    border-color: var(--blue);
    background: #e2f5fd;
}

.consent-document-file-name {
    min-width: 0;
    overflow: hidden;
    color: #60758b;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.consent-document-link {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: #52677d;
    font-size: 13px;
}

.public-event-section {
    margin-top: 38px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
}

.public-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.public-section-heading > span {
    color: var(--ink);
    font-size: 21px;
    font-weight: 800;
}

.public-section-heading > strong {
    max-width: 62%;
    color: var(--muted);
    font-size: 13px;
    text-align: right;
}

.public-schedule-layout {
    display: block;
    width: 100%;
}

.public-schedule-layout.is-calendar-only {
    display: block;
}

.public-shift-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.public-shift-overview[hidden] {
    display: none;
}

.public-shift-card {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: 5px minmax(0, 1fr);
    gap: 11px;
    min-width: 0;
    padding: 12px 13px 12px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.public-shift-card:hover,
.public-shift-card:focus-visible {
    border-color: var(--shift-color);
    box-shadow: 0 5px 15px rgba(37, 70, 94, .1);
    outline: none;
}

.public-shift-card.is-active {
    border-color: var(--shift-color);
    background: color-mix(in srgb, var(--shift-color) 6%, #fff);
    box-shadow: 0 6px 18px rgba(37, 70, 94, .09);
}

.public-shift-card.is-unavailable {
    cursor: not-allowed;
    opacity: .58;
}

.public-shift-card.is-unavailable:hover,
.public-shift-card.is-unavailable:focus-visible {
    border-color: var(--line);
    box-shadow: none;
}

.public-shift-color {
    width: 5px;
    min-height: 100%;
    border-radius: 999px;
    background: var(--shift-color);
}

.public-shift-card-copy {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.public-shift-card-copy > strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.3;
}

.public-shift-date {
    color: #52677d;
    font-size: 13px;
    line-height: 1.35;
}

.public-shift-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.public-shift-meta span {
    min-width: 0;
}

.public-shift-meta b {
    color: #52677d;
    font-weight: 700;
}

.public-calendar {
    display: block;
    width: 100%;
    max-width: 710px;
    margin-right: auto;
    margin-left: 0;
    padding: 3px 2px 11px;
    overflow: visible;
}

.public-calendar-toolbar {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    margin-bottom: 9px;
}

.public-calendar-title {
    text-align: center;
    text-transform: capitalize;
}

.public-calendar-nav {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    font: 700 26px/1 Arial, sans-serif;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.public-calendar-nav:last-child {
    justify-self: end;
}

.public-calendar-nav:hover:not(:disabled),
.public-calendar-nav:focus-visible {
    border-color: var(--blue);
    background: #eef8fd;
    outline: none;
}

.public-calendar-nav:disabled {
    color: #b9c4cf;
    cursor: default;
    opacity: .55;
}

.public-calendar-viewport {
    min-height: 394px;
}

.public-calendar-month {
    width: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(37, 70, 94, .05);
}

.public-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 7px;
    text-align: center;
}

.public-calendar-grid > span {
    display: flex;
    min-width: 0;
    min-height: 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 5px 3px;
    border-radius: 7px;
    font-size: 12px;
}

.public-calendar.is-date-only .public-calendar-viewport {
    min-height: 306px;
}

.public-calendar.is-date-only .public-calendar-month {
    padding: 14px;
}

.public-calendar.is-date-only .public-calendar-grid {
    gap: 5px;
}

.public-calendar.is-date-only .public-calendar-grid > span {
    min-height: 34px;
    gap: 0;
    padding: 3px;
}

.public-calendar.is-date-only .public-calendar-grid .weekday {
    min-height: 24px;
}

.public-calendar-grid .weekday {
    min-height: 28px;
    padding: 0;
    color: #8a98aa;
    font-size: 11px;
    font-weight: 800;
}

.public-calendar-grid .empty {
    visibility: hidden;
}

.public-calendar-grid .selected {
    background: var(--blue);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 5px 13px rgba(0, 143, 213, .24);
}

.public-calendar-grid .public-calendar-shift-day {
    border: 1px solid var(--shift-day-border);
    background: var(--shift-day-background);
    color: var(--ink);
}

.public-calendar-shift-markers {
    display: flex;
    width: min(38px, 86%);
    height: 4px;
    gap: 2px;
}

.public-calendar-shift-marker {
    display: block;
    min-width: 3px;
    height: 3px;
    flex: 1 1 0;
    border-radius: 999px;
    background: var(--shift-color);
    opacity: .68;
}

.public-calendar-shift-marker.is-active {
    height: 4px;
    opacity: 1;
}

.public-calendar-day-number {
    font-size: 13px;
    font-weight: 400;
    line-height: 1;
}

.public-calendar-day-time {
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.payment-methods label span {
    display: grid;
    gap: 2px;
}

.payment-methods label small {
    color: var(--muted);
    font-weight: 500;
}

.payment-methods label:has(input:checked) {
    border-color: var(--blue);
    background: #f5fbff;
    box-shadow: 0 0 0 1px rgba(0, 159, 227, .08);
}

.payment-methods .payment-method-description {
    margin-top: 3px;
    color: #44556a;
    font-size: 12.5px;
    line-height: 1.5;
}

.payment-methods .manual-payment-choice-note {
    display: none;
    margin-top: 8px;
    padding: 9px 11px;
    border-left: 3px solid var(--blue);
    border-radius: 4px;
    background: #eaf7fd;
    color: #31536a;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.45;
}

.payment-methods input:checked + span .manual-payment-choice-note {
    display: block;
}

.public-team {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.public-team article {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
}

.public-team-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8f7fd;
    color: var(--blue-dark);
    font-weight: 850;
}

.public-team article div {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.public-team article span,
.public-team article small {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.public-team article a {
    color: var(--blue-dark);
    text-decoration: none;
}

.public-event-map {
    display: block;
    width: 100%;
    height: 390px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--soft);
}

.public-event-map-shell {
    position: relative;
}

.public-event-map-shell.has-contacts .public-event-map {
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
}

.public-event-map-embed {
    border: 1px solid var(--line);
}

.public-map-open-button {
    position: absolute;
    z-index: 1000;
    top: 12px;
    right: 12px;
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid rgba(15, 42, 63, .18);
    border-radius: 4px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 2px 8px rgba(15, 42, 63, .18);
    color: #10243b;
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.public-map-open-button:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-1px);
}

.public-map-marker {
    background: transparent;
    border: 0;
}

.public-map-marker span {
    position: relative;
    display: block;
    width: 34px;
    height: 34px;
    border: 5px solid #fff;
    border-radius: 50% 50% 50% 8px;
    background: var(--blue);
    box-shadow: 0 7px 18px rgba(10, 49, 75, .28);
    transform: rotate(-45deg);
}

.public-map-marker span::after {
    content: "";
    position: absolute;
    top: 7px;
    left: 7px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--yellow);
    animation: public-marker-pulse 1.8s ease-in-out infinite;
}

.public-contact-band {
    position: relative;
    display: block;
    margin-top: 42px;
    padding: 22px 26px;
    overflow: hidden;
    border-radius: 8px;
    background: #10243b;
    color: #fff;
}

.public-contact-band--attached {
    margin-top: 0;
    border-radius: 0 0 8px 8px;
}

.public-motion .public-contact-band--attached.public-reveal {
    opacity: 1;
    transform: none;
}

.public-contact-band::before {
    content: "";
    position: absolute;
    top: 0;
    left: 30px;
    width: 36px;
    height: 5px;
    background: var(--blue);
    box-shadow: 40px 0 0 var(--yellow), 80px 0 0 var(--green), 120px 0 0 var(--magenta);
}

.public-contact-links small {
    color: #a9bed0;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.public-contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 11px;
}

.public-contact-links a {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border-left: 2px solid rgba(255, 255, 255, .24);
    color: #fff;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease;
}

.public-contact-links a:hover {
    border-left-color: var(--yellow);
    background: rgba(255, 255, 255, .06);
}

.public-contact-links strong {
    overflow-wrap: anywhere;
    font-size: 13px;
}

.pricing-panel,
.payment-methods,
.bank-transfer-info,
.service-registration-note {
    border: 1px solid var(--line);
    background: #f7fafc;
}

.pricing-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 16px 18px;
}

.pricing-panel.is-single {
    grid-template-columns: minmax(0, 1fr);
}

.pricing-panel > div {
    display: grid;
    gap: 5px;
}

.pricing-panel span {
    color: var(--muted);
    font-size: 12px;
}

.pricing-panel strong,
.total strong {
    font-size: 23px;
}

.payment-plan-choice {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding: 13px 14px;
    border: 1px solid #b9dff3;
    border-radius: 7px;
    background: #f5fbff;
}

.payment-plan-choice-heading {
    display: grid;
    gap: 3px;
}

.payment-plan-choice-heading > span {
    font-size: 15px;
    font-weight: 800;
}

.payment-plan-choice-heading > small,
.payment-plan-options small {
    color: var(--muted);
    line-height: 1.45;
}

.payment-plan-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 10px;
    align-items: stretch;
}

.payment-plan-options label {
    position: relative;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 68px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease, transform .16s ease;
}

.payment-plan-options label:hover {
    border-color: #8ccfed;
    background: #fbfdff;
}

.payment-plan-options label:has(input:checked) {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(0, 157, 219, .12);
}

.payment-plan-options input {
    appearance: none;
    -webkit-appearance: none;
    display: grid;
    place-items: center;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    margin: 1px 0 0 !important;
    padding: 0 !important;
    border: 1px solid #b9c7d6;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
}

.payment-plan-options input::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--blue);
    transform: scale(0);
    transition: transform .14s ease;
}

.payment-plan-options input:checked {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(0, 157, 219, .14);
}

.payment-plan-options input:checked::before {
    transform: scale(1);
}

.payment-plan-options label > span {
    display: grid;
    gap: 3px;
    min-width: 0;
    align-self: center;
}

.payment-plan-options strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
}

.payment-plan-options small {
    display: block;
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.monthly-payment-summary {
    display: grid;
    gap: 15px;
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #b9dff3;
    border-left: 4px solid var(--blue);
    border-radius: 7px;
    background: #f5fbff;
}

.monthly-payment-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.monthly-payment-heading > div,
.monthly-payment-installment-copy,
.monthly-payment-installment-price {
    display: grid;
    gap: 3px;
}

.monthly-payment-heading span,
.monthly-payment-heading small,
.monthly-payment-installment small {
    color: var(--muted);
    font-size: 12px;
}

.monthly-payment-heading > div:first-child > strong {
    font-size: 18px;
}

.monthly-payment-rate {
    text-align: right;
}

.monthly-payment-rate > strong {
    font-size: 21px;
}

.monthly-payment-summary > p {
    margin: 0;
    color: #40566a;
    line-height: 1.55;
}

.monthly-payment-installments {
    display: grid;
    gap: 7px;
}

.monthly-payment-installment {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.monthly-payment-index {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.monthly-payment-installment-price {
    text-align: right;
}

.monthly-payment-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid #cce6f3;
}

.monthly-payment-total strong {
    font-size: 21px;
}

.registration-review-monthly {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 16px;
    border-left: 4px solid var(--blue);
    border-radius: 6px;
    background: #eef8fd;
}

.registration-review-monthly > div {
    display: grid;
    gap: 3px;
}

.registration-review-monthly span,
.registration-review-monthly small {
    color: var(--muted);
}

.registration-review-monthly small {
    grid-column: 1 / -1;
}

.total {
    margin-top: 16px;
    border-left: 4px solid var(--yellow);
    background: #f5f9fc;
}

.form-error {
    border: 1px solid #f2c5ce;
    border-left: 4px solid var(--danger);
    background: #fff4f6;
}

.public-error {
    width: min(680px, calc(100% - 32px));
    margin: 10vh auto;
    padding: 42px;
    border: 1px solid var(--line);
    border-top: 5px solid var(--blue);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(23, 59, 83, .12);
    text-align: center;
}

.public-motion .public-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .48s ease, transform .48s ease;
}

.public-motion .public-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes public-hero-in {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes public-step-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes public-marker-pulse {
    0%, 100% { transform: scale(.8); opacity: .8; }
    50% { transform: scale(1.2); opacity: 1; }
}

@media (max-width: 1240px) {
    .registration-layout {
        grid-template-columns: minmax(0, 52%) minmax(460px, 48%);
    }

    .event-cover {
        min-height: 370px;
        padding: 38px;
    }

    .event-cover h1 {
        font-size: 36px;
    }

    .event-details {
        padding: 32px 36px 42px;
    }

    .form-pane {
        padding: 32px 30px 48px;
    }

    .stepper button span {
        font-size: 12px;
    }
}

@media (max-width: 1040px) {
    .registration-layout {
        grid-template-columns: 1fr;
        border: 0;
    }

    .event-pane {
        border-right: 0;
    }

    .event-cover {
        min-height: 430px;
    }

    .form-pane {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 720px) {
    .public-header {
        height: 68px;
    }

    .public-header-inner {
        width: calc(100% - 28px);
    }

    .public-header img,
    .public-header-inner img {
        width: 78px;
        height: 50px;
    }

    .registration-layout {
        min-height: calc(100vh - 68px);
    }

    .event-cover {
        min-height: 330px;
        padding: 28px 22px;
    }

    .event-cover h1 {
        font-size: 31px;
    }

    .event-details {
        padding: 28px 20px 34px;
    }

    .event-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-pane {
        padding: 28px 18px 42px;
    }

    .participant-list-item,
    .registration-review-item {
        grid-template-columns: 1fr;
    }

    .participant-list-actions,
    .registration-review-price {
        align-items: center;
        justify-content: flex-start;
        flex-direction: row;
        padding-left: 46px;
    }

    .step-heading {
        display: block;
    }

    .public-modal {
        padding: 12px;
    }

    .public-modal-dialog {
        max-height: calc(100vh - 24px);
    }

    .stepper button {
        justify-content: center;
        padding-right: 3px;
        padding-left: 3px;
    }

    .stepper button span {
        display: none;
    }

    .form-grid,
    .public-schedule-layout,
    .public-shift-overview,
    .registration-review-meta,
    .public-team,
    .public-contact-band {
        grid-template-columns: 1fr;
    }

    .form-grid .wide {
        grid-column: auto;
    }

    .public-section-heading {
        display: block;
    }

    .public-section-heading > strong {
        display: block;
        max-width: none;
        margin-top: 6px;
        text-align: left;
    }

    .public-event-map {
        height: 300px;
    }

    .public-contact-band {
        padding: 26px 22px;
    }

    .public-contact-links {
        grid-template-columns: 1fr;
    }

    .monthly-payment-heading {
        align-items: flex-start;
    }

    .payment-plan-options {
        grid-template-columns: 1fr;
    }

    .monthly-payment-installment {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .monthly-payment-installment-price {
        grid-column: 2;
        text-align: left;
    }

    .registration-review-monthly {
        grid-template-columns: 1fr;
    }

    .registration-review-monthly small {
        grid-column: auto;
    }
}

@media (max-width: 460px) {
    .public-calendar-month {
        padding: 11px 8px;
    }

    .public-calendar-grid {
        gap: 4px;
    }

    .public-calendar-grid > span {
        min-height: 44px;
        padding-inline: 1px;
    }

    .public-calendar-day-time {
        font-size: 9px;
    }

    .public-header-status {
        max-width: 64%;
        font-size: 11px;
        line-height: 1.2;
        text-align: right;
    }

    .event-cover {
        min-height: 290px;
    }

    .event-cover h1 {
        font-size: 27px;
    }

    .event-facts {
        grid-template-columns: 1fr;
    }

    .form-step h2,
    .success-panel h2 {
        font-size: 23px;
    }

    .form-actions button,
    .form-actions .link-button {
        flex: 1 1 auto;
    }

    .participant-list-actions,
    .registration-review-price {
        padding-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

input.is-invalid,
select.is-invalid,
textarea.is-invalid {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 93, .10) !important;
}

input[type="checkbox"].is-invalid,
input[type="radio"].is-invalid {
    outline: 2px solid rgba(239, 68, 93, .55);
    outline-offset: 2px;
}

.field-validation-error {
    display: block;
    width: 100%;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}

.success-payment-purpose {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    padding: 16px 18px;
    border: 2px solid var(--blue);
    border-radius: 8px;
    background: #eaf7ff;
    text-align: left;
}

.success-payment-purpose span {
    color: #087eb8;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.success-payment-purpose strong {
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.success-payment-purpose small {
    color: #4f5d72;
    font-size: 13px;
    line-height: 1.4;
}

.success-payment-purpose {
    max-width: 620px;
    margin: 0 auto 20px;
}

.success-bank-transfer-info {
    max-width: 620px;
    margin: 0 auto 14px;
    text-align: left;
}

.success-document-actions {
    display: flex;
    justify-content: center;
    margin: -6px auto 20px;
}
