/* =========================================
   SHIH TZU RESCUE - CHRISTMAS FUNDRAISER
   New seasonal design
   ========================================= */

:root {
    --forest: #153d30;
    --forest-light: #285943;
    --pine: #397454;
    --cream: #fbf7ee;
    --paper: #fffdf8;
    --gold: #e9c77c;
    --gold-light: #f6e5b5;
    --ruby: #a94049;
    --ink: #26382f;
    --muted: #69776d;
    --line: #e7e1d4;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px;
}

body.seasonal-page {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 16px/1.7 system-ui, sans-serif;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #c3984e;
    outline-offset: 4px;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 15px clamp(18px, 5vw, 75px);
    background: var(--forest);
    color: white;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 750;
    line-height: 1.3;
    text-decoration: none;
}

.brand-mark {
    color: var(--gold);
    font-size: 2rem;
}

.brand small {
    display: block;
    color: #d9dfd3;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.header-link {
    padding: 9px 18px;
    border: 1px solid #ffffff60;
    border-radius: 999px;
    color: white;
    font-size: .9rem;
    text-decoration: none;
    transition: background .2s;
}

.header-link:hover {
    background: #ffffff18;
}


/* =========================================
   HERO SECTION
   ========================================= */

.hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 35px;
    padding: 55px clamp(22px, 6vw, 85px);
    background:
        radial-gradient(
            ellipse at 75% 45%,
            #e9d5a45c,
            transparent 48%
        ),
        linear-gradient(135deg, #fffdf8, #f5efdf);
    overflow: hidden;
	position: relative;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 570px;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--ruby);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 0;
    color: var(--forest);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 5vw, 4.7rem);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.hero h1 span {
    display: block;
    color: var(--ruby);
    font-style: italic;
}

.hero-intro {
    max-width: 510px;
    margin: 23px 0 12px;
    color: var(--forest);
    font-size: 1.2rem;
    font-weight: 500;
}

.hero-detail {
    max-width: 510px;
    margin: 0 0 25px;
    color: var(--muted);
}


/* =========================================
   BUTTONS
   ========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 13px 25px;
    border: 0;
    border-radius: 999px;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform .2s,
        background .2s,
        box-shadow .2s;
}

.button:hover {
    transform: translateY(-2px);
}

.button-gold {
    background: var(--gold);
    color: #2c3528;
    box-shadow: 0 7px 18px #9b76252b;
}

.button-gold:hover {
    background: #f1d899;
}

.button-primary {
    background: var(--forest);
    color: white;
}

.button-primary:hover {
    background: #245840;
}


/* =========================================
   FUNDRAISING STATISTICS
   ========================================= */

.impact-stats {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 34px;
}

.impact-stats div {
    display: grid;
    gap: 0;
}

.impact-stats strong {
    color: var(--forest);
    font-family: Georgia, serif;
    font-size: 1.9rem;
    line-height: 1.3;
}

.impact-stats span:not(.stat-divider) {
    color: var(--muted);
    font-size: .84rem;
}

.stat-divider {
    width: 1px;
    height: 42px;
    background: #d6cebd;
}


/* =========================================
  HOLIDAY PUP
   ========================================= */

.holiday-pup {
    position: absolute;
    z-index: 3;

    left: 39%;
    bottom: 35px;

    width: clamp(125px, 16vw, 190px);

    pointer-events: none;
}

.holiday-pup img {
    display: block;
    width: 100%;
    height: auto;

}

/* Mobile positioning */

@media (max-width: 650px) {

    .holiday-pup {
        left: 4%;
        bottom: 45px;
        width: 100px;
    }

}


/* =========================================
   PHOTOGRAPHIC CHRISTMAS TREE
   ========================================= */

.hero-tree-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: 100%;
}

.holiday-tree {
    position: relative;
    isolation: isolate;
    width: min(100%, 460px);
    aspect-ratio: 2 / 3;
    background-image: url('../christmas-tree.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 auto;
}

/* Gentle golden glow behind the tree */

.hero-tree-wrap::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 85%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #e9c77c35;
    filter: blur(45px);
    pointer-events: none;
}

/* Christmas star */

.tree-star {
    position: absolute;
    z-index: 4;
    top: 1%;
    left: 50%;
    color: #f5d786;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1;
    text-shadow:
        0 0 12px #e9c77c,
        0 0 28px #e9c77c99;
    transform: translateX(-50%);
    animation: seasonal-star-shine 4s ease-in-out infinite;
    pointer-events: none;
}


/* =========================================
   DONATION ORNAMENTS
   ========================================= */

.tree-ornament {
    position: absolute;
    z-index: 5;

    display: grid;
    place-items: center;

    width: clamp(19px, 3vw, 29px);
    height: clamp(19px, 3vw, 29px);

    border: 2px solid #fff3d4;
    border-radius: 50%;

    text-decoration: none;

    box-shadow:
        0 2px 6px #061b1280,
        0 0 10px #e9c77c55,
        inset -4px -4px 6px #0003;

    transform: translate(-50%, -50%);

    transition:
        transform .2s,
        box-shadow .2s;
			
}

/* Ornament hanging cap */

.tree-ornament::before {
    content: "";
    position: absolute;
    top: -5px;
    width: 8px;
    height: 5px;
    border: 1px solid #e9c77c;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(
        90deg,
        #9d762e,
        #f8df99,
        #a77b2f
    );
}

/* Small highlight */

.tree-ornament span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffffbd;
    transform: translate(-3px, -4px);
}

/* Hover effect */

.tree-ornament:hover,
.tree-ornament:focus-visible {
    z-index: 8;
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow:
        0 0 12px #f8e0a8,
        0 0 22px #f8e0a8a6;
}


/* =========================================
   ORNAMENT COLOURS
   ========================================= */

.ornament-gold {
    background: radial-gradient(
        circle at 32% 28%,
        #fff4be,
        #e5b74f 60%,
        #a7792e
    );
}

.ornament-ruby {
    background: radial-gradient(
        circle at 32% 28%,
        #ffb2a8,
        #b84149 60%,
        #70202d
    );
}

.ornament-ivory {
    background: radial-gradient(
        circle at 32% 28%,
        #fffef0,
        #f0dfb2 60%,
        #b99b62
    );
}

.ornament-green {
    background: radial-gradient(
        circle at 32% 28%,
        #b7e1a0,
        #3b8a5a 60%,
        #1a4c34
    );
}




/* =========================================
   TREE CAPTION
   ========================================= */

.tree-caption {
    max-width: 420px;
    margin: 12px 0 0;
    color: var(--forest-light);
    font-family: Georgia, serif;
    font-size: 1rem;
    font-style: italic;
    text-align: center;
}


/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes seasonal-light-glow {

    from {
        opacity: .55;
        box-shadow:
            0 0 5px 2px #ffdc7a60,
            0 0 10px 3px #ffe9a038;
    }

    to {
        opacity: 1;
        box-shadow:
            0 0 9px 4px #ffdc7aa6,
            0 0 19px 7px #ffe9a06b;
    }

}


@keyframes seasonal-star-shine {

    0%, 100% {
        text-shadow:
            0 0 12px #e9c77c99,
            0 0 26px #e9c77c45;
    }

    50% {
        text-shadow:
            0 0 18px #f4d994,
            0 0 39px #e9c77c8c;
    }

}

/* =========================================
   PART 3 – TREE ORNAMENTS AND INTERACTIONS
   ========================================= */

.tree-ornament {
    position: absolute;
    z-index: 5;
    display: grid;
    place-items: center;
    width: clamp(25px, 3vw, 36px);
    height: clamp(25px, 3vw, 36px);
    border: 2px solid #fff4d6;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    box-shadow:
        0 3px 7px #0005,
        0 0 12px #f6d88a66,
        inset -4px -4px 6px #0003;
    transform: translate(-50%, -50%);
    transition: transform .2s ease, box-shadow .2s ease;
}

.tree-ornament::before {
    content: "";
    position: absolute;
    top: -6px;
    width: 9px;
    height: 6px;
    border: 1px solid #e9c77c;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(
        90deg,
        #9d762e,
        #f8df99,
        #a77b2f
    );
}

.tree-ornament span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffffb5;
    transform: translate(-3px, -4px);
}

.tree-ornament:hover,
.tree-ornament:focus-visible {
    z-index: 10;
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 22px #f8e0a8;
}

.ornament-gold {
    background: radial-gradient(
        circle at 32% 28%,
        #fff4be,
        #e5b74f 60%,
        #a7792e
    );
}

.ornament-ruby {
    background: radial-gradient(
        circle at 32% 28%,
        #ffb2a8,
        #b84149 60%,
        #70202d
    );
}

.ornament-ivory {
    background: radial-gradient(
        circle at 32% 28%,
        #fffef0,
        #f0dfb2 60%,
        #b99b62
    );
}

.ornament-green {
    background: radial-gradient(
        circle at 32% 28%,
        #b7e1a0,
        #3b8a5a 60%,
        #1a4c34
    );
}

/* Gentle sparkle when an ornament is selected */

.tree-ornament::after {
    content: "✦";
    position: absolute;
    top: -13px;
    right: -12px;
    color: #ffe8a0;
    font-size: 15px;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 0 8px #f5d77b;
}

.tree-ornament.is-sparkling::after {
    animation: ornament-sparkle .8s ease-out;
}

@keyframes ornament-sparkle {
    0% {
        opacity: 0;
        transform: scale(.2) rotate(-25deg);
    }
    35% {
        opacity: 1;
        transform: scale(1.5) rotate(15deg);
    }
    100% {
        opacity: 0;
        transform: scale(.5) rotate(45deg);
    }
}



/* =========================================
   PART 4 – TREE CAPTION AND DONATION SECTION
   ========================================= */

/* Text beneath the Christmas tree */

.tree-caption {
    position: relative;
    z-index: 2;
    margin: 12px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.05rem;
    font-style: italic;
    text-align: center;
    text-shadow: 0 2px 5px #0008;
}

.wishes-jump-link {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-top: 12px;
    color: #f6d995;
    font-size: .9rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.wishes-jump-link:hover {
    color: #fff;
}

/* =========================================
   DONATION SECTION
   ========================================= */

.giving-section {
    padding: 85px 20px;
    background:
        radial-gradient(
            ellipse at 50% 0,
            #e9d5a54d,
            transparent 55%
        ),
        #f8f4eb;
}

.giving-heading {
    max-width: 700px;
    margin: 0 auto 38px;
    text-align: center;
}

.giving-heading .eyebrow {
    color: #a94049;
}

.giving-heading h2 {
    margin: 0;
    color: #174532;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
    font-weight: 500;
    line-height: 1.15;
}

.giving-heading > p:last-child {
    max-width: 580px;
    margin: 17px auto 0;
    color: #68766b;
}

/* Main donation panel */

.giving-panel {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid #e8dfcd;
    border-radius: 22px;
    background: #fffdf8;
    box-shadow: 0 18px 55px #1b372712;
}

.giving-panel fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.giving-panel fieldset + fieldset {
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid #e7e1d4;
}

.giving-panel legend {
    width: 100%;
    margin-bottom: 15px;
    color: #174532;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.4rem;
    font-weight: 600;
}

/* Donation amount buttons */

.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.amount-choice {
    position: relative;
    display: block;
    cursor: pointer;
}

.amount-choice input,
.dedication-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.amount-face {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 88px;
    padding: 10px 5px;
    border: 1px solid #dcd7ca;
    border-radius: 13px;
    background: #fff;
    text-align: center;
    transition:
        border-color .2s,
        background .2s,
        transform .2s;
}

.amount-face strong {
    color: #174532;
    font-size: 1.3rem;
}

.amount-face small {
    margin-top: 3px;
    color: #69776d;
    font-size: .68rem;
}

.amount-choice:hover .amount-face {
    transform: translateY(-2px);
    border-color: #347052;
}

/* Selected donation amount */

.amount-choice input:checked + .amount-face {
    background: #174532;
    border: 2px solid #174532;
    color: #fff;
}

.amount-choice input:checked + .amount-face strong,
.amount-choice input:checked + .amount-face small {
    color: #fff;
}

/* Custom amount field */

.custom-amount-wrap {
    display: none;
    margin-top: 19px;
}

.custom-amount-wrap.is-visible {
    display: block;
}

.custom-amount-wrap > label {
    display: block;
    margin-bottom: 7px;
    color: #26382f;
    font-size: .91rem;
    font-weight: 700;
}

.currency-input {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 49px;
    padding: 0 14px;
    border: 1px solid #d8d6ca;
    border-radius: 10px;
    background: #fff;
}

.currency-input > span {
    color: #69776d;
    font-weight: 700;
}

.currency-input input {
    width: 100%;
    min-width: 0;
    padding: 11px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #26382f;
}

.currency-input:focus-within {
    border-color: #347052;
    box-shadow: 0 0 0 3px #3470521c;
}

/* =========================================
   PART 5 – DEDICATIONS AND FORM FIELDS
   ========================================= */

/* Dedication selection buttons */

.dedication-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dedication-choice {
    display: block;
    cursor: pointer;
}

.dedication-choice > span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 11px 13px;
    border: 1px solid #e0dbcf;
    border-radius: 11px;
    background: #fff;
    color: #26382f;
    font-size: .9rem;
    font-weight: 650;
    transition:
        border-color .2s,
        background .2s,
        transform .2s;
}

.dedication-choice:hover > span {
    transform: translateY(-2px);
    border-color: #347052;
}

/* Keep the existing dedication icons */

.dedication-symbol {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    border-radius: 50%;
    background: #f6edda;
    color: #a94049;
}

/* Selected dedication */

.dedication-choice input:checked + span {
    background: #174532;
    border: 2px solid #174532;
    color: #fff;
}

.dedication-choice input:checked + span .dedication-symbol {
    background: #fff;
    color: #174532;
}

/* Keyboard accessibility */

.amount-choice input:focus-visible + .amount-face,
.dedication-choice input:focus-visible + span {
    outline: 3px solid #c3984e;
    outline-offset: 3px;
}

/* Helpful instructions */

.field-help {
    margin: -8px 0 15px;
    color: #69776d;
    font-size: .9rem;
}

/* Text input fields */

.form-field {
    margin-top: 19px;
}

.form-field > label {
    display: block;
    margin-bottom: 7px;
    color: #26382f;
    font-size: .91rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    display: block;
    width: 100%;
    min-height: 49px;
    padding: 12px 14px;
    border: 1px solid #d8d6ca;
    border-radius: 10px;
    background: #fff;
    color: #26382f;
    font: inherit;
    line-height: 1.5;
    transition:
        border-color .2s,
        box-shadow .2s;
}

.form-field textarea {
    min-height: 118px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #347052;
    outline: 0;
    box-shadow: 0 0 0 3px #3470521c;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9a9f96;
}

.character-note {
    display: block;
    margin-top: 7px;
    color: #69776d;
    font-size: .78rem;
}

/* Donation submit button */

.submit-donation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    margin-top: 28px;
    padding: 14px 22px;
    border: 0;
    border-radius: 12px;
    background: #174532;
    color: #fff;
    font: inherit;
    font-weight: 750;
    text-align: center;
    cursor: pointer;
    transition:
        background .2s,
        transform .2s,
        box-shadow .2s;
}

.submit-donation:hover {
    transform: translateY(-2px);
    background: #236044;
    box-shadow: 0 7px 18px #17453230;
}

.submit-donation:focus-visible {
    outline: 3px solid #c3984e;
    outline-offset: 4px;
}

/* Privacy message */

.privacy-note {
    max-width: 550px;
    margin: 15px auto 0;
    color: #69776d;
    font-size: .8rem;
    line-height: 1.6;
    text-align: center;
}

/* =========================================
   PART 6 – CHRISTMAS WISHES SECTION
   ========================================= */

.wishes-section {
    position: relative;
    isolation: isolate;
    padding: 85px clamp(20px, 7vw, 100px);
    background:
        linear-gradient(
            rgb(15 48 35 / 78%),
            rgb(15 48 35 / 88%)
        ),
        url('/as/seasonal/whishing-tree.webp') center / cover no-repeat;
}

.wishes-heading {
    max-width: 710px;
    margin: 0 auto 45px;
    text-align: center;
}

.wishes-heading .eyebrow {
    color: #f0d18a;
}

.wishes-heading h2 {
    margin: 0;
    color: #fff9ed;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    line-height: 1.15;
}

.wishes-heading > p:last-child {
    max-width: 650px;
    margin: 17px auto 0;
    color: #f4eddf;
}

/* Ornament message cards */

.ornament-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1150px;
    margin: 0 auto;
}

.ornament-icon {
    color: #a77b2f;
    font-size: 1.6rem;
}

.wish-dedication {
    margin: 9px 0 5px;
    color: #a94049;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}



.wish-message {
    margin: 0;
    color: #46564a;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.wish-byline {
    margin: 18px 0 0;
    padding-top: 13px;
    border-top: 1px solid #e7e0d1;
    color: #69776d;
    font-size: .81rem;
    font-style: italic;
    overflow-wrap: anywhere;
}



/* Empty tree message */

.empty-wishes {
    max-width: 520px;
    margin: 0 auto;
    padding: 42px 25px;
    border: 1px dashed #d7c7a7;
    border-radius: 18px;
    background: #fffdf8;
    color: #26382f;
    text-align: center;
    box-shadow: 0 12px 35px #0002;
}

.empty-wishes > span {
    color: #a77b2f;
    font-size: 2rem;
}

.empty-wishes h3 {
    margin: 10px 0;
    color: #174532;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.6rem;
}

.empty-wishes p {
    color: #69776d;
}

.empty-wishes .text-link {
    color: #174532;
    font-weight: 750;
    text-underline-offset: 4px;
}

.empty-wishes .text-link:hover {
    color: #a94049;
}

/* =========================================
   PART 7 – CLOSING SECTION AND FOOTER
   ========================================= */

.closing-section {
    padding: 80px 22px;
    background:
        radial-gradient(
            ellipse at 50% 0,
            #347052,
            transparent 65%
        ),
        #123b30;
    color: #fff8e9;
    text-align: center;
}

.closing-star {
    color: #e9c77c;
    font-size: 2.4rem;
}

.closing-section h2 {
    max-width: 760px;
    margin: 14px auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 500;
    line-height: 1.13;
}

.closing-section p {
    max-width: 590px;
    margin: 16px auto 25px;
    color: #dce5d9;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 24px;
    padding: 25px;
    background: #0e3027;
    color: #d8e1d6;
    font-size: .84rem;
    text-align: center;
}

.site-footer p {
    margin: 0;
}

.site-footer a {
    color: #f0d79a;
    text-underline-offset: 4px;
}

/* =========================================
   PART 7 – CHRISTMAS WISH POP-UP
   ========================================= */

.wish-dialog {
    width: min(90%, 500px);
    max-width: 500px;
    max-height: 85vh;
    padding: 0;
    overflow: auto;
    border: 1px solid #d9b86c;
    border-radius: 20px;
    background: #fffaf0;
    color: #26382f;
    box-shadow: 0 24px 80px #061b1270;
}

.wish-dialog[open] {
    animation: wish-dialog-appear .22s ease-out;
}

.wish-dialog::backdrop {
    background: rgb(9 28 21 / 72%);
    backdrop-filter: blur(3px);
}

.wish-dialog-inner {
    position: relative;
    padding: 38px 30px 28px;
    text-align: center;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            #f4dfaa80,
            transparent 65%
        );
}

.wish-dialog-close {
    position: absolute;
    top: 10px;
    right: 13px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f0e5cc;
    color: #123b30;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.wish-dialog-close:hover {
    background: #e9d7ae;
}

.wish-dialog-star {
    color: #a77b2f;
    font-size: 2rem;
}

.wish-dialog h2 {
    margin: 8px 0 15px;
    color: #123b30;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 500;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.wish-dialog .wish-message {
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.wish-dialog .wish-byline {
    margin-top: 22px;
}

@keyframes wish-dialog-appear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   PART 7 – RESPONSIVE MOBILE LAYOUT
   ========================================= */

@media (max-width: 900px) {
    .ornament-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    .site-header {
        padding: 12px 15px;
    }

    .brand {
        gap: 8px;
        font-size: .9rem;
    }

    .brand-mark {
        font-size: 1.6rem;
    }

    .header-link {
        padding: 8px 11px;
        font-size: .78rem;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 45px 20px 35px;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-intro,
    .hero-detail {
        margin-right: auto;
        margin-left: auto;
    }

    .impact-stats {
        justify-content: center;
        gap: 22px;
        margin-top: 26px;
    }

    .impact-stats strong {
        font-size: 1.65rem;
    }

    .hero-tree-wrap {
        min-height: auto;
    }

    .holiday-tree {
        width: min(100%, 380px);
        height: auto;
    }

    .meaning-section,
    .wishes-section {
        padding: 55px 19px;
    }

    .meaning-grid {
        grid-template-columns: 1fr;
        margin-top: 27px;
    }

    .meaning-card {
        display: grid;
        grid-template-columns: 44px 1fr;
        column-gap: 14px;
        padding: 18px;
    }

    .meaning-icon {
        grid-row: span 2;
        width: 42px;
        height: 42px;
        margin: 0;
    }

    .meaning-card h3 {
        align-self: end;
    }

    .giving-section {
        padding: 55px 12px 62px;
    }

    .giving-panel {
        padding: 22px 16px;
        border-radius: 17px;
    }

    .giving-panel legend {
        font-size: 1.25rem;
    }

    .amount-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .amount-face {
        min-height: 76px;
    }

    .dedication-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dedication-choice > span {
        min-height: 51px;
    }

    .ornament-grid {
        grid-template-columns: 1fr;
        gap: 13px;
    }



    .closing-section {
        padding: 55px 20px;
    }

    .site-footer {
        flex-direction: column;
        gap: 8px;
    }

    .wish-dialog-inner {
        padding: 38px 22px 24px;
    }
}

/* =========================================
   PART 7 – ACCESSIBILITY
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================
   PAYMENT AND THANK YOU PAGES
========================================= */

.payment-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 18px;

    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(226, 199, 135, 0.25),
            transparent 45%
        ),
        #f8f5ec;
}

.payment-card {
    width: min(100%, 580px);
    padding: clamp(28px, 6vw, 52px);

    border: 1px solid #e8dfcd;
    border-radius: 24px;

    background: #fffdf8;

    box-shadow:
        0 20px 65px rgba(18, 59, 48, 0.10);

    text-align: center;
}

.payment-decoration {
    margin-bottom: 12px;
    color: #c49a48;
    font-size: 3rem;
    text-shadow: 0 0 18px rgba(233, 199, 124, 0.5);
}

.payment-card h1 {
    margin: 10px 0 20px;

    color: #123b30;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 6vw, 3.1rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.payment-card h2 {
    margin: 12px 0;
    color: #a94049;

    font-family: Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
}

.payment-intro {
    max-width: 450px;
    margin: 0 auto 24px;

    color: #526459;
    font-size: 1.05rem;
    line-height: 1.75;
}

.payment-amount {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    margin: 25px 0;
    padding: 20px;

    border-radius: 14px;
    background: #f3efe3;

    color: #526459;
}

.payment-amount strong {
    color: #123b30;
    font-family: Georgia, serif;
    font-size: 2rem;
}

.payment-message {
    margin: 24px 0;
    padding: 22px;

    border: 1px solid #eadcb9;
    border-radius: 15px;

    background: #faf5e9;

    color: #405448;
    font-size: 1rem;
    line-height: 1.8;
}

.payment-note {
    margin: 20px auto;
    color: #69776d;
    font-size: 0.88rem;
    line-height: 1.7;
}

.payment-button {
    width: 100%;
    min-height: 58px;
    margin-top: 15px;
    border-radius: 12px;
}

.payment-back-link {
    display: inline-block;
    margin-top: 22px;

    color: #347052;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.payment-back-link:hover {
    color: #a94049;
}

@media (max-width: 480px) {
    .payment-card {
        padding: 28px 21px;
        border-radius: 18px;
    }

    .payment-amount {
        padding: 16px;
    }
}


/* =========================================
   FINAL TREE ORNAMENT DISPLAY OVERRIDES
   ========================================= */

/* The tree image already contains its own star. */
.holiday-tree .tree-star {
    display: none;
}

/* All donation ornaments share one consistent size. */
.holiday-tree .tree-ornament {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;

    border: 2px solid #fff3d4;
    border-radius: 50%;

    transform: translate(-50%, -50%);

    z-index: 5;
}

/* Keep the hanging cap proportional. */
.holiday-tree .tree-ornament::before {
    top: -5px;
    width: 7px;
    height: 5px;
}

/* Keep the decorative highlight proportional. */
.holiday-tree .tree-ornament span {
    width: 6px;
    height: 6px;
}

/* Slightly smaller ornaments on narrow screens,
   but still identical to each other. */
@media (max-width: 650px) {
    .holiday-tree .tree-ornament {
        width: 18px;
        height: 18px;
        min-width: 18px;
        min-height: 18px;
    }
}

/* =========================================
   ELF-SHUFFLED, SEARCHABLE WISHES
========================================= */

.wishes-search {
    max-width: 560px;
    margin: 0 auto 35px;
    text-align: center;
}

.wishes-search label {
    display: block;
    margin-bottom: 10px;
    color: #fff9ed;
    font-family: Georgia, serif;
    font-size: 1.3rem;
}

.wishes-search input {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    border: 1px solid #e9c77c;
    border-radius: 12px;
    background: #fffdf8;
    color: #26382f;
    font: inherit;
}

.wishes-search input:focus {
    outline: 3px solid #e9c77c80;
    outline-offset: 3px;
}

#wish-count {
    margin: 10px 0 0;
    color: #e9e2d3;
    font-size: .85rem;
}






#no-wishes-found {
    max-width: 520px;
    margin: 30px auto;
    color: #fff9ed;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 1.15rem;
}


/* =========================================
   COMPACT CHRISTMAS WISH CARDS
========================================= */

.ornament-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 1250px;
}






/* Responsive layout */

@media (max-width: 1000px) {
    .ornament-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .ornament-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }


}

@media (max-width: 360px) {
    .ornament-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   CHRISTMAS WISH ORNAMENT GALLERY
========================================= */

.ornament-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    max-width: 1050px;
    margin: 0 auto;
}

.ornament-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 105px;
    padding: 12px 7px;
    border: 1px solid #d9cba9;
    border-radius: 13px;
    background: linear-gradient(145deg, #fffdf8, #f5edda);
    box-shadow: 0 4px 12px #061b1220;
    text-align: center;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.ornament-tile:hover,
.ornament-tile:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px #061b1240;
    outline: 2px solid #e9c77c;
    outline-offset: 2px;
}

.ornament-tile .ornament-icon {
    font-size: 1.35rem;
    line-height: 1.3;
}

.tile-name {
    max-width: 100%;
    margin-top: 5px;
    color: #174532;
    font-size: .8rem;
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.tile-dedication {
    margin-top: 3px;
    color: #a94049;
    font-size: .59rem;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 900px) {
    .ornament-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ornament-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .ornament-tile {
        min-height: 95px;
        padding: 9px 5px;
    }
}

@media (max-width: 350px) {
    .ornament-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================
   COMPACT CHRISTMAS WISH TILES
========================================= */

.ornament-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
    gap: 10px;
    max-width: 1150px;
    margin: 0 auto;
}

.ornament-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    min-height: 52px;
    padding: 8px 10px;

    border: 1px solid #e9dcbf;
    border-radius: 12px;

    background: linear-gradient(145deg, #fffdf8, #f5ecd9);
    color: #174532;

    box-shadow: 0 3px 10px #061b1220;

    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.ornament-tile:hover,
.ornament-tile:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 7px 16px #061b1240;
}

.ornament-tile[hidden] {
    display: none !important;
}

.ornament-tile .ornament-icon {
    flex: 0 0 auto;
    margin: 0;
    font-size: 1.1rem;
}

.tile-name {
    overflow: hidden;
    color: #174532;
    font-size: .85rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wishes-search {
    max-width: 500px;
    margin: 0 auto 30px;
}

.wishes-search label {
    display: block;
    margin-bottom: 8px;
    color: #fff9ed;
    font-weight: 700;
}

.wishes-search input {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #e9dcbf;
    border-radius: 10px;
    background: #fffdf8;
    font: inherit;
}

#wish-count,
#no-wishes-found {
    color: #f4eddf;
    text-align: center;
}

.load-more-wrap {
    margin-top: 28px;
    text-align: center;
}

.load-more-wrap[hidden] {
    display: none !important;
}

.load-more-button {
    padding: 10px 22px;
    border: 1px solid #e9c77c;
    border-radius: 999px;
    background: transparent;
    color: #f6d995;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.load-more-button:hover {
    background: #ffffff18;
}

@media (max-width: 480px) {
    .ornament-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .ornament-tile {
        min-height: 46px;
        padding: 6px;
        gap: 5px;
    }

    .tile-name {
        font-size: .78rem;
    }
}



/* =========================================
   MAGICAL CHRISTMAS TWINKLING LIGHTS
========================================= */

.holiday-tree .starter-light {
    position: absolute;
    z-index: 6;

    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: #fff5c7;

    box-shadow:
        0 0 5px 2px #ffe7a0,
        0 0 12px 5px #ffd76b,
        0 0 23px 8px #f5c65c88;

    pointer-events: none;

    animation:
        magical-twinkle 2.4s ease-in-out infinite alternate;

    animation-delay: var(--twinkle-delay, 0s);
}

/* Little star-shaped flashes */

.holiday-tree .starter-light::after {
    content: "✦";

    position: absolute;
    top: 50%;
    left: 50%;

    color: #fff9df;
    font-size: 15px;

    text-shadow:
        0 0 5px #fff2b8,
        0 0 12px #f5cf75;

    opacity: 0;

    transform: translate(-50%, -50%) scale(.3);

    animation:
        magical-star-flash 3.8s ease-in-out infinite;

    animation-delay: calc(var(--twinkle-delay, 0s) + 1s);
}

/* Main light glow */

@keyframes magical-twinkle {

    0% {
        opacity: .45;
        transform: scale(.75);

        box-shadow:
            0 0 3px 1px #ffe7a055,
            0 0 8px 3px #ffd76b44;
    }

    50% {
        opacity: 1;
        transform: scale(1.35);

        box-shadow:
            0 0 7px 3px #fff0b5,
            0 0 17px 7px #ffd76bcc,
            0 0 29px 10px #f5c65c66;
    }

    100% {
        opacity: .65;
        transform: scale(.9);

        box-shadow:
            0 0 5px 2px #ffe7a0,
            0 0 12px 5px #ffd76b88;
    }
}

/* Occasional sparkling star */

@keyframes magical-star-flash {

    0%, 65%, 100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.3) rotate(0deg);
    }

    75% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.5) rotate(35deg);
    }

    85% {
        opacity: .7;
        transform: translate(-50%, -50%) scale(.8) rotate(70deg);
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {

    .holiday-tree .starter-light,
    .holiday-tree .starter-light::after {
        animation: none;
    }

    .holiday-tree .starter-light {
        opacity: .85;
    }
}

/* =========================================
  ORNAMENT HIGHLIGHT
========================================= */

.tree-ornament.newly-added {
    z-index: 20;
    animation: newTreeSparkle 1.6s ease-in-out infinite;
}

.ornament-tile.newly-added {
    animation: newCardSparkle 1.8s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes newTreeSparkle {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
        box-shadow: 0 0 5px rgba(255, 215, 120, 0.5);
    }

    50% {
        transform: scale(1.65);
        filter: brightness(1.8);
        box-shadow:
            0 0 12px #fff1b8,
            0 0 25px #ffd76a,
            0 0 40px rgba(255, 215, 120, 0.8);
    }
}

@keyframes newCardSparkle {
    0%, 100% {
        box-shadow: 0 0 5px rgba(255, 215, 120, 0.3);
    }

    50% {
        box-shadow:
            0 0 12px #fff1b8,
            0 0 25px #ffd76a,
            0 0 35px rgba(255, 215, 120, 0.65);
    }
}
@media (prefers-reduced-motion: reduce) {
    .tree-ornament.newly-added,
    .ornament-tile.newly-added {
        animation: none;
        outline: 2px solid #ffd76a;
    }
}



/* =========================================
  PAYMENT PUPS SUBMIT AND PAYMENT RETURN
========================================= */
.payment-pup {
    text-align: center;
    margin: 0 auto 12px;
}

.payment-pup img {
    width: 100%;
    max-width: 45%;
    height: auto;
    display: inline-block;
    object-fit: contain;
}