form#form {
    height: 100%;
    margin-bottom: 30px;
}


        /* --- Subscription groups, rendered into the left container --- */
        .subscription-group + .subscription-group {
            margin-top: 28px;
        }

        h3.subscription-group-title {
            font-size: 18px;
            color: #003359;
            margin: 0 0 2px;
        }

        .subscription-group-hint {
            font-size: 13px;
            font-weight: 300;
            color: #767676;
            margin: 0 0 12px;
        }

        .subscription-options {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
            gap: 10px;
        }

        /* --- Option tile. Same surface treatment as .card in style.css,
               minus the 25px left indent, plus a selected state. --- */
        .subscription-option {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            background-color: #f8f8f8;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 14px 15px;
            margin: 0;
            cursor: pointer;
            box-sizing: border-box;
            transition: background-color 0.2s, border-color 0.2s;
        }

        .subscription-option:hover {
            background-color: #e9e9e9;
        }

        .subscription-option:has(input[type="checkbox"]:checked) {
            background-color: #f1faf7;
            border-color: #b6ded6;
        }

        .subscription-option-text {
            flex: 1;
        }

        .subscription-option-label {
            display: block;
            font-weight: 700;
            color: #003359;
            font-size: 15px;
            line-height: 1.35;
        }

        .subscription-option-desc {
            display: block;
            font-weight: 300;
            color: #595959;
            font-size: 14px;
            line-height: 1.45;
            margin-top: 3px;
        }

        /* --- Heading above the option groups --- */
        .subscription-intro {
            margin: 32px 0 20px;
            padding-top: 24px;
            border-top: 1px solid #e5e5e5;
        }

        .subscription-intro h2 {
            margin: 0 0 4px;
        }

        .subscription-intro p {
            margin: 0;
        }

        /* --- Consent statement above the submit button --- */
        .form-consent {
            font-size: 13px;
            font-weight: 300;
            line-height: 1.55;
            color: #595959;
            margin-top: 20px;
            padding-top: 18px;
            border-top: 1px solid #e2e2e2;
        }

        .form-note {
            font-size: 13px;
            font-weight: 300;
            line-height: 1.55;
            color: #595959;
            padding-top: 18px;
        }

        @media (prefers-reduced-motion: reduce) {
            .subscription-option {
                transition: none;
            }
        }


/* ================================================================
   Populations You Serve (optional field, right column)
   Condensed two-column checkbox list with custom checkboxes.
   Add to style-subscribe.css. Colors match the existing page:
   navy #003359, teal #1e9c8a, hint grey #767676.
   ================================================================ */

.population-field {
/*    margin-top: 20px; */
    padding-top: 18px;
/*    border-top: 1px solid #e2e2e2; */
}

.population-field fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.population-field legend {
    display: block;
    padding: 0;
    margin: 0 0 2px;
    font-weight: 700;
    color: #003359;
}

.population-field .optional {
    font-weight: 300;
    color: #767676;
}

.population-field .field-hint {
    font-size: 13px;
    font-weight: 300;
    color: #767676;
    margin: 0 0 10px;
}

/* Two columns when there's room, one on narrow screens */
.population-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 8px 18px;
}

/* Each option: checkbox + text, no box around it */
.population-field .population-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: #666666;
    cursor: pointer;
}

/* Custom checkbox, shared by Topics and Populations
   (overrides any hosted input styles) */
.subscription-option input[type="checkbox"],
.population-field .population-option input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    flex-shrink: 0;
    display: grid;
    place-content: center;
    width: 17px;
    height: 17px;
    margin: 1px 0 0;
    padding: 0;
    border: 1.5px solid #9aa7b3;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: none;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

/* Topic labels are 15px, so center the box on their first line */
.subscription-option input[type="checkbox"] {
    margin-top: 2px;
}

/* Checkmark */
.subscription-option input[type="checkbox"]::before,
.population-field .population-option input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #fff;
    clip-path: polygon(14% 44%, 0 65%, 40% 100%, 100% 20%, 82% 4%, 38% 64%);
    transform: scale(0);
    transition: transform 0.12s ease-in-out;
}

.subscription-option:hover input[type="checkbox"],
.population-field .population-option:hover input[type="checkbox"] {
    border-color: #1e9c8a;
}

.subscription-option input[type="checkbox"]:checked,
.population-field .population-option input[type="checkbox"]:checked {
    background-color: #1e9c8a;
    border-color: #1e9c8a;
}

.subscription-option input[type="checkbox"]:checked::before,
.population-field .population-option input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.subscription-option input[type="checkbox"]:focus-visible,
.population-field .population-option input[type="checkbox"]:focus-visible {
    outline: 2px solid #1e9c8a;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .subscription-option input[type="checkbox"],
    .subscription-option input[type="checkbox"]::before,
    .population-field .population-option input[type="checkbox"],
    .population-field .population-option input[type="checkbox"]::before {
        transition: none;
    }
}

fieldset {
border-style: none;
}

