.parish-registration-page {
    min-height: 100vh;
    padding: 9.5rem 0 5rem;
    background:
        radial-gradient(circle at 10% 12%, rgba(201, 168, 76, .14), transparent 28rem),
        radial-gradient(circle at 94% 28%, rgba(107, 29, 47, .09), transparent 26rem),
        #f7f3ea;
}

.registration-shell {
    max-width: 1160px;
}

.registration-intro {
    max-width: 880px;
    margin: 0 auto 2rem;
    text-align: center;
}

.registration-intro h1,
.parish-profile-heading h1 {
    margin: .4rem 0 .8rem;
    color: #2c1810;
    font-family: "Playfair Display", serif;
    font-size: clamp(2.25rem, 6vw, 4rem);
    line-height: 1.08;
}

.registration-intro > p {
    max-width: 720px;
    margin: 0 auto;
    color: #665850;
    font-size: 1.05rem;
    line-height: 1.75;
}

.registration-reference {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.35rem;
}

.registration-reference span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem .8rem;
    border: 1px solid #e7dcc1;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #5a4d46;
    font-size: .82rem;
    font-weight: 650;
}

.registration-reference i {
    color: #8d2438;
}

.registration-card {
    overflow: hidden;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid #e7dfd1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(44, 24, 16, .12);
}

.selected-plan-notice,
.office-verification-note,
.registration-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-bottom: 1.4rem;
    padding: 1rem 1.1rem;
    border: 1px solid #eadcad;
    border-radius: 12px;
    background: #fbf7e9;
}

.selected-plan-notice p,
.office-verification-note p,
.registration-privacy-note p {
    margin: .25rem 0 0;
    color: #665950;
    line-height: 1.55;
}

.selected-plan-dot {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin-top: .22rem;
    border-radius: 50%;
    background: var(--tier);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--tier), transparent 80%);
}

.registration-progress {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}

.registration-progress li {
    position: relative;
    display: flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
    padding: .8rem;
    border: 1px solid #e8e1d6;
    border-radius: 10px;
    color: #746860;
    background: #faf9f6;
}

.registration-progress li::after {
    position: absolute;
    right: -.8rem;
    width: .8rem;
    height: 2px;
    background: #e1d8c8;
    content: "";
}

.registration-progress li:last-child::after {
    display: none;
}

.registration-progress span {
    display: grid;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #eee9df;
    font-size: .78rem;
    font-weight: 800;
}

.registration-progress strong {
    overflow: hidden;
    font-size: .82rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.registration-progress li.is-active,
.registration-progress li.is-complete {
    border-color: #cfb35f;
    color: #6b1d2f;
    background: #fffaf0;
}

.registration-progress li.is-active span,
.registration-progress li.is-complete span {
    color: #fff;
    background: #8d2438;
}

.registration-step {
    padding: clamp(1rem, 2vw, 1.5rem);
    border: 1px solid #ece6dc;
    border-radius: 16px;
    background: #fff;
}

.parish-registration-form[data-enhanced="true"] .registration-step[hidden] {
    display: none;
}

.registration-step-heading {
    margin-bottom: 1.6rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid #eee8de;
}

.registration-step-heading > span {
    color: #9a7628;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.registration-step-heading h2 {
    margin: .35rem 0;
    color: #2c1810;
    font-family: "Playfair Display", serif;
    font-size: clamp(1.65rem, 4vw, 2.25rem);
}

.registration-step-heading p {
    margin: 0;
    color: #72665f;
    line-height: 1.6;
}

.passport-and-name {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 1.4rem;
}

.passport-upload {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.passport-preview {
    display: grid;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 4 / 5;
    place-items: center;
    border: 2px dashed #d7c9ad;
    border-radius: 14px;
    color: #bba97f;
    background: #faf7f0;
}

.passport-preview i {
    font-size: 4.5rem;
}

.passport-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.passport-preview img[hidden] {
    display: none !important;
}

.passport-upload input[type="file"] {
    width: 100%;
    padding: .7rem;
    border: 1px solid #dcd3c5;
    border-radius: 9px;
    font: inherit;
    font-size: .82rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.2rem;
}

.form-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: .4rem;
}

.form-field-span-two {
    grid-column: span 2;
}

.form-field-span-three {
    grid-column: span 3;
}

.form-field label,
.passport-upload > label,
.choice-fieldset legend {
    color: #40332d;
    font-size: .88rem;
    font-weight: 750;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    min-height: 48px;
    box-sizing: border-box;
    padding: .8rem .85rem;
    border: 1px solid #d9d1c5;
    border-radius: 9px;
    outline: none;
    color: #2c2521;
    background: #fff;
    font: inherit;
    font-size: 1rem;
    transition: border-color .2s, box-shadow .2s;
}

.form-field textarea {
    min-height: 92px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.passport-upload input[type="file"]:focus {
    border-color: #9c7a2e;
    box-shadow: 0 0 0 4px rgba(201, 168, 76, .18);
}

.form-field input[disabled] {
    color: #6c625c;
    background: #f2efe9;
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"],
.passport-upload input[aria-invalid="true"] {
    border-color: #b42336;
}

.form-field small,
.passport-upload small {
    color: #7b7069;
    font-size: .76rem;
    line-height: 1.45;
}

.required-mark {
    color: #a51c30;
}

.optional-label {
    color: #877b74;
    font-size: .72rem;
    font-weight: 500;
}

.field-error {
    display: block;
    color: #a51c30;
    font-size: .78rem;
    font-weight: 650;
}

.choice-row,
.church-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.3rem;
}

.choice-fieldset {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid #e6dfd3;
    border-radius: 12px;
}

.choice-fieldset legend {
    padding: 0 .35rem;
}

.choice-group,
.check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem;
}

.choice-group-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-card,
.check-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.choice-card input,
.check-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.choice-card span,
.check-card span {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .55rem .7rem;
    border: 1px solid #dcd4c8;
    border-radius: 8px;
    color: #564a44;
    background: #fff;
    font-size: .82rem;
    font-weight: 650;
    text-align: center;
}

.choice-card input:checked + span,
.check-card input:checked + span {
    border-color: #8d2438;
    color: #6b1d2f;
    background: #fff3f5;
    box-shadow: inset 0 0 0 1px #8d2438;
}

.choice-card input:focus-visible + span,
.check-card input:focus-visible + span {
    outline: 3px solid rgba(201, 168, 76, .35);
    outline-offset: 2px;
}

.spouse-field {
    max-width: calc(50% - .5rem);
    margin-top: 1rem;
}

.spouse-field[hidden] {
    display: none;
}

.dependants-panel {
    padding: 1rem;
    border: 1px solid #e5ddd1;
    border-radius: 13px;
    background: #faf8f3;
}

.dependants-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .9rem;
}

.dependants-heading h3 {
    margin: 0;
    color: #372821;
    font-family: "Playfair Display", serif;
}

.dependants-heading p {
    margin: .25rem 0 0;
    color: #776b64;
    font-size: .83rem;
}

.compact-button {
    flex: 0 0 auto;
    gap: .45rem;
    padding: .65rem .85rem;
    font-size: .82rem;
}

.dependants-list {
    display: grid;
    gap: .75rem;
}

.dependant-row {
    display: grid;
    grid-template-columns: 34px minmax(0, 1.5fr) minmax(0, 1fr) 40px;
    gap: .7rem;
    align-items: end;
    padding: .8rem;
    border: 1px solid #e7e0d6;
    border-radius: 10px;
    background: #fff;
}

.dependant-number {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    align-self: center;
    border-radius: 50%;
    color: #fff;
    background: #8d2438;
    font-size: .76rem;
    font-weight: 800;
}

.dependant-remove {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid #f1c8cf;
    border-radius: 8px;
    color: #a51c30;
    background: #fff5f6;
    cursor: pointer;
}

.dependants-limit {
    margin: .8rem 0 0;
    color: #7c7169;
    font-size: .78rem;
}

.check-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.check-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-card i {
    color: #a98635;
}

.office-verification-note,
.registration-privacy-note {
    margin: 1.3rem 0 0;
    border-color: #dce6e1;
    background: #f1f7f4;
}

.office-verification-note > i,
.registration-privacy-note > i {
    margin-top: .12rem;
    color: #237153;
    font-size: 1.4rem;
}

.service-contact-choice {
    margin-bottom: 1.2rem;
}

.declaration-panel {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
    padding: clamp(1rem, 3vw, 1.4rem);
    border: 1px solid #dfcf9c;
    border-radius: 13px;
    background: #fffaf0;
}

.declaration-heading {
    display: flex;
    gap: .8rem;
}

.declaration-heading i {
    color: #8d2438;
    font-size: 1.6rem;
}

.declaration-heading h3,
.declaration-heading p {
    margin: 0;
}

.declaration-heading p {
    margin-top: .3rem;
    color: #665a53;
    line-height: 1.55;
}

.declaration-check {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    color: #4b403a;
    cursor: pointer;
    line-height: 1.55;
}

.declaration-check input {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: .12rem;
    accent-color: #8d2438;
}

.registration-step-actions {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid #eee8de;
}

.registration-step-actions .member-primary,
.registration-step-actions .member-secondary {
    gap: .5rem;
    min-height: 46px;
}

.registration-submit {
    min-width: 220px;
}

.registration-signin {
    margin: 1.4rem 0 .3rem;
    color: #6d625c;
    text-align: center;
}

.registration-signin a {
    color: #6b1d2f;
    font-weight: 700;
}

.parish-profile-page {
    background: #f7f3ea;
}

.parish-profile-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.4rem;
}

.parish-profile-heading h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.registration-status-card {
    display: grid;
    min-width: 230px;
    gap: .35rem;
    padding: 1rem;
    border: 1px solid #dfd4c3;
    border-radius: 12px;
    background: #fff;
}

.registration-status-card small {
    color: #7a6e67;
    text-transform: uppercase;
}

.registration-status-card strong {
    color: #39261e;
    font-family: monospace;
}

@media (max-width: 900px) {
    .registration-progress strong {
        display: none;
    }

    .registration-progress li {
        justify-content: center;
        padding: .6rem;
    }

    .passport-and-name {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .form-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-field-span-three {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .parish-registration-page {
        padding-top: 7.5rem;
    }

    .registration-card {
        padding: .75rem;
        border-radius: 15px;
    }

    .registration-progress {
        gap: .4rem;
        margin-bottom: 1rem;
    }

    .registration-progress li::after {
        right: -.45rem;
        width: .45rem;
    }

    .registration-step {
        padding: 1rem;
    }

    .passport-and-name,
    .form-grid,
    .form-grid-three,
    .choice-row,
    .church-choice-grid {
        grid-template-columns: 1fr;
    }

    .passport-upload {
        max-width: 240px;
        margin: 0 auto .6rem;
    }

    .form-field-span-two,
    .form-field-span-three {
        grid-column: auto;
    }

    .spouse-field {
        max-width: none;
    }

    .dependants-heading,
    .parish-profile-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .compact-button {
        width: 100%;
    }

    .dependant-row {
        grid-template-columns: 34px minmax(0, 1fr) 40px;
    }

    .dependant-row .form-field:nth-of-type(2) {
        grid-column: 2 / 4;
    }

    .dependant-remove {
        grid-column: 3;
        grid-row: 1;
    }

    .registration-step-actions {
        flex-direction: column-reverse;
    }

    .registration-step-actions > span {
        display: none;
    }

    .registration-step-actions .member-primary,
    .registration-step-actions .member-secondary {
        width: 100%;
    }

    .final-actions {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .registration-progress span {
        width: 27px;
        height: 27px;
    }

    .registration-step {
        padding: .8rem;
    }

    .choice-group,
    .choice-group-wide,
    .check-grid,
    .check-grid-three {
        grid-template-columns: 1fr;
    }

    .dependants-panel {
        padding: .75rem;
    }
}
