/* Theme overrides — primary color is injected by template7-bridge */

:root {
    --iw-primary: #F5C0D4;
}

/* style.css styles #quote::before as a dark scrim but never sets content, and the
   scrim would stack above the in-flow quote, so it also needs to be pushed under it. */
#quote::before {
    content: "";
    z-index: 0;
}

#quote > div {
    position: relative;
    z-index: 1;
}

#quote blockquote h2,
#video .top-area h2,
#video .top-area p {
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

/* The event cards are designed around landscape photos; portrait sources would
   otherwise leave the two columns at wildly different heights. */
#event .img-event img {
    width: 100%;
    height: 360px;
    object-fit: cover;
}

#snow-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -20px;
    color: rgba(255, 255, 255, 0.8);
    animation: snow-fall linear infinite;
}

@keyframes snow-fall {
    to {
        transform: translateY(100vh) rotate(360deg);
    }
}

.music-toggle {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9990;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--iw-primary, #F5C0D4);
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
}

.music-toggle.playing {
    animation: pulse-music 1.5s ease infinite;
}

@keyframes pulse-music {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.form-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10050;
    display: none;
}

.form-modal-backdrop.show {
    display: block;
}

.form-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10060;
    width: min(90vw, 720px);
    max-height: 90vh;
    background: #fff;
    display: none;
    flex-direction: column;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.form-modal.show {
    display: flex;
}

.form-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
}

.form-modal-body {
    flex: 1;
    overflow: auto;
}

.form-modal-close {
    background: none;
    border: none;
    font-size: 3.5rem;
    cursor: pointer;
    line-height: 1;
}

.copy-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #198754;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 4px;
    z-index: 10070;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
