@font-face {
    font-family: 'Affiliate Inter';
    src: url('../assets/fonts/subset-Inter28pt-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Affiliate Inter';
    src: url('../assets/fonts/subset-Inter28pt-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Affiliate Inter';
    src: url('../assets/fonts/subset-Inter28pt-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

.affiliate-section {
    --affiliate-heading: #23246c;
    --affiliate-accent: #454399;
    padding: 30px 0 0;
    background-color: #eae9f1;
    background-image: url('https://eurocdn.azureedge.net/bucket/EBE/euro/232FondoCTAEuro-a.avif');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    font-family: 'Affiliate Inter', Arial, sans-serif;
}

.affiliate-container {
    width: 100%;
    max-width: 1440px;
    padding-inline: 32px;
}

.affiliate-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: stretch;
}

.affiliate-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding-top: 24px;
}

.affiliate-info > h3,
.affiliate-section .affiliatteInfoCard > h3 {
    color: var(--affiliate-heading);
    font-family: 'Affiliate Inter', Arial, sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 24px;
}

.affiliate-info > h3 {
    text-align: center;
}

.affiliate-steps {
    list-style: none;
    counter-reset: affiliate-step;
    padding: 0 16px 0 54px;
    margin: 0;
}

.affiliate-steps li {
    position: relative;
    counter-increment: affiliate-step;
    padding-bottom: 32px;
}

.affiliate-steps li::before {
    content: counter(affiliate-step);
    position: absolute;
    left: -34px;
    top: 0;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--affiliate-accent);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.affiliate-steps li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: -25px;
    top: 24px;
    bottom: 4px;
    border-left: 2px dashed #7772bb;
}

.affiliate-steps h5 {
    color: var(--affiliate-accent);
    font-family: 'Affiliate Inter', Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 4px;
}

.affiliate-steps p {
    color: #333;
    font-family: 'Affiliate Inter', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
}

.affiliate-image {
    display: block;
    width: 80%;
    height: auto;
    max-height: 440px;
    object-fit: contain;
    object-position: left bottom;
    margin-top: auto;
    align-self: center;
    flex-shrink: 0;
}

.affiliate-section .affiliatteInfoCard {
    min-width: 0;
    align-self: start;
    padding: 28px 24px 20px;
    margin: 0 0 30px;
    border: 0;
    border-radius: 20px;
    background: #fff;
}

.affiliate-section .affiliatteInfoCard > h3 {
    text-align: left;
    padding: 0;
    margin-bottom: 16px;
}

.affiliate-form-scroll {
    height: clamp(560px, 49vw, 700px);
    overflow-y: auto;
    padding: 24px 20px;
    border: 1px solid #dfe3e6;
    border-radius: 20px;
    background: #f5f8fa;
    scrollbar-color: #626262 #dedede;
    scrollbar-width: thin;
    scrollbar-gutter: stable;
}

.affiliate-form-scroll iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    border: 0;
}

.affiliate-form-scroll .hs-form-frame {
    width: 100%;
    /* Compact the external form while keeping its full width and automatic height. */
    zoom: 0.75;
    background: #fff;
    box-shadow: 0 0 8px #d3e3eb;
}

@media (max-width: 767.98px) {
    .affiliate-section {
        background-image: none;
        padding-bottom: 16px;
    }

    .affiliate-container {
        padding-inline: 16px;
    }

    .affiliate-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .affiliate-info {
        padding-top: 0;
    }

    .affiliate-image {
        max-width: 500px;
        align-self: center;
        margin-top: 0;
    }

    .affiliate-section .affiliatteInfoCard {
        padding: 24px 16px 16px;
        margin-bottom: 0;
    }

    .affiliate-form-scroll {
        height: 600px;
        padding: 16px 8px;
    }

    .affiliate-form-scroll .hs-form-frame {
        width: 100%;
        zoom: 1;
    }
}
