.form-description {
    color: #46564f;
    font-size: 1.08rem;
    margin-bottom: 1.25rem;
}

/* The shared base styles use grid labels. Public controls sit outside their
 * labels, so block layout keeps the label text and required marker inline. */
.form-group > label { display: block; }

.intro p,
.confirmation p,
.form-description p {
    margin: .75rem 0;
}

.intro h2,
.intro h3,
.confirmation h2,
.confirmation h3,
.form-description h2,
.form-description h3 {
    margin: 1.25rem 0 .5rem;
}

.intro ul,
.intro ol,
.confirmation ul,
.confirmation ol,
.form-description ul,
.form-description ol {
    margin: .75rem 0;
    padding-left: 1.6rem;
}

.intro li + li,
.confirmation li + li,
.form-description li + li { margin-top: .25rem; }

.intro > :first-child,
.confirmation > :first-child,
.form-description > :first-child { margin-top: 0; }
.intro > :last-child,
.confirmation > :last-child,
.form-description > :last-child { margin-bottom: 0; }

.policy-details h2 {
    margin: 0;
}

.policy-details dl {
    margin: 0;
}

.policy-details-heading {
    border-bottom: 1px solid #d9dfda;
    margin-bottom: 0;
    padding-bottom: 1rem;
}

.policy-details-heading .eyebrow {
    color: #61706a;
    font-size: .8rem;
    font-weight: 750;
    letter-spacing: .06em;
    margin: 0 0 .25rem;
    text-transform: uppercase;
}

.policy-row {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(150px, .42fr) minmax(0, 1.58fr);
    padding: .85rem 0;
}

.policy-row + .policy-row {
    border-top: 1px solid #e6eae7;
}

.policy-row dt {
    color: #52615b;
    font-weight: 750;
}

.policy-row dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.policy-help {
    align-items: center;
    background: #eef2ef;
    border-radius: 12px;
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding: 1rem 1.15rem;
}

.policy-help p { margin: 0; }

.breadcrumb {
    align-items: center;
    color: #61706a;
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.25rem;
}

.privacy-link {
    margin-top: 1.25rem;
    text-align: center;
}

.form-chapter {
    border-bottom: 1px solid #cbd4ce;
    margin: 2.5rem 0 1.25rem;
    padding-bottom: .8rem;
}

.form-chapter:first-of-type { margin-top: 0; }
.form-chapter h2 { font-size: clamp(1.35rem, 5vw, 1.75rem); margin: 0; }
.form-chapter p { color: #52615b; margin: .45rem 0 0; max-width: 65ch; }

.form-step-heading {
    border-bottom: 1px solid #d9dfda;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
}

.form-step-heading h2 { margin: 0; }
.form-step-heading > p:last-child { color: #52615b; margin: .45rem 0 0; }
.page-progress-label { color: #52615b; font-size: .9rem; font-weight: 700; margin: 0 0 .45rem; }
.form-page-navigation { border-top: 1px solid #d9dfda; display: flex; gap: .75rem; justify-content: space-between; padding-top: 1.2rem; }

.rating-options {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(5, minmax(44px, 1fr));
    margin-top: .65rem;
    max-width: 32rem;
}

.rating-options .choice,
.rating-scale .choice {
    align-items: center;
    background: #f7f8f5;
    border: 1px solid #cbd4ce;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    margin: 0;
    min-height: 48px;
    padding: .35rem;
}

.rating-options .choice:has(input:checked),
.rating-scale .choice:has(input:checked) { background: #dcefe4; border-color: #315c50; }
.rating-options .choice input,
.rating-scale .choice input { margin: 0; }

.rating-endpoints {
    color: #52615b;
    display: flex;
    font-size: .92rem;
    font-weight: 650;
    gap: 1rem;
    justify-content: space-between;
    margin: .55rem 0 0;
}

.rating-endpoints span:last-child { text-align: right; }
.rating-endpoints.scale-meaning-missing { color: #9b2c2c; font-weight: 750; }

.required-indicator {
    color: #9b2c2c;
    font-weight: 750;
}

.required-explanation {
    color: #52615b;
    font-size: .92rem;
    margin: 0 0 1.4rem;
}

.map-canvas {
    background: #dce5dd;
    border: 1px solid #9baaa1;
    border-radius: 8px;
    cursor: crosshair;
    height: 420px;
    max-height: 62vh;
    overflow: hidden;
    position: relative;
    touch-action: none;
}

.map-tiles,
.map-tiles img { position: absolute; }
.map-tiles { inset: 0; }
.map-tiles img { height: 256px; max-width: none; user-select: none; width: 256px; }
.map-marker {
    background: #b3261e;
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
    height: 28px;
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -100%) rotate(-45deg);
    width: 28px;
    z-index: 3;
}
.map-zoom { display: grid; left: .6rem; position: absolute; top: .6rem; z-index: 4; }
.map-zoom button { background: #fff; border: 1px solid #718078; color: #17211d; cursor: pointer; font: inherit; font-size: 1.25rem; height: 42px; width: 42px; }
.map-attribution { background: rgba(255, 255, 255, .9); bottom: 0; color: #17211d; font-size: .75rem; padding: .15rem .35rem; position: absolute; right: 0; z-index: 4; }
.map-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .65rem; }
.map-field-preview { align-items: center; background: #eef2ef; border: 1px solid #cbd4ce; border-radius: 8px; display: flex; min-height: 150px; padding: 1rem; }


.policy-content {
    margin-bottom: 1.5rem;
}

.policy-content p,
.policy-content ul,
.policy-content ol {
    margin: .75rem 0;
}

.policy-content h2,
.policy-content h3 {
    margin: 1.5rem 0 .5rem;
}

.policy-content > :first-child { margin-top: 0; }
.policy-content > :last-child { margin-bottom: 0; }

@media (max-width: 560px) {
    .rating-endpoints { align-items: flex-start; flex-direction: column; gap: .2rem; }
    .rating-endpoints span:last-child { text-align: left; }
    .form-page-navigation .button { flex: 1 1 9rem; }

    .policy-row {
        gap: .2rem;
        grid-template-columns: 1fr;
    }

    .policy-help {
        align-items: flex-start;
        flex-direction: column;
    }
}
