/*
 * The public site's components: the newsletter, forms,
 * fees, payment results, a company's account and the survey - drawn in the
 * theme of theme.css, which holds the frame (header, menu, footer) and the
 * buttons. Logical properties throughout, so each rule mirrors in Arabic.
 */

/* ------------------------------------------------------------ newsletter */

.newsletter-strip {
    padding: 40px 15px 34px;
    background: var(--paper);
    color: var(--text);
}

.newsletter-strip__inner {
    position: relative;
    isolation: isolate;
    overflow: clip;
    max-width: 1170px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px 28px;
    padding: 28px 34px;
    flex-wrap: wrap;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

/* A dot grid at the card's end, behind its words. */
.newsletter-strip__inner::after {
    content: "";
    position: absolute;
    z-index: -1;
    inset-block: 0;
    inset-inline-end: 0;
    width: 260px;
    background-image: radial-gradient(color-mix(in srgb, var(--brand) 22%, transparent) 2px, transparent 2.6px);
    background-size: 16px 16px;
    -webkit-mask-image: linear-gradient(to left, #000, transparent);
    mask-image: linear-gradient(to left, #000, transparent);
    pointer-events: none;
}

[dir="rtl"] .newsletter-strip__inner::after {
    -webkit-mask-image: linear-gradient(to right, #000, transparent);
    mask-image: linear-gradient(to right, #000, transparent);
}

.newsletter-strip__icon {
    display: inline-flex;
    flex: 0 0 64px;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
    color: #fff;
    font-size: 26px;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--brand) 28%, transparent);
}

.newsletter-strip__title {
    flex: 1 1 150px;
    margin: 0;
    font-size: 26px;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--brand);
    text-align: start;
}

.newsletter-strip__pitch {
    flex: 2 1 350px;
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text);
}

@media (max-width: 575.98px) {
    .newsletter-strip__inner {
        padding: 24px 20px;
    }

    .newsletter-strip__inner > div,
    .newsletter-strip__inner .site-button--strip {
        width: 100%;
    }
}

.site-button {
    min-height: 44px;
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--brand-bright), var(--brand-deep));
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.site-button--strip {
    padding: 12px 40px;
}

.site-button--quiet {
    background: #5a6268;
}

.site-button:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

.site-dialog {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background-color: rgba(0, 0, 0, 0.6);
}

.site-dialog__box {
    width: 100%;
    max-width: 520px;
    padding: 30px 30px 24px;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    color: #222;
}

.site-dialog__title {
    margin: 0 0 20px;
    font-size: 28px;
    font-weight: 500;
}

.site-dialog__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-field {
    margin-block-end: 20px;
}

.site-input {
    width: 100%;
    min-height: 46px;
    padding: 11px 14px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.site-input:focus {
    border-color: var(--brand);
    outline: none;
    box-shadow: 0 0 0 3px rgba(155, 19, 33, .14);
}

.site-input[aria-invalid="true"] {
    border-color: #b42318;
}

.site-error {
    margin: 6px 0 0;
    color: #b42318;
    font-size: 14px;
}

/* A message that something was saved or sent: a green box with a tick. */
.site-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid #b7e1c8;
    border-radius: 14px;
    background: #eefaf3;
    color: #146c43;
    font-weight: 500;
}

.site-notice::before {
    content: "\f00c";
    flex: 0 0 auto;
    margin-block-start: 2px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
}

.site-notice a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* ------------------------------------------------------------ payment pages */
/* What happened to a payment, in one box under the page title. */

.payment-result {
    padding: 70px 0 90px;
}

.payment-result__box {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 32px;
    text-align: center;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 20px;
    border-block-start: 4px solid var(--brand);
    box-shadow: var(--shadow-card);
}

.payment-result__box--paid {
    border-block-start-color: #198754;
}

.payment-result__icon {
    display: block;
    margin-block-end: 16px;
    font-size: 56px;
    color: var(--site-brand);
}

.payment-result__box--paid .payment-result__icon {
    color: #198754;
}

.payment-result__box--cancelled .payment-result__icon {
    color: #5A6268;
}

.payment-result__heading {
    margin: 0 0 12px;
    font-size: 28px;
    line-height: 1.3;
}

.payment-result__message,
.payment-result__next,
.payment-result__help {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 1.6;
    color: #444;
}

.payment-result__help {
    margin: 20px 0 0;
    font-size: 14px;
    color: #666;
}

.payment-result__details {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding: 16px 20px;
    text-align: start;
    background: #f7f7f9;
    border-radius: 8px;
}

.payment-result__details div {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 16px;
}

.payment-result__details dt {
    font-weight: 600;
    color: #555;
}

.payment-result__details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.payment-result__details code {
    font-size: 15px;
    color: var(--site-brand);
}

.payment-result__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0;
}

@media (max-width: 575.98px) {
    .payment-result {
        padding: 40px 0 60px;
    }

    .payment-result__box {
        padding: 28px 18px;
    }
}

/* ------------------------------------------------------------ registration */
/* Choosing a conference and a fee, and the form. */

.registration-section {
    padding: 70px 0 90px;
}

.registration-conference {
    --congress: var(--brand);
    --congress-deep: var(--brand-deep);
    margin-block-end: 34px;
    padding: clamp(20px, 3.4vw, 36px);
    border: 2px solid var(--congress-deep);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 17, 58, .07);
}

.registration-conference__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px 24px;
    margin-block-end: 22px;
    padding-block-end: 18px;
    border-bottom: 1px solid var(--line);
}

.registration-conference__head h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.registration-conference__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 22px;
    margin: 0;
    color: var(--muted);
}

.registration-conference__meta .fa {
    margin-inline-end: 4px;
    color: var(--congress-deep);
}

.registration-conference .btn-style-one {
    background: var(--congress-deep);
    box-shadow: 0 6px 16px rgba(0, 17, 58, .2);
}

.registration-conference .btn-style-two {
    color: var(--congress-deep);
}

.registration-conference .registration-tier {
    border-block-start-color: var(--congress-deep);
}

.registration-conference .registration-tier__price {
    color: var(--congress-deep);
}

.registration-more {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 28px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 15px;
}

.registration-more a {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
    color: var(--congress-deep);
    font-weight: 600;
}

.registration-closed {
    display: inline-block;
    margin: 0 0 18px;
    padding: 6px 14px;
    border-radius: 999px;
    background: #f3f3f5;
    color: #5A6268;
    font-weight: 600;
}

.registration-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.registration-tier {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 20px;
    border-block-start: 4px solid var(--brand);
    box-shadow: var(--shadow-card);
}

.registration-tier__name {
    margin: 0;
    font-size: 20px;
}

.registration-tier__price {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: var(--site-brand);
}

.registration-tier__includes {
    flex: 1;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #444;
}

.registration-tier__includes li {
    margin-block-end: 6px;
}

.registration-tier__includes .fa {
    margin-inline-end: 6px;
    color: #198754;
}

.registration-empty,
.registration-hint {
    margin: 8px 0 0;
    color: #666;
    font-size: 14px;
}

.registration-empty-state {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px 24px;
    text-align: center;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.registration-empty-state .fa {
    display: block;
    margin-block-end: 14px;
    font-size: 44px;
    color: var(--site-brand);
}

.registration-empty-state h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.registration-empty-state p {
    margin: 0 0 20px;
    color: #555;
}

.registration-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.registration-form__group {
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

.registration-form__group legend {
    margin-block-end: 16px;
    padding-block-end: 10px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 20px;
    font-weight: 600;
}

.registration-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.registration-choice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-height: var(--site-touch);
    padding: 14px 16px;
    border: 2px solid var(--line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.registration-choice--chosen,
.registration-choice:focus-within {
    border-color: var(--site-brand);
    background: var(--brand-tint);
}

.registration-choice input {
    width: 20px;
    height: 20px;
    accent-color: var(--site-brand);
}

.registration-choice__name {
    flex: 1;
    font-weight: 600;
}

.registration-choice__price {
    font-weight: 700;
    color: var(--site-brand);
}

.registration-label {
    display: block;
    margin-block-end: 6px;
    font-weight: 600;
}

.registration-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: var(--site-touch);
    cursor: pointer;
}

.registration-check input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-block-start: 2px;
    accent-color: var(--site-brand);
}

.registration-code {
    margin-block-start: 12px;
    max-width: 360px;
}

.registration-form__submit {
    text-align: center;
}

@media (max-width: 575.98px) {
    .registration-section {
        padding: 40px 0 60px;
    }

    .registration-form {
        padding: 20px 16px;
    }
}

/* ------------------------------------------------------------ company account */
/* A company's conferences and its people. */

.account-form {
    max-width: 480px;
}

.company-card {
    padding: 24px;
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.company-status {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    background: #fff4e5;
    color: #8a4b00;
}

.company-status--approved {
    background: #e7f6ec;
    color: #146c43;
}

.company-status--rejected {
    background: #f3f3f5;
    color: #5A6268;
}

.company-summary {
    margin-block-end: 30px;
}

.company-section-title {
    margin: 30px 0 14px;
    font-size: 22px;
}

.company-people {
    display: grid;
    gap: 12px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.company-person {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 16px 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.company-person--cancelled {
    opacity: 0.6;
}

.company-person__who {
    display: grid;
    flex: 1 1 260px;
    gap: 2px;
    overflow-wrap: anywhere;
}

.company-person__who span {
    color: #666;
    font-size: 14px;
}

.company-person__state code {
    font-size: 15px;
    color: var(--site-brand);
}

.company-add {
    max-width: none;
}



.company-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* How many of the included registrations a company has used. */
.company-allowance {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin: 0 0 18px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.company-allowance--full {
    border-color: #f1c2c6;
    background: #fdf1f2;
}

/* The booths on the floor, as tiles that wrap on a phone. Each says in
   words whether it is free, booked or the company's own. */
.booth-floor {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.booth-tile {
    display: grid;
    gap: 2px;
    min-height: 64px;
    height: 100%;
    margin: 0;
    padding: 10px 12px;
    border: 1.5px solid #9fd3b0;
    border-radius: 12px;
    background: #e7f6ec;
    color: #146c43;
    cursor: pointer;
}

.booth-tile input {
    margin: 0;
}

.booth-tile__code {
    font-weight: 700;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.booth-tile__state,
.booth-tile__meta {
    font-size: 13px;
}

.booth-tile--booked {
    border-color: var(--line);
    background: #f3f3f5;
    color: #5A6268;
    cursor: not-allowed;
}

.booth-tile--yours {
    border-color: var(--site-brand);
    background: #fff;
    color: var(--site-brand);
}

.booth-tile--none {
    border-style: dashed;
    border-color: var(--line);
    background: #fff;
    color: var(--muted);
}

.booth-tile:has(input:checked) {
    outline: 3px solid var(--site-brand);
    outline-offset: 2px;
}

/* ------------------------------------------------------------ survey */
/* The survey before the certificate: each answer a large target. */

.survey-question--invalid {
    border-color: #c0262d;
}

.survey-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.survey-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #d7dce3;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.survey-option--scale {
    min-width: 52px;
    justify-content: center;
}

.survey-option:has(input:checked) {
    border-color: var(--site-brand);
    box-shadow: 0 0 0 1px var(--site-brand);
}

/* The account tabs: conferences, profile, notifications. */
.account-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-end: 28px;
}

.account-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: var(--touch);
    padding: 8px 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: #fff;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
}

.account-tab:hover,
.account-tab:focus-visible {
    border-color: var(--brand);
    color: var(--brand);
}

.account-tab.is-current {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.account-tab__count {
    min-width: 22px;
    padding: 0 6px;
    border-radius: var(--radius-pill);
    background: var(--brand-bright);
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
}

.account-tab.is-current .account-tab__count {
    background: #fff;
    color: var(--brand);
}

.account-tabs__out {
    margin-inline-start: auto;
}

.account-photo {
    display: block;
    width: 96px;
    height: 96px;
    margin-block-end: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.account-notices {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    background: #fff;
    overflow: hidden;
}

.account-notice {
    padding: 16px 20px;
    border-block-end: 1px solid var(--line);
}

.account-notice:last-child {
    border-block-end: 0;
}

.account-notice.is-unread {
    background: var(--brand-tint);
    border-inline-start: 4px solid var(--brand);
}

.account-notice__text {
    margin: 0 0 4px;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.account-notice__time {
    color: var(--muted);
    font-size: 13px;
}

/* What the organisers cover for a speaker, as label and value pairs. */
.account-facts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.account-facts > div {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.account-facts dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.account-facts dd {
    margin: 4px 0 0;
    color: var(--ink);
    font-weight: 600;
}

/* A refusal or a payment that did not go through, shown as a box. */
.site-error--box {
    padding: 14px 18px;
    margin-block-end: 18px;
    border: 1px solid #f1c2c6;
    border-radius: 14px;
    background: #fdf1f2;
}

/* A speaker's flights: one card per traveller, the offered
   options in a list that wraps on a phone. */
.flight-traveller {
    padding: 16px 18px;
    margin-block-end: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
}

.flight-traveller__name {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.flight-traveller__role {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.flight-traveller__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.flight-options {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.flight-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.flight-option__label {
    font-weight: 600;
}

.flight-option__price {
    color: var(--brand);
    font-weight: 600;
}

.flight-option__link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.flight-option form {
    margin-inline-start: auto;
}

.flight-option__legs {
    display: grid;
    flex-basis: 100%;
    gap: 2px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

/* A conference trip on the speaker's page: its picture. */
.trip-photo {
    display: block;
    width: 100%;
    max-height: 260px;
    margin-block-end: 12px;
    object-fit: cover;
    border-radius: 14px;
}

/* A person's own registration page: the barcode, the facts, the actions. */
.pass-card { max-width: 760px; margin-inline: auto; }
.pass-barcode { margin: 18px 0 6px; padding: 14px; background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 14px; text-align: center; }
.pass-barcode__bars { height: 96px; }
.pass-barcode figcaption { margin-top: 8px; font-weight: 700; letter-spacing: .18em; }
.pass-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 22px; margin: 16px 0; }
.pass-facts dt { font-size: .82rem; color: var(--muted, #6b7280); font-weight: 600; }
.pass-facts dd { margin: 0; font-weight: 600; }
.pass-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.pass-list .fa { color: var(--congress); margin-inline-end: 6px; }
.pass-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ------------------------------------------------------------ file picker */

/* A file field in the page's language (x-file-input): a pill button and the
   chosen file's name. The browser's own control stays focusable but out of
   sight; its <label> still names it. */
.file-picker {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 5px;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.file-picker:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(155, 19, 33, .14);
}

.file-picker:has([aria-invalid="true"]) {
    border-color: #b42318;
}

.file-picker__input {
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.file-picker__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    margin: 0;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: color-mix(in srgb, var(--brand) 9%, #fff);
    color: var(--brand);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.file-picker__button:hover {
    background: var(--brand);
    color: #fff;
}

.file-picker__name {
    min-width: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-picker__name--chosen {
    color: var(--ink);
    font-weight: 600;
}

/* ------------------------------------------------------------ a speaker's parts */

/* The links to each part of a speaker's long page, held under the menu bar. */
.account-parts {
    position: sticky;
    top: 0;
    z-index: 50;
    margin: 0 0 24px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .96);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(6px);
}

.account-parts__list {
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.account-parts__list::-webkit-scrollbar {
    display: none;
}

.account-parts__link {
    display: inline-flex;
    align-items: center;
    min-height: var(--touch);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.account-parts__link:hover,
.account-parts__link:focus-visible {
    background: color-mix(in srgb, var(--brand) 9%, #fff);
    color: var(--brand);
}

.account-parts__link {
    gap: 8px;
}

.account-parts__link .fa {
    color: var(--brand);
    font-size: 13px;
}

.account-parts__link.is-current {
    background: var(--brand);
    color: #fff;
}

.account-parts__link.is-current .fa {
    color: #fff;
}

/* Each part opens with its title on a brand bar, so the long page reads in sections. */
.account-part > .company-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 0;
}

.account-part > .company-section-title::before {
    content: "";
    flex: 0 0 5px;
    align-self: stretch;
    min-height: 26px;
    border-radius: 3px;
    background: var(--brand);
}

.account-part {
    scroll-margin-top: 90px;
}

@media (min-width: 992px) {
    .account-parts {
        top: calc(var(--site-header) + 10px);
    }

    .account-part {
        scroll-margin-top: calc(var(--site-header) + 90px);
    }
}

/* What the organisers cover: two to a row on a phone; the parts' links
   slide sideways there, their far edge fading. */
@media (max-width: 575.98px) {
    .account-parts__list {
        -webkit-mask-image: linear-gradient(to right, #000 85%, transparent);
        mask-image: linear-gradient(to right, #000 85%, transparent);
    }

    html[dir="rtl"] .account-parts__list {
        -webkit-mask-image: linear-gradient(to left, #000 85%, transparent);
        mask-image: linear-gradient(to left, #000 85%, transparent);
    }

    .account-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .account-facts > div {
        padding: 12px;
    }
}

.payment-result__box--spaced {
    margin-block-end: 32px;
}

/* ------------------------------------------------------------ registration: who is registering */

.registration-kinds-section {
    padding: 48px 0 0;
}

.registration-kinds__title {
    margin: 0 0 20px;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    text-align: center;
}

.registration-kinds {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.registration-kind {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 22px 14px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.registration-kind:hover,
.registration-kind:focus-visible {
    border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
    box-shadow: var(--shadow-soft);
    color: var(--ink);
    transform: translateY(-2px);
}

.registration-kind--active,
.registration-kind--active:hover {
    border-color: var(--brand);
    background: var(--brand-tint);
    box-shadow: 0 8px 20px rgba(155, 19, 33, .12);
}

.registration-kind__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 6px;
    border-radius: 16px;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 20px;
}

.registration-kind--active .registration-kind__icon {
    background: var(--brand);
    color: #fff;
}

.registration-kind strong {
    font-size: 16px;
}

.registration-kind small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.registration-conference--row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
}

.registration-conference--row h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .registration-kinds {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .registration-kinds {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .registration-kind {
        padding: 16px 10px;
    }

    .registration-kind small {
        display: none;
    }

    /* An odd last card takes the whole row, so the grid ends square. */
    .registration-kinds li:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }
}

.registration-kinds-section + .registration-section {
    padding-top: 32px;
}

/* ------------------------------------------------------------ account home */

.account-welcome {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    margin: 22px 0 8px;
    padding: 22px 24px;
    border-radius: 20px;
    background:
        radial-gradient(70% 140% at 100% 0%, rgba(255, 255, 255, .12), transparent 60%),
        linear-gradient(135deg, var(--brand-deep), var(--brand));
    color: #fff;
    box-shadow: 0 12px 28px rgba(155, 19, 33, .2);
}

.account-welcome__avatar {
    display: grid;
    flex: 0 0 56px;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: var(--brand-deep);
    font-size: 20px;
    font-weight: 800;
}

.account-welcome__who {
    flex: 1;
    min-width: 180px;
}

.account-welcome__hello {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.account-welcome__email {
    margin: 2px 0 0;
    color: rgba(255, 255, 255, .8);
    font-size: 14px;
    text-align: start;
}

.account-welcome__counts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-welcome__counts li {
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .1);
    font-size: 14px;
}

.account-section-title {
    margin: 34px 0 14px;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.account-items {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.account-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.account-item__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--brand-tint);
    color: var(--brand);
    font-size: 18px;
}

.account-item__kind {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.account-item__title {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.account-item__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.account-item__meta .fa {
    color: var(--brand);
}

.account-item__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.account-pill {
    display: inline-block;
    margin: 10px 0 0;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.account-pill--ok {
    background: #e8f6ee;
    color: #157347;
}

.account-pill--no {
    background: #fdecec;
    color: #b42318;
}

@media (max-width: 767px) {
    .account-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .account-item__icon {
        width: 44px;
        height: 44px;
    }

    .account-item__actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .account-item__actions .theme-btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* A form card's own first heading needs no space above it. */
.registration-form > .company-section-title:first-child {
    margin-top: 0;
}

/* How much of a company's allowance is used, at a glance. */
.company-allowance {
    align-items: center;
}

.company-allowance__bar {
    flex: 1 1 160px;
    order: 3;
    width: 100%;
    height: 8px;
    border: 0;
    border-radius: 4px;
    background: var(--paper);
    overflow: hidden;
    -webkit-appearance: none;
    appearance: none;
}

.company-allowance__bar::-webkit-progress-bar {
    border-radius: 4px;
    background: var(--paper);
}

.company-allowance__bar::-webkit-progress-value {
    border-radius: 4px;
    background: var(--brand);
}

.company-allowance__bar::-moz-progress-bar {
    border-radius: 4px;
    background: var(--brand);
}

.company-allowance--full .company-allowance__bar::-webkit-progress-value {
    background: #b42318;
}

/* An address written left to right still lines up with the page. */
html[dir="rtl"] .account-welcome__email {
    text-align: right;
}

/* WhatsApp button: a floating pill at the reading end's corner, and the
   question dialog it opens. */
.wa-ask__button {
    position: fixed; inset-block-end: 18px; inset-inline-end: 18px; z-index: 1030;
    display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px;
    border: 0; border-radius: 999px; background: #25d366; color: #fff; font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18); cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.wa-ask__button i { font-size: 26px; line-height: 1; }
.wa-ask__button:hover, .wa-ask__button:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, .22); }
.wa-ask__button:focus-visible { outline: 3px solid #128c7e; outline-offset: 3px; }
@media (max-width: 575.98px) {
    .wa-ask__button { inset-block-end: 14px; inset-inline-end: 14px; width: 54px; height: 54px; padding: 0; justify-content: center; }
    .wa-ask__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.wa-ask__dialog {
    width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.wa-ask__dialog::backdrop { background: rgba(17, 17, 17, .45); }
.wa-ask__form { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.wa-ask__head { display: flex; align-items: center; gap: 10px; }
.wa-ask__head h2 { flex: 1; margin: 0; font-size: 1.15rem; }
.wa-ask__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e7f9ee; color: #128c7e; font-size: 22px; }
.wa-ask__close { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f3f3f3; color: #333; }
.wa-ask__intro { margin: 0; color: #555; font-size: .95rem; }
.wa-ask__field { font-weight: 600; }
.wa-ask__form textarea { width: 100%; padding: 10px 12px; border: 1px solid #d6d6d6; border-radius: 12px; resize: vertical; min-height: 110px; }
.wa-ask__form textarea:focus { outline: 2px solid #25d366; border-color: #25d366; }
.wa-ask__status { min-height: 1.2em; margin: 0; font-size: .9rem; color: #555; }
.wa-ask__send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 0; border-radius: 999px; background: #25d366; color: #fff; font-weight: 600; }
.wa-ask__send:disabled { opacity: .7; }
@media print { .wa-ask { display: none; } }
