/* ==========================================================================
   Shared WHEREFIT referral / lead-capture form component.
   Loaded by the referral landing and STP-MB landing templates.
   Page-specific wrappers (.referral-hero-form, .call-to-action-form-form)
   and their overrides stay in the respective page stylesheets.
   ========================================================================== */

.wf-referral-form {
    flex: 0 0 482px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 21px;
    color: #000;
}

.wf-referral-form h2 {
    font-size: 60px;
    font-stretch: 40%;
    font-weight: 600;
    line-height: 1;
    margin: 0 0 8px;
    color: #000;
}

.wf-referral-form .wf-field {
    display: block;
    position: relative;
}

.wf-referral-form .wf-field input {
    width: 100%;
    height: 54px;
    padding: 7px 28px;
    border: 1px solid #000;
    border-radius: 200px;
    background: #fff;
    font-size: 16px;
    font-weight: 300;
    color: #000;
    box-sizing: border-box;
}

.wf-referral-form .wf-field input::placeholder {
    color: #000;
    opacity: 1;
}

.wf-referral-form .wf-field input:focus {
    outline: none;
    border-color: #04c1dc;
    box-shadow: 0 0 0 2px rgba(4, 193, 220, 0.2);
}

.wf-referral-form .wf-field-with-help {
    padding-bottom: 28px;
}

.wf-referral-form .wf-help {
    position: absolute;
    left: 28px;
    right: 28px;
    top: calc(100% - 20px);
    font-size: 12px;
    font-weight: 300;
    color: #686868;
    line-height: 1.2;
}

.wf-referral-form .wf-consents {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 8px 0 5px;
}

.wf-referral-form .wf-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 300;
    line-height: 1.2;
    color: #000;
    cursor: pointer;
}

.wf-referral-form .wf-check input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    border: 1px solid #000;
    border-radius: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.btn-hero-submit {
    display: flex;
    gap: 14px;
    font-size: 14px;
}

.btn-hero-submit:before {
    content: url('../../images/newDesign/_wf_black.svg');
    height: 26px;
    margin: auto 0;
    width: 30px;
}

.wf-referral-form .wf-referral-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.wf-referral-form .wf-referral-submit.is-loading .btn-hero-submit::after {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: #000;
    animation: wf-spin 0.7s linear infinite;
    align-self: center;
}

@keyframes wf-spin {
    to { transform: rotate(360deg); }
}

.wf-referral-form .wf-referral-error {
    color: #c00;
    font-size: 14px;
    min-height: 1em;
    margin: 0;
}
