.bafci-form-shell {
    --bafci-navy: #0c3a66;
    --bafci-blue: #244f7d;
    --bafci-green: #08733f;
    --bafci-red: #de2538;
    --bafci-gold: #d6a73a;
    --bafci-border: #28323b;
    --bafci-soft: #f0f2f4;
    --bafci-pale-blue: #eef5fb;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    margin: 24px auto;
    max-width: 1120px;
}

body.bafci-landing-template {
    background-color: #e9eff5;
    background-image:
        radial-gradient(circle at 8% 10%, rgba(8, 115, 63, .09), transparent 24%),
        radial-gradient(circle at 92% 4%, rgba(12, 58, 102, .12), transparent 27%),
        linear-gradient(180deg, #f5f8fb 0%, #e8eef4 100%);
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

.bafci-landing-main {
    min-height: 100vh;
    padding: 34px 18px;
}

.bafci-landing-template .bafci-form-shell {
    margin: 0 auto;
    max-width: 1120px;
}

.bafci-landing-template .bafci-membership-form {
    border-top: 0;
}

.bafci-form-shell *,
.bafci-form-shell *::before,
.bafci-form-shell *::after {
    box-sizing: border-box;
}

.bafci-membership-form {
    background: #fff;
    border: 1px solid rgba(12, 58, 102, .13);
    border-radius: 20px;
    box-shadow: 0 24px 70px rgba(8, 35, 60, .15);
    overflow: hidden;
    padding: 0 54px 32px;
}

.bafci-form-header {
    align-items: center;
    background:
        radial-gradient(circle at 92% 25%, rgba(8, 115, 63, .12), transparent 28%),
        linear-gradient(135deg, #eef6fc 0%, #fff 58%, #f1f8f4 100%);
    border-bottom: 0;
    display: grid;
    gap: 28px;
    grid-template-columns: 135px 1fr;
    margin: 0 -54px 26px;
    padding: 24px 54px 27px;
    position: relative;
}

.bafci-form-header::after {
    background: linear-gradient(90deg, var(--bafci-navy) 0 45%, var(--bafci-green) 45% 82%, var(--bafci-red) 82% 100%);
    bottom: 0;
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    right: 0;
}

.bafci-logo {
    background: #fff;
    border: 1px solid rgba(12, 58, 102, .1);
    border-radius: 14px;
    box-shadow: 0 9px 24px rgba(12, 58, 102, .12);
    display: block;
    height: auto;
    max-width: 135px;
    padding: 8px;
}

.bafci-title-wrap {
    text-align: center;
}

.bafci-title-wrap h2 {
    color: var(--bafci-navy);
    font-size: clamp(18px, 2.5vw, 30px);
    font-weight: 900;
    letter-spacing: .015em;
    line-height: 1.12;
    margin: 0;
    white-space: nowrap;
}

.bafci-title-wrap p {
    background: rgba(12, 58, 102, .07);
    border: 1px solid rgba(12, 58, 102, .13);
    border-radius: 999px;
    color: var(--bafci-navy);
    display: inline-block;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 12px 0 0;
    padding: 6px 13px;
}

.bafci-intro {
    align-items: start;
    display: grid;
    column-gap: 36px;
    grid-template-columns: 1fr 180px;
    padding: 26px 0 18px;
    row-gap: 16px;
}

.bafci-intro-main {
    text-align: center;
}

.bafci-intro-main h3 {
    color: var(--bafci-navy);
    font-size: clamp(26px, 4vw, 39px);
    font-weight: 900;
    letter-spacing: .02em;
    margin: 12px 0 12px;
}

.bafci-title-chip {
    background: linear-gradient(135deg, var(--bafci-blue), var(--bafci-navy));
    border-radius: 9px;
    box-shadow: 0 8px 19px rgba(12, 58, 102, .2);
    color: #fff;
    display: inline-block;
    font-size: clamp(19px, 2.7vw, 30px);
    font-weight: 800;
    line-height: 1;
    padding: 9px 19px 8px;
}

.bafci-membership-choice {
    border: 0;
    display: grid;
    gap: 12px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 4px 0 0;
    padding: 0;
    text-align: left;
}

.bafci-membership-choice legend {
    color: var(--bafci-navy);
    font-size: 16px;
    font-weight: 900;
    grid-column: 1 / -1;
    margin-bottom: 2px;
    padding: 0;
}

.bafci-membership-prompt {
    color: #4a6173;
    font-size: 14px;
    font-weight: 700;
    margin: 18px 0 0;
}

.bafci-membership-choice .bafci-membership-option {
    align-items: center;
    background: #f6f9fc;
    border: 2px solid #dce6ef;
    border-radius: 12px;
    cursor: pointer;
    display: grid;
    gap: 5px 9px;
    grid-template-columns: auto 1fr;
    min-height: 82px;
    padding: 12px 13px;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bafci-membership-choice .bafci-membership-option:hover {
    border-color: rgba(8, 115, 63, .5);
    box-shadow: 0 5px 14px rgba(12, 58, 102, .08);
    transform: translateY(-1px);
}

.bafci-membership-option--selected,
.bafci-membership-choice .bafci-membership-option:has(input:checked) {
    background: #edf8f2;
    border-color: var(--bafci-green);
    box-shadow: 0 8px 20px rgba(8, 115, 63, .14);
}

.bafci-membership-option input {
    grid-row: 1 / span 2;
    margin: 0;
}

.bafci-membership-option span {
    color: var(--bafci-navy);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}

.bafci-membership-option strong {
    color: var(--bafci-green);
    font-size: 17px;
    line-height: 1;
}

.bafci-membership-payment-summary {
    background: linear-gradient(135deg, #f0f8f4, #f7fbfe);
    border: 1px solid #c7ddd2;
    border-left: 5px solid var(--bafci-green);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(12, 58, 102, .08);
    grid-column: 1 / -1;
    margin-top: 0;
    max-width: none;
    padding: 14px 16px;
    width: 100%;
}

.bafci-membership-fee {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.bafci-membership-fee span {
    color: #17354f;
    font-size: 15px;
    font-weight: 800;
}

.bafci-membership-fee strong {
    background: var(--bafci-green);
    border-radius: 999px;
    color: #fff;
    font-size: 17px;
    letter-spacing: .02em;
    padding: 7px 13px;
    white-space: nowrap;
}

.bafci-membership-payment-summary p {
    color: #354b5b;
    font-size: 13px;
    line-height: 1.45;
    margin: 12px 0 8px;
}

.bafci-payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.bafci-payment-methods span {
    background: #fff;
    border: 1px solid #cbd9e3;
    border-radius: 6px;
    color: var(--bafci-navy);
    font-size: 11px;
    font-weight: 800;
    padding: 6px 8px;
}

.bafci-membership-payment-summary small {
    color: #60717d;
    display: block;
    font-size: 11px;
    line-height: 1.45;
    margin-top: 9px;
}

.bafci-choice {
    border: 0;
    padding: 0;
}

.bafci-choice label,
.bafci-consent {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    gap: 8px;
}

.bafci-choice input[type="radio"],
.bafci-consent input[type="checkbox"] {
    accent-color: var(--bafci-green);
    height: 20px;
    margin: 0;
    width: 20px;
}

.bafci-photo-box {
    align-items: center;
    aspect-ratio: 4 / 5;
    background: linear-gradient(145deg, #fff, var(--bafci-pale-blue));
    border: 2px dashed rgba(12, 58, 102, .42);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(12, 58, 102, .1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    position: relative;
    text-align: center;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bafci-photo-box:hover {
    border-color: var(--bafci-green);
    box-shadow: 0 14px 30px rgba(12, 58, 102, .14);
    transform: translateY(-2px);
}

.bafci-photo-label {
    color: var(--bafci-blue);
    font-size: 25px;
    font-weight: 800;
}

.bafci-photo-box input {
    font-size: 12px;
    margin-top: 13px;
    max-width: 100%;
}

.bafci-photo-box small {
    color: #666;
    font-size: 11px;
    margin-top: 7px;
}

.bafci-photo-preview {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
}

.bafci-form-note-row {
    align-items: end;
    display: flex;
    font-weight: 700;
    justify-content: space-between;
    margin: 0 0 12px;
}

.bafci-form-note-row p {
    margin: 0;
}

.bafci-date-field {
    align-items: center;
    display: flex;
    gap: 12px;
}

.bafci-membership-form input[type="text"],
.bafci-membership-form input[type="email"],
.bafci-membership-form input[type="tel"],
.bafci-membership-form input[type="date"],
.bafci-membership-form select {
    background: #fff;
    border: 1.5px solid #b9c5d0;
    border-radius: 9px;
    color: #111;
    min-height: 42px;
    padding: 8px 10px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
    width: 100%;
}

.bafci-membership-form input[type="text"]:focus,
.bafci-membership-form input[type="email"]:focus,
.bafci-membership-form input[type="tel"]:focus,
.bafci-membership-form input[type="date"]:focus,
.bafci-membership-form select:focus {
    background: #fbfffd;
    border-color: var(--bafci-green);
    box-shadow: 0 0 0 4px rgba(8, 115, 63, .1);
    outline: 0;
}

.bafci-date-field input {
    min-width: 210px;
}

.bafci-section {
    background: linear-gradient(180deg, #fff 0%, #fcfdff 100%);
    border: 1px solid #dbe3ea;
    border-radius: 15px;
    box-shadow: 0 10px 28px rgba(12, 58, 102, .075);
    margin-top: 20px;
    overflow: hidden;
    padding: 0 22px 24px;
}

.bafci-section > h3 {
    background:
        linear-gradient(90deg, rgba(255,255,255,.08), transparent 45%),
        linear-gradient(90deg, var(--bafci-green) 0 20px, var(--bafci-navy) 20px 100%);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .34em;
    margin: 0 -22px 22px;
    padding: 13px 20px 12px 40px;
}

.bafci-grid {
    display: grid;
    gap: 17px 40px;
    grid-template-columns: 1fr 1fr;
}

.bafci-grid > label {
    align-items: center;
    display: grid;
    font-weight: 700;
    gap: 12px;
    grid-template-columns: minmax(145px, 33%) 1fr;
}

.bafci-address-field {
    align-items: center;
    display: grid;
    font-weight: 700;
    gap: 12px;
    grid-template-columns: minmax(145px, 33%) 1fr;
}

.bafci-address-control {
    display: block;
    min-width: 0;
    position: relative;
}

.bafci-address-control > input,
.bafci-address-autocomplete {
    box-sizing: border-box;
    width: 100%;
}

.bafci-address-autocomplete {
    background: #fff;
    border: 1px solid #b9c5d0;
    border-radius: 0 0 7px 7px;
    box-shadow: 0 8px 20px rgba(12, 58, 102, .18);
    left: 0;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 43px;
    z-index: 1000;
}

.bafci-address-autocomplete[hidden] {
    display: none;
}

.bafci-address-results {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bafci-address-results li {
    border-bottom: 1px solid #e1e4e8;
    margin: 0;
    padding: 0;
}

.bafci-address-option {
    align-items: center;
    background: #fff;
    border: 0;
    color: #111;
    cursor: pointer;
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    gap: 11px;
    min-height: 43px;
    padding: 7px 10px;
    text-align: left;
    width: 100%;
}

.bafci-address-option:hover,
.bafci-address-option:focus {
    background: #f3f7fb;
    outline: 2px solid #4285f4;
    outline-offset: -2px;
}

.bafci-address-pin {
    flex: 0 0 16px;
    height: 20px;
    position: relative;
    width: 16px;
}

.bafci-address-pin::before {
    background: #9aa0a6;
    border-radius: 50% 50% 50% 0;
    content: "";
    height: 12px;
    left: 2px;
    position: absolute;
    top: 1px;
    transform: rotate(-45deg);
    width: 12px;
}

.bafci-address-pin::after {
    background: #fff;
    border-radius: 50%;
    content: "";
    height: 4px;
    left: 6px;
    position: absolute;
    top: 5px;
    width: 4px;
}

.bafci-address-option-text {
    align-items: baseline;
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.bafci-address-option-text strong {
    color: #111;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.bafci-address-option-text small {
    color: #777;
    display: inline;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
}

.bafci-google-attribution {
    background: #fff;
    color: #777;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: normal;
    padding: 5px 10px 6px;
    text-align: right;
    white-space: nowrap;
}

.bafci-google-attribution span {
    color: #5e5e5e;
}

.bafci-address-control > small {
    color: #5b6873;
    display: block;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 6px;
}

.bafci-grid .bafci-wide {
    grid-column: 1 / -1;
}

.bafci-inline-choice {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 17px;
}

.bafci-inline-choice legend {
    float: left;
    font-weight: 700;
    margin-right: 15px;
}

.bafci-declaration-section {
    margin-top: 12px;
}

.bafci-declaration-grid {
    display: grid;
    gap: 48px;
    grid-template-columns: 1.6fr 1fr;
    padding: 6px 0 0;
}

.bafci-declaration-grid p {
    line-height: 1.5;
    margin: 0 0 20px;
    text-align: justify;
}

.bafci-consent {
    align-items: flex-start;
    line-height: 1.4;
}

.bafci-signature-wrap {
    background: linear-gradient(145deg, #f5f9fc, #fff);
    border: 1px solid #d5e0e9;
    border-radius: 13px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
    padding: 20px 18px;
    text-align: center;
}

.bafci-signature-wrap > label:first-child {
    display: block;
    font-weight: 800;
    margin-bottom: 9px;
}

.bafci-signature-canvas {
    background: #fff;
    border: 1.5px solid #aebdca;
    border-radius: 10px;
    box-shadow: inset 0 2px 7px rgba(12, 58, 102, .06);
    cursor: crosshair;
    display: block;
    height: 150px;
    max-width: 100%;
    touch-action: none;
    width: 100%;
}

.bafci-signature-canvas:focus {
    border-color: var(--bafci-green);
    box-shadow: 0 0 0 4px rgba(8, 115, 63, .1);
    outline: 0;
}

.bafci-signature-tools {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    justify-content: space-between;
    margin: 9px 0 16px;
}

.bafci-signature-help {
    color: #5d646a;
    line-height: 1.35;
    margin: 0;
    text-align: left;
}

.bafci-clear-signature {
    background: rgba(12, 58, 102, .07);
    border: 1px solid rgba(12, 58, 102, .18);
    border-radius: 999px;
    color: var(--bafci-navy);
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 12px;
}

.bafci-clear-signature:hover,
.bafci-clear-signature:focus {
    background: var(--bafci-navy);
    color: #fff;
    outline: 0;
}

.bafci-submit-row {
    align-items: center;
    background: linear-gradient(135deg, #f3f8fc, #f7fbf8);
    border: 1px solid #dbe5ed;
    border-radius: 13px;
    display: flex;
    gap: 25px;
    justify-content: space-between;
    margin-top: 26px;
    padding: 18px 20px;
}

.bafci-submit-row p {
    color: #555d64;
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    max-width: 620px;
}

.bafci-submit-row button {
    background: linear-gradient(135deg, var(--bafci-green), var(--bafci-navy));
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(8, 80, 67, .24);
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    padding: 15px 22px;
    transition: box-shadow .2s ease, transform .2s ease, filter .2s ease;
    white-space: nowrap;
}

.bafci-submit-row button::after {
    content: "  \2192";
}

.bafci-submit-row button:hover,
.bafci-submit-row button:focus {
    box-shadow: 0 14px 28px rgba(12, 58, 102, .29);
    filter: brightness(1.08);
    outline: 0;
    transform: translateY(-2px);
}

.bafci-form-footer {
    align-items: center;
    background: #f5f8fb;
    border: 1px solid #dce5ec;
    border-radius: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1.45fr 1.2fr 1fr;
    margin-top: 22px;
    padding: 16px 12px;
    text-align: center;
}

.bafci-form-footer span {
    align-items: center;
    color: #111;
    display: inline-flex;
    font-size: 14px;
    justify-content: center;
    line-height: 1.3;
    white-space: nowrap;
}

.bafci-form-footer span::before {
    background: var(--bafci-green);
    border-radius: 50%;
    color: #fff;
    content: "\2022";
    display: inline-grid;
    font-size: 24px;
    height: 24px;
    margin-right: 7px;
    place-items: center;
    vertical-align: middle;
    width: 24px;
}

.bafci-message {
    border-left: 5px solid;
    margin: 0 0 18px;
    padding: 15px 18px;
}

.bafci-message--success {
    background: #e9f8f0;
    border-color: var(--bafci-green);
}

.bafci-message--error {
    background: #fff0f1;
    border-color: var(--bafci-red);
}

.bafci-message--error p,
.bafci-validation-summary p {
    margin: 7px 0;
}

.bafci-message--error ul,
.bafci-validation-summary ul {
    margin: 7px 0 0 20px;
    padding: 0;
}

.bafci-validation-summary {
    background: #fff0f1;
    border: 2px solid var(--bafci-red);
    border-left-width: 6px;
    border-radius: 8px;
    margin: 0 0 18px;
    padding: 15px 18px;
}

.bafci-validation-summary:focus {
    box-shadow: 0 0 0 4px rgba(222, 37, 56, .14);
    outline: 0;
}

.bafci-validation-link {
    background: transparent;
    border: 0;
    color: #9f1423;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 2px 0;
    text-align: left;
    text-decoration: underline;
}

.bafci-field-error {
    scroll-margin-top: 30px;
}

.bafci-field-error input[type="text"],
.bafci-field-error input[type="email"],
.bafci-field-error input[type="tel"],
.bafci-field-error input[type="date"],
.bafci-field-error select,
.bafci-field-error .bafci-signature-canvas {
    background: #fff8f8;
    border-color: var(--bafci-red) !important;
    box-shadow: 0 0 0 3px rgba(222, 37, 56, .12);
}

.bafci-field-error.bafci-consent,
.bafci-field-error.bafci-membership-choice,
.bafci-field-error.bafci-photo-box {
    border: 2px solid var(--bafci-red);
    border-radius: 8px;
    padding: 8px;
}

.bafci-account-shell,
.bafci-profile-shell {
    --bafci-navy: #0c3a66;
    --bafci-green: #08733f;
    --bafci-red: #de2538;
    color: #111;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 auto;
    max-width: 1020px;
}

.bafci-account-shell *,
.bafci-account-shell *::before,
.bafci-account-shell *::after,
.bafci-profile-shell *,
.bafci-profile-shell *::before,
.bafci-profile-shell *::after {
    box-sizing: border-box;
}

.bafci-account-brand,
.bafci-profile-header {
    align-items: center;
    background: linear-gradient(135deg, #edf6fc, #fff 58%, #eef8f2);
    border-bottom: 5px solid var(--bafci-navy);
    border-radius: 20px;
    box-shadow: 0 18px 55px rgba(8, 35, 60, .14);
    display: flex;
    gap: 22px;
    margin-bottom: 22px;
    overflow: hidden;
    padding: 24px 30px;
    position: relative;
}

.bafci-account-brand::after,
.bafci-profile-header::after {
    background: linear-gradient(90deg, var(--bafci-green), #de2538);
    bottom: -5px;
    content: "";
    height: 5px;
    position: absolute;
    right: 0;
    width: 42%;
}

.bafci-account-brand img,
.bafci-profile-header img {
    background: #fff;
    border: 1px solid #dce5ec;
    border-radius: 12px;
    height: auto;
    padding: 6px;
    width: 92px;
}

.bafci-account-brand h1,
.bafci-profile-header h1 {
    color: var(--bafci-navy);
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.08;
    margin: 0;
}

.bafci-account-brand p,
.bafci-profile-header p {
    color: #466072;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .1em;
    margin: 0 0 7px;
}

.bafci-account-grid,
.bafci-profile-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bafci-account-card,
.bafci-profile-card {
    background: #fff;
    border: 1px solid #d9e3ea;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(8, 35, 60, .1);
    padding: 28px;
}

.bafci-account-card--reset {
    background: linear-gradient(135deg, #f4f9fd, #fff 55%, #f1faf5);
    border: 2px solid #c8dce9;
    grid-column: 1 / -1;
    overflow: hidden;
    position: relative;
}

.bafci-account-card--reset::before {
    background: linear-gradient(180deg, var(--bafci-navy), var(--bafci-green));
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: 6px;
}

.bafci-account-card h2,
.bafci-profile-card h2 {
    color: var(--bafci-navy);
    font-size: 24px;
    margin: 0 0 8px;
}

.bafci-account-card > p,
.bafci-profile-card > p {
    color: #52616d;
    line-height: 1.5;
    margin: 0 0 20px;
}

.bafci-account-card form {
    display: grid;
    gap: 15px;
}

.bafci-account-card label {
    color: #1d2c38;
    display: grid;
    font-size: 14px;
    font-weight: 800;
    gap: 7px;
}

.bafci-account-card input[type="text"],
.bafci-account-card input[type="email"],
.bafci-account-card input[type="password"] {
    border: 1px solid #b8c7d3;
    border-radius: 8px;
    font-size: 16px;
    min-height: 48px;
    padding: 10px 12px;
    width: 100%;
}

.bafci-account-card .bafci-remember {
    align-items: center;
    display: flex;
    font-weight: 600;
}

.bafci-account-card button,
.bafci-primary-button,
.bafci-secondary-button {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    justify-content: center;
    line-height: 1.2;
    padding: 13px 18px;
    text-align: center;
    text-decoration: none;
}

.bafci-account-card button,
.bafci-primary-button {
    background: var(--bafci-navy);
    color: #fff !important;
}

.bafci-secondary-button {
    background: #eaf0f5 !important;
    color: var(--bafci-navy) !important;
}

.bafci-forgot-password-link {
    color: var(--bafci-navy);
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    justify-content: center;
    margin-top: -2px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bafci-forgot-password-link:hover,
.bafci-forgot-password-link:focus {
    color: var(--bafci-green);
}

.bafci-reset-header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.bafci-reset-header h2 {
    margin-bottom: 6px;
}

.bafci-reset-header p {
    color: #52616d;
    line-height: 1.55;
    margin: 0;
}

.bafci-reset-icon {
    align-items: center;
    background: var(--bafci-navy);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex: 0 0 48px;
    font-size: 22px;
    height: 48px;
    justify-content: center;
    width: 48px;
}

.bafci-reset-success {
    background: #e7f7ee;
    border: 1px solid #80c99f;
    border-left: 5px solid var(--bafci-green);
    border-radius: 10px;
    color: #07562f;
    display: grid;
    gap: 4px;
    margin: 0 0 20px;
    padding: 14px 16px;
}

.bafci-reset-success strong {
    font-size: 16px;
}

.bafci-account-card .bafci-reset-form {
    margin: 0;
}

.bafci-reset-form-row {
    align-items: end;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
}

.bafci-account-card--reset .bafci-reset-button {
    background: var(--bafci-green) !important;
    border: 2px solid var(--bafci-green) !important;
    box-shadow: 0 8px 22px rgba(8, 115, 63, .24);
    color: #fff !important;
    min-height: 50px;
    padding: 13px 22px;
    visibility: visible !important;
}

.bafci-account-card--reset .bafci-reset-button:hover,
.bafci-account-card--reset .bafci-reset-button:focus {
    background: #055f34 !important;
    border-color: #055f34 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.bafci-account-card--reset .bafci-reset-button:focus-visible {
    outline: 3px solid rgba(8, 115, 63, .25);
    outline-offset: 3px;
}

.bafci-reset-steps {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
}

.bafci-reset-steps li {
    background: #fff;
    border: 1px solid #d6e1e8;
    border-radius: 10px;
    display: grid;
    gap: 4px;
    min-height: 106px;
    padding: 14px 14px 14px 52px;
    position: relative;
}

.bafci-reset-steps li > span {
    align-items: center;
    background: var(--bafci-navy);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-weight: 800;
    height: 28px;
    justify-content: center;
    left: 14px;
    position: absolute;
    top: 14px;
    width: 28px;
}

.bafci-reset-steps strong {
    color: #17354f;
    font-size: 14px;
}

.bafci-reset-steps small {
    color: #5a6974;
    line-height: 1.45;
}

.bafci-reset-security-note {
    color: #52616d !important;
    font-size: 12px;
    margin: 14px 0 0 !important;
}

.bafci-member-toolbar {
    align-items: center;
    background: #0c3a66;
    border-radius: 12px 12px 0 0;
    color: #fff;
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    justify-content: space-between;
    padding: 11px 18px;
}

.bafci-member-toolbar a {
    color: #fff;
    font-weight: 800;
    margin-left: 18px;
}

.bafci-choice-selected {
    border-color: rgba(8, 115, 63, .45) !important;
    cursor: default !important;
}

.bafci-membership-form input[readonly] {
    background: #f1f5f8;
    color: #40515f;
}

.bafci-profile-header > div {
    flex: 1;
}

.bafci-profile-logout {
    background: #fff;
    border: 1px solid #c5d3de;
    border-radius: 8px;
    color: var(--bafci-navy);
    font-weight: 800;
    padding: 10px 15px;
    text-decoration: none;
}

.bafci-profile-card dl {
    margin: 16px 0 0;
}

.bafci-profile-card dl div {
    align-items: start;
    border-bottom: 1px solid #e1e8ed;
    display: grid;
    gap: 14px;
    grid-template-columns: 145px 1fr;
    padding: 12px 0;
}

.bafci-profile-card dt {
    color: #587080;
    font-size: 13px;
    font-weight: 800;
}

.bafci-profile-card dd {
    color: #172733;
    font-weight: 700;
    margin: 0;
    overflow-wrap: anywhere;
}

.bafci-status-pill {
    background: #e9f8f0;
    border-radius: 999px;
    color: #075f34;
    display: inline-block;
    font-size: 13px;
    padding: 5px 10px;
}

.bafci-profile-actions {
    align-items: stretch;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.bafci-profile-actions form {
    margin: 0;
}

.bafci-profile-card--edit {
    background: linear-gradient(135deg, #f5f9fc, #fff 56%, #f2faf5);
    border-left: 5px solid var(--bafci-green);
    grid-column: 1 / -1;
}

.bafci-profile-edit-heading {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.bafci-profile-edit-heading p {
    color: #52616d;
    line-height: 1.5;
    margin: 0;
    max-width: 680px;
}

.bafci-profile-edit-heading > span {
    background: #e9f8f0;
    border: 1px solid #a7d9bd;
    border-radius: 999px;
    color: #075f34;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 11px;
}

.bafci-profile-edit-form {
    display: grid;
    gap: 18px;
    margin-top: 22px;
}

.bafci-profile-edit-grid {
    display: grid;
    gap: 16px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bafci-profile-edit-grid label {
    color: #1d2c38;
    display: grid;
    font-size: 14px;
    font-weight: 800;
    gap: 7px;
}

.bafci-profile-edit-grid input,
.bafci-profile-edit-grid select {
    background: #fff;
    border: 1px solid #b8c7d3;
    border-radius: 8px;
    color: #172733;
    font: inherit;
    font-size: 16px;
    min-height: 48px;
    padding: 10px 12px;
    width: 100%;
}

.bafci-profile-edit-grid input:focus,
.bafci-profile-edit-grid select:focus {
    border-color: var(--bafci-navy);
    box-shadow: 0 0 0 3px rgba(12, 58, 102, .12);
    outline: 0;
}

.bafci-profile-edit-note {
    background: #eef4f8;
    border-radius: 8px;
    color: #425461;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    padding: 11px 13px;
}

.bafci-profile-edit-form .bafci-primary-button {
    justify-self: start;
}

.bafci-thank-you-shell {
    --bafci-navy: #0c3a66;
    --bafci-green: #08733f;
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 30px 18px;
}

.bafci-thank-you-card {
    background: #fff;
    border-top: 6px solid var(--bafci-navy);
    border-radius: 18px;
    box-shadow: 0 18px 55px rgba(8, 35, 60, .15);
    max-width: 720px;
    padding: 42px 55px 34px;
    text-align: center;
    width: 100%;
}

.bafci-thank-you-logo {
    height: auto;
    margin-bottom: 20px;
    max-width: 125px;
}

.bafci-success-mark {
    align-items: center;
    background: var(--bafci-green);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 42px;
    font-weight: 800;
    height: 78px;
    justify-content: center;
    margin: 0 auto 20px;
    width: 78px;
}

.bafci-payment-step-mark {
    align-items: center;
    background: var(--bafci-navy);
    border-radius: 50%;
    color: #fff;
    display: flex;
    font-size: 40px;
    font-weight: 800;
    height: 78px;
    justify-content: center;
    margin: 0 auto 20px;
    width: 78px;
}

.bafci-thank-you-card h1 {
    color: var(--bafci-navy);
    font-size: 42px;
    margin: 0 0 10px;
}

.bafci-thank-you-card h2 {
    color: #1d2730;
    font-size: 21px;
    line-height: 1.4;
    margin: 0 auto 22px;
    max-width: 540px;
}

.bafci-thank-you-card > p {
    color: #4f5962;
    line-height: 1.55;
}

.bafci-reference-label {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    margin: 10px 0 4px;
    text-transform: uppercase;
}

.bafci-reference-number {
    color: var(--bafci-navy) !important;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 20px;
}

.bafci-return-button {
    background: var(--bafci-navy);
    border-radius: 5px;
    color: #fff !important;
    display: inline-block;
    font-weight: 800;
    margin: 12px 0 28px;
    padding: 13px 22px;
    text-decoration: none;
}

.bafci-return-button:hover,
.bafci-return-button:focus {
    background: var(--bafci-green);
}

.bafci-thank-you-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0 28px;
}

.bafci-thank-you-actions .bafci-return-button {
    margin: 0;
}

.bafci-download-button {
    background: var(--bafci-green);
}

.bafci-payment-button {
    background: #635bff;
    box-shadow: 0 10px 24px rgba(99, 91, 255, .28);
    font-size: 17px;
    min-width: 220px;
    padding: 15px 24px;
}

.bafci-payment-button:hover,
.bafci-payment-button:focus {
    background: #4f46e5;
    transform: translateY(-1px);
}

.bafci-return-button--secondary {
    background: #e9eef3;
    color: var(--bafci-navy) !important;
}

.bafci-payment-message {
    background: #edf5fb;
    border: 1px solid #bad4e8;
    border-radius: 9px;
    color: #17354f;
    line-height: 1.5;
    margin: 18px 0 4px;
    padding: 13px 16px;
}

.bafci-payment-message--success {
    background: #e9f8f0;
    border-color: #97d4b5;
    color: #07562f;
}

.bafci-payment-message--warning {
    background: #fff8e7;
    border-color: #e7c770;
    color: #684c00;
}

.bafci-payment-window-note {
    color: #52606c !important;
    font-size: 13px;
    margin: -14px auto 24px;
    max-width: 520px;
}

.bafci-thank-you-contact {
    border-top: 1px solid #d6dbe0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    justify-content: center;
    padding-top: 22px;
}

.bafci-thank-you-contact span {
    color: #26333d;
    font-size: 13px;
    white-space: nowrap;
}

.bafci-honeypot {
    height: 1px !important;
    left: -9999px !important;
    opacity: 0 !important;
    position: absolute !important;
    width: 1px !important;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

@media (max-width: 820px) {
    .bafci-account-grid,
    .bafci-profile-grid {
        grid-template-columns: 1fr;
    }

    .bafci-account-card--reset {
        grid-column: auto;
    }

    .bafci-reset-form-row,
    .bafci-reset-steps,
    .bafci-profile-edit-grid {
        grid-template-columns: 1fr;
    }

    .bafci-account-card--reset .bafci-reset-button {
        width: 100%;
    }

    .bafci-membership-form {
        padding: 0 22px 24px;
    }

    .bafci-form-header {
        gap: 14px;
        grid-template-columns: 92px 1fr;
        margin: 0 -22px 24px;
        padding: 20px 22px 24px;
    }

    .bafci-logo {
        max-width: 92px;
    }

    .bafci-title-wrap p {
        font-size: 15px;
    }

    .bafci-grid,
    .bafci-declaration-grid {
        grid-template-columns: 1fr;
    }

    .bafci-grid .bafci-wide {
        grid-column: auto;
    }

    .bafci-form-footer {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 560px) {
    .bafci-landing-main {
        padding: 0;
    }

    .bafci-form-shell {
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
    }

    .bafci-account-shell,
    .bafci-profile-shell {
        padding: 12px;
    }

    .bafci-account-brand,
    .bafci-profile-header {
        align-items: flex-start;
        border-radius: 14px;
        gap: 12px;
        padding: 18px;
    }

    .bafci-account-brand img,
    .bafci-profile-header img {
        width: 58px;
    }

    .bafci-account-brand h1,
    .bafci-profile-header h1 {
        font-size: 21px;
    }

    .bafci-account-brand p,
    .bafci-profile-header p {
        font-size: 10px;
        letter-spacing: .06em;
    }

    .bafci-profile-header {
        flex-wrap: wrap;
    }

    .bafci-profile-logout {
        margin-left: 70px;
    }

    .bafci-account-card,
    .bafci-profile-card {
        padding: 20px;
    }

    .bafci-profile-card dl div {
        gap: 5px;
        grid-template-columns: 1fr;
    }

    .bafci-profile-actions,
    .bafci-profile-actions form,
    .bafci-profile-actions .bafci-primary-button,
    .bafci-profile-actions .bafci-secondary-button {
        width: 100%;
    }

    .bafci-profile-edit-heading {
        display: grid;
    }

    .bafci-profile-edit-heading > span {
        justify-self: start;
    }

    .bafci-profile-edit-form .bafci-primary-button {
        justify-self: stretch;
        width: 100%;
    }

    .bafci-member-toolbar {
        align-items: flex-start;
        border-radius: 0;
        flex-direction: column;
        font-size: 13px;
        gap: 8px;
    }

    .bafci-member-toolbar a {
        margin: 0 18px 0 0;
    }

    .bafci-membership-form {
        border: 0;
        box-shadow: none;
        max-width: 100%;
        padding: 0 14px 20px;
        width: 100%;
    }

    .bafci-thank-you-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .bafci-thank-you-actions .bafci-return-button {
        text-align: center;
        width: 100%;
    }

    .bafci-form-header {
        gap: 10px;
        grid-template-columns: 50px 1fr;
        margin: 0 -14px 20px;
        padding: 14px 14px 18px;
    }

    .bafci-logo {
        max-width: 50px;
    }

    .bafci-title-wrap h2 {
        font-size: clamp(8px, 2.6vw, 14px);
    }

    .bafci-title-wrap p {
        font-size: 13px;
        margin-top: 7px;
    }

    .bafci-intro {
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) 124px;
        padding-top: 16px;
    }

    .bafci-intro-main,
    .bafci-grid > *,
    .bafci-declaration-grid > *,
    .bafci-submit-row > * {
        max-width: 100%;
        min-width: 0;
    }

    .bafci-intro-main h3 {
        font-size: 18px;
        letter-spacing: 0;
        line-height: 1.12;
        white-space: nowrap;
    }

    .bafci-title-chip {
        font-size: 14px;
        padding: 8px 10px;
    }

    .bafci-membership-choice {
        font-size: 14px;
        gap: 8px;
        grid-template-columns: 1fr;
        margin-top: 2px;
        width: 100%;
    }

    .bafci-membership-choice .bafci-membership-option {
        align-self: stretch;
        max-width: 100%;
        min-height: 0;
        padding: 10px 11px;
        width: 100%;
    }

    .bafci-membership-payment-summary {
        margin-top: 0;
        padding: 11px;
    }

    .bafci-membership-fee {
        align-items: center;
        flex-direction: row;
        gap: 7px;
    }

    .bafci-membership-fee strong {
        font-size: 15px;
        padding: 6px 10px;
    }

    .bafci-payment-methods {
        gap: 5px;
    }

    .bafci-payment-methods span {
        font-size: 10px;
        padding: 5px 6px;
    }

    .bafci-photo-box {
        align-self: start;
        justify-self: start;
        padding: 8px;
        width: 114px;
    }

    .bafci-photo-label {
        font-size: 18px;
    }

    .bafci-photo-box input,
    .bafci-photo-box small {
        font-size: 9px;
    }

    .bafci-photo-box input {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .bafci-photo-box input[type="file"] {
        color: transparent;
    }

    .bafci-photo-box input[type="file"]::file-selector-button {
        font-size: 8px;
        margin: 0;
        max-width: 100%;
        padding: 5px;
    }

    .bafci-form-note-row,
    .bafci-submit-row {
        align-items: stretch;
        flex-direction: column;
    }

    .bafci-date-field {
        align-items: stretch;
        flex-direction: column;
    }

    .bafci-date-field input {
        min-width: 0;
    }

    .bafci-section > h3 {
        font-size: 15px;
        letter-spacing: .2em;
        margin-left: -14px;
        margin-right: -14px;
        padding-left: 32px;
    }

    .bafci-section {
        border-radius: 11px;
        padding: 0 14px 18px;
    }

    .bafci-grid > label,
    .bafci-address-field {
        align-items: stretch;
        gap: 7px;
        grid-template-columns: 1fr;
    }

    .bafci-inline-choice {
        align-items: flex-start;
        flex-direction: column;
    }

    .bafci-inline-choice legend {
        float: none;
        margin: 0 0 6px;
    }

    .bafci-form-footer {
        grid-template-columns: 1fr;
    }

    .bafci-thank-you-card {
        padding: 32px 20px 26px;
    }

    .bafci-thank-you-card h1 {
        font-size: 34px;
    }

    .bafci-submit-row button {
        white-space: normal;
        width: 100%;
    }
}

@media (max-width: 360px) {
    .bafci-intro {
        grid-template-columns: minmax(0, 1fr) 104px;
    }

    .bafci-intro-main h3 {
        font-size: 14px;
    }

    .bafci-title-chip {
        font-size: 12px;
        padding: 7px 8px;
    }

    .bafci-membership-choice {
        font-size: 12px;
    }

    .bafci-membership-choice .bafci-membership-option {
        width: 100%;
    }

    .bafci-photo-box {
        width: 98px;
    }
}

@media print {
    body.bafci-landing-template,
    .bafci-landing-main {
        background: #fff;
        padding: 0;
    }

    .bafci-membership-form {
        border: 0;
        box-shadow: none;
    }

    .bafci-submit-row button,
    .bafci-clear-signature {
        display: none;
    }
}
