:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 10px;
    padding-left: 8px;
    z-index: 1;
    /* box-shadow: -1px 0px 0px 12px var(--text-primary-invers-100); */
}

.hidden {
    display: none !important;
}

.card.login {
    display: grid;
    gap: 18px;
}

.login-header {
    display: grid;
    gap: 12px;
}

.login-back {
    position: absolute;
    left: -20px;
    top: -20px;
}

.login-back svg {
    width: 16px;
    height: 16px;
}

.login-form {
    display: grid;
    gap: 8px;
    width: 100%;
    margin-top: -24px;
    z-index: 1;
}

.login-form button {
    width: 100%;
    margin-top: 0px;
}

a.external-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
}

a.external-link svg {
    width: 1.05ch;
    height: 1.05ch;
}

@media (hover: hover) and (pointer: fine) {
    button:hover,
    .button:hover {
    }
}

.button-icon {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    color: var(--muted);
    border-radius: 9999px;
    text-indent: -9999px;
    cursor: pointer;
}

.button-icon svg {
    width: 100%;
    height: 100%;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
}

svg.back {
    min-width: 14px;
    min-height: 14px;
    max-width: 14px;
    max-height: 14px;
}

.button-icon svg + span {
    text-indent: -9999px;
}

:disabled {
    opacity: 0.25;

    pointer-events: none;
}

main.apply-convo header button:disabled {
    opacity: 0;
}

main.apply-convo {
    max-height: 80dvh;
    justify-content: space-between;
    max-width: var(--max-width-main);
    align-items: flex-start;
    gap: 64px;
    /* color: rgb(var(--black) / 100%); */
    --white: 250 250 250;
    --black: 0 0 0;
    --muted: rgb(var(--black) / 50%);
    --muted-bg: rgb(var(--black) / 4%);
    --hr-bg: rgb(var(--black) / 6%);
    --text-primary: rgb(var(--black) / 90%);
    --placeholder: rgb(var(--black) / 25%);
    color: rgb(var(--black) / 100%);
}

main.apply-convo header,
main.apply-convo footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

section header button:first-child {
    position: absolute;
    left: -24px;
    top: -16px;
    z-index: 1;
}

main.apply-convo section {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 16px 24px 0px 24px;
    width: 100%;
}

section footer {
    justify-content: center;
    margin-top: 32px;
}

main.apply-convo section h2 {
    margin-top: -10px;
}

h2 {
}

input,
select {
    margin: 0;
    padding: 0;
    border: none;
    width: 100%;
    color: var(--text-primary);
    font-family:
        "SF Pro Display",
        "SF Pro Text",
        ui-sans-serif,
        -apple-system,
        system-ui,
        Segoe UI,
        Helvetica,
        Arial,
        sans-serif;
    border-radius: var(--system-ui-radius);
    transition: all 0.3s;
    font-size: calc(var(--font-size) * 1.29412);
    /* background: var(--text-primary-invers-100); */
}

html.page-volunteer input,
html.page-volunteer select {
    background: var(--text-primary-invers-100);
}

select {
    margin-left: -5px;
    width: calc(100% + 5px);
}

input[type="date"]:required:invalid {
    color: var(--gray-blue-text);
}

input[type="date"]:required:invalid::-webkit-datetime-edit {
    color: var(--gray-blue-text);
}

input[type="date"]:required:invalid::-webkit-datetime-edit-text,
input[type="date"]:required:invalid::-webkit-datetime-edit-month-field,
input[type="date"]:required:invalid::-webkit-datetime-edit-day-field,
input[type="date"]:required:invalid::-webkit-datetime-edit-year-field {
    color: var(--gray-blue-text);
}

.date-input {
    position: relative;
    display: flex;
    align-items: center;
}

.date-input input {
    padding-right: 52px;
}

.date-input .button-icon {
    position: absolute;
    right: 0;
    z-index: 2;
}

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

.controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

textarea {
    width: 100%;
    border: 1px solid transparent;
    background: var(--gray-blue-bg);
    border-radius: calc(var(--system-ui-radius) - 8px);
    font-family:
        "SF Pro Display",
        "SF Pro Text",
        ui-sans-serif,
        -apple-system,
        system-ui,
        Segoe UI,
        Helvetica,
        Arial,
        sans-serif;
    padding: 10px;
    overflow: auto;
}

input + span,
textarea {
}

.option {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    padding: 12px 0px;
    cursor: pointer;
}

input[type="checkbox"] {
    appearance: none;
    width: 58px;
    min-width: 58px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--muted-bg);
    position: relative;
    transition:
        background 160ms ease,
        border-color 160ms ease;
    order: 1;
}

input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 1px;
    left: 0px;
    width: 35px;
    height: 22px;
    border-radius: 999px;
    background: #ffffff;
    transition: transform 160ms ease;
}

input[type="checkbox"]:checked {
    border-color: var(--accent-green);
    background: var(--accent-green);
}

input[type="checkbox"]:checked::before {
    transform: translateX(20px);
}

input[type="radio"] {
    appearance: none;
    width: 26px;
    height: 26px;
    position: relative;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--muted-bg);
    order: 1;
}

input[type="radio"]::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--accent-blue);
    opacity: 0;
    transition: opacity 120ms ease;
}

input[type="radio"]:checked {
    border-color: var(--accent-blue);
}

input[type="radio"]:checked::before {
    opacity: 1;
}

main.apply-convo section h3 {
    color: var(--muted);
}

main.apply-convo section .quiz-inline h3 {
    color: var(--text-primary);
}

.photo-preview {
    background: var(--muted-bg);
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--system-ui-radius);
    position: relative;
}

.photo-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    position: absolute;
    z-index: 1;
    padding: 4px;
}

.photo-actions input + button svg {
    min-width: 30px;
    min-height: 30px;
    max-width: 30px;
    max-height: 30px;
}

.camera video,
.camera img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.camera {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--system-ui-radius);
    position: relative;
    max-width: var(--max-width-main);
}

.camera button:disabled {
    display: none;
}

.camera .video-actions button {
    position: absolute;
    left: calc(50% - 32px);
    bottom: 4px;
    width: 64px;
    height: 64px;
    max-width: 64px;
    max-height: 64px;
    min-width: 64px;
    min-height: 64px;
    backdrop-filter: saturate(0.95) blur(12px);
}

.video-actions button svg {
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
}

.button-icon.camera-on,
.photo-actions button + button {
    color: white;
    backdrop-filter: saturate(0.95) blur(12px);
}

.age {
    text-align: right;
    color: var(--gray-blue-text);
    z-index: 2;
    position: absolute;
    right: 0px;
    margin-top: -24px;
    margin-right: 48px;
    font-size: var(--footnote-font-size);
    line-height: var(--footnote-line-height);
}

.phone-country {
    margin-top: 6px;
    font-size: calc(var(--font-size) * 0.70588);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-split {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 16px;
}

.phone-split input:first-child {
    max-width: 3ch;
}

.phone-split input:focus-visible:first-child {
    max-width: 5ch;
}

.phone-split input:last-child {
    flex: 1;
}

input[type="radio"]:checked + span,
input[type="checkbox"]:checked + span {
    color: var(--text-primary);
}

textarea {
    color: var(--text-primary);
    background: transparent;
    padding: 0;

    transition: all 0.3s;
    font-size: calc(var(--font-size) * 1.29412);
}

.controls .radio-group {
    margin-top: 32px;
}

.quiz-inline {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.quiz-inline:before {
    content: "";
    height: 0.5px;
    width: 90%;
    background: var(--hr-bg);
    margin-left: 5%;
}

.quiz-options {
    display: flex;
    flex-direction: column;
}

.quiz-options button {
    text-align: center;
    font-weight: 400;
}

.quiz-actions {
    display: flex;
    justify-content: flex-end;
}

.quiz-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.quiz-track {
    position: relative;
    flex: 1;
    height: 4px;
    border-radius: 999px;
    background: var(--accent-green-muted-bg);
    overflow: hidden;
}

.quiz-fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: 0%;
    background: var(--accent-green);
}

button.quiz-option.is-correct:hover,
.quiz-option.is-correct {
    color: var(--accent-green);
    text-decoration: none;
}

button.quiz-option.is-wrong:hover,
.quiz-option.is-wrong {
    color: var(--accent-red);
    text-decoration: none;
}

.quiz-inline.quiz-wrong .quiz-track {
    background: rgb(255 56 60 / 30%);
}

.quiz-inline.quiz-wrong .quiz-fill {
    background: var(--accent-red);
}

h3 {
    /* margin: 0; */
    /* font-weight: 400; */
}

p.extra {
    font-weight: 400;
    font-size: var(--title3-font-size);
    line-height: var(--title3-line-height);
    letter-spacing: var(--title3-letter-spacing);
}

.eyebrow {
    color: var(--gray-blue-text);
}

.note {
    text-align: center;
    font-size: var(--body-font-size);
    line-height: var(--body-letter-spacing);
    letter-spacing: var(--body-line-height);
    font-weight: 500;
    color: var(--accent-green);
}

div#progress {
    padding: 0px 12px;
    position: absolute;
    top: -16px;
    right: -24px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

main.apply-convo.success-open header,
main.apply-convo.success-open footer {
    display: none;
}

main.apply-convo.success-open section.card.success,
main.apply-convo section.card.intro,
main.apply-convo section.card.login {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    gap: 0px;
    justify-content: flex-end;
}

main.apply-convo.success-open section.card.success video,
section.card.intro video,
section.card.login video {
    width: 100%;
    max-width: calc(var(--max-width-main) / 1.5);
    order: 2;
}

main.apply-convo.success-open section.card.success div,
section.card.intro div,
section.card.login div {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    width: 100%;
}

main.apply-convo.success-open section.card.success div h2,
section.card.intro div h2,
section.card.login div h2 {
    order: 0;
}

main.apply-convo.success-open section.card.success div p,
section.card.intro div p,
section.card.login div p {
    order: 1;
    text-align: center;
    color: var(--muted);
}

.login-password {
    width: 100%;
}

.login-password + p {
    text-align: center;
}

section header {
    margin-bottom: 32px;
}

section header button:first-child svg {
    min-width: 14px;
    min-height: 14px;
    max-width: 14px;
    max-height: 14px;
}

main.apply-convo section.card.login header,
main.apply-convo section.card.intro header {
    margin-bottom: 0;
}

section.card.intro div.block-start-actions {
    gap: 0;
    margin-top: -32px;
}

section.card.intro div.block-start-actions button:last-child {
    color: var(--muted);
}

.login-form input {
}
