.wmc-referral {
    --wmc-navy: #002d56;
    --wmc-gold: #cbb778;
    --wmc-red: #c8323a;
    --wmc-grey: #757575;
    --wmc-field: #f6f6f6;
    color: var(--wmc-grey);
    font-family: Inter, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    margin-left: auto;
    margin-right: auto;
    max-width: 816px;
    min-width: 0;
    width: 100%;
}

.wmc-referral *,
.wmc-referral *::before,
.wmc-referral *::after {
    box-sizing: border-box;
}

.wmc-referral__card {
    background: #fff;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    min-width: 0;
    padding: 48px;
}

.wmc-referral__form,
.wmc-referral__section,
.wmc-referral__people,
.wmc-referral__grid {
    max-width: 100%;
    min-width: 0;
}

.wmc-referral__header {
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 30px;
    padding-bottom: 28px;
}

.wmc-referral__eyebrow,
.wmc-referral__step {
    color: var(--wmc-gold);
    font-family: "Bricolage Grotesque", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.wmc-referral__header h2 {
    color: var(--wmc-navy);
    font-family: "Bricolage Grotesque", Arial, sans-serif;
    font-size: clamp(32px, 4vw, 39px);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 12px;
}

.wmc-referral__header > p:last-child {
    margin: 0;
    max-width: 720px;
}

.wmc-referral__section + .wmc-referral__section {
    border-top: 1px solid #e1e1e1;
    margin-top: 32px;
    padding-top: 32px;
}

.wmc-referral__section h3 {
    color: var(--wmc-navy);
    font-family: "Bricolage Grotesque", Arial, sans-serif;
    font-size: 23px;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 20px;
}

.wmc-referral__section-heading {
    align-items: flex-end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.wmc-referral__section-heading h3 {
    margin-bottom: 20px;
}

.wmc-referral__count {
    color: var(--wmc-grey);
    font-size: 14px;
    margin-bottom: 22px;
    white-space: nowrap;
}

.wmc-referral__person {
    border: 1px solid #e1e1e1;
    margin: 0 0 22px;
    min-width: 0;
    padding: 24px;
    transition: background-color 160ms ease, border-color 160ms ease;
}

.wmc-referral__person.is-success {
    background: #f5fbf5;
    border-color: #6d9d72;
}

.wmc-referral__person.is-error {
    background: #fff8f8;
    border-color: #c96a70;
}

.wmc-referral__person-heading {
    align-items: center;
    color: var(--wmc-navy);
    display: flex;
    font-family: "Bricolage Grotesque", Arial, sans-serif;
    font-size: 17px;
    font-weight: 500;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.wmc-referral__person-legend {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.wmc-referral__grid {
    display: grid;
    gap: 14px 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wmc-referral__field--wide {
    grid-column: 1 / -1;
}

.wmc-referral__field label {
    color: var(--wmc-navy);
    display: block;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.wmc-referral__field label span {
    color: var(--wmc-red);
}

.wmc-referral input[type="text"],
.wmc-referral input[type="email"],
.wmc-referral input[type="tel"],
.wmc-referral textarea {
    appearance: none;
    background: var(--wmc-field);
    border: 1px solid #d6d6d6;
    border-radius: 0;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    color: var(--wmc-grey);
    font: inherit;
    line-height: 1.4;
    min-height: 42px;
    padding: 8px 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
    width: 100%;
}

.wmc-referral textarea {
    min-height: 104px;
    resize: vertical;
}

.wmc-referral input:focus,
.wmc-referral textarea:focus {
    border-color: var(--wmc-gold);
    box-shadow: 0 0 0 3px rgba(203, 183, 120, 0.22);
    outline: 0;
}

.wmc-referral__remove {
    align-items: center;
    background: #fff7f7;
    border: 1px solid #c96a70;
    border-radius: 2px;
    color: #8a2630;
    cursor: pointer;
    display: inline-flex;
    font: 600 13px/1.2 Inter, Arial, sans-serif;
    justify-content: center;
    min-height: 36px;
    padding: 8px 13px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.wmc-referral__remove::before {
    content: "×";
    font-size: 18px;
    font-weight: 400;
    line-height: 0;
    margin-right: 6px;
}

.wmc-referral__remove:hover {
    background: #8a2630;
    border-color: #8a2630;
    color: #fff;
}

.wmc-referral__remove:focus-visible {
    background: #fff;
    border-color: #8a2630;
    box-shadow: 0 0 0 3px rgba(203, 183, 120, 0.28);
    outline: 0;
}

.wmc-referral__person:only-child .wmc-referral__remove {
    display: none;
}

.wmc-referral__person-status {
    display: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 11px 13px;
    word-break: break-word;
}

.wmc-referral__person-status.is-visible {
    display: block;
}

.wmc-referral__person-status.is-success {
    background: #e4f3e6;
    color: #285f2d;
}

.wmc-referral__person-status.is-error {
    background: #fde8e8;
    color: #842129;
}

.wmc-referral__person[data-submitted="true"] input,
.wmc-referral__person[data-submitted="true"] textarea {
    background: #ededed;
    box-shadow: none;
    opacity: 0.8;
}

.wmc-referral__add {
    align-items: center;
    background: transparent;
    border: 1px solid var(--wmc-navy);
    border-radius: 0;
    color: var(--wmc-navy);
    cursor: pointer;
    display: inline-flex;
    font-family: "Bricolage Grotesque", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
}

.wmc-referral__add span {
    font-size: 22px;
    line-height: 1;
}

.wmc-referral__add:hover,
.wmc-referral__add:focus-visible {
    background: var(--wmc-navy);
    color: #fff;
}

.wmc-referral__add:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.wmc-referral__consent {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    margin: 28px 0 20px;
}

.wmc-referral__consent input {
    accent-color: var(--wmc-navy);
    flex: 0 0 auto;
    height: 18px;
    margin: 2px 0 0;
    width: 18px;
}

.wmc-referral__consent label {
    color: #4f4f4f;
    font-size: 14px;
}

.wmc-referral__consent a {
    color: var(--wmc-navy);
    font-weight: 600;
}

.wmc-referral__status {
    display: none;
    margin: 0 0 20px;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 14px 16px;
    word-break: break-word;
}

.wmc-referral__status.is-visible {
    display: block;
}

.wmc-referral__status.is-success {
    background: #edf7ee;
    border: 1px solid #6d9d72;
    color: #285f2d;
}

.wmc-referral__status.is-error {
    background: #fff2f2;
    border: 1px solid #c96a70;
    color: #842129;
}

.wmc-referral__submit {
    background: var(--wmc-gold);
    border: 0;
    border-radius: 0;
    color: #1d2b45;
    cursor: pointer;
    font-family: "Bricolage Grotesque", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    min-height: 48px;
    padding: 0 24px;
    transition: background-color 160ms ease, color 160ms ease;
}

.wmc-referral__submit:hover,
.wmc-referral__submit:focus-visible {
    background: var(--wmc-navy);
    color: #fff;
}

.wmc-referral__submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

@media (max-width: 767px) {
    .wmc-referral__card {
        padding: 28px 20px;
    }

    .wmc-referral__grid {
        grid-template-columns: 1fr;
    }

    .wmc-referral__field--wide {
        grid-column: auto;
    }

    .wmc-referral__person {
        padding: 18px 14px;
    }

    .wmc-referral__section-heading {
        align-items: flex-start;
    }

    .wmc-referral__submit,
    .wmc-referral__add {
        width: 100%;
    }
}
