:root {
    background: #f4f8f7;
    color: #183a34;
    font-family: ui-sans-serif, system-ui, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #cfe0dc;
    background: #fff;
    padding: 22px clamp(24px, 7vw, 100px);
}

.brand {
    text-decoration: none;
    color: #174f45;
    font-family: Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 24px;
}

a {
    text-underline-offset: 4px;
    color: #2a6258;
}

main {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 20px;
    margin: 7vh auto;
    width: min(960px, calc(100% - 40px));
}

.panel {
    border: 1px solid #d7e5e1;
    border-radius: 16px;
    box-shadow: 0 12px 34px rgb(35 86 76 / 8%);
    background: #fff;
    padding: 38px;
    min-height: 270px;
}

.care-image {
    margin: -20px -20px 28px;
    border-radius: 11px;
    overflow: hidden;
}

.care-image img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.care-image figcaption {
    padding: 8px 4px 0;
    color: #607a74;
    font-size: 0.68rem;
}

h2 {
    margin-top: 0;
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 500;
}

.appointment {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    border-top: 1px solid #d7e5e1;
    padding: 20px 0;
}

.appointment span {
    color: #607a74;
}

form {
    display: grid;
    gap: 9px;
}

button,
input {
    border: 1px solid #8aa9a2;
    border-radius: 7px;
    padding: 0 14px;
    min-height: 44px;
    font: inherit;
}

button {
    background: #21695c;
    color: #fff;
    cursor: pointer;
}

output {
    display: block;
    margin-top: 15px;
    color: #58716c;
}

.care-results {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.care-results:empty {
    display: none;
}

.care-empty {
    border: 1px dashed #aac4bd;
    border-radius: 10px;
    background: #f8fbfa;
    padding: 22px;
    text-align: center;
}

.care-empty h3,
.care-empty p {
    margin: 0;
}

.care-empty p {
    margin-top: 7px;
    line-height: 1.4;
    color: #607a74;
    font-size: 0.82rem;
}

.care-location {
    border: 1px solid #cfe0dc;
    border-radius: 10px;
    background: #f8fbfa;
    padding: 18px;
}

.care-location-heading {
    display: flex;
    gap: 12px;
    align-items: start;
    justify-content: space-between;
}

.care-location h3 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: 1.1rem;
}

.care-location-heading span {
    flex: none;
    border-radius: 999px;
    background: #deede9;
    padding: 4px 8px;
    color: #35685f;
    font-size: 0.72rem;
    font-weight: 700;
}

.care-location-address {
    margin: 9px 0;
    line-height: 1.4;
    color: #607a74;
    font-size: 0.82rem;
}

.care-location-services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #315e56;
    font-size: 0.78rem;
}

.care-location-services li::before {
    content: '✓ ';
}

.care-location-availability {
    display: grid;
    gap: 4px;
    margin-top: 14px;
    border-top: 1px solid #d7e5e1;
    padding-top: 14px;
}

.care-location-availability span {
    color: #607a74;
    font-size: 0.72rem;
}

.care-location-availability strong {
    font-size: 0.88rem;
}

.care-location-availability button {
    margin-top: 8px;
    width: 100%;
}

.appointment-picker {
    margin-top: 16px;
    border-top: 1px solid #cfe0dc;
    padding-top: 18px;
}

.appointment-picker h4,
.appointment-picker p {
    margin: 0;
}

.appointment-picker > p {
    margin-top: 5px;
    line-height: 1.4;
    color: #607a74;
    font-size: 0.78rem;
}

.appointment-form {
    margin-top: 15px;
}

.appointment-form fieldset {
    display: grid;
    gap: 8px;
    margin: 0;
    border: 0;
    padding: 0;
}

.appointment-form legend {
    margin-bottom: 8px;
    font-size: 0.78rem;
    font-weight: 700;
}

.appointment-slot {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: center;
    border: 1px solid #cfe0dc;
    border-radius: 8px;
    background: #fff;
    padding: 12px;
    cursor: pointer;
}

.appointment-slot:has(input:checked) {
    border-color: #21695c;
    box-shadow: 0 0 0 2px rgb(33 105 92 / 16%);
    background: #edf7f4;
}

.appointment-slot input {
    margin: 0;
    padding: 0;
    width: 18px;
    height: 18px;
    min-height: auto;
}

.appointment-slot strong,
.appointment-slot small {
    display: block;
}

.appointment-slot small {
    margin-top: 4px;
    color: #607a74;
}

.appointment-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 12px;
}

.appointment-actions button:last-child {
    border-color: #8aa9a2;
    background: #fff;
    color: #21695c;
}

.appointment-confirmation {
    border-radius: 8px;
    background: #dcebe7;
    padding: 18px;
    color: #1e564c;
}

.appointment-confirmation p {
    margin: 7px 0;
    line-height: 1.4;
}

.appointment-confirmation small {
    color: #35685f;
}

footer {
    padding: 30px;
    text-align: center;
}

@media (width <= 720px) {
    .site-header {
        flex-direction: column;
        gap: 18px;
        align-items: start;
    }

    main {
        grid-template-columns: 1fr;
    }
}
