.thank {
    color: #fff;
    position: relative;
    background: var(--custom-background, linear-gradient(to bottom, #ffffff, var(--serenity-light)));
    text-align: center;
}

.thanks-wrapper {
    padding: 80px 20px;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.thanks-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.thanks-wrapper > * {
    position: relative;
    z-index: 2;
}

.thanks-wrapper .section-title {
    color: white !important;
    margin-bottom: 20px;
}

.thanks-text {
    font-size: 15px;
    line-height: 1.8;
    color: white;
    margin-bottom: 18px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.thanks-text.small-margin {
    margin-bottom: 10px;
    font-style: italic;
}

.thanks-wrapper .nickname {
    color: white !important;
    font-size: 2.2rem;
    margin: 20px 0 30px;
}

.thanks-family {
    background: rgba(255,255,255,0.9);
    border-radius: var(--custom-border-radius, 18px);
    padding: 25px 20px;
    display: inline-block;
    min-width: 280px;
    border: 1px solid var(--custom-secondary, var(--serenity-medium));
}

.thanks-family-title {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--custom-primary, var(--serenity-dark));
    margin-bottom: 14px;
}

.thanks-family-text {
    font-size: 15px;
    color: var(--custom-text, var(--text-dark));
    margin-bottom: 6px;
}

footer {
    margin-top: 50px;
    padding: 20px;
}

.footer {
    display: inline-block;
    font-size: 13px;
    color: var(--custom-primary, var(--serenity-dark));
    text-decoration: none;
    transition: all .25s ease;
}

.footer:hover {
    color: var(--custom-accent, var(--serenity-deep));
}

.footer .e-moment {
    font-weight: 600;
}