body {
    background: #f5f8fb;
    color: #172033;
    font-family: Inter, Arial, sans-serif;
}

.registration-shell {
    min-height: 100vh;
    padding: 52px 0 64px;
}

.formify-forms.registration-card {
    padding: 54px 58px;
    border: 1px solid #dce6f2;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 60px rgba(16, 24, 40, 0.06);
}

.registration-brand {
    margin: 0 auto 36px;
}

.registration-brand img {
    width: min(650px, 86vw);
    height: auto;
}

.registration-card-heading {
    margin-bottom: 12px;
}

.event-title {
    margin: 0 0 6px;
    color: #172033;
    font-size: 26px;
    line-height: 1.25;
    font-weight: 800;
}

.event-subtitle {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 24px;
}

.registration-stepper {
    max-width: 760px;
    margin: 28px auto 42px;
}

.registration-card .registration-stepper::before {
    left: 48px;
    right: 48px;
    width: auto;
    z-index: 0;
}

.registration-card .registration-stepper::after {
    content: "";
    position: absolute;
    left: 48px;
    top: 25px;
    width: var(--progress-width, 0px);
    height: 3px;
    background: #df1f2d;
    z-index: 0;
    transition: width 0.2s ease;
}

.registration-card .registration-stepper .list-group-item.active::after {
    display: none !important;
}

.registration-stepper .list-group-item {
    cursor: default;
    pointer-events: none;
    position: relative;
    z-index: 2 !important;
}

.registration-stepper .fstp-count {
    z-index: 3 !important;
}

.registration-card .formify-form__booking-nav .list-group-item.active .fstp-count,
.registration-card .formify-form__booking-nav .list-group-item.active-done .fstp-count,
.registration-card .formify-form__booking-nav .list-group-item.active .fstp-text {
    color: #df1f2d;
}

.registration-card .formify-form__booking-nav .list-group-item.active-done .fstp-count {
    background: #df1f2d;
    color: #fff;
}

.registration-card .formify-form__booking-nav .list-group-item.active::after {
    background: #df1f2d;
}

.form-step {
    display: none;
}

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

.field-label {
    display: block;
    margin-bottom: 8px;
    color: #1f2937;
    font-weight: 700;
}

.required {
    color: #df1f2d;
}

.form-control,
.form-select {
    min-height: 48px;
    border-color: #d5dbe7;
    border-radius: 8px;
}

.registration-card select.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 52px !important;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='11' viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 2L9 9L16 2' stroke='%23172033' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 16px 10px !important;
}

.form-control:focus,
.form-select:focus {
    border-color: #2f5cff;
    box-shadow: 0 0 0 0.2rem rgba(47, 92, 255, 0.14);
}

.info-box {
    border-left: 4px solid #df1f2d;
    background: #fff6f7;
    color: #7f1d1d;
    padding: 14px 16px;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 600;
}

.emergency-card {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-left: 6px solid #dc2626;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 22px;
}

.transport-card-group {
    display: grid;
    grid-template-columns: repeat(2, 194px);
    gap: 30px;
    justify-content: center;
}

.transport-card {
    display: flex !important;
    position: relative;
    width: 194px;
    height: 203px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f1f1f1;
    color: #9b9b9b;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.transport-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.transport-icon {
    display: flex;
    width: 112px;
    height: 112px;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
}

.transport-icon i {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-size: 92px;
    line-height: 1;
}

.transport-title {
    color: #111827;
    font-size: 22px;
    font-weight: 700;
}

.transport-card:hover,
.transport-card.selected {
    border-color: #2f5cff;
    background: #eef4ff;
    color: #2f5cff;
    box-shadow: 0 8px 24px rgba(47, 92, 255, 0.12);
}

.transport-card.selected .transport-title {
    color: #2f5cff;
}

.pickup-card-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.pickup-wrap {
    display: none !important;
}

.pickup-wrap.is-visible {
    display: block !important;
}

.pickup-card {
    display: flex !important;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0;
    padding: 0 22px;
    cursor: pointer;
    border: 1px solid #d5dbe7;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font-size: 18px;
    font-weight: 700;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.pickup-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pickup-card i {
    display: flex;
    width: 24px;
    height: 24px;
    min-width: 24px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d5dbe7;
    border-radius: 6px;
    color: transparent;
    font-size: 14px;
}

.pickup-card:hover,
.pickup-card.selected {
    border-color: #2f5cff;
    background: #eef4ff;
    box-shadow: 0 6px 18px rgba(47, 92, 255, 0.1);
}

.pickup-card input:disabled + span,
.pickup-card input:disabled + span + i {
    opacity: 0.55;
}

.pickup-card.selected i {
    border-color: #2f5cff;
    background: #2f5cff;
    color: #fff;
}

.family-item {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
    margin-bottom: 12px;
}

.family-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.9fr) minmax(180px, 1fr) auto;
    gap: 20px;
    align-items: end;
}

.family-delete {
    display: flex;
    align-items: end;
    justify-content: flex-end;
}

.family-actions,
.button-row {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.btn-red {
    background: #df1f2d;
    border: 0;
    color: #fff;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 8px;
    font-weight: 800;
}

.btn-red:hover {
    background: #b91c1c;
    color: #fff;
}

.btn-muted {
    border: 1px solid #d0d5dd;
    background: #fff;
    color: #344054;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 700;
}

.registration-card .formify-btn {
    background: #df1f2d;
}

.registration-card .formify-btn:hover {
    background: #101010;
}

.registration-card .formify-btn.prev-step {
    background: #e1e5ed;
    color: #334155;
}

.registration-card .formify-btn.prev-step:hover {
    background: #df1f2d;
    color: #fff;
}

.registration-card .formify-btn.formify-btn__delete {
    min-width: 72px;
    height: 48px;
    padding: 0 14px;
    background: #dc2626;
    font-size: 14px;
}

.error-text {
    color: #b42318;
    font-size: 13px;
    margin-top: 6px;
}

.server-errors {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 20px;
}

.consent-modal,
.loading-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    padding: 20px;
}

.modal-panel {
    position: relative;
    z-index: 2147483001 !important;
    width: min(760px, 100%);
    max-height: 88vh;
    overflow: auto;
    border-radius: 14px;
    background: #fff;
    padding: 26px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
}


.modal-panel h2 {
    font-size: 24px;
    color: #111827;
    margin-bottom: 12px;
}

.consent-logo {
    margin: 0 auto 22px;
    text-align: center;
}

.consent-logo img {
    width: min(50%, 360px);
    height: auto;
}

.consent-list {
    padding-left: 18px;
}

.consent-list li {
    margin-bottom: 10px;
    line-height: 1.55;
}

.consent-check-row {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.consent-check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    margin: 6px 0 0;
    aspect-ratio: 1 / 1;
}

.consent-check-row span {
    line-height: 1.45;
}

.loading-modal {
    display: none;
}

.spinner {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 6px solid #fee2e2;
    border-top-color: #df1f2d;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 18px;
}

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

.success-card {
    text-align: center;
    padding-top: 58px;
}

.qr-frame {
    display: inline-block;
    padding: 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    margin: 28px auto 18px;
}

.qr-frame img {
    width: min(320px, 76vw);
    height: auto;
}

.success-card .event-title {
    font-size: 28px;
}

.success-card .formify-forms__booking-title {
    margin-top: 4px;
    margin-bottom: 10px;
    font-size: 18px;
}

.success-card .formify-btn {
    margin-top: 12px;
    min-width: 194px;
}

.success-card .info-box {
    width: min(540px, 100%);
    margin: 24px auto 0;
    text-align: center;
}

@media (max-width: 575px) {
    .registration-shell {
        padding: 28px 0 40px;
    }

    .formify-forms.registration-card {
        padding: 28px 18px;
    }

    .registration-brand {
        margin-bottom: 22px;
    }

    .consent-logo img {
        width: 78%;
    }

    .event-title {
        font-size: 21px;
    }

    .registration-stepper .fstp-text {
        font-size: 12px;
    }

    .family-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .family-delete {
        justify-content: flex-start;
    }

    .transport-card-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        justify-items: center;
    }

    .transport-card {
        width: 100%;
        max-width: 160px;
        height: 154px;
        gap: 12px;
    }

    .transport-icon {
        width: 80px;
        height: 80px;
    }

    .transport-icon i {
        font-size: 68px;
    }

    .transport-title {
        font-size: 16px;
        text-align: center;
    }

    .pickup-card {
        min-height: 64px;
        padding: 0 14px;
        font-size: 14px;
    }
}
