*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px
}

body {
    margin: 0;
    font-size: 1.6rem;
    color: #222;
}

h1 {
    font-weight: normal;
    font-size: clamp(2.4rem, 3vw, 3rem);
    text-align: center;
    margin-bottom: 4rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.page {
    min-height: 100vh;
    margin: 0 auto;
    background: #fff;
}

/* ========================= Header / Navigation ========================= */

.app-header {
    width: 100%;
    border-bottom: 1px solid #ddd;
    background: #fff;
}

.navbar {
    max-width: 1200px;
    height: 7.2rem;
    margin: 0 auto;
    padding: 0 2rem;

    display: grid;
    grid-template-columns: 1fr 4fr 1fr;
    align-items: center;
}

/* ---------------------- Logo ---------------------- */

.navbar-left {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.header-logo {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo img {
    display: block;
    height: 45%;
    width: auto;
    object-fit: contain;
}

/* ---------------------- Language switch ---------------------- */

.navbar-right {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-switch {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.language-switch details {
    height: 100%;
    position: relative;
}

.language-switch summary {
    height: 100%;
    padding: 0 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    cursor: pointer;
    list-style: none;
}

.language-switch summary::-webkit-details-marker {
    display: none;
}

.language-switch summary::marker {
    display: none;
}

.language-switch summary:hover {
    background: #f7f7f7;
}

.language-switch summary:focus-visible,
.language-menu a:focus-visible {
    outline: 2px solid #222;
    outline-offset: -2px;
}

.language-icon {
    height: 1.8rem;
    display: inline-block;
}


.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1000;
    min-width: 14rem;
    margin: 0;
    padding: 0.6rem 0;
    background: #fff;
    border: 1px solid #ddd;
    list-style: none;
}

.language-menu li {
    margin: 0;
    padding: 0;
    text-align: center;
}

.language-menu a {
    display: block;
    padding: 1rem 1.6rem;
    color: #222;
    text-decoration: none;
    text-align: center;
}

.language-menu a:hover {
    background: #f5f5f5;
}

.language-menu a.active {
    font-weight: 600;
}

/* ========================= Form ========================= */

.required::after {
    content: " *";
    color: #c00;
}

.form-container {
    max-width: 600px;
    margin: 5rem auto 0;
    padding-bottom: 3rem;
}

.error-message {
    color: #d32f2f !important;
    background-color: #fdecea;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    padding: 1.2rem 1.6rem;
    margin-bottom: 2rem !important;
    font-size: 1.4rem;
    font-weight: 500;
}

.form-section {
    margin-bottom: 3.5rem;
}

label {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-description {
    font-size: 1.4rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
}

/* ---------------------- Form inputs ---------------------- */

input,
textarea,
select{
    margin-top: 0;
    width: 100%;
    padding: 1.2rem;
    border: 1px solid #bbb;
    font-size: inherit;
}

textarea {
    height: 12rem;
    resize: vertical;
}

/* ---------------------- Checkbox ---------------------- */

.checkbox-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0 3.5rem;
}

.checkbox-section input[type="checkbox"] {
    width: auto;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-section label {
    font-size: 1.4rem;
    font-weight: normal;
    margin: 0;
    margin-left: 0.8rem;
}

/* ---------------------- Button ---------------------- */

.redirect-link,
button {
    display: block;
    margin-top: 3rem;
    width: 100%;
    padding: 1.4rem;
    border: 0;
    background: #222;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.redirect-link:hover,
button:hover {
    background: #444;
}

.redirect-link:disabled,
button:disabled {
    background-color: #cccccc;
    color: #777777;
    cursor: not-allowed;
    opacity: 0.6;
}

.job-selection-form form button {
    margin-top: 0;
}

/* ---------------------- Utils ---------------------- */

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

/* ========================= Scaling ========================= */

@media (max-width: 768px) {
    .form-container {
        margin: 3rem auto 0;
        padding: 0 1.5rem 3rem;
    }

    h1 {
        margin-bottom: 3rem;
    }

    .form-section {
        margin-bottom: 2.5rem;
    }

    label {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        margin-top: 2rem;
        padding: 0 2rem 4rem;
    }

    h1 {
        margin-bottom: 2rem;
    }

    .checkbox-section {
        align-items: flex-start;
    }

    .redirect-link,
    button {
        font-size: 1.6rem;
    }
}