/* Wedding palette - CSS variables */
:root {
    --palm-leaf: #8e9673;
    --ebony: #545c56;
    --palm-leaf-2: #9c9876;
    --ash-grey: #bfbeb0;
    --hunter-green: #4a6648;
    /* Convenience: light text on dark greens */
    --text-on-dark: #f6f5ee;
}

html, body {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

a, .btn-link {
    color: var(--palm-leaf);
    text-decoration: none;
}

a:hover {
    color: var(--ebony);
    text-decoration: none;
}

.btn-primary {
    color: var(--text-on-dark);
    background-color: var(--palm-leaf);
    border-color: var(--palm-leaf);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--palm-leaf);
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Wedding Website Styles */
.ephesis-regular {
    font-family: "Ephesis", cursive;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.06em;
}

.eb-garamond-regular {
    font-family: "EB Garamond", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.06em;
}

.hero-section {
    width: 100%;
    position: relative;
    margin-bottom: 0;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.hero-image-container.hero-single-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('/images/engagement_hero.jpg');
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.05);
}

.hero-single-image .hero-image {
    height: 100%;
    width: auto;
    display: block;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-image-container .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none !important;
    z-index: 10;
    touch-action: none;
}

.hero-image-container .hero-overlay * {
    pointer-events: none !important;
}

.scrolling-slideshow {
    height: 100%;
    width: 100%;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.slideshow-track {
    display: flex;
    height: 100%;
    width: fit-content;
    will-change: transform;
    gap: 0;
}

.slideshow-track.animate {
    animation: scrollSlideshow 30s linear infinite;
}

@keyframes scrollSlideshow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-1 * var(--set-width, 300vw)));
    }
}

.slideshow-image-wrapper {
    height: 100%;
    width: auto;
    flex-shrink: 0;
    display: inline-block;
    position: relative;
    overflow: hidden;
    background-color: #000;
    margin: 0;
    padding: 0;
    vertical-align: top;
}

.slideshow-image {
    height: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: center;
    z-index: 2;
}

.hero-content {
    text-align: center;
    padding: calc(2rem + 50px) 2rem;
    color: white;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-subtitle {
    font-family: 'Italianno', cursive;
    font-size: 2.7rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    transform: translateY(50px);
}

.hero-names {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    transform: translateY(120px);
}

.hero-name {
    font-family: 'Tangerine', cursive;
    font-size: 8rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: -0.05em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.hero-name.eb-garamond-regular {
    font-family: "Times New Roman", Times, serif;
    font-optical-sizing: auto;
    letter-spacing: -0.02em;
    transform: scaleY(1.15);
}

.alex-brush-regular {
    font-family: "Alex Brush", cursive;
    font-weight: 400;
    font-style: normal;
}

.hero-name.alex-brush-regular {
    font-family: "Alex Brush", cursive;
    letter-spacing: -0.02em;
    transform: scaleY(1.15);
}

.hero-name.italianno-regular {
    font-family: "Italianno", cursive;
    letter-spacing: 0.04em;
    transform: scaleY(1.15);
}

.hero-connector {
    font-family: "Times New Roman", Times, serif;
    font-size: 0.85rem;
    font-weight: 100;
    font-style: italic;
    color: var(--text-on-dark);
    text-transform: uppercase;
    letter-spacing: 0.144em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-left: 0.75rem;
}

.hero-location-date {
    font-family: "Times New Roman", Times, serif;
    font-size: 1.35rem;
    font-weight: 100;
    font-style: italic;
    color: #ffffff;
    letter-spacing: -0.05em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 1rem;
    transform: translateY(90px);
}

.hero-title {
    font-size: 5.25rem;
    font-weight: 300;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
    font-family: 'Carattere', cursive;
}

/* Responsive Hero Title */
@media (max-width: 768px) {
    .hero-content {
        /* Reserve space for sticky nav so title doesn't overlap on short viewports */
        padding-bottom: 5rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
        transform: translateY(25px);
    }
    
    .hero-name {
        font-size: 4rem;
    }
    
    .hero-connector {
        font-size: 0.65rem;
    }
    
    .hero-location-date {
        font-size: 0.9rem;
        transform: translateY(40px);
    }
    
    .hero-names {
        gap: 0.8rem;
        transform: translateY(80px);
    }
}

/* Wedding Schedule Section */
#wedding-details .section-content {
    position: relative;
    max-width: 560px;
    padding: 2.5rem 2rem;
    margin: 1.6rem auto;
    box-sizing: border-box;
    overflow: visible;
}

#wedding-details .wedding-details-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    margin: 0 auto;
    /* Vertical and horizontal padding grow as viewport narrows (vertical at double the rate) */
    padding-top: min(140px, max(80px, 250px - 16vw));
    padding-bottom: min(140px, max(80px, 250px - 16vw));
    padding-left: min(140px, max(100px, 170px - 8vw));
    padding-right: min(140px, max(100px, 170px - 8vw));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

#wedding-details .wedding-details-content::before {
    /* Hide the previous stretched background image behind this section */
    content: none;
}

.wedding-schedule-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

#wedding-details .wedding-details-title {
    font-family: 'Charm', cursive;
    font-size: clamp(1.75rem, 5.5vw, 3.25rem);
    font-weight: 400;
    color: var(--ebony);
    margin: 0 0 1.25rem 0;
    letter-spacing: -0.02em;
    text-align: center;
}

#wedding-details .wedding-details-subcard {
    border: 2px solid rgba(142, 150, 115, 0.7);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    background: transparent;
    width: 100%;
    max-width: 340px;
    margin: 0 auto 0.25rem auto;
}

#wedding-details .wedding-details-subcard:last-child {
    margin-bottom: 0;
}

#wedding-details .wedding-details-subcard-title {
    font-family: 'Charm', cursive;
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--ebony);
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.02em;
    text-align: center;
}

#wedding-details .wedding-details-subcard-text {
    font-family: "DM Serif Text", serif;
    font-size: 1.25rem;
    color: var(--ebony);
    margin: 0;
    text-align: center;
    line-height: 1.6;
}

#wedding-details .schedule-card .wedding-details-subcard-text {
    text-align: left;
}

#wedding-details .schedule-card .schedule-header {
    margin-bottom: 0.75rem;
}

#wedding-details .schedule-card .schedule-items {
    margin: 0 auto;
}

.schedule-image-container {
    width: 100%;
    max-width: 240px;
    height: 300px;
    overflow: hidden;
    border: 3px solid var(--palm-leaf);
    border-radius: 12px;
    margin-bottom: 0.8rem;
}

.schedule-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.schedule-header {
    text-align: center;
    margin-bottom: 0.8rem;
}

#wedding-details .schedule-header {
    margin-bottom: 0.75rem;
}

#wedding-details .schedule-items {
    gap: 0.75rem;
}

.schedule-title {
    font-family: 'Charm', cursive;
    font-size: 2rem;
    color: var(--palm-leaf);
    line-height: 1;
    letter-spacing: -0.05em;
    margin: 0;
    font-weight: 400;
    font-style: normal;
}

.schedule-subtitle {
    font-family: 'Charm', cursive;
    font-size: 2rem;
    color: var(--palm-leaf);
    line-height: 1;
    letter-spacing: -0.05em;
    margin: 0.2rem 0 0 0;
    font-weight: 400;
    font-style: italic;
}

.schedule-items {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
}

.schedule-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.schedule-time {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.75rem;
    color: var(--palm-leaf);
    line-height: 1.1;
    letter-spacing: -0.04em;
    font-weight: 400;
    font-style: normal;
    min-width: 90px;
    text-align: left;
}

.schedule-event {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.75rem;
    color: var(--palm-leaf);
    line-height: 1.1;
    letter-spacing: -0.05em;
    font-weight: 400;
    font-style: italic;
    text-align: left;
    flex: 1;
}

@media (max-width: 768px) {
    #wedding-details .section-content {
        padding: 0.8rem 0.25rem;
        margin: 0.8rem auto;
        align-items: flex-start;
        max-width: 100%;
    }

    #wedding-details .wedding-details-content {
        align-self: flex-start;
        width: 100%;
        max-width: 100%;
        padding-top: 2.25rem;
        padding-bottom: 2.25rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #wedding-details .wedding-details-subcard {
        max-width: none;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #wedding-details .schedule-items,
    #wedding-details .schedule-card .schedule-items {
        max-width: none;
        width: 100%;
    }

    #wedding-details .wedding-details-content::before {
        top: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%) scale(1.056);
        width: 127.5%;
        height: auto;
        aspect-ratio: auto;
    }

    .schedule-image-container {
        height: 160px;
        max-width: 240px;
        border-width: 2px;
    }
    
    .schedule-title,
    .schedule-subtitle {
        font-size: 1.2rem;
    }
    
    .schedule-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
    
    .schedule-time,
    .schedule-event {
        font-size: 0.8rem;
        min-width: auto;
    }
}

/* Sticky Navigation Bar - overlays bottom of hero, then sticks with solid style */
.sticky-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: transparent;
    padding: 2rem 0 1rem 0;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0;
}

.sticky-nav .nav-link {
    color: #ffffff;
    font-family: "DM Serif Text", serif;
}

.sticky-nav .nav-link:hover {
    color: var(--text-on-dark);
    background-color: rgba(255, 255, 255, 0.15);
}

.sticky-nav.sticky {
    position: fixed;
    top: 0;
    bottom: auto;
    left: 0;
    right: 0;
    background-color: var(--ash-grey);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sticky-nav.sticky .nav-link {
    color: var(--palm-leaf);
    font-family: "DM Serif Text", serif;
}

.sticky-nav.sticky .nav-link:hover {
    background-color: rgba(142, 150, 115, 0.3);
    color: var(--palm-leaf);
}

.nav-container {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    margin: 0;
    padding: 0 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

/* Nav scroll arrows - shown on small screens when nav overflows */
.nav-arrow {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
    z-index: 1;
}

.sticky-nav.sticky .nav-arrow {
    background-color: rgba(142, 150, 115, 0.3);
    color: var(--palm-leaf);
}

.nav-arrow:hover,
.nav-arrow:focus {
    background-color: rgba(255, 255, 255, 0.35);
    outline: none;
}

.sticky-nav.sticky .nav-arrow:hover,
.sticky-nav.sticky .nav-arrow:focus {
    background-color: rgba(142, 150, 115, 0.5);
}

.nav-arrow.nav-arrow-visible {
    display: flex;
}


.nav-link {
    color: var(--palm-leaf);
    text-decoration: none;
    font-weight: 500;
    font-family: "DM Serif Text", serif;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-link:hover {
    background-color: rgba(155, 152, 127, 0.2);
    color: var(--palm-leaf);
}

/* Our Love Story - after hero, before countdown */
.section-our-story {
    min-height: auto;
    padding: 4rem 2rem;
    background-color: var(--ash-grey);
    position: relative;
}

.section-our-story::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 340%;
    height: 340%;
    transform: translate(-50%, -50%) rotate(45deg);
    background-image: url('/images/tilable_background.jpg');
    background-repeat: repeat;
    /* Fixed size so the image tiles at 1.5× scale (adjust if your tile dimensions differ) */
    background-size: 600px 600px;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.section-our-story .our-story-content {
    position: relative;
    z-index: 1;
}

.our-story-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.our-story-title {
    font-family: 'Charm', cursive;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400;
    color: var(--palm-leaf);
    margin: 0 0 3rem 0;
    letter-spacing: -0.02em;
}

.our-story-subtitle {
    font-family: 'Charm', cursive;
    font-size: 1.75rem;
    font-weight: 400;
    font-style: italic;
    color: var(--palm-leaf);
    margin: 0 0 1.25rem 0;
}

.our-story-block {
    margin-bottom: 3rem;
    text-align: left;
}

.our-story-block:last-child {
    margin-bottom: 0;
}

.our-story-text {
    font-family: "DM Serif Text", serif;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--ebony);
    margin: 0 0 1rem 0;
}

.our-story-text:last-child {
    margin-bottom: 0;
}

/* Page Sections */
.page-sections {
    width: 100%;
}

.page-section {
    width: 100%;
    padding: 0;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-with-bg-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
}

.section-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.section-solid-color {
    border: none;
}

/* Flat background (was striped) */
.section-sage-bars {
    background: var(--palm-leaf-2) !important;
}

/* Green section with corner flowers (top-left upside-down, bottom-right) and slight yellowing */
.section-flower-corners {
    position: relative;
    overflow: hidden;
}

.section-flower-corners::before,
.section-flower-corners::after {
    content: '';
    position: absolute;
    width: min(69.3vw, 792px);
    height: min(69.3vw, 792px);
    background-image: url('/images/flower_width_1570.webp');
    background-size: contain;
    background-repeat: no-repeat;
    filter: sepia(0.55);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.section-flower-corners::before {
    top: 0;
    left: 0;
    margin-top: min(-6.93vw, -79.2px);
    margin-left: min(-6.93vw, -79.2px);
    background-position: top left;
    transform: rotate(190deg) scaleY(1.3);
}

.section-flower-corners::after {
    bottom: 0;
    right: 0;
    margin-bottom: min(-6.93vw, -79.2px);
    margin-right: min(-6.93vw, -79.2px);
    background-position: bottom right;
    transform: rotate(10deg) scaleY(1.3);
}

.section-flower-corners .section-content {
    position: relative;
    z-index: 2;
}

/* Wedding details section - slideshow background */
.section-with-slideshow {
    position: relative;
    min-height: 70vh;
    padding: 0;
}

.wedding-details-slideshow-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.slideshow-title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 94%;
    padding: 0 2%;
    z-index: 2;
    pointer-events: none;
    font-family: 'Charm', cursive;
    font-size: clamp(0.875rem, 3.2vw, 3.5rem);
    font-weight: 400;
    color: #ffffff;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 0, 0, 0.4);
}

.section-with-slideshow .wedding-details-slideshow-wrapper .scrolling-slideshow {
    height: 100%;
    width: 100%;
}

.section-with-slideshow .section-content {
    position: relative;
    z-index: 2;
}

.section-light-green {
    background-color: var(--ash-grey); /* Elegant beige/cream */
}

.section-sage {
    background-color: var(--ash-grey);
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    padding: 4rem 2rem;
    width: 100%;
}

.section-with-image-left {
    flex-direction: row;
}

.section-with-image-left .section-side-image {
    order: 1;
}

.section-with-image-left .category-content {
    order: 2;
}

.section-with-image-right {
    flex-direction: row;
}

.section-with-image-right .category-content {
    order: 1;
}

.section-with-image-right .section-side-image {
    order: 2;
}

.section-text-only {
    justify-content: center;
}

/* Unique Section Containers */
.category-content {
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: none;
    border: 3px solid rgba(142, 150, 115, 0.9);
    position: relative;
    max-width: 50%;
    margin: 0 auto;
    background-color: var(--ash-grey);
}

/* Full-screen background image sections */
.section-with-bg-image .category-content {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.section-with-bg-image .category-content h2,
.section-with-bg-image .category-content h3 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

.section-with-bg-image .category-content p {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}

.section-with-bg-image .category-content a {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    text-decoration: underline;
}

.section-with-bg-image .category-content a:hover {
    color: #f0f0f0;
}

.section-with-bg-image .wedding-info,
.section-with-bg-image .address-info,
.section-with-bg-image .contact-info,
.section-with-bg-image .accommodation-info,
.section-with-bg-image .transportation-info,
.section-with-bg-image .faq-item,
.section-with-bg-image .rsvp-instructions {
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.section-with-bg-image .wedding-info p,
.section-with-bg-image .address-info p,
.section-with-bg-image .contact-info p,
.section-with-bg-image .accommodation-info p,
.section-with-bg-image .transportation-info p,
.section-with-bg-image .faq-item p {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.5);
}

.section-with-bg-image .wedding-info h3,
.section-with-bg-image .address-info h3,
.section-with-bg-image .contact-info h3,
.section-with-bg-image .accommodation-info h3,
.section-with-bg-image .transportation-info h3,
.section-with-bg-image .faq-item h3 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Solid color sections */
.section-solid-color .category-content {
    background-color: var(--ash-grey);
    border: 3px solid rgba(142, 150, 115, 0.9);
}

/* RSVP Section - Decorative border */
#rsvp .category-content {
    border: none;
    background: transparent;
    box-shadow: none;
}

/* Contact Section - Green + flowers, invisible card, white text */
#contact {
    background-color: var(--palm-leaf);
}

#contact .category-content {
    border: none;
    background: transparent;
    box-shadow: none;
    position: relative;
    text-align: center;
}

#contact .category-content::before {
    display: none;
}

#contact .category-content h2,
#contact .category-content h3,
#contact .category-content p {
    color: var(--text-on-dark);
}

#contact .category-content h2 {
    margin-bottom: 1rem;
    font-size: 3.75rem;
}

#contact .category-content p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 1.65rem;
}

#contact .category-content p:last-child {
    margin-bottom: 0;
}

#contact .category-content a {
    color: var(--text-on-dark);
    text-decoration: underline;
}

#contact .category-content a:hover {
    color: var(--text-on-dark);
}

#contact .contact-info {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: inline-block;
    width: max-content;
    max-width: 600px;
    /* Center in viewport independent of parent card width */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

#contact .contact-info p {
    color: var(--text-on-dark);
    margin-bottom: 0;
    font-size: 1.65rem;
}

/* Address Section - Sage and yellowish vertical stripes */
#wedding-details {
    background-color: var(--palm-leaf);
    overflow: visible;
}

/* Wedding Day schedule - corner flowers (top-right, bottom-left) */
#wedding-details.section-flower-corners-schedule {
    overflow: hidden;
}

.section-flower-corners-schedule {
    position: relative;
}

.section-flower-corners-schedule::before,
.section-flower-corners-schedule::after {
    content: '';
    position: absolute;
    width: 34.65vw;
    height: 34.65vw;
    background-image: url('/images/flower_width_1570.webp');
    background-size: contain;
    background-repeat: no-repeat;
    filter: sepia(0.55);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}

.section-flower-corners-schedule::before {
    top: 0;
    right: 0;
    margin-top: -3.465vw;
    margin-right: -3.465vw;
    background-position: top right;
    transform: rotate(280deg) scaleY(1.3);
}

.section-flower-corners-schedule::after {
    bottom: 0;
    left: 0;
    margin-bottom: -3.465vw;
    margin-left: -3.465vw;
    background-position: bottom left;
    transform: rotate(100deg) scaleY(1.3);
}

.section-flower-corners-schedule .section-content {
    position: relative;
    z-index: 2;
}


/* Registry Section - Classic frame */
#registry .category-content {
    border: none;
    background: transparent;
    box-shadow: none;
    position: relative;
}

#registry .section-content {
    /* Raise the Gifts card slightly within its section */
    padding-top: 3.5rem;
    padding-bottom: 11rem;
}

#registry .category-content::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 2px solid var(--palm-leaf);
    border-radius: 10px;
    pointer-events: none;
}

/* Travel Section - Elegant container */
#travel {
    background-color: var(--ash-grey);
    position: relative;
}

#travel::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Tile image tinted with section colour (ash-grey), then reduced opacity */
    background-image: linear-gradient(rgba(191, 190, 176, 0.55), rgba(191, 190, 176, 0.55)), url('/images/tile_background.png');
    background-repeat: repeat;
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

#travel .category-content {
    border: 2px solid rgba(0, 0, 0, 0.05);
    background: var(--ash-grey);
    box-shadow: none;
}

#travel .accommodation-info,
#travel .transportation-info {
    background-color: transparent;
    border: 2px solid rgba(0, 0, 0, 0.05);
}

/* FAQ Section - modelled after reference (white panel, italic Q / uppercase A) */
.section-faq {
    position: relative;
    background-color: var(--ash-grey);
}

.faq-bg-title {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    font-family: 'Charm', cursive;
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.087em;
    color: var(--palm-leaf);
    opacity: 0.35;
    pointer-events: none;
    text-align: center;
    z-index: 2;
}

.faq-bg-line {
    display: block;
}

.faq-bg-line-2 {
    margin-top: -0.12em;
}

#faq .section-content {
    position: relative;
    z-index: 1;
    margin-top: 10rem;
}

.faq-panel {
    max-width: 720px;
    margin: 0 auto;
    padding: 4rem 2.5rem;
    background-color: transparent;
    border-radius: 0;
}

.faq-block {
    margin-bottom: 2.5rem;
}

.faq-block:last-of-type {
    margin-bottom: 2rem;
}

.faq-question {
    font-family: "DM Serif Text", serif;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
    color: var(--palm-leaf-2);
    line-height: 1.1;
    letter-spacing: -0.054em;
    margin: 0 0 0.75rem 0;
}

.faq-answer {
    font-family: "DM Serif Text", serif;
    font-size: 0.95rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.087em;
    line-height: 1.6;
    color: var(--palm-leaf-2);
    margin: 0;
    padding-left: 2rem;
}

.faq-line {
    width: 180px;
    height: 1px;
    background-color: var(--palm-leaf-2);
    margin: 2rem auto 0 auto;
}

@media (max-width: 768px) {
    .faq-panel {
        padding: 2rem 1.25rem;
    }
    .faq-question {
        font-size: 1.25rem;
    }
    .faq-answer {
        font-size: 0.8rem;
        padding-left: 1rem;
    }
}

/* Side Images */
.section-side-image {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: none;
    border: 3px solid var(--palm-leaf);
    opacity: 1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.image-size-small {
    width: 250px;
    height: 375px;
}

.image-size-medium {
    width: 300px;
    height: 450px;
}

.image-size-large {
    width: 350px;
    height: 525px;
}

.section-side-image:hover {
    transform: scale(1.05);
    opacity: 1;
}

.section-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-content {
    flex: 0 1 auto;
}

/* Countdown Clock - Elegant Style */
.countdown-wrapper {
    width: 100%;
    padding: 4rem 2rem;
    background: var(--ash-grey);
    background-image: url('images/countdown_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.countdown-clock {
    background: transparent;
    padding: 2rem;
    display: inline-block;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.countdown-message {
    font-family: 'Charm', cursive;
    font-size: 2rem;
    color: var(--text-on-dark);
    text-align: center;
    margin: 0 0 1.5rem 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
}

.countdown-value {
    font-family: "Times New Roman", Times, serif;
    font-size: 4rem;
    color: #f2f0e8;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
    padding: 0;
    min-width: 100px;
    text-align: center;
}

.countdown-label {
    font-family: "Times New Roman", Times, serif;
    font-size: 1rem;
    color: #ebe8df;
    text-transform: none;
    letter-spacing: 0.05em;
    font-weight: 300;
    font-style: normal;
}

@media (max-width: 768px) {
    .countdown-wrapper {
        padding: 2rem 1rem;
        min-height: 300px;
    }

    .countdown-clock {
        padding: 1rem;
    }

    .countdown-message {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .countdown-timer {
        gap: 1rem;
    }

    .countdown-item {
        gap: 0.5rem;
    }

    .countdown-value {
        font-size: 2.5rem;
        min-width: 60px;
    }

    .countdown-label {
        font-size: 0.8rem;
    }
}

.category-content h2 {
    font-family: 'Charm', cursive;
    color: var(--palm-leaf);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-align: center;
    letter-spacing: -0.05em;
    font-weight: 400;
}

#travel .category-content h2 {
    color: var(--palm-leaf);
}

#travel .category-content h3,
#travel .accommodation-info h3,
#travel .transportation-info h3 {
    font-family: 'Charm', cursive;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--ebony);
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    text-align: center;
}

#travel .category-content p,
#travel .accommodation-info p,
#travel .transportation-info p {
    font-family: "DM Serif Text", serif;
    font-size: 1rem;
    color: var(--ebony);
    line-height: 1.5;
}


.category-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--palm-leaf);
    text-align: center;
}

/* Home page body text: DM Serif Text (titles keep their fonts) */
.page-sections .category-content p,
.page-sections .schedule-time,
.page-sections .schedule-event,
.page-sections .wedding-info p,
.page-sections .accommodation-info p,
.page-sections .transportation-info p,
.page-sections .faq-item p,
.page-sections .contact-info p,
.page-sections .rsvp-instructions p,
.countdown-wrapper .countdown-label {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: normal;
}

.page-sections .category-content p em {
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    font-style: italic;
}

.category-content h3 {
    font-family: 'Charm', cursive;
    color: var(--palm-leaf);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    text-align: center;
    font-weight: 400;
    font-style: italic;
}

.wedding-info,
.address-info,
.contact-info,
.accommodation-info,
.transportation-info {
    max-width: 600px;
    margin: 2rem auto;
    text-align: left;
    padding: 1.5rem;
    background-color: var(--ash-grey);
    border-radius: 12px;
    border: 1px solid var(--palm-leaf);
    box-shadow: none;
}

.wedding-info p,
.address-info p,
.contact-info p,
.accommodation-info p,
.transportation-info p {
    text-align: left;
    margin-bottom: 1rem;
}

.hotel-button-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.hotel-booking-button {
    font-size: 1.2rem;
    padding: 0.75rem 2rem;
    color: var(--text-on-dark) !important;
    background-color: var(--palm-leaf) !important;
    border-color: var(--palm-leaf) !important;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
    transition: all 0.2s ease;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    border: 2px solid var(--palm-leaf);
}

.hotel-booking-button:hover {
    background-color: var(--palm-leaf) !important;
    border-color: var(--palm-leaf) !important;
    color: var(--text-on-dark) !important;
    text-decoration: none;
}

.faq-item {
    max-width: 800px;
    margin: 2rem auto;
    padding: 1.5rem;
    background-color: var(--ash-grey);
    border-radius: 12px;
    text-align: left;
    border: 1px solid var(--palm-leaf);
    box-shadow: none;
}

.faq-item h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    text-align: left;
}

.faq-item p {
    text-align: left;
    margin-bottom: 1rem;
}

.category-content a {
    color: var(--palm-leaf);
    text-decoration: underline;
}

.category-content a:hover {
    color: var(--palm-leaf);
}

.rsvp-instructions {
    max-width: 700px;
    margin: 2rem auto;
    text-align: left;
    padding: 1.5rem;
    background-color: var(--ash-grey);
    border-radius: 12px;
    border: 1px solid var(--palm-leaf);
    box-shadow: none;
}

.rsvp-instructions p {
    text-align: left;
    margin-bottom: 1rem;
}

.rsvp-instructions ol {
    text-align: left;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

.rsvp-instructions li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.rsvp-button-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.rsvp-button {
    font-size: 1.3rem;
    padding: 1rem 2.5rem;
    color: var(--text-on-dark) !important;
    background-color: var(--palm-leaf) !important;
    border-color: var(--palm-leaf) !important;
    text-decoration: none;
    display: inline-block;
    border-radius: 0;
    transition: all 0.2s ease;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    border: 2px solid var(--palm-leaf);
}

.rsvp-button:hover {
    background-color: var(--palm-leaf) !important;
    border-color: var(--palm-leaf) !important;
    color: var(--text-on-dark) !important;
    text-decoration: none;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .image-size-small {
        width: 200px;
        height: 300px;
    }

    .image-size-medium {
        width: 250px;
        height: 375px;
    }

    .image-size-large {
        width: 300px;
        height: 450px;
    }
}

@media (max-width: 768px) {
    .hero-image-container {
        height: 50vh;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: 1px;
    }

    .sticky-nav {
        padding: 1.25rem 0 0.5rem 0;
    }

    .sticky-nav.sticky {
        padding: 0.4rem 0;
    }

    .nav-container {
        padding: 0 1rem;
        gap: 1rem;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        flex-shrink: 0;
    }

    .page-section {
        padding: 3rem 1.5rem;
    }

    .section-content {
        flex-direction: column;
        gap: 1rem;
    }

    .section-with-image-left,
    .section-with-image-right {
        flex-direction: column;
    }

    .section-side-image {
        display: none;
    }

    .category-content {
        max-width: 90%;
        padding: 2rem;
    }

    .category-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-image-container {
        height: 40vh;
        min-height: 300px;
    }

    .hero-content {
        /* Extra reserve for nav on very small viewports */
        padding-bottom: 5.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .nav-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .nav-link {
        font-size: 0.8rem;
        padding: 0.35rem 0.6rem;
        flex-shrink: 0;
    }

    .page-section {
        padding: 2rem 1rem;
        min-height: 300px;
    }

    .category-content h2 {
        font-size: 1.75rem;
    }

    .category-content p {
        font-size: 1rem;
    }
}

/* RSVP Pages - match home page style */
.rsvp-select-container,
.rsvp-form-container {
    min-height: 60vh;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background-color: var(--ash-grey);
}

.rsvp-select-content,
.rsvp-form-content {
    max-width: 800px;
    width: 100%;
    background-color: var(--ash-grey);
    padding: 2.5rem;
    border-radius: 12px;
    border: 3px solid rgba(142, 150, 115, 0.9);
    box-shadow: none;
}

.rsvp-select-content h1,
.rsvp-form-content h1 {
    font-family: 'Charm', cursive;
    color: var(--palm-leaf);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 400;
}

.rsvp-select-content p,
.rsvp-form-content p {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--palm-leaf);
    text-align: center;
    font-size: 1.1rem;
}

.search-container {
    margin: 1.5rem 0;
}

.search-input {
    font-size: 1.1rem;
    padding: 0.75rem;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: 2px solid rgba(142, 150, 115, 0.9);
    border-radius: 0;
    background-color: var(--ash-grey);
}

.search-input:focus {
    border-color: var(--palm-leaf);
    outline: none;
}

.party-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    max-height: 60vh;
    overflow-y: auto;
}

.no-results {
    text-align: center;
    color: var(--palm-leaf);
    font-style: italic;
    margin-top: 2rem;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.party-button {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: var(--palm-leaf);
    color: var(--text-on-dark);
    border: 2px solid var(--palm-leaf);
    border-radius: 0;
    font-size: 1.1rem;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    text-decoration: none;
    display: block;
}

.party-button:hover {
    background-color: var(--palm-leaf);
    color: var(--text-on-dark);
}

.guest-form {
    background-color: var(--ash-grey);
    padding: 1.5rem;
    border-radius: 0;
    margin-bottom: 2rem;
    border: 1px solid rgba(142, 150, 115, 0.9);
}

.guest-form h3 {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--palm-leaf);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 400;
    font-style: italic;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--palm-leaf);
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.form-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.rsvp-select-content .form-control,
.rsvp-form-content .form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 2px solid rgba(142, 150, 115, 0.9);
    border-radius: 0;
    font-size: 1rem;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--ash-grey);
}

.rsvp-select-content .form-control:focus,
.rsvp-form-content .form-control:focus {
    outline: none;
    border-color: var(--palm-leaf);
    box-shadow: none;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.plus-one-form {
    border: 2px dashed rgba(142, 150, 115, 0.9);
    background-color: var(--ash-grey);
}

.rsvp-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.rsvp-form-content .rsvp-buttons .rsvp-button {
    flex: 1;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: 2px solid rgba(142, 150, 115, 0.9);
    background-color: var(--ash-grey) !important;
    color: var(--palm-leaf) !important;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rsvp-form-content .rsvp-buttons .rsvp-button:hover {
    background-color: var(--palm-leaf) !important;
    border-color: var(--palm-leaf);
    color: var(--ash-grey) !important;
}

.rsvp-form-content .rsvp-buttons .rsvp-button.selected {
    background-color: var(--palm-leaf) !important;
    color: var(--text-on-dark) !important;
    border-color: var(--palm-leaf);
    border-width: 3px;
    font-weight: 700;
}

.rsvp-form-content .rsvp-buttons .rsvp-button.selected:hover {
    background-color: var(--palm-leaf) !important;
    border-color: var(--palm-leaf);
    color: var(--text-on-dark) !important;
}

.rsvp-form-content .rsvp-buttons .rsvp-button.decline.selected {
    background-color: #6c757d !important;
    border-color: var(--palm-leaf);
    color: white !important;
    border-width: 3px;
    font-weight: 700;
}

.rsvp-form-content .rsvp-buttons .rsvp-button.decline.selected:hover {
    background-color: #5a6268 !important;
    border-color: var(--palm-leaf);
    color: white !important;
}

.rsvp-form-content .btn-primary,
.rsvp-select-content .btn-primary {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 0;
    border: 2px solid var(--palm-leaf);
}

.rsvp-form-content .btn-secondary,
.rsvp-select-content .btn-secondary {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 0;
    border: 2px solid rgba(142, 150, 115, 0.9);
    background-color: transparent;
    color: var(--palm-leaf);
}

.rsvp-form-content .btn-secondary:hover,
.rsvp-select-content .btn-secondary:hover {
    background-color: rgba(142, 150, 115, 0.2);
    border-color: var(--palm-leaf);
    color: var(--palm-leaf);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Admin Pages - match home/RSVP style */
.admin-login-container {
    min-height: 60vh;
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--ash-grey);
}

.admin-login-content {
    max-width: 400px;
    width: 100%;
    background-color: var(--ash-grey);
    padding: 2.5rem;
    border-radius: 12px;
    border: 3px solid rgba(142, 150, 115, 0.9);
    box-shadow: none;
}

.admin-login-content h1 {
    font-family: 'Charm', cursive;
    color: var(--palm-leaf);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
    text-align: center;
    font-weight: 400;
}

.admin-login-content .form-group label {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--palm-leaf);
}

.admin-login-content .form-control {
    border: 2px solid rgba(142, 150, 115, 0.9);
    border-radius: 0;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--ash-grey);
}

.admin-login-content .form-control:focus {
    border-color: var(--palm-leaf);
    outline: none;
    box-shadow: none;
}

.admin-login-content .btn-primary {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 0;
    border: 2px solid var(--palm-leaf);
}

.admin-dashboard-container {
    min-height: 60vh;
    padding: 4rem 2rem;
    background-color: var(--ash-grey);
}

.admin-dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--ash-grey);
    padding: 2.5rem;
    border-radius: 12px;
    border: 3px solid rgba(142, 150, 115, 0.9);
    box-shadow: none;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(142, 150, 115, 0.9);
}

.admin-header h1 {
    font-family: 'Charm', cursive;
    color: var(--palm-leaf);
    margin: 0;
    font-size: 2.5rem;
    font-weight: 400;
}

.admin-dashboard-content .btn-secondary {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 0;
    border: 2px solid rgba(142, 150, 115, 0.9);
    background-color: transparent;
    color: var(--palm-leaf);
}

.admin-dashboard-content .btn-secondary:hover {
    background-color: rgba(142, 150, 115, 0.2);
    border-color: var(--palm-leaf);
    color: var(--palm-leaf);
}

.parties-list h2,
.rsvps-list h2 {
    font-family: 'Charm', cursive;
    color: var(--palm-leaf);
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 400;
}

.parties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.header-buttons {
    display: flex;
    gap: 0.5rem;
}

.admin-dashboard-content .btn-primary,
.admin-dashboard-content .btn-success {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 0;
    border: 2px solid var(--palm-leaf);
}

.admin-dashboard-content .btn-warning {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 0;
    border: 2px solid var(--palm-leaf);
    background-color: var(--palm-leaf);
    color: var(--text-on-dark);
}

.admin-dashboard-content .btn-warning:hover {
    background-color: var(--palm-leaf);
    border-color: var(--palm-leaf);
    color: var(--text-on-dark);
}

.admin-dashboard-content .btn-success {
    background-color: var(--palm-leaf);
    color: var(--text-on-dark);
}

.admin-dashboard-content .btn-success:hover {
    background-color: var(--palm-leaf);
    color: var(--text-on-dark);
}

.edit-party-form {
    background-color: var(--ash-grey);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2rem;
    border: 1px solid rgba(142, 150, 115, 0.9);
}

.edit-party-form h2 {
    font-family: 'Charm', cursive;
    color: var(--palm-leaf);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 400;
}

.edit-party-form h3 {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--palm-leaf);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 400;
    font-style: italic;
}

.edit-party-form .form-group label {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--palm-leaf);
}

.edit-party-form .form-control {
    border: 2px solid rgba(142, 150, 115, 0.9);
    border-radius: 0;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--ash-grey);
}

.edit-party-form .form-control:focus {
    border-color: var(--palm-leaf);
    outline: none;
    box-shadow: none;
}

.guest-edit-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
    align-items: center;
}

.guest-edit-item .form-control {
    flex: 1;
}

.admin-dashboard-content .table {
    margin-top: 1rem;
    border: 1px solid rgba(142, 150, 115, 0.9);
}

.admin-dashboard-content .table th {
    background-color: var(--palm-leaf);
    color: var(--text-on-dark);
    font-weight: 500;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: 1px solid rgba(142, 150, 115, 0.9);
}

.admin-dashboard-content .table td {
    vertical-align: middle;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--palm-leaf);
    border: 1px solid rgba(142, 150, 115, 0.9);
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 0;
}

.admin-dashboard-content .btn-danger {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 0;
    border: 2px solid var(--palm-leaf);
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(142, 150, 115, 0.9);
}

.admin-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
    color: var(--palm-leaf);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    text-decoration: none;
}

.admin-tab:hover {
    color: var(--palm-leaf);
    background-color: rgba(142, 150, 115, 0.15);
}

.admin-tab.active {
    color: var(--palm-leaf);
    border-bottom-color: var(--palm-leaf);
    font-weight: 700;
}

.rsvps-header {
    margin-bottom: 1.5rem;
}

.admin-login-content .alert {
    font-family: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border-radius: 0;
    border: 2px solid rgba(142, 150, 115, 0.9);
}

.ephesis-regular {
    font-family: "Ephesis", cursive;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.06em;
}
