/* ── Wide layout for registration page ───────────────────── */
body.registration-page {
    display: block;
    padding: 0 0 3rem;
}

.header-img {
    display: block;
    width: 100%;
    clear: both;
}

.header-img img {
    display: block;
    width: 100%;
    height: auto;
}

.container.wide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ── Portal intro card ───────────────────────────────────── */
.intro-card { margin-bottom: 1.25rem; }
.intro-card .section-title { margin-bottom: .25rem; }
.portal-hero { margin-bottom: .35rem; }
.portal-lead {
    font-size: 1.08rem;
    color: var(--text);
    line-height: 1.65;
}
.portal-block { margin-top: 1rem; }
.portal-block:first-child { margin-top: 0; }
.portal-block h3,
.portal-policy h3,
.portal-roadmap-item h4 {
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text);
    margin-bottom: .45rem;
}
.portal-block p,
.portal-policy p {
    font-size: .99rem;
    color: var(--text);
    line-height: 1.65;
    padding-bottom: 10px;
}
.portal-block a,
.portal-policy a {
    color: var(--brand);
    text-decoration: none;
}
.portal-block a:hover,
.portal-policy a:hover { text-decoration: underline; }
.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
    margin-top: 1rem;
}
.portal-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.portal-stack {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    margin-top: 1rem;
}
.portal-policy {
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fafbff;
}
.portal-policy-emphasis {
    background: linear-gradient(180deg, #f7fbff 0%, #fdfefe 100%);
    border-color: #cfe0ff;
}
.portal-footer-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 0;
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fbff;
}
.portal-footer-copy {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}
.portal-footer-kicker {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}
.portal-next-btn {
    width: auto;
    min-width: 150px;
    padding-inline: 1.4rem;
}
.portal-choice-list {
    display: grid;
    gap: .7rem;
    margin-top: .8rem;
}
.portal-choice-list-compact { gap: .55rem; }
.portal-choice-card {
    padding: .75rem .85rem;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--white);
    font-size: .95rem;
    line-height: 1.55;
}
.portal-choice-card-strong {
    border-color: #bfd4ff;
    background: #f3f8ff;
    font-weight: 600;
}
.portal-notes ul {
    margin: .65rem 0 0 1.2rem;
    color: var(--text);
}
.portal-notes li {
    margin-bottom: .35rem;
    font-size: .99rem;
}
.portal-roadmap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .9rem;
    margin-top: .9rem;
}
.portal-roadmap-item {
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #ffffff;
    scroll-margin-top: 1.5rem;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.portal-stage-card.is-active {
    border-color: #93c5fd;
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, .12);
}
.portal-roadmap-item p {
    margin: 0;
    font-size: .95rem;
    line-height: 1.6;
}

/* ── Form cards ───────────────────────────────────────────── */
.form-card { margin-bottom: 1.25rem; }
.form-card .section-title { margin-bottom: 1.25rem; }
.section-sub { font-size: .92rem; color: var(--muted); margin: -.75rem 0 1rem; }
.early-bird-note {
    font-size: .86rem;
    color: var(--brand);
    background: rgba(26, 86, 219, 0.08);
    border: 1px solid var(--brand);
    border-radius: 8px;
    padding: .6rem .9rem;
    margin: -.5rem 0 1rem;
}

/* ── Form grid ────────────────────────────────────────────── */
.form-row { display: flex; gap: 1rem; margin-bottom: .85rem; }
.form-row.two > * { flex: 1; min-width: 0; }

.form-group { display: flex; flex-direction: column; gap: .3rem; }
.form-group label {
    font-size: .82rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .02em;
}
.form-group.required > label::after { content: ' *'; color: var(--error); }

.form-group input,
.form-group select {
    padding: .55rem .75rem;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: .92rem;
    color: var(--text);
    background: var(--white);
    transition: border-color .15s;
    width: 100%;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand);
}
.form-group input::placeholder { color: #c0c4cc; }

/* ── Alert ────────────────────────────────────────────────── */
.alert-error {
    background: var(--error-bg);
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: .9rem 1.1rem;
    margin-bottom: 1rem;
    font-size: .99rem;
    color: var(--error);
}
.alert-error ul { margin: .4rem 0 0 1.2rem; }
.alert-error li { margin-bottom: .2rem; }

/* ── Registration type groups ─────────────────────────────── */
.reg-group { margin-bottom: 1.25rem; }
.group-label {
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
    margin-bottom: .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border);
}

.reg-options { display: flex; flex-direction: column; gap: .4rem; }

.reg-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .65rem .85rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    position: relative;
}
.reg-option:hover { border-color: var(--brand); background: #f0f6ff; }
.reg-option.selected { border-color: var(--brand); background: #eff6ff; }

.reg-option input[type="radio"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--brand);
    cursor: pointer;
}

.reg-name {
    display: flex;
    flex-direction: column;
    flex: 1;
    font-size: .99rem;
    font-weight: 500;
    line-height: 1.4;
}

.reg-name small {
    color: var(--muted);
}

.reg-price {
    font-size: .99rem;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Summary card ─────────────────────────────────────────── */
.summary-card { margin-bottom: 1.25rem; background: #f8faff; }

/* ── Actions ──────────────────────────────────────────────── */
.form-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: .5rem;
}
.form-actions-col { flex: 1 1 0; }
.form-actions .btn-pay { max-width: 340px; margin: 0 auto; }

.payment-badges {
    display: flex;
    justify-content: center;
    gap: .75rem;
    margin-top: .75rem;
}
.payment-badges img { height: 65px; width: auto; }

/* ── Required marker ──────────────────────────────────────── */
.req { color: var(--error); }

/* ── Attendance type cards ───────────────────────────────── */
.attendance-options { display: flex; flex-direction: column; gap: .5rem; }

.attendance-option {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.attendance-option:hover { border-color: var(--brand); background: #f0f6ff; }
.attendance-option.selected { border-color: var(--brand); background: #eff6ff; }
.attendance-option input[type="radio"] {
    width: 16px; height: 16px; flex-shrink: 0;
    accent-color: var(--brand); cursor: pointer;
}

/* ── Attendee category cards ──────────────────────────────── */
.cat-options { display: flex; flex-direction: column; gap: .5rem; }

.cat-option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.cat-option:hover  { border-color: var(--brand); background: #f0f6ff; }
.cat-option.selected { border-color: var(--brand); background: #eff6ff; }
.cat-option-main {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    min-width: 0;
}
.cat-option input[type="radio"] {
    width: 16px; height: 16px; flex-shrink: 0; margin-top: .15rem;
    accent-color: var(--brand); cursor: pointer;
}
.cat-label {
    display: block;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text);
}
.cat-price {
    font-size: .9rem;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── VAT toggle ───────────────────────────────────────────── */
/* Hidden — VAT is now auto-applied based on the attendee's country
   (see register-page JS) rather than a manual opt-in. */
#vatSection { display: none !important; }
.vat-toggle {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .86rem;
    color: var(--text);
    cursor: pointer;
    padding: .4rem 0;
}
.vat-toggle input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: var(--brand); cursor: pointer;
}

/* ── Inline radio (Yes / No toggles) ─────────────────────── */
.radio-inline {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    padding: .45rem 0;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .92rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
}
.radio-label input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: var(--brand);
    cursor: pointer;
    flex-shrink: 0;
}

/* ── Visa fields animated reveal ──────────────────────────── */
#visaFields { margin-top: .75rem; }

/* ── Passport upload dropzone ─────────────────────────────── */
.field-hint {
    font-weight: 400;
    font-size: .78rem;
    color: var(--muted);
}
.upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1.4rem 1rem;
    border: 2px dashed var(--border);
    border-radius: 9px;
    background: #f9fafb;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    text-align: center;
}
.upload-dropzone:hover,
.upload-dropzone.drag-over {
    border-color: var(--brand);
    background: #eff6ff;
}
.upload-dropzone.has-file {
    border-color: #16a34a;
    background: #f0fdf4;
}
.upload-icon { font-size: 1.6rem; line-height: 1; }
.upload-text {
    font-size: .85rem;
    color: var(--muted);
    word-break: break-all;
}
.upload-dropzone.has-file .upload-text { color: #16a34a; font-weight: 600; }
.upload-input {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0; overflow: hidden;
}
.upload-saved {
    font-size: .8rem;
    color: var(--muted);
    margin-top: .35rem;
}

/* ── Consent choice cards (radio / checkbox) ─────────────────── */
.portal-choice-card {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.portal-choice-card:hover { border-color: var(--brand); background: #f7faff; }
.portal-choice-card:has(input:checked) {
    border-color: var(--brand);
    background: #eff6ff;
}
.portal-choice-card input[type="radio"],
.portal-choice-card input[type="checkbox"] {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    margin-top: .15rem;
    accent-color: var(--brand);
    cursor: pointer;
}
.portal-choice-checkbox { align-items: flex-start; }
p.step-error {
    color: var(--error);
    font-size: .85rem;
    margin-top: .6rem;
    font-weight: 600;
}

/* ── Wizard stepper ───────────────────────────────────────────── */
.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    margin-bottom: 1.5rem;
    padding: .9rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
}
.wizard-step-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 1;
    min-width: 0;
    cursor: default;
    opacity: .5;
}
.wizard-step-item.active,
.wizard-step-item.completed { opacity: 1; }
.wizard-step-item.completed { cursor: pointer; }
.wizard-step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--border);
    color: var(--muted);
    font-size: .78rem;
    font-weight: 700;
}
.wizard-step-item.active .wizard-step-num,
.wizard-step-item.completed .wizard-step-num {
    background: var(--brand);
    color: var(--white);
}
.wizard-step-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wizard-step-item.active .wizard-step-label,
.wizard-step-item.completed .wizard-step-label { color: var(--text); }

/* ── Step footer (Back / Next) ───────────────────────────────── */
.step-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 1.5rem;
}
.step-footer .btn-pay,
.step-footer .btn-secondary { width: auto; min-width: 150px; padding-inline: 1.4rem; }

.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .9rem 1.5rem;
    background: var(--white);
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.btn-secondary:hover { border-color: var(--brand); background: #f7faff; }

/* ── Workshop options (Pre-Congress Workshops step) ──────────── */
.workshop-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .75rem .9rem;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    margin-bottom: .5rem;
}
.workshop-option:last-child { margin-bottom: 0; }
.workshop-option:hover { border-color: var(--brand); background: #f0f6ff; }
.workshop-option.selected { border-color: var(--brand); background: #eff6ff; }
.workshop-option.disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.workshop-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--brand);
    cursor: pointer;
}
.workshop-info { display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.workshop-name { font-size: .96rem; font-weight: 500; line-height: 1.4; }
.workshop-meta { font-size: .78rem; color: var(--muted); }
.workshop-day-group { margin-top: 1.5rem; }
.workshop-day-group:first-child { margin-top: 0; }
.workshop-day-title { font-size: 1rem; font-weight: 600; color: var(--text); margin: 0 0 .25rem; }
.workshop-day-sub { font-size: .82rem; color: var(--muted); margin: 0 0 .6rem; }

/* ── Summary step (review + edit) ────────────────────────────── */
.summary-section { margin-bottom: 1.25rem; }
.summary-section:last-child { margin-bottom: 0; }
.summary-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: .3rem;
}
.summary-section-head h3 {
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}
.summary-edit-btn {
    background: none;
    border: none;
    color: var(--brand);
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.summary-edit-btn:hover { text-decoration: underline; }

/* ── Area of Interest ─────────────────────────────────────────── */
.aoi-list { display: flex; flex-direction: column; gap: .9rem; }
.aoi-specialty {
    padding: .85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: 9px;
}
.aoi-interest-toggle {
    display: flex;
    align-items: center;
    gap: .55rem;
    cursor: pointer;
    font-size: .96rem;
    font-weight: 600;
    color: var(--text);
}
.aoi-interest-toggle input[type="checkbox"] {
    width: 16px; height: 16px;
    accent-color: var(--brand);
    cursor: pointer;
}
.aoi-topics {
    display: none !important;
    flex-wrap: wrap;
    gap: .5rem .9rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}
.aoi-topic-option {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .88rem;
    color: var(--text);
    cursor: pointer;
}
.aoi-topic-option input[type="checkbox"] {
    width: 14px; height: 14px;
    accent-color: var(--brand);
    cursor: pointer;
}
.aoi-other-input {
    width: 100%;
    margin-top: .5rem;
    padding: .5rem .7rem;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: .88rem;
}
.aoi-other-input:focus { outline: none; border-color: var(--brand); }

/* ── Phone number (country code + number) ────────────────────── */
.phone-input-group {
    display: flex;
    gap: .5rem;
}
.phone-number-input {
    flex: 1;
    min-width: 0;
}

/* ── Custom flag dropdown (phone country code) ───────────────── */
.phone-code-picker {
    position: relative;
    flex: 0 0 auto;
}
.phone-code-trigger {
    display: flex;
    align-items: center;
    gap: .4rem;
    height: 100%;
    padding: .55rem .6rem;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    background: var(--white);
    cursor: pointer;
    font-size: .92rem;
    color: var(--text);
    transition: border-color .15s;
}
.phone-code-trigger:hover,
.phone-code-trigger:focus { outline: none; border-color: var(--brand); }
.phone-code-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.phone-code-dial-text { white-space: nowrap; }
.phone-code-caret { font-size: .7rem; color: var(--muted); margin-left: .1rem; }

.phone-code-dropdown {
    position: absolute;
    top: calc(100% + .35rem);
    left: 0;
    z-index: 20;
    width: 280px;
    max-width: 80vw;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 9px;
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
    overflow: hidden;
}
.phone-code-search {
    width: 100%;
    padding: .6rem .75rem;
    border: none;
    border-bottom: 1px solid var(--border);
    font-size: .88rem;
    outline: none;
}
.phone-code-list {
    list-style: none;
    max-height: 260px;
    overflow-y: auto;
    margin: 0;
    padding: .3rem 0;
}
.phone-code-option {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .75rem;
    cursor: pointer;
    font-size: .88rem;
}
.phone-code-option:hover,
.phone-code-option.is-active { background: #eff6ff; }
.phone-code-option img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.phone-code-option-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.phone-code-option-dial {
    color: var(--muted);
    font-size: .82rem;
    flex-shrink: 0;
}
.field-error {
    color: var(--error);
    font-size: .78rem;
    margin-top: .35rem;
    font-weight: 600;
}

/* ── Mobile ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .portal-grid { grid-template-columns: 1fr; }
    .portal-roadmap { grid-template-columns: 1fr; }
    .portal-footer-nav {
        flex-direction: column;
        align-items: stretch;
    }
    .portal-next-btn { width: 100%; }
    .form-row.two { flex-direction: column; gap: .6rem; }
    .form-actions { flex-direction: column; }
    .wizard-steps { overflow-x: auto; justify-content: flex-start; }
    .wizard-step-item { flex: 0 0 auto; }
    .wizard-step-label { display: none; }
    .step-footer { flex-direction: column-reverse; align-items: stretch; }
    .step-footer .btn-pay,
    .step-footer .btn-secondary { width: 100%; }
}
