/*
 * Guest registration in three steps (application/user/create in layout/public).
 * Sizes are in em so the A / A+ switch of the layout scales them. Own prefix pr-, own tokens.
 */
.pr-page {
    --pr-blue: #0B3B7A;
    --pr-blue-dark: #072a58;
    --pr-green: #00703C;
    --pr-green-shadow: #003d21;
    --pr-green-bg: #E3F3EA;
    --pr-green-text: #005A30;
    --pr-yellow: #FFDF0F;
    --pr-bg: #F2F5F9;
    --pr-border: #DDE2EA;
    --pr-line: #E6EAF0;
    --pr-input: #6B7280;
    --pr-text: #1B1B1B;
    --pr-text-2: #33384A;
    --pr-muted: #4A5064;
    --pr-red: #B10E1E;
    --pr-red-bg: #FDECEE;

    box-sizing: border-box;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 64px;
    color: var(--pr-text);
    font-family: 'Source Sans 3', 'Source Sans Pro', Arial, sans-serif;
    line-height: 1.5;
}

.pr-page *,
.pr-page *::before,
.pr-page *::after {
    box-sizing: inherit;
}

.pr-page a {
    color: var(--pr-blue);
}

.pr-page a:hover {
    color: var(--pr-blue-dark);
}

.pr-page a:focus-visible,
.pr-page button:focus-visible,
.pr-page input:focus-visible,
.pr-page select:focus-visible,
.pr-page [tabindex="-1"]:focus-visible {
    outline: 4px solid var(--pr-yellow);
    outline-offset: 2px;
}

.pr-page h2[tabindex="-1"]:focus {
    outline: none;
}

.pr-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.pr-page [hidden] {
    display: none !important;
}

/* Head */
.pr-back {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
}

.pr-title {
    margin: 0 0 8px;
    font-size: 2.2em;
    line-height: 1.15;
    color: var(--pr-blue);
    overflow-wrap: anywhere;
    /* no hyphenation: a long word breaks only when it cannot fit whole */
    hyphens: manual;
}

.pr-lead {
    margin: 0 0 32px;
    color: var(--pr-text-2);
}

/* Step indicator */
.pr-steps {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pr-steps__item {
    flex: 1 1 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
    padding: 12px 18px;
    background: #ffffff;
    color: var(--pr-text-2);
    border: 2px solid var(--pr-border);
    border-radius: 8px;
    font-weight: 600;
}

.pr-steps__num {
    flex: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--pr-border);
    color: var(--pr-text-2);
    font-weight: 800;
}

.pr-steps__item.is-current {
    background: var(--pr-blue);
    border-color: var(--pr-blue);
    color: #ffffff;
    font-weight: 700;
}

.pr-steps__item.is-current .pr-steps__num {
    background: var(--pr-yellow);
    color: var(--pr-blue);
}

.pr-steps__item.is-done .pr-steps__num {
    background: var(--pr-green);
    color: #ffffff;
}

/* Without JavaScript all steps are on the page: the indicator is only an overview */
.pr-page:not(.pr-has-js) .pr-steps__item.is-current {
    background: #ffffff;
    color: var(--pr-text-2);
    border-color: var(--pr-border);
}

.pr-page:not(.pr-has-js) .pr-steps__item.is-current .pr-steps__num {
    background: var(--pr-border);
    color: var(--pr-text-2);
}

/* Form and aside */
.pr-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}

.pr-form {
    flex: 999 1 560px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.pr-step {
    background: #ffffff;
    border: 1px solid var(--pr-border);
    border-radius: 12px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pr-step__title {
    margin: 0;
    font-size: 1.5em;
    line-height: 1.25;
    color: var(--pr-blue);
    overflow-wrap: anywhere;
}

.pr-step__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--pr-line);
}

.pr-step__foot .pr-btn--green {
    margin-left: auto;
}

/* Fields */
.pr-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.pr-row > .pr-field {
    flex: 1 1 220px;
}

.pr-row > .pr-field--short {
    flex: 0 1 180px;
}

.pr-row > .pr-field--half {
    flex: 1 1 200px;
}

.pr-row > .pr-field--grow {
    flex: 3 1 260px;
}

.pr-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.pr-org {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.pr-label {
    font-weight: 700;
    font-size: 1.05em;
}

.pr-optional {
    font-weight: 400;
    color: var(--pr-muted);
    font-size: 0.9em;
}

.pr-hint {
    margin: 0;
    color: var(--pr-muted);
    font-size: 0.9em;
}

.pr-note {
    margin: 0;
    color: var(--pr-muted);
    font-size: 0.9em;
}

.pr-note--warn {
    padding: 14px 18px;
    background: #FFF7D6;
    border-left: 6px solid var(--pr-yellow);
    color: var(--pr-text);
    font-size: 0.95em;
}

/* The lookup status stays in the page (a live region); empty it takes no room */
.pr-status:empty {
    padding: 0;
    border: 0;
}

.pr-required-note {
    font-size: 1em;
    color: var(--pr-text-2);
}

.pr-input {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    font-size: 1em;
    font-family: inherit;
    color: var(--pr-text);
    background: #ffffff;
    border: 2px solid var(--pr-input);
    border-radius: 6px;
}

select.pr-input {
    padding-right: 40px;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, var(--pr-text) 50%), linear-gradient(135deg, var(--pr-text) 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 15px) 50%;
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
}

.pr-field--error .pr-input,
.pr-input[aria-invalid="true"] {
    border-color: var(--pr-red);
    border-width: 3px;
}

.pr-field--error {
    padding-left: 14px;
    border-left: 5px solid var(--pr-red);
}

.pr-error {
    margin: 0;
    color: var(--pr-red);
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* IČO + Vyhľadať */
.pr-ico {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pr-ico .pr-input {
    flex: 1 1 220px;
    width: auto;
    min-width: 0;
    min-height: 60px;
    padding: 0 18px;
    font-size: 1.2em;
    letter-spacing: 0.08em;
}

/* Buttons */
.pr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    min-height: 60px;
    padding: 0 28px;
    border: 0;
    border-radius: 6px;
    font-size: 1em;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.pr-btn--blue {
    background: var(--pr-blue);
    color: #ffffff;
}

.pr-btn--blue:hover {
    background: var(--pr-blue-dark);
}

.pr-btn--blue[aria-busy="true"] {
    opacity: 0.75;
    cursor: progress;
}

.pr-btn--green {
    padding: 0 36px;
    background: var(--pr-green);
    color: #ffffff;
    font-size: 1.1em;
    box-shadow: 0 3px 0 var(--pr-green-shadow);
}

.pr-btn--green:hover {
    background: #005a30;
}

.pr-btn--outline {
    background: #ffffff;
    color: var(--pr-blue);
    border: 2px solid var(--pr-blue);
}

.pr-page a.pr-btn--outline {
    color: var(--pr-blue);
}

.pr-btn--outline:hover {
    background: var(--pr-bg);
}

.pr-btn--block {
    display: flex;
    width: 100%;
    min-height: 56px;
    font-weight: 800;
}

.pr-link {
    align-self: flex-start;
    min-height: 44px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--pr-blue);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.pr-link:hover {
    color: var(--pr-blue-dark);
}

/* Found in the register */
.pr-found {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    background: var(--pr-green-bg);
    border: 2px solid var(--pr-green);
    border-radius: 10px;
}

.pr-found__title {
    color: var(--pr-green-text);
    font-size: 1.05em;
}

.pr-found__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
}

.pr-found__grid dt,
.pr-summary__list dt {
    font-size: 0.85em;
    color: var(--pr-text-2);
}

.pr-found__grid dd,
.pr-summary__list dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* Groups of step 2 and 3 */
.pr-group {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pr-group + .pr-group {
    padding-top: 24px;
    border-top: 1px solid var(--pr-line);
}

.pr-group__title {
    padding: 0;
    margin: 0 0 4px;
    font-size: 1.2em;
    font-weight: 700;
    color: var(--pr-blue);
}

/* Summary of step 3 */
.pr-summary {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pr-summary__block {
    padding: 20px 22px;
    background: var(--pr-bg);
    border: 1px solid var(--pr-border);
    border-radius: 10px;
}

.pr-summary__head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    margin-bottom: 8px;
}

.pr-summary__head h3 {
    margin: 0;
    font-size: 1.1em;
    color: var(--pr-blue);
}

.pr-summary__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 24px;
    margin: 0;
}

/* Consents */
.pr-check {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pr-check__row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.pr-check__input {
    flex: none;
    width: 32px;
    height: 32px;
    margin: 2px 0 0;
    accent-color: var(--pr-blue);
    cursor: pointer;
}

.pr-check__label {
    cursor: pointer;
}

.pr-check__link {
    margin-left: 46px;
    font-weight: 600;
}

/* Only bots see it */
.pr-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Alerts */
.pr-alert {
    padding: 18px 22px;
    border-radius: 8px;
}

.pr-alert p {
    margin: 4px 0 0;
}

.pr-alert--error {
    background: var(--pr-red-bg);
    border: 2px solid var(--pr-red);
    color: var(--pr-text);
}

.pr-alert--error strong,
.pr-alert__title {
    color: var(--pr-red);
}

.pr-alert__title {
    margin: 0;
    font-size: 1.15em;
    line-height: 1.3;
}

.pr-alert__list {
    margin: 12px 0 0;
    padding-left: 1.2em;
}

.pr-alert__list li + li {
    margin-top: 6px;
}

.pr-alert__list a {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.pr-page .pr-alert[tabindex="-1"]:focus {
    outline: 4px solid var(--pr-yellow);
    outline-offset: 2px;
}

/* Help aside */
.pr-aside {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pr-card {
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--pr-border);
    border-radius: 12px;
}

.pr-card p {
    margin: 0 0 16px;
    color: var(--pr-text-2);
}

.pr-card__title {
    margin: 0 0 10px;
    font-size: 1.2em;
    color: var(--pr-blue);
}

.pr-card__list {
    margin: 0;
    padding-left: 1.2em;
    color: var(--pr-text-2);
}

/* With JavaScript the steps show one at a time */
.pr-form.pr-js .pr-step:not(.is-active) {
    display: none;
}

@media (min-width: 1100px) {
    .pr-aside {
        position: sticky;
        top: calc(var(--ps-header-offset, 0px) + 24px);
    }
}

@media (max-width: 640px) {
    .pr-page {
        padding: 28px 16px 48px;
    }

    .pr-title {
        font-size: 1.7em;
    }

    .pr-step {
        padding: 22px 18px;
    }

    /*
     * The current step with its name, the others as small numbers, in one row while the longest word of the
     * name fits next to them; otherwise (320 px with A+ or a larger browser font) the row wraps.
     */
    .pr-steps {
        gap: 8px;
        margin-bottom: 24px;
    }

    .pr-steps__item {
        flex: 0 0 auto;
        gap: 8px;
        max-width: 100%;
        min-height: 44px;
        padding: 4px;
    }

    .pr-steps__num {
        width: 1.6em;
        height: 1.6em;
    }

    .pr-steps__item.is-current {
        /* basis 0: the row breaks only when the longest word of the name no longer fits */
        flex: 1 1 0;
        padding: 4px 12px 4px 4px;
    }

    .pr-steps__label {
        overflow-wrap: break-word;
    }

    .pr-has-js .pr-steps__item:not(.is-current) .pr-steps__label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .pr-page:not(.pr-has-js) .pr-steps {
        flex-wrap: wrap;
    }

    .pr-page:not(.pr-has-js) .pr-steps__item {
        flex: 1 1 100%;
    }

    .pr-found__grid,
    .pr-summary__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .pr-step__foot .pr-btn,
    .pr-ico .pr-btn {
        flex: 1 1 100%;
    }

    .pr-check__link {
        margin-left: 0;
    }
}
