.lfh-portal {
    --lfh-plum: #713c6d;
    --lfh-plum-dark: #562a53;
    --lfh-teal: #08777b;
    --lfh-ink: #18232d;
    --lfh-muted: #5e6a73;
    --lfh-line: #d9dedf;
    --lfh-soft: #f6f3f6;
    color: var(--lfh-ink);
    display: block;
    font-size: 16px;
    line-height: 1.55;
    margin: clamp(20px, 4vw, 48px) auto;
    max-width: 920px;
    width: 100%;
}

.lfh-portal,
.lfh-portal * {
    box-sizing: border-box;
}

.lfh-portal-card {
    background: #fff;
    border: 1px solid rgba(217, 222, 223, .95);
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(9, 21, 33, .14);
    color: var(--lfh-ink);
    overflow: hidden;
    padding: clamp(24px, 5vw, 52px);
}

.lfh-portal-heading {
    align-items: flex-start;
    border-bottom: 1px solid var(--lfh-line);
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin: 0 0 34px;
    padding: 0 0 28px;
}

.lfh-portal-heading__copy {
    max-width: 620px;
}

.lfh-portal .lfh-portal-heading h2 {
    color: var(--lfh-ink);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -.035em;
    line-height: 1.05;
    margin: 6px 0 12px;
}

.lfh-portal-heading p {
    color: var(--lfh-muted);
    font-size: 1.05rem;
    margin: 0;
}

.lfh-eyebrow {
    color: var(--lfh-plum);
    display: block;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.lfh-private-note {
    background: #e8f4f2;
    border: 1px solid #c7e5e1;
    border-radius: 999px;
    color: #056064;
    flex: 0 0 auto;
    font-size: .78rem;
    font-weight: 750;
    padding: 8px 12px;
    white-space: nowrap;
}

.lfh-submission-form {
    display: grid;
    gap: 26px;
    margin: 0;
}

.lfh-form-section {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.lfh-form-section + .lfh-form-section {
    border-top: 1px solid var(--lfh-line);
    padding-top: 26px;
}

.lfh-form-section legend {
    align-items: center;
    color: var(--lfh-ink);
    display: flex;
    float: none;
    font-size: 1.22rem;
    font-weight: 800;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    width: 100%;
}

.lfh-form-section legend > span {
    align-items: center;
    background: var(--lfh-plum);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 30px;
    font-size: .85rem;
    height: 30px;
    justify-content: center;
}

.lfh-section-intro {
    color: var(--lfh-muted);
    margin: -8px 0 18px;
}

.lfh-form-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
}

.lfh-form-wide {
    grid-column: 1 / -1;
}

.lfh-portal .lfh-field,
.lfh-portal .lfh-file-field {
    color: var(--lfh-ink);
    display: block;
    font: inherit;
    margin: 0;
    min-width: 0;
    width: 100%;
}

.lfh-portal .lfh-field > span,
.lfh-portal .lfh-file-field > span {
    color: var(--lfh-ink);
    display: block;
    font-size: .94rem;
    font-weight: 750;
    line-height: 1.35;
    margin: 0 0 7px;
}

.lfh-portal .lfh-field b,
.lfh-portal .lfh-file-field b {
    color: #a52b25;
}

.lfh-portal .lfh-field em {
    color: var(--lfh-muted);
    font-size: .82rem;
    font-style: normal;
    font-weight: 500;
    margin-left: 4px;
}

.lfh-portal .lfh-field input:not([type="checkbox"]),
.lfh-portal .lfh-field select,
.lfh-portal .lfh-field textarea {
    appearance: none;
    background: #fff;
    border: 1px solid #9da8ad;
    border-radius: 9px;
    box-shadow: none;
    color: var(--lfh-ink);
    display: block;
    font: inherit;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0;
    min-height: 50px;
    padding: 12px 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
    width: 100% !important;
}

.lfh-portal .lfh-field select {
    background-image: linear-gradient(45deg, transparent 50%, #4f5b63 50%), linear-gradient(135deg, #4f5b63 50%, transparent 50%);
    background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px);
    background-repeat: no-repeat;
    background-size: 5px 5px, 5px 5px;
    padding-right: 38px;
}

.lfh-portal .lfh-field textarea {
    min-height: 118px;
    resize: vertical;
}

.lfh-portal .lfh-field input:focus,
.lfh-portal .lfh-field select:focus,
.lfh-portal .lfh-field textarea:focus,
.lfh-portal .lfh-file-field input:focus,
.lfh-checkbox input:focus {
    border-color: var(--lfh-teal);
    box-shadow: 0 0 0 3px rgba(8, 119, 123, .18);
    outline: 0;
}

.lfh-portal .lfh-field input::placeholder,
.lfh-portal .lfh-field textarea::placeholder {
    color: #7a858d;
    opacity: 1;
}

.lfh-portal small {
    color: var(--lfh-muted);
    display: block;
    font-size: .84rem;
    line-height: 1.45;
    margin: 7px 0 0;
}

.lfh-file-field {
    background: var(--lfh-soft);
    border: 1px dashed #a99ba8;
    border-radius: 12px;
    padding: 20px;
}

.lfh-portal .lfh-file-field input[type="file"] {
    background: #fff;
    border: 1px solid #b8c0c4;
    border-radius: 9px;
    color: var(--lfh-ink);
    cursor: pointer;
    display: block;
    font: inherit;
    margin: 0;
    min-height: 50px;
    padding: 7px;
    width: 100% !important;
}

.lfh-portal .lfh-file-field input[type="file"]::file-selector-button {
    background: var(--lfh-ink);
    border: 0;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: .9rem;
    font-weight: 750;
    margin-right: 12px;
    padding: 9px 13px;
}

.lfh-form-section--consent {
    display: grid;
    gap: 13px;
}

.lfh-form-section--consent legend {
    margin-bottom: 5px;
}

.lfh-portal .lfh-checkbox {
    align-items: flex-start;
    background: #fafafa;
    border: 1px solid var(--lfh-line);
    border-radius: 10px;
    color: var(--lfh-ink);
    cursor: pointer;
    display: grid;
    font: inherit;
    gap: 12px;
    grid-template-columns: 22px minmax(0, 1fr);
    margin: 0;
    padding: 14px;
    width: 100%;
}

.lfh-portal .lfh-checkbox input {
    accent-color: var(--lfh-plum);
    height: 20px;
    margin: 2px 0 0;
    min-width: 20px;
    width: 20px;
}

.lfh-portal .lfh-checkbox > span {
    color: var(--lfh-ink);
    display: block;
    font-size: .91rem;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.lfh-checkbox a {
    color: var(--lfh-teal);
    font-weight: 750;
}

.lfh-submit-row {
    align-items: center;
    background: #f3eff3;
    border-radius: 12px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 18px;
}

.lfh-submit-row p {
    color: var(--lfh-muted);
    font-size: .82rem;
    line-height: 1.45;
    margin: 0;
    max-width: 420px;
}

.lfh-portal .lfh-portal-button {
    align-items: center;
    appearance: none;
    background: var(--lfh-plum);
    border: 2px solid var(--lfh-plum);
    border-radius: 999px;
    box-shadow: 0 0 0 2px #fff inset;
    color: #fff !important;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 50px;
    padding: 12px 24px;
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.lfh-portal .lfh-portal-button:hover {
    background: var(--lfh-plum-dark);
    border-color: var(--lfh-plum-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.lfh-portal-notice,
.lfh-portal-warning {
    border-radius: 12px;
    margin: 0 0 20px;
    padding: 16px 18px;
}

.lfh-portal-notice--success {
    background: #e9f5e6;
    border: 1px solid #bfdcaf;
    color: #294f1c;
}

.lfh-portal-notice--error,
.lfh-portal-warning {
    background: #fdebea;
    border: 1px solid #edc3bf;
    color: #81231e;
}

.lfh-portal-warning strong,
.lfh-portal-warning span {
    display: block;
}

.lfh-hp {
    height: 1px;
    left: -10000px;
    overflow: hidden;
    position: absolute;
    top: auto;
    width: 1px;
}

@media (max-width: 720px) {
    .lfh-portal-heading,
    .lfh-submit-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .lfh-private-note {
        white-space: normal;
    }

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

    .lfh-form-wide {
        grid-column: auto;
    }

    .lfh-submit-row .lfh-portal-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lfh-portal * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
