:root {
    --primary: #2db7c0;
    --primary-rgb: 45, 183, 192;
    --secondary: #e6f2f2;
    --secondary-rgb: 230, 242, 242;
    --black: #000;
    --white: #fff;
    --red: #f00;
    --radio-color: #000;
    --text-color: #000;
    --fs-h1: 1.75rem;
    --fs-lead: 1.3rem;
    --date-icon: url('../img/date.svg');
    --input-text-color: #242424;
    --border-radius: 3px;
    --font-family: 'Sansa Slab Pro Normal', sans-serif;
    --content-shadow: rgba(0, 0, 0, 0.12) 0px 0px 0.125rem 0px, rgba(0, 0, 0, 0.14) 0px 0.5rem 1rem 0px;
}

@font-face {
    font-family: "Sansa Slab Pro Normal";
    src: url('../fonts/SansaSlabPro-Normal.eot');
    src: url('../fonts/SansaSlabPro-Normal.eot?#iefix') format('embedded-opentype'), url('../fonts/SansaSlabPro-Normal.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--primary);
    color: var(--text-color);
    font-size: 16px;
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    display: flex;
    height: 100svh;
    padding-block: 50px 0;
}

h1 {
    font-size: var(--fs-h1);
    font-weight: 600;
    margin: 0;
    padding-bottom: 1rem;
}

p {
    margin-top: unset;
    margin-bottom: 1.5rem;
}

.content-wrapper {
    background: var(--secondary);
    box-shadow: var(--content-shadow);
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    width: min(100vw, 850px);
    margin-inline: auto;
    padding: 2rem;
    overflow-y: scroll;

    &::-webkit-scrollbar {
        width: 0;
    }

    &.full {
        width: calc(100vw - 20px);
    }
}

input {
    color: var(--input-text-color);
}

input[type="text"],
input[type="email"],
input[type="date"] {
    padding: 12px;
    border: unset;
    width: 100%;
    border-radius: var(--border-radius);
    transition: all .3s ease-in-out;
    -webkit-appearance: none;

    &:focus-within {
        outline: unset;
    }

    &:focus {
        border-bottom: 2px solid var(--primary);
    }
}

input[name="name"] {
    &::-webkit-calendar-picker-indicator {
        opacity:0;
    }
}

.form-controls,
.form-row {
    > label,
    > div > label {
        margin-bottom: 1rem;
    }
}

/* .form-controls {
    position: relative;
    isolation: isolate;
    > label {
        position: absolute;
        top: 7px;
        left: 9px;
        z-index: 1;
        min-width: 120px;
        font-size: 1.1rem;
        padding: 3px;
        pointer-events: none;
        background: var(--white);
        transition: all .3s ease-in-out;

        &.active {
            color: var(--primary);
            transform: translateY(-20px);
            border-radius: var(--border-radius);
        }
    }
} */

.requiredField {
    &::after {
        content: '*';
        color: var(--red);
        margin-left: 5px;
    }
}

label {
    display: block;
    cursor: pointer;
}

.required-hint {
    &::before {
        content: '*';
        color: var(--red);
        margin-right: 5px;
    }
}

.form-row {
    transition: margin-bottom .3s ease-in-out;

    &:not(:last-child) {
        margin-bottom: 3rem;
    }

    &.hidden {
        margin-bottom: 0;
    }

    &.invalid {
        &:not(:has(input:checked)) {
            --radio-color: var(--red);
            label {
                color: var(--red);
            }
        }
    }
}

input[type="date"] {
    position: relative;
    height: 41px;
    background: var(--white);
    &::before {
        content: '';
        background-image: url('../img/date.svg');
        background-size: 100%;
        display: inline-block;
        width: 20px;
        height: 20px;
        position: absolute;
        top: 50%;
        right: 5px;
        transform: translateY(-50%);
    }
    &::-webkit-calendar-picker-indicator {
        background: transparent;
        bottom: 0;
        color: transparent;
        cursor: pointer;
        height: auto;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        width: auto;
    }
}

button {
    background: var(--primary);
    color: var(--white);
    padding: 0 1.25rem;
    min-width: 5.275rem;
    min-height: 2.5rem;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.375rem;
    border-radius: var(--border-radius);
    border: unset;
    cursor: pointer;

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

div[data-field-relation="type-of-transmission"] {
    display: grid;
    grid-template-rows: 1fr;
    transition: all .3s ease-in-out;

    > div {
        overflow: hidden;
    }

    &.hidden {
        grid-template-rows: 0fr;
    }
}

.radio-wrapper {
    position: relative;
    padding-left: 40px;
    font-size: .875rem;
    line-height: 1;

    &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 5px;
        width: 1rem;
        height: 1rem;
        border: 2px solid var(--radio-color);
        border-radius: 100%;
        transform: translateY(-50%);
        margin-top: -2px;
        transition: border .3s ease-in-out;
    }

    &::after {
        content: '';
        position: absolute;
        left: 9px;
        top: 50%;
        transform: translateY(-50%);
        margin-top: -2px;
        width: .75rem;
        height: .75rem;
        border-radius: 100%;
        transition: background .3s ease-in-out;
    }

    input {
        width: 0;
        height: 0;
        margin: 0;
    }

    &:has(input:checked) {
        &::before {
            border-color: var(--primary);
        }
        &::after {
            background: var(--primary);
        }
    }
}

label:has(.radio-wrapper) {
    margin-bottom: 1.5rem;
}

/* .hidden {
    display: none;
} */

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

.export-entry {
    display: grid;
    grid-template-columns: 1fr;
    &:not(:last-child) {
        border-bottom: 1px solid black;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.headline-wrapper-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    h1 {
        padding: unset;
    }
}

.sick-list-table {
    width: 100%;

    th, td {
        padding: 5px;
    }

    .thumbnail {
        width: 100px;
        aspect-ratio: 16/9;
    }
}

table, th, td {
    text-align: left;
    border: 1px solid black;
    border-collapse: collapse;
}

@media (max-width: 850px) {
    :root {
        --fs-h1: 1.5rem;
    }

    body {
        padding-block: 0;
    }

    .content-wrapper {
        padding: 0;
        background: unset;
        overflow-y: unset;
        box-shadow: unset;
        border-radius: 0;
        display: grid;
        grid-template-rows: auto 1fr;
    }

    form {
        padding: 1.5rem 1.5rem;
        background: var(--secondary);
    }

    .export-list {
        padding: .5rem 1.5rem;
        background: var(--secondary);
    }

    h1,
    .headline-wrapper-cta h1 {
        padding: 3rem 2rem 2rem;
        color: var(--white);
    }

    .headline-wrapper-cta {
        flex-wrap: wrap;
        background: var(--secondary);
        padding-bottom: 1rem;
        h1 {
            background: var(--primary);
            order: 1;
            width: 100%;
            margin-bottom: 1rem;
        }
        button {
            order: 2;
        }
    }
}