/* The public gateway online.voksys.cz (docs/21) – the look of www.voksys.cz, kept light: white header with the
   logo and a thin red line, light grey title band, red accents, Open Sans (served from the gateway itself: the
   CSP allows no other server). */

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/open-sans-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Open Sans";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/open-sans-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    /* Colours of www.voksys.cz */
    --vx-red: #e00f21;
    --vx-red-dark: #b50c1a;
    --vx-red-soft: #fdeced;
    --vx-dark: #262626;
    --vx-heading: #2c2925;
    --vx-text: #4a4a4a;
    --vx-muted: #777;
    --vx-border: #e4e4e4;
    --vx-light: #f5f5f5;
    --bs-body-font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
    --bs-body-color: var(--vx-text);
    --bs-link-color-rgb: 224, 15, 33;
    --bs-link-hover-color-rgb: 181, 12, 26;
}

body {
    font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
    color: var(--vx-text);
    background: #f7f7f7;
    /* The footer stays at the bottom of the window even on short pages. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    color: var(--vx-heading);
}

/* ---- Header: white with the logo, as on www.voksys.cz ---- */
.onb-top {
    background: #fff;
    border-top: 4px solid var(--vx-red);
    border-bottom: 1px solid var(--vx-border);
}

    .onb-top .onb-container {
        display: flex;
        align-items: center;
        min-height: 4.5rem;
    }

.onb-logo {
    display: block;
    height: 40px;
    width: auto;
    max-width: 70vw;
}

/* ---- Light band with the title ---- */
.onb-hero {
    position: relative;
    overflow: hidden;
    color: var(--vx-heading);
    background: linear-gradient(180deg, #f1f1f1 0%, #e9e9e9 100%);
    border-bottom: 1px solid #e0e0e0;
    padding: 2.25rem 0 4.75rem;
}

    .onb-hero svg.onb-squares {
        position: absolute;
        right: max(1rem, calc(50% - 30rem));
        top: 1.5rem;
        width: 9rem;
        height: auto;
        pointer-events: none;
    }

@media (max-width: 767.98px) {
    /* On a phone the squares would sit under the text. */
    .onb-hero svg.onb-squares {
        display: none;
    }
}

.onb-hero h1 {
    color: var(--vx-heading);
    font-size: clamp(1.5rem, 4vw, 2.3rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    margin: 0 0 0.9rem;
    max-width: 38rem;
}

    .onb-hero h1::after {
        content: "";
        display: block;
        width: 3.5rem;
        height: 4px;
        margin-top: 0.75rem;
        background: var(--vx-red);
    }

.onb-hero .onb-lead {
    font-size: 1.05rem;
    max-width: 40rem;
    color: #555;
    margin: 0;
}

.onb-container {
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.onb-page {
    flex: 1 0 auto;
}

.onb-body {
    margin-top: -2.75rem;
    padding-bottom: 3rem;
}

/* ---- Cards ---- */
.onb-card {
    background: #fff;
    border: 1px solid var(--vx-border);
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}

    .onb-card h2 {
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
    }

/* ---- Buttons and fields in the red of the web ---- */
.btn {
    border-radius: 2px;
    font-weight: 700;
}

.btn-primary {
    --bs-btn-bg: var(--vx-red);
    --bs-btn-border-color: var(--vx-red);
    --bs-btn-hover-bg: var(--vx-red-dark);
    --bs-btn-hover-border-color: var(--vx-red-dark);
    --bs-btn-active-bg: var(--vx-red-dark);
    --bs-btn-active-border-color: var(--vx-red-dark);
    --bs-btn-disabled-bg: var(--vx-red);
    --bs-btn-disabled-border-color: var(--vx-red);
    --bs-btn-focus-shadow-rgb: 224, 15, 33;
}

.btn-outline-secondary {
    --bs-btn-color: var(--vx-heading);
    --bs-btn-border-color: #bbb;
    --bs-btn-hover-bg: var(--vx-dark);
    --bs-btn-hover-border-color: var(--vx-dark);
}

.form-control,
.form-select {
    border-radius: 2px;
}

    .form-control:focus,
    .form-select:focus,
    .form-check-input:focus {
        border-color: #e9737d;
        box-shadow: 0 0 0 0.2rem rgba(224, 15, 33, 0.15);
    }

.form-check-input:checked {
    background-color: var(--vx-red);
    border-color: var(--vx-red);
}

/* ---- Progress of a personal form ---- */
.onb-steps {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.onb-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: 2px;
    background: #fff;
    border: 1px solid var(--vx-border);
    font-size: 0.85rem;
    color: var(--vx-muted);
}

    .onb-step.active {
        color: var(--vx-heading);
        font-weight: 700;
        border-color: var(--vx-red);
    }

    .onb-step .num {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.4rem;
        height: 1.4rem;
        border-radius: 2px;
        background: #ececec;
        font-size: 0.75rem;
    }

    .onb-step.active .num {
        background: var(--vx-red);
        color: #fff;
    }

    .onb-step.done .num {
        background: var(--vx-dark);
        color: #fff;
    }

.onb-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    background: #ececec;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2.5rem;
}

/* ---- Thank-you page ---- */
.onb-done {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

    .onb-done .onb-check {
        width: 4.5rem;
        height: 4.5rem;
        border-radius: 50%;
        background: var(--vx-red-soft);
        color: var(--vx-red);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 2.4rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

.onb-facts {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

    .onb-facts div {
        background: var(--vx-light);
        border-left: 3px solid var(--vx-red);
        border-radius: 2px;
        padding: 0.75rem 1.1rem;
        min-width: 11rem;
        text-align: left;
    }

    .onb-facts small {
        display: block;
        color: var(--vx-muted);
    }

/* ---- Footer: light, at the bottom of the window ---- */
.onb-footer {
    margin-top: auto;
    background: #fff;
    border-top: 1px solid var(--vx-border);
    color: var(--vx-muted);
    font-size: 0.85rem;
    padding: 1.1rem 0;
}

    .onb-footer a {
        color: var(--vx-heading);
        font-weight: 600;
        text-decoration: none;
    }

        .onb-footer a:hover {
            color: var(--vx-red);
        }

/* A field for robots: people never see it. */
.onb-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Interview time choice: one row per time, easy to tap on a phone. */
.onb-choices {
    display: grid;
    gap: 0.5rem;
}

.onb-choice {
    border: 1px solid #d9d9d9;
    border-radius: 2px;
    padding: 0.65rem 0.75rem 0.65rem 2.25rem;
    margin: 0;
    cursor: pointer;
}

.onb-choice:has(input:checked) {
    border-color: var(--vx-red);
    background: var(--vx-red-soft);
}

/* Formatted text (e.g. the description of a position). */
.rich-text h2, .rich-text h3, .rich-text h4 { font-size: 1.05rem; font-weight: 700; margin: 0.9rem 0 0.35rem; }
.rich-text p { margin: 0 0 0.6rem; }
.rich-text ul, .rich-text ol { margin: 0 0 0.6rem; padding-left: 1.4rem; }
.rich-text ul li::marker { color: var(--vx-red); }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
