/* Explain: Custom CSS classes for decorative elements and animations. */
/* Ornamental divider: line — icon — line */
.ornament-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--accent-color);
}

.ornament-divider::before,
.ornament-divider::after {
    content: '';
    height: 1px;
    width: 4rem;
    background: linear-gradient(to right, transparent, var(--accent-color));
}

.ornament-divider::after {
    background: linear-gradient(to left, transparent, var(--accent-color));
}

/* Classic inset double frame */
.classic-frame {
    position: relative;
}

.classic-frame::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid var(--border-color);
    border-radius: inherit;
    pointer-events: none;
}

/* Soft champagne paper texture for sections */
.paper-bg {
    background-color: var(--surface-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(234, 219, 196, 0.35) 0, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(169, 188, 205, 0.25) 0, transparent 45%);
}

/* Classic form fields */
.field-classic {
    background: var(--background-color);
    border-color: var(--border-color);
    font-family: var(--font-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.field-classic:focus,
.field-classic:focus-within {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(95, 122, 148, 0.15);
}

/* Invitation card with double hairline frame (hero) */
.invitation-frame {
    position: relative;
}

.invitation-frame::before,
.invitation-frame::after {
    content: '';
    position: absolute;
    border-radius: inherit;
    pointer-events: none;
}

.invitation-frame::before {
    inset: 12px;
    border: 1px solid var(--accent-color);
    opacity: 0.6;
}

.invitation-frame::after {
    inset: 18px;
    border: 1px solid var(--border-color);
}

/* Gentle entrance for the hero card */
@keyframes heroReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-reveal {
    animation: heroReveal 1s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .hero-reveal {
        animation: none;
    }
}

/* Dynamic guest rows in the RSVP form */
.guest-entry {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px dashed var(--border-color);
    border-radius: 1rem;
    background: var(--background-color);
}

.guest-entry .guest-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .guest-entry--multi {
        grid-template-columns: 1fr 1fr;
    }
}