.nimble-referral-landing,
.nimble-referral-landing * {
    box-sizing: border-box;
}

.nimble-referral-landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #0b2a4f;
    font-family: Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.nimble-referral-landing a {
    color: #3e91cc;
}

.referral-header {
    background: #3e91cc;
    box-shadow: 0 2px 4px rgba(11, 42, 79, .12);
    padding: 0 32px;
}

.referral-header-inner {
    width: 100%;
    max-width: 1200px;
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.referral-logo,
.referral-logo img {
    display: block;
}

.referral-logo img {
    width: auto;
    height: 34px;
}

.nimble-referral-landing .referral-login {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: .02em;
    text-decoration: none;
}

.referral-login:hover,
.referral-login:focus-visible {
    text-decoration: underline;
}

.referral-main {
    flex: 1;
    width: 100%;
    padding: 40px 32px 32px;
}

.referral-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.referral-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.referral-intro h1 {
    max-width: 1000px;
    margin: 0;
    color: #0b2a4f;
    font-size: clamp(30px, 3.8vw, 46px);
    font-weight: 900;
    letter-spacing: -.01em;
    line-height: 1.1;
    text-wrap: balance;
}

.referral-intro p {
    max-width: 620px;
    margin: 0;
    color: #44505e;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.5;
    text-wrap: pretty;
}

.referral-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 40px;
}

.referral-benefits {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 4px;
}

.referral-benefits h2 {
    margin: 0;
    color: #0b2a4f;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.referral-benefits ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.referral-benefits li {
    display: flex;
    gap: 12px;
    color: #44505e;
    font-size: 16px;
    line-height: 1.5;
}

.referral-benefits li svg {
    flex: none;
    margin-top: 3px;
    color: #178a50;
}

.referral-benefits li strong {
    color: #0b2a4f;
    font-weight: 700;
}

.referral-testimonial {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding-top: 18px;
    border-top: 1px solid #e3e8ee;
}

.referral-testimonial img {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 38%;
    object-fit: cover;
}

.referral-testimonial figcaption {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.referral-testimonial blockquote {
    margin: 0;
    color: #3e4c5e;
    font-size: 15px;
    line-height: 1.5;
}

.referral-testimonial p {
    margin: 0;
    color: #44505e;
    font-size: 13px;
    line-height: 1.5;
}

.referral-testimonial p strong {
    color: #2d3b4e;
}

.referral-form-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 28px 28px 24px;
    background: #f5f7fa;
    border-radius: 8px;
}

.referral-form-card h2 {
    margin: 0;
    color: #0b2a4f;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.referral-form-card #regForm.email-only {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: none;
    width: 100%;
    margin: 0;
    font-size: 12px;
}

.referral-form-card #regForm.email-only .columns {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.referral-form-card #regForm.email-only .column,
.referral-form-card #regForm.email-only .column-email,
.referral-form-card #regForm.email-only .column-submit {
    flex: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.referral-form-card #regForm.email-only .item {
    margin: 0;
}

.referral-form-card #regForm.email-only .item .inpText,
.referral-form-card #regForm.email-only .item .inp {
    height: 56px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 16px;
    line-height: 56px;
}

.referral-form-card #regForm.email-only .item .inpText {
    padding-left: 16px;
    color: #8896a8;
}

.referral-form-card #regForm.email-only .item .inp {
    border: 1px solid #cfd6de;
    padding: 0 16px;
    color: #0b2a4f;
    background: transparent;
}

.referral-form-card #regForm.email-only .item .inp:focus {
    border-color: #0060af;
    box-shadow: 0 0 0 3px #e6f0f8;
}

.referral-form-card #regForm.email-only #regSubmit {
    width: 100%;
    min-width: 0;
    height: 56px;
    margin: 0;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    background: #178a50;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .02em;
    line-height: 1.2;
    text-transform: uppercase;
    transition: filter .18s ease, box-shadow .18s ease;
}

.referral-form-card #regForm.email-only #regSubmit:hover:not(:disabled) {
    filter: brightness(.92);
    box-shadow: 0 6px 16px rgba(23, 138, 80, .25);
}

.referral-form-card #regForm.email-only #regSubmit:disabled {
    cursor: not-allowed;
    opacity: .6;
}

.referral-form-card #regForm.email-only .field-comment {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #178a50;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.referral-form-card #regForm.email-only .field-comment::before {
    content: '✓';
    font-size: 16px;
    font-weight: 700;
}

.referral-form-card #regForm.email-only .checkboxes {
    margin: 0;
}

.referral-form-card #regForm.email-only .checkbox-container,
.referral-form-card #regForm.email-only .checkbox-container.visible {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    color: #44505e;
    font-size: 12px;
    line-height: 1.5;
}

.referral-form-card #regForm.email-only .checkbox-container input {
    flex: none;
    margin: 2px 0 0;
}

.referral-form-card #regForm.email-only .checkbox-container label {
    color: #44505e;
    font-family: inherit;
    font-size: 12px;
    line-height: 1.5;
}

.referral-form-card #regForm.email-only .checkbox-container a {
    color: #3e91cc;
    text-decoration: underline;
}

.referral-missing-code {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid #cfd6de;
    border-radius: 4px;
    background: #fff;
    color: #44505e;
    font-size: 15px;
    line-height: 1.5;
}

.referral-awards-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.4vw, 16px);
    width: 100%;
    padding-top: 4px;
}

.referral-awards-badges img {
    display: block;
    flex: 0 1 auto;
    width: auto;
    height: clamp(58px, 5.5vw, 84px);
    max-width: 20%;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .05));
}

.referral-awards-badges img:nth-child(-n+2) {
    height: clamp(52px, 4.8vw, 74px);
}

.referral-perks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 32px;
    margin: 0;
    padding: 20px 0 0;
    border-top: 1px solid #e3e8ee;
    color: #2d3b4e;
    font-size: 16px;
    list-style: none;
    text-align: center;
}

.referral-fine-print {
    max-width: 760px;
    align-self: center;
    margin: 0;
    color: #44505e;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    text-wrap: pretty;
}

.referral-footer {
    width: 100%;
    padding: 14px 32px;
    background: #2584c6;
}

.referral-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    color: #a9cdeb;
    font-size: 14px;
}

.referral-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.nimble-referral-landing .referral-footer a {
    color: #a9cdeb;
    text-decoration: none;
}

.referral-footer a:hover,
.referral-footer a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 780px) {
    .referral-columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .referral-form-card {
        max-width: 560px;
        width: 100%;
        justify-self: center;
    }
}

@media (max-width: 560px) {
    .referral-header,
    .referral-footer {
        padding-right: 20px;
        padding-left: 20px;
    }

    .referral-main {
        padding: 32px 20px;
    }

    .referral-container {
        gap: 28px;
    }

    .referral-form-card {
        padding: 24px 20px;
    }

    .referral-testimonial {
        align-items: flex-start;
    }

    .referral-awards-badges {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .referral-awards-badges img {
        height: 60px;
    }

    .referral-awards-badges img:nth-child(-n+2) {
        height: 54px;
    }

    .referral-perks {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
