:root {
    --give-thanks-text: #fff8ea;
    --give-thanks-muted: rgba(255, 248, 234, 0.88);
    --give-thanks-panel: rgba(14, 10, 20, 0.6);
    --give-thanks-panel-strong: rgba(14, 10, 20, 0.78);
    --give-thanks-button: #f1c152;
    --give-thanks-button-text: #24150d;
    --give-thanks-border: rgba(255, 255, 255, 0.16);
}

* {
    box-sizing: border-box;
}

body.giveThanksPage {
    margin: 0;
    min-height: 100vh;
    font-family: "Arial", sans-serif;
    background: radial-gradient(circle at top, rgba(77, 15, 24, 0.75), rgba(7, 8, 20, 0.96));
    color: var(--give-thanks-text);
}

.giveThanksPage__stage {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.giveThanksPopup {
    width: min(1225px, 100%);
}

.giveThanksPopup__card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    background: url("../images/thankyouforgiving.jpg") center center / cover no-repeat;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.giveThanksPopup__overlay {
    position: absolute;
    inset: 0;
}

.giveThanksPopup__content {
    position: absolute;
    right: 5%;
    bottom: 5%;
    width: min(500px, 44%);
    padding: 24px 24px 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, var(--give-thanks-panel), var(--give-thanks-panel-strong));
    border: 1px solid var(--give-thanks-border);
    backdrop-filter: blur(4px);
}

.giveThanksPopup__summary,
.giveThanksPopup__base,
.giveThanksPopup__dynamic,
.giveThanksPopup__amount,
.giveThanksPopup__scripture {
    margin: 0 0 16px;
}

.giveThanksPopup__summary {
    color: var(--give-thanks-button);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.giveThanksPopup__base,
.giveThanksPopup__dynamic,
.giveThanksPopup__amount {
    color: var(--give-thanks-muted);
    line-height: 1.75;
    font-size: 1rem;
}

.giveThanksPopup__scripture {
    color: var(--give-thanks-text);
    font-style: italic;
    line-height: 1.7;
}

.giveThanksPopup__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.giveThanksPopup__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--give-thanks-button);
    color: var(--give-thanks-button-text);
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.giveThanksPopup__button:hover {
    transform: translateY(-1px);
    opacity: 0.96;
}

.giveThanksPopup__button--secondary {
    background: rgba(255, 248, 234, 0.12);
    color: var(--give-thanks-text);
    border: 1px solid rgba(255, 248, 234, 0.2);
}

@media (max-width: 991px) {
    .giveThanksPage__stage {
        padding: 16px;
    }

    .giveThanksPopup__content {
        right: 4%;
        left: 4%;
        bottom: 4%;
        width: auto;
        padding: 20px 18px 18px;
    }
}

@media (max-width: 767px) {
    .giveThanksPopup__card {
        min-height: calc(100vh - 32px);
        aspect-ratio: auto;
        background-position: center top;
    }

    .giveThanksPopup__overlay {
        background: linear-gradient(180deg, rgba(7, 8, 20, 0.08) 0%, rgba(7, 8, 20, 0.28) 46%, rgba(7, 8, 20, 0.82) 100%);
    }

    .giveThanksPopup__content {
        right: 16px;
        left: 16px;
        bottom: 16px;
        border-radius: 20px;
    }

    .giveThanksPopup__actions {
        flex-direction: column;
    }

    .giveThanksPopup__button {
        width: 100%;
    }
}
