:root {
    --biin-blue: #0d2d5d;
    --biin-blue-deep: #0b1e3d;
    --biin-green: #10B981;
    --biin-green-dark: #10B981;
    --white: #ffffff;
    --text: #1b2d3d;
    --muted: #4d5d71;
    --background: #edf3f6;
    --card: #f4f6f8;
    --border: #dfeaf1;
    --shadow: 0 18px 30px rgba(14, 25, 38, 0.08);
    --soft-title: rgba(13, 45, 93, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

.site-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.site-main {
    flex: 1 0 auto;
    min-width: 0;
}

.site-layout > .site-header,
.site-layout > .site-footer {
    flex-shrink: 0;
}

.not-found-page {
    padding: 64px 0;
}

.not-found-code {
    margin: 0;
    color: var(--biin-blue);
    font-size: clamp(6rem, 18vw, 10rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
}

.not-found-page h1 {
    margin: 20px 0 12px;
    color: var(--biin-blue);
}

.not-found-description {
    margin: 0 auto 28px;
    max-width: 440px;
    color: var(--muted);
}

.not-found-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: rgba(255, 255, 255, 0.96);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 10px 0;
}

.brand-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    display: block;
    width: 86px;
    flex: 0 0 86px;
    line-height: 0;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.nav-links a {
    padding: 11px 14px;
    white-space: nowrap;
    border-radius: 8px;
    transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
    color: var(--biin-blue);
    background: rgba(15, 43, 91, 0.05);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: linear-gradient(135deg, var(--biin-green), var(--biin-green-dark));
    color: var(--white);
    box-shadow: 0 12px 26px rgba(30, 201, 161, 0.25);
}

.button.secondary {
    background: #edf5ff;
    color: var(--biin-blue);
}

.hero {
    background: linear-gradient(135deg, #0d2d5d 0%, #0d2b52 28%, #1b405d 100%);
    padding: 88px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
}

.hero::before {
    width: 850px;
    height: 850px;
    left: -180px;
    top: 120px;
}

.hero::after {
    width: 720px;
    height: 720px;
    right: -140px;
    bottom: -180px;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 38px;
    position: relative;
    z-index: 1;
}

.hero-copy h1,
.page-header h1,
.split-grid h2,
.section-heading h2 {
    margin: 0 0 18px;
    line-height: 1.08;
}

.hero-copy h1 {
    color: var(--white);
    font-size: clamp(2.8rem, 5vw, 5rem);
    max-width: 620px;
}

.page-header h1,
.split-grid h2,
.section-heading h2 {
    color: var(--biin-blue);
}

.eyebrow {
    display: inline-block;
    margin: 0 0 16px;
    color: var(--biin-green-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    color: rgba(255, 255, 255, 0.9);
}

.hero-copy p {
    font-size: 1.06rem;
    max-width: 620px;
    color: rgba(255, 255, 255, 0.82);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 26px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 26px;
    box-shadow: var(--shadow);
    padding: 28px;
    display: grid;
    gap: 18px;
}

.mini-stat {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 18px;
    padding: 18px 20px;
    color: var(--white);
}

.mini-stat strong {
    display: block;
    font-size: 2rem;
    color: var(--white);
}

.mini-stat span {
    color: rgba(255, 255, 255, 0.8);
}

.section {
    padding: 82px 0;
}

.light-section {
    background: var(--background);
}

.section-heading {
    text-align: center;
    margin-bottom: 36px;
}

.section-heading h2 {
    color: var(--soft-title);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.96;
    letter-spacing: -0.06em;
    font-weight: 800;
    margin: 0;
}

.split-grid h2,
.page-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.feature-grid,
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.feature-card,
.contact-card,
.info-panel,
.table-panel,
.form-layout .styled-form,
.form-section {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(15, 43, 91, 0.08);
    border-radius: 22px;
    box-shadow: 0 8px 18px rgba(15, 43, 91, 0.04);
}

.feature-card,
.contact-card,
.info-panel {
    padding: 28px 22px;
}

.feature-card h3,
.contact-card h3,
.info-panel h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--text);
}

.feature-card p,
.contact-card p,
.info-panel p,
.info-panel li {
    color: var(--muted);
}

.split-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 28px;
}

.steps {
    display: grid;
    gap: 18px;
}

.step-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 20px;
}

.step-item span {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    font-weight: 700;
    background: #edf7ff;
    color: var(--biin-blue);
}

.step-item h3 {
    margin: 0 0 6px;
}

.step-item p {
    margin: 0;
    color: var(--muted);
}

.page-header {
    padding: 72px 0 24px;
    background: linear-gradient(180deg, rgba(15, 43, 91, 0.06), rgba(15, 43, 91, 0));
}

.form-hero {
    background: linear-gradient(180deg, rgba(15, 43, 91, 0.08), rgba(15, 43, 91, 0));
}

.narrow {
    max-width: 780px;
}

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

.form-layout {
    max-width: 1020px;
    margin: 0 auto;
}

.form-section {
    padding: 24px 26px;
    margin-bottom: 22px;
}

.form-section h3 {
    margin: 0 0 18px;
    color: var(--biin-blue);
    font-size: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 26px;
}

.styled-form {
    padding: 28px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field.full-width {
    grid-column: 1 / -1;
}

.field label,
.skill-box label,
.checkbox-item {
    font-weight: 600;
    color: var(--text);
}

.field label.required::after,
.skill-box label.required::after,
.checkbox-item.required::after {
    content: " *";
    color: #d92d5a;
    font-weight: 800;
}

.field-error {
    margin-top: 8px;
    color: #b91c1c;
    font-size: 0.88rem;
    line-height: 1.4;
}

.field-error ul {
    margin: 0;
    padding-left: 18px;
}

.field input,
.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    padding: 0.9rem 1rem;
    font: inherit;
    resize: vertical;
}

.field textarea {
    min-height: 120px;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: 2px solid rgba(15, 43, 91, 0.14);
    border-color: var(--biin-blue);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: var(--text);
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 12px;
}

.checkbox-item input {
    width: auto;
    margin-top: 2px;
}

.checkbox-item span {
    display: inline-block;
    line-height: 1.5;
}

.checkbox-item em {
    color: var(--muted);
    font-style: normal;
}

.declaration-box {
    display: grid;
    gap: 12px;
}

.non-field-errors {
    background: #fff2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.single-column {
    grid-template-columns: 1fr;
}

.login-form {
    max-width: 560px;
    margin: 0 auto;
}

.success-box {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.toggle-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px 18px;
}

.toggle-card h3 {
    margin: 0;
    color: var(--biin-blue);
}

.toggle-card p {
    margin: 6px 0 0;
    color: var(--muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 62px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 999px;
    transition: 0.3s ease;
}

.slider:before {
    content: "";
    position: absolute;
    width: 26px;
    height: 26px;
    left: 4px;
    bottom: 4px;
    background: var(--white);
    border-radius: 50%;
    transition: 0.3s ease;
}

.switch input:checked + .slider {
    background: var(--biin-green);
}

.switch input:checked + .slider:before {
    transform: translateX(28px);
}

.submit-button {
    margin-top: 24px;
    width: 100%;
}

.list-header-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

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

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.data-table th,
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.data-table th {
    background: #edf5ff;
    color: var(--biin-blue);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.data-row {
    cursor: pointer;
    transition: background 0.2s ease;
}

.data-row:hover {
    background: rgba(15, 43, 91, 0.03);
}

.modal {
    position: fixed;
    inset: 0;
    display: none;
    place-items: center;
    background: rgba(15, 23, 42, 0.52);
    z-index: 100;
    padding: 20px;
    overflow-y: auto;
}

.modal.active {
    display: grid;
}

.modal-content {
    position: relative;
    width: min(1100px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.2);
    padding: 28px 24px;
}

.close-button {
    position: absolute;
    top: 14px;
    right: 16px;
    border: none;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
    color: var(--muted);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
    margin-top: 20px;
    align-items: start;
}

.detail-grid > div {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px 14px;
    min-width: 0;
}

.detail-grid .full-width {
    grid-column: 1 / -1;
}

.detail-grid strong {
    display: block;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 6px;
}

.detail-grid p {
    margin: 0;
    color: var(--text);
    word-break: break-word;
}

.site-footer {
    background: #0f172a;
    color: #dfe7f5;
    padding-top: 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 24px;
    padding-bottom: 20px;
}

.site-footer h3,
.site-footer h4 {
    margin-top: 0;
    color: #fff;
}

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.site-footer a {
    color: #dfe7f5;
}

.logout-form {
    margin: 0;
}

.logout-button {
    padding: 0;
    border: none;
    background: transparent;
    color: #dfe7f5;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
}

.footer-bottom p { margin: 0; }
.developer-credit { font-size: 13px; }
.developer-credit a { font-weight: 600; }
.developer-credit a:hover { text-decoration: underline; text-underline-offset: 3px; }
.developer-credit a:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

@media (max-width: 820px) {
    .list-header-row,
    .hero-content,
    .split-grid,
    .feature-grid,
    .contact-grid,
    .form-grid,
    .detail-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: min(95vw, 100%);
        max-height: 90vh;
        padding: 24px 18px;
    }
}

/* Shared navigation across public and registration pages. */
.brand-wrap { flex-shrink: 0; }
.nav-menu { display: flex; align-items: center; gap: 24px; }
.navbar .header-button { padding: 11px 20px; font-size: 14px; white-space: nowrap; box-shadow: none; }
.nav-toggle { display: none; }
.navbar a:focus-visible, .nav-toggle:focus-visible { outline: 3px solid var(--biin-green-dark); outline-offset: 3px; }

@media (max-width: 820px) {
    .navbar { min-height: 60px; padding: 6px 0; gap: 12px; flex-wrap: wrap; }
    .brand-logo { width: 78px; flex-basis: 78px; }
    .nav-menu { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-bottom: 10px; }
    .nav-links { gap: 4px; justify-content: flex-start; }
    .nav-links a { flex: 1; text-align: center; padding: 11px 8px; }
    .navbar .header-button { align-self: flex-start; }
    .nav-ready .nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; margin-left: auto; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--white); color: var(--biin-blue); cursor: pointer; }
    .nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
    .nav-ready .nav-menu { display: none; }
    .nav-ready .nav-menu.is-open { display: flex; border-top: 1px solid var(--border); padding-top: 10px; }
}

.list-actions .button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.data-table input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--biin-blue);
}

/* Keep selection controls within the table so its position never changes. */
.submissions-panel {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.submissions-panel form {
    margin: 0;
    padding: 0;
}

.submissions-panel .table-wrap {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
}

.data-table .table-print-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 30px;
    min-width: 60px;
    padding: 0 12px;
    border: 1px solid #c9d7e7;
    border-radius: 6px;
    background: #f3f7fc;
    color: var(--biin-blue);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.data-table .table-print-button:hover {
    background: #e4edf8;
    border-color: #93accb;
}

.data-table .table-print-button:focus-visible {
    outline: 2px solid var(--biin-blue);
    outline-offset: 2px;
}

.data-table #exportSelected {
    background: var(--biin-blue);
    border-color: var(--biin-blue);
    color: white;
}

.data-table [hidden] {
    display: none;
}

.data-table th:last-child,
.data-table td:last-child {
    width: 88px;
    text-align: center;
    white-space: nowrap;
}

.data-table .print-column {
    height: 59px;
    box-sizing: border-box;
    padding-top: 0;
    padding-bottom: 0;
}

/* Fixed submission rows: long values stay on one line with an ellipsis. */
.submissions-panel .data-table {
    table-layout: fixed;
    min-width: 1200px;
}
.submissions-panel .data-table th,
.submissions-panel .data-table td {
    box-sizing: border-box;
    height: 60px;
    padding: 0 16px;
    vertical-align: middle;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.submissions-panel .data-table th:first-child,
.submissions-panel .data-table td:first-child {
    padding: 0 12px;
    text-align: center;
}

.submissions-panel .data-table th {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: break-word;
}
