/*
    Enchanted Garden Shop
    css/donate.css
    Donate page-specific overrides.

    shared.css is loaded first on every page and defines the full design
    system (colors, type, spacing, buttons, cards, forms, header/footer),
    including the .need-gauge progress bar. Only page-specific
    adjustments belong here.
*/

.page-header.photo-header {
    position: relative;
    background-image:
        linear-gradient(
            180deg,
            rgba(10, 14, 8, 0.35) 0%,
            rgba(10, 14, 8, 0.55) 40%,
            rgba(10, 14, 8, 0.55) 100%
        ),
        url("/images/class-signup.webp");
    background-size: cover;
    background-position: center 42%;
    padding: 72px 24px 60px;
}

.page-header.photo-header h1,
.page-header.photo-header p {
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.9), 0 2px 6px rgba(0, 0, 0, 0.8), 0 4px 20px rgba(0, 0, 0, 0.6);
}

.give-jump {
    position: relative;
    z-index: 1;
    margin-top: var(--space-md);
    font-size: 15px;
    padding: 14px 34px;
}

.give-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: var(--space-lg);
    align-items: start;
}

.give-layout.no-need {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
}

.featured-need {
    background: var(--panel);
    border-radius: var(--radius-lg);
    border-bottom: 4px solid var(--gold);
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(53, 71, 44, 0.12);
}

.featured-need.is-loading {
    min-height: 440px;
}

.featured-need.is-loading > * {
    visibility: hidden;
}

.featured-need[hidden] {
    display: none;
}

.featured-need-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--forest-deep);
}

.featured-need-photo[hidden] {
    display: none;
}

.featured-need-body {
    padding: 28px 30px 30px;
}

.section .featured-need h2 {
    font-style: normal;
    font-weight: 600;
    font-size: 26px;
    margin-bottom: 12px;
}

.featured-need-blurb {
    font-size: 16px;
    margin-bottom: var(--space-md);
}

.featured-need-story {
    margin-top: var(--space-md);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(53, 71, 44, 0.2);
}

.featured-need-story[hidden] {
    display: none;
}

.give-where {
    border: none;
    margin: 0 0 var(--space-md);
    padding: 0;
    min-width: 0;
}

.give-where legend {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 8px;
    padding: 0;
}

.give-where[hidden] {
    display: none;
}

.give-where-option {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(53, 71, 44, 0.3);
    border-radius: var(--radius-md);
    cursor: pointer;
}

.give-where-option:has(input:checked) {
    border-color: var(--moss-deep);
    background: var(--cream);
}

.give-where-option input {
    margin-top: 4px;
    flex: none;
}

.give-where-title {
    display: block;
    font-weight: 600;
}

.give-where-note {
    display: block;
    font-size: 14px;
    color: var(--moss-deep);
}

.give-where-fine {
    margin-top: 10px;
    font-size: 13px;
    color: var(--moss-deep);
}

.need-card-gauge {
    margin: 14px 0;
}

.need-card-give {
    margin: 0 0 var(--space-sm);
}

.read-more > summary {
    display: inline-block;
    cursor: pointer;
    list-style: none;
    color: var(--ruby);
    font-family: var(--font-label);
    font-size: 14px;
    text-decoration: underline;
    margin-top: var(--space-sm);
}

.featured-need-story > summary {
    margin-top: 0;
}

.read-more > summary::-webkit-details-marker {
    display: none;
}

.read-more > summary .less,
.read-more[open] > summary .more {
    display: none;
}

.read-more[open] > summary .less {
    display: inline;
}

.read-more-body {
    margin-top: var(--space-sm);
}

.read-more-body p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: var(--space-sm);
    white-space: pre-line;
}

.read-more-body p:last-child {
    margin-bottom: 0;
}

.need-card {
    padding: 0;
    overflow: hidden;
    align-self: start;
}

.need-card-photo {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--forest-deep);
}

.need-card-body {
    padding: 28px 24px 30px;
}

.featured-need-video {
    margin-top: var(--space-md);
}

.featured-need-video[hidden] {
    display: none;
}

.featured-need-video-label {
    font-family: var(--font-label);
    font-size: 16px;
    color: var(--forest-deep);
    margin-bottom: 10px;
}

.featured-need-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--forest-deep);
}

.featured-need-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-play {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--forest-deep);
    color: var(--cream);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
}

.video-play:hover {
    background: var(--moss-deep);
}

.video-play:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -8px;
}

.video-play-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play-text {
    position: relative;
    padding: 6px 16px;
    border-radius: 999px;
    background: rgba(53, 71, 44, 0.85);
}

.need-card-video {
    margin: 14px 0;
}

.featured-need-video-more {
    font-size: 15px;
    margin-top: 10px;
}

.video-play-icon {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: var(--gold);
}

.video-play-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-35%, -50%);
    border-style: solid;
    border-width: 13px 0 13px 21px;
    border-color: transparent transparent transparent var(--forest-deep);
}

.featured-need-note {
    font-size: 14px;
    color: var(--moss-deep);
    margin-top: var(--space-sm);
}

.give-panel .form-shell {
    margin: 0;
    max-width: none;
    box-shadow: 0 10px 22px rgba(53, 71, 44, 0.12);
    border-bottom: 4px solid var(--gold);
}

.section .give-heading,
.section .give-thanks h2 {
    font-style: normal;
    font-weight: 600;
    font-size: 26px;
    margin-bottom: var(--space-sm);
}

.give-amounts {
    border: none;
    margin: 0 0 var(--space-sm);
    padding: 0;
    min-width: 0;
}

.give-amounts legend {
    font-size: 15px;
    line-height: 1.6;
    color: var(--ink);
    margin-bottom: 14px;
    padding: 0;
}

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

.give-amount {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    border: 2px solid var(--moss-deep);
    border-radius: var(--radius-md);
    background: var(--cream);
    font-family: var(--font-label);
    font-size: 18px;
    color: var(--forest-deep);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.give-amount input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
}

.give-amount:hover {
    background: var(--gold-light);
}

.give-amount:has(input:checked) {
    background: var(--forest-deep);
    border-color: var(--forest-deep);
    color: var(--cream);
}

.give-amount:has(input:focus-visible) {
    outline: 3px solid var(--ruby);
    outline-offset: 2px;
}

.give-other-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--moss-deep);
    border-radius: var(--radius-sm);
    background: var(--cream);
}

.give-other-input span {
    padding: 0 2px 0 14px;
    font-size: 17px;
    color: var(--forest-deep);
}

.form-field .give-other-input input {
    border: none;
    background: transparent;
    padding-left: 4px;
    font-size: 17px;
}

.give-other-input:focus-within {
    outline: 3px solid var(--ruby);
    outline-offset: 2px;
}

.form-field .give-other-input input:focus-visible {
    outline: none;
}

.form-field.has-error .give-other-input {
    border-color: var(--ruby);
}

.give-summary {
    font-family: var(--font-label);
    font-size: 15px;
    color: var(--forest-deep);
    margin-bottom: var(--space-sm);
}

.give-turnstile {
    margin-bottom: var(--space-sm);
}

.give-turnstile[hidden] {
    display: none;
}

.give-paypal {
    min-height: 48px;
}

.give-loading {
    font-size: 14px;
    color: var(--moss-deep);
    text-align: center;
    padding: 12px 0;
}

.give-panel .form-status {
    margin: var(--space-sm) 0 0;
}

.form-status.info {
    display: block;
    background: var(--cream);
    color: var(--forest-deep);
    border: 1px solid var(--moss);
}

.give-secure {
    font-size: 13px;
    color: var(--moss-deep);
    text-align: center;
    margin-top: var(--space-sm);
}

.give-unavailable {
    font-size: 15px;
}

.give-thanks-note {
    margin-top: var(--space-sm);
    color: var(--moss-deep);
}

.give-noscript {
    margin-top: var(--space-md);
}

.up-next-intro {
    max-width: 640px;
    margin: -24px auto var(--space-lg);
}

.need-card .pill {
    color: var(--ruby);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto;
}

.trust-item {
    background: var(--panel);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gold);
    padding: 24px 26px;
}

.trust-item h3 {
    font-family: var(--font-label);
    font-size: 17px;
    margin-bottom: 8px;
}

.trust-item p {
    font-size: 15px;
}

.other-ways {
    max-width: 720px;
    margin: var(--space-lg) auto 0;
    text-align: center;
}

.other-ways h3 {
    font-family: var(--font-label);
    font-size: 17px;
    margin-bottom: 8px;
}

.faq-item + .faq-item {
    margin-top: var(--space-md);
}

@media (max-width: 780px) {
    .give-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--space-md);
    }

    .featured-need-photo {
        max-height: 220px;
    }

    .featured-need-body {
        padding: 22px 20px 24px;
    }

    .section .featured-need h2,
    .section .give-heading,
    .section .give-thanks h2 {
        font-size: 23px;
    }

    .trust-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

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