.xd-give-hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    background-color: #1f1f1f;
    background-image: var(--xd-give-hero-bg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    isolation: isolate;
}

.xd-give-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.xd-give-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 495px;
    gap: clamp(34px, 3.8vw, 62px);
    align-items: center;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: clamp(150px, 14vw, 200px) 80px clamp(44px, 5vw, 66px);
    box-sizing: border-box;
}

.xd-give-hero__content {
    max-width: 560px;
    align-self: end;
}

.xd-give-hero__heading {
    margin: 0 0 24px;
    color: #ffffff;
    font-size: clamp(4.5rem, 6.5vw, 8rem);
    line-height: 0.95;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.xd-give-hero__progress-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
    color: #ffffff;
    font-family: 'Proxima Nova', sans-serif;
}

.xd-give-hero__raised {
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
}

.xd-give-hero__goal {
    font-size: 1.8rem;
    line-height: 1.2;
    opacity: 0.95;
}

.xd-give-hero__progress-bar {
    height: 30px;
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
}

.xd-give-hero__progress-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #ffb92a;
}

.xd-give-hero__panel {
    align-self: center;
    display: grid;
    grid-template-columns: repeat(3, minmax(157px, 1fr));
    gap: 12px;
    padding-top: 36px;
    margin: 0;
    font-family: 'Proxima Nova', sans-serif;
}

.xd-give-hero__panel input,
.xd-give-hero__panel button {
    font: inherit;
}

.xd-give-hero__amounts {
    grid-column: 1 / span 3;
    display: grid;
    grid-template-columns: repeat(3, minmax(157px, 1fr));
    gap: 12px;
}

.xd-give-hero__amounts-legend,
.xd-give-hero__amounts > legend {
    grid-column: 1 / -1;
    font-size: 30px;
    color: #ffffff;
    border: none !important;
    border-bottom: none !important;
}

.xd-give-hero__amount,
.xd-give-hero__amount:visited,
.xd-give-hero__custom-amount {
    display: flex;
    align-items: center;
    min-height: 90px;
    padding: 0 20px;
    border-radius: 8px;
    background: #ffffff;
    color: #1e1d1d;
    font-size: 3rem;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    box-sizing: border-box;
}

.xd-give-hero__amount {
    justify-content: center;
    border: 0;
    cursor: pointer;
}

.xd-give-hero__amount:has(.xd-give-hero__amount-input:checked) {
    background-color: #FFB92A;
}

.xd-give-hero__amount-input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.xd-give-hero__custom-amount {
    grid-column: 1 / span 3;
    font-size: 2rem;
    font-weight: 700;
    min-height: 100px;
}

.xd-give-hero .xd-give-hero__custom-input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
    -webkit-appearance: none;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1e1d1d;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    box-shadow: none;
}

.xd-give-hero .xd-give-hero__custom-input[type="number"]::-webkit-outer-spin-button,
.xd-give-hero .xd-give-hero__custom-input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.xd-give-hero .xd-give-hero__custom-input[type="number"]::placeholder {
    color: #1e1d1d;
    opacity: 1;
}

.xd-give-hero__donate,
.xd-give-hero__donate:visited {
    position: relative;
    isolation: isolate;
    grid-column: 1 / span 3;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    margin-top: 6px;
    border-radius: 4px;
    background: #ffb92a;
    color: #150a22;
    font-size: 1.5rem;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}

.xd-give-hero__donate::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(45deg, #FFB92A, #Fbd179);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.xd-give-hero__donate:hover,
.xd-give-hero__donate:focus-visible {
    color: #150a22;
    text-decoration: none;
}

.xd-give-hero__donate:hover::after,
.xd-give-hero__donate:focus-visible::after {
    opacity: 1;
}

@media (max-width: 991px) {
    .xd-give-hero {
        min-height: 0;
        border-bottom-left-radius: 36px;
        border-bottom-right-radius: 36px;
    }

    .xd-give-hero__inner {
        grid-template-columns: 1fr;
        padding-top: 191px;
        gap: 26px;
    }

    .xd-give-hero__content {
        max-width: 100%;
    }

    .xd-give-hero__progress-bar {
        max-width: 100%;
    }

    .xd-give-hero__panel {
        grid-template-columns: repeat(3, 1fr);
        max-width: none;
        width: 100%;
        padding-top: 0;
    }

    .xd-give-hero__amounts {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .xd-give-hero {
        border-bottom-left-radius: 28px;
        border-bottom-right-radius: 28px;
    }

    .xd-give-hero__inner {
        padding: 110px 20px 40px;
    }

    .xd-give-hero__heading {
        font-size: clamp(3.1rem, 11vw, 4.4rem);
        text-align: center;
    }

    .xd-give-hero__progress-meta {
        justify-content: space-between;
        gap: 12px;
    }

    .xd-give-hero__raised {
        font-size: 1.7rem;
    }

    .xd-give-hero__goal {
        font-size: 1.8rem;
        text-align: right;
    }

    .xd-give-hero__amount,
    .xd-give-hero__amount:visited,
    .xd-give-hero__custom-amount {
        min-height: 62px;
        font-size: 1.45rem;
    }
}
