/* Progress Bar */
#progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    z-index: 100;
    backdrop-filter: blur(2px);
}

#progress-bar {
    height: 100%;
    background: var(--c-ink);
    width: 0%;
    transition: width 0.1s linear;
}

/* Opening Hero & CTA */
.opening-hero {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 200px 200px 0 0;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    filter: sepia(0.2);
}

.opening-cta {
    margin-top: 3rem;
    background: transparent;
    border: 1px solid var(--c-ink);
    padding: 0.8rem 2rem;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.opening-cta:hover {
    background: var(--c-ink);
    color: #fff;
}

/* RSVP Details */
.rsvp-details {
    margin: 2rem 0;
    padding: 2rem;
    background: #fff;
    border: 1px solid #eee;
    display: inline-block;
    width: 100%;
    max-width: 500px;
}

/* Scroll Hint */
.scroll-hint {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
    font-family: var(--f-serif);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

@keyframes float {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* Chapter Image */
.chapter-image-container {
    position: relative;
    margin: 3rem auto;
    max-width: 600px;
}

.chapter-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 8px solid #fff;
}

.chapter-image-container::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--c-ink);
    opacity: 0.1;
    z-index: -1;
    transform: rotate(-1deg);
}

.chapter-image-container::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 1px solid var(--c-accent);
    opacity: 0.3;
    z-index: -1;
    transform: rotate(1deg);
}

/* Wishes Wall Cards */
.wish-card {
    background: #fff;
    padding: 2rem;
    width: 280px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
    text-align: left;
    position: relative;
    transform: rotate(var(--r, 0deg));
    transition: transform 0.3s;
}

.wish-card:hover {
    transform: scale(1.05) rotate(0deg) !important;
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.wish-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 25px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wish-message {
    font-family: var(--f-hand);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #444;
    line-height: 1.4;
}

.wish-author {
    font-size: 0.9rem;
    color: var(--c-accent);
    font-family: var(--f-serif);
    text-align: right;
    font-style: italic;
}

/* Forms */
input,
textarea,
select {
    width: 100%;
    padding: 1rem 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-family: var(--f-serif);
    font-size: 1.1rem;
    transition: border-color 0.3s;
    border-radius: 0;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--c-ink);
}

button {
    margin-top: 1rem;
    padding: 1rem 3rem;
    background: transparent;
    color: var(--c-ink);
    border: 1px solid var(--c-ink);
    font-family: var(--f-serif);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    align-self: center;
}

button:hover {
    background: var(--c-ink);
    color: #fff;
}

/* Toast */
#toast {
    visibility: hidden;
    min-width: 300px;
    background-color: #fff;
    color: var(--c-ink);
    text-align: center;
    border: 1px solid var(--c-ink);
    padding: 20px;
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-family: var(--f-serif);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}