body {
    font-family: "Quicksand", ui-sans-serif, system-ui, sans-serif;
}

.field-control {
    margin-top: 0.5rem;
    display: block;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    padding: 0.75rem 1rem;
    color: #0f172a;
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.05);
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field-control:focus {
    border-color: #0f766e;
    box-shadow: 0 0 0 3px rgb(20 184 166 / 0.18);
}

.field-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #dc2626;
}

.required-marker {
    color: #dc2626;
    font-weight: 700;
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover,
.flatpickr-day.prevMonthDay.flatpickr-disabled,
.flatpickr-day.nextMonthDay.flatpickr-disabled {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.42;
}

@media (max-width: 480px) {
    .flatpickr-calendar.open {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
    }
}

.schedule-option {
    position: relative;
    display: flex;
    min-height: 6.25rem;
    cursor: pointer;
    align-items: flex-start;
    gap: 0.875rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    background: #ffffff;
    padding: 1rem;
    transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.schedule-option:hover {
    border-color: #0d9488;
    background: #f0fdfa;
}

.schedule-option:has(input:focus-visible) {
    box-shadow: 0 0 0 3px rgb(20 184 166 / 0.2);
}

.schedule-option:has(input:checked) {
    border-color: #0f766e;
    background: #f0fdfa;
    box-shadow: inset 0 0 0 1px #0f766e;
}

.schedule-check {
    margin-top: 0.125rem;
    height: 1.125rem;
    width: 1.125rem;
    flex: 0 0 auto;
    border: 2px solid #94a3b8;
    border-radius: 50%;
    background: #ffffff;
}

.schedule-option:has(input:checked) .schedule-check {
    border: 5px solid #0f766e;
}

.topic-grid {
    display: grid;
    gap: 0.75rem;
}

.topic-group {
    overflow: hidden;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    background: #ffffff;
}

.topic-group:nth-child(even) {
    border-color: #99f6e4;
}

.topic-group h3 {
    min-height: 3.5rem;
    display: flex;
    align-items: center;
    margin: 0;
    background: #e0f2fe;
    padding: 0.875rem 1rem;
    color: #0c4a6e;
    font-size: 0.9375rem;
    font-weight: 700;
}

.topic-group:nth-child(even) h3 {
    background: #ccfbf1;
    color: #134e4a;
}

.topic-group p {
    margin: 0;
    min-height: 8rem;
    padding: 1rem;
    color: #475569;
    font-size: 0.875rem;
    line-height: 1.55rem;
    overflow-wrap: anywhere;
}

.confirmation-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    background: rgb(15 23 42 / 0.55);
    padding: 1rem;
}

.confirmation-panel {
    position: relative;
    width: min(100%, 27rem);
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    border: 1px solid #99f6e4;
    border-radius: 0.5rem;
    background: #ffffff;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 20px 45px rgb(15 23 42 / 0.22);
}

.confirmation-mark {
    display: grid;
    width: 3rem;
    height: 3rem;
    margin: 0 auto;
    place-items: center;
    border-radius: 50%;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 1.5rem;
    font-weight: 700;
}

.duplicate-mark {
    background: #fef3c7;
    color: #b45309;
}

.confirmation-panel h2 {
    margin: 1rem 0 0;
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
}

.confirmation-panel p {
    margin: 0.625rem 0 0;
    color: #475569;
    font-size: 0.9375rem;
    line-height: 1.5rem;
}

.confirmation-response-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
    border: 1px solid #0f766e;
    border-radius: 0.375rem;
    background: #0f766e;
    padding: 0.7rem 1.5rem;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.confirmation-response-link:hover {
    background: #115e59;
}

.confirmation-response-link:focus-visible,
.confirmation-dismiss:focus-visible {
    outline: 3px solid rgb(20 184 166 / 0.3);
    outline-offset: 2px;
}

.confirmation-dismiss {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #64748b;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.confirmation-dismiss:hover {
    background: #f1f5f9;
    color: #0f172a;
}

body:has(.confirmation-backdrop) {
    overflow: hidden;
}

@media (min-width: 768px) {
    .topic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .topic-group p {
        min-height: 0;
    }
}
