html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #0f1a30;
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.facility-card {
    position: relative;
    display: flex;
    min-height: 17.5rem;
    flex-direction: column;
    justify-content: space-around;
    overflow: hidden;
    border-radius: 1rem;
    background: #1e293b;
    padding: 2rem;
    text-align: center;
}

.facility-card-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .1;
    transition: transform .3s ease;
}

.facility-card:hover .facility-card-bg {
    transform: scale(1.1);
}

.facility-selection {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(59, 130, 246, .3);
    border-radius: .5rem;
    background: #1e429f;
    padding: .75rem 1.5rem;
    color: #e1effe;
    font-weight: 500;
    transition: background .3s ease;
}

.facility-selection:hover {
    background: #111827;
    color: #fff;
}

.hero-gradient {
    max-width: 100%;
    overflow-wrap: break-word;
    white-space: normal;
    color: #fff;
    background: linear-gradient(to bottom, #fff, #d1d5db);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.35;
    padding-block: .08em;
}

:is(#form-wrapper, #kiosk-form-wrapper) {
    overscroll-behavior-y: contain;
    scrollbar-color: rgba(255, 255, 255, .3) transparent;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

:is(#form-wrapper, #kiosk-form-wrapper)::-webkit-scrollbar {
    width: 15px;
    background: transparent;
}

:is(#form-wrapper, #kiosk-form-wrapper)::-webkit-scrollbar-track {
    background: transparent;
}

:is(#form-wrapper, #kiosk-form-wrapper)::-webkit-scrollbar-thumb {
    border: 6px solid transparent;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, .3);
    background-clip: content-box;
}

:is(#form-wrapper, #kiosk-form-wrapper)::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, .5);
}

.reference-label {
    display: block;
    margin-bottom: .5rem;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 500;
}

.required-label {
    display: flex;
    align-items: flex-start;
}

.required-indicator {
    display: inline-block;
    margin-left: .5rem;
    color: #f98080;
    font-size: .625rem;
    line-height: 1rem;
}

.reference-input {
    display: block;
    width: 100%;
    min-height: 3.125rem;
    border: 1px solid #52525b;
    border-radius: .5rem;
    background: #27272a;
    padding: .75rem;
    color: #fff;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

select.reference-input {
    padding: .625rem 1rem;
    font-size: 1.125rem;
}

.reference-input::placeholder {
    color: #9ca3af;
}

.reference-input:focus {
    border-color: #3f83f8;
    box-shadow: 0 0 0 1px #3f83f8;
}

.reference-input.invalid {
    border-color: #f98080;
    box-shadow: 0 0 0 1px #f98080;
}

.reference-error {
    display: block;
    margin-top: .35rem;
    color: #f98080;
    font-size: .875rem;
}

.validation-summary {
    border-left: .375rem solid #f05252;
    border-radius: .375rem;
    background: #771d1d;
    color: #fff;
}

.validation-summary:empty {
    display: none;
}

.validation-summary ul {
    padding: .75rem 1rem .75rem 2rem;
    list-style: disc;
}

.form-section-title {
    grid-column: span 2 / span 2;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
    color: #e5e7eb;
    font-size: 1.5rem;
    font-weight: 500;
}

.with-top-space {
    padding-top: 2.5rem;
}

.section-title-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.info-box,
.warning-box {
    display: flex;
    align-items: center;
    height: fit-content;
    border-radius: .375rem;
    padding-left: .375rem;
    color: #fff;
}

.info-box {
    background: #1c64f2;
}

.warning-box {
    background: #e02424;
}

.info-box > div,
.warning-box > div {
    width: 100%;
    border-radius: .25rem;
    padding: 1rem;
}

.info-box > div {
    background: #0f1a30;
}

.warning-box > div {
    background: #771d1d;
}

.info-box strong,
.warning-box strong {
    display: block;
    margin-bottom: .5rem;
}

.group-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.repeat-group {
    position: relative;
    row-gap: 1.75rem;
}

.repeat-group + .repeat-group {
    border-top: 2px solid #d4d4d8;
    padding-top: 1.75rem;
}

.remove-row {
    grid-column: 1 / -1;
    width: fit-content;
    margin-left: auto;
    border-radius: .5rem;
    background: #c81e1e;
    padding: .5rem 1.5rem;
    color: #fff;
}

.row-with-action {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.remove-compact {
    width: 3.125rem;
    height: 3.125rem;
    flex: none;
    border-radius: .5rem;
    background: #c81e1e;
    color: #fff;
    font-size: 1.5rem;
}

.no-experience {
    display: flex;
    cursor: pointer;
    align-items: center;
    gap: .75rem;
    border: 2px solid #9ca3af;
    border-radius: .375rem;
    padding: 1rem;
    color: #fff;
    font-size: 1.125rem;
    font-weight: 500;
}

.no-experience:has(input:checked) {
    border-color: #f98080;
    background: #fde8e8;
    color: #e02424;
}

.no-experience input,
.consent-row input,
.reference-radio {
    width: 1.25rem;
    height: 1.25rem;
    flex: none;
    accent-color: #1c64f2;
}

.reference-radio {
    width: 1.5rem;
    height: 1.5rem;
}

.other-answer-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f1a30;
    padding: .5rem .25rem;
    color: #fff;
    font-weight: 500;
}

.cv-dropzone {
    position: relative;
    display: flex;
    width: 100%;
    height: 10rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px dashed #d1d5db;
    border-radius: .5rem;
    background: rgba(39, 39, 42, .1);
    transition: background .3s ease;
}

.cv-dropzone:hover {
    background: #27272a;
}

.cv-input {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.cv-information,
.cv-file {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e5e7eb;
}

.cv-information {
    flex-direction: column;
    gap: .25rem;
    padding: 1.25rem 1rem 1.5rem;
    text-align: center;
    font-size: .875rem;
}

.cv-information small,
.cv-file small {
    display: block;
    font-size: .75rem;
}

.cv-upload-icon,
.cv-file-icon {
    margin-bottom: .5rem;
    font-size: 2rem;
}

.cv-file {
    gap: 1rem;
    font-size: 1.125rem;
}

.cv-clear {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: flex;
    width: 2rem;
    height: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #fff;
    color: #000;
    font-size: 1.25rem;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    color: #e5e7eb;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.25;
}

.consent-row a {
    color: #38bdf8;
    text-decoration: underline;
}

.reference-submit {
    min-width: 10rem;
    border-radius: .5rem;
    background: linear-gradient(to right, #3f83f8, #1c64f2, #1a56db);
    padding: .625rem 2.5rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 500;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1);
}

.reference-submit:disabled {
    filter: grayscale(1);
    opacity: .5;
}

.success-panel {
    max-width: 32rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 1rem;
    background: rgba(255, 255, 255, .1);
    padding: 2rem;
    backdrop-filter: blur(12px);
}

.btn-alternative:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.bg-ayd-success { background: #28a745; }
.bg-ayd-danger { background: #dc3545; }
.bg-ayd-warning { background: #ffc107; }
.bg-ayd-info { background: #17a2b8; }

#blazor-error-ui {
    display: none;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
}

#components-reconnect-modal .reconnect-state {
    display: none;
}

#components-reconnect-modal.components-reconnect-show > div > .components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed > div > .components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected > div > .components-reconnect-rejected {
    display: block;
}

@media (max-width: 991px) {
    .facility-card {
        min-height: 0;
        padding: 1rem 2rem;
    }

    .form-section-title {
        font-size: 1.25rem;
    }

    .consent-row {
        font-size: .875rem;
    }
}
