/* ========== CUSTOM FONTS ========== */
@font-face {
    font-family: 'SloopScript';
    src: url('/fonts/sloop-script-pro-bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* ========== GLOBAL STYLES ========== */
.metallic-text {
    font-size: 120px;
    font-weight: 900;
    background: linear-gradient(135deg, #aa732c 0%, #fde094 29%, #8B5A2B 50%, #CD7F32 75%, #E6A157 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
:root {
    /* Color Palette - Warm & Elegant */
    --primary-dark-olive: #454411; /* Dark Olive - primary brand color */
    --primary-light-olive: #A7A376; /* Light Olive / Sage */
    --primary-love-red: #b91709;
    --primary-gold: #e7aa51;
    --primary-brown: #ac7031;
    --dark-navy: #121F38;
    --dark-brown: #1f1913;
    --cream: #f9f6f2;
    --light-beige: #f0f0fa;
    --white: #ffffff;
    /* Typography */
    --font-elegant: 'Allura', cursive;
    --font-serif: 'Cinzel', serif;
    --font-body: 'Montserrat', sans-serif;
    /* Spacing */
    --section-padding: 100px 0;
    --section-padding-mobile: 60px 0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--dark-brown);
    line-height: 1.8;
    overflow-x: hidden;
}

.elegant-font {
    font-family: var(--font-elegant);
    font-weight: 400;
    letter-spacing: 2px;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-dark-olive);
    font-weight: 600;
    margin-bottom: 10px;
}

.section-title {
    font-size: 3.5rem;
    color: var(--dark-navy);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Override legacy theme decorative bars from style.css */
.section-title::before,
.section-title::after {
    display: none !important;
    content: none !important;
}

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.section-divider::before,
.section-divider::after {
    display: none !important;
}

/* ========== HERO SECTION ========== */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 31, 56, 0.5);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 20px;
    padding-bottom: 5px;
    width: 100%;
}

.hero-title {
    font-size: 6rem;
    margin-bottom: 30px;
    color: var(--white);
    font-weight: 400;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5), 0 0 20px rgba(0,0,0,0.3);
    letter-spacing: 2px;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.divider-line {
    width: 80px;
    height: 1px;
    background: var(--white);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.hero-divider i {
    font-size: 1.5rem;
    color: var(--primary-love-red);
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

.hero-rings-icon {
    height: 3rem;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5)) invert(15%) sepia(135%) saturate(1550%) hue-rotate(35deg) brightness(210%) contrast(105%);
}

.hero-subtitle {
    font-size: 1.5rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5), 0 0 15px rgba(0,0,0,0.3);
}

.hero-date {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--white);
    text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-decoration: none;
    transition: all 0.3s ease;
}

.scroll-indicator:hover {
    color: var(--primary-dark-olive);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========== COUNTDOWN SECTION ========== */
.countdown-section {
    padding: var(--section-padding);
    background-color: #fffff0;
    background-attachment: fixed;
}

.countdown-container {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.countdown-wedding-date {
    color: var(--dark-navy);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.countdown-headline {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-dark-olive);
    margin-bottom: 20px;
    /* font-style: italic; */
    text-transform: uppercase;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.time-box {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    min-width: 140px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
}

.time-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-dark-olive);
    line-height: 1;
}

.time-label {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--dark-brown);
    margin-top: 10px;
}

.countdown-complete {
    text-align: center;
}

.emoji-celebration {
    font-size: 4rem;
}

.emoji-celebration span {
    display: inline-block;
    margin: 0 10px;
    animation: celebration 1s ease-in-out infinite;
}

.emoji-celebration span:nth-child(2) {
    animation-delay: 0.2s;
}

.emoji-celebration span:nth-child(3) {
    animation-delay: 0.4s;
}

.emoji-celebration span:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes celebration {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(10deg); }
}

/* ========== STORY SECTION ========== */
.story-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #003559 0%, #2d5f7e 100%);
    color: #fffff0;
}

.story-header {
    text-align: center;
    margin-bottom: 60px;
}

.story-flower-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    opacity: 1;
    filter: brightness(1.38) saturate(0.88);
}

.story-main-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 8px;
    color: var(--white);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.story-subtitle {
    font-family: 'SloopScript', cursive;
    font-size: 6.2rem;
    color: #4AAFC8;
    font-weight: 600;
    margin-top: -50px;
    opacity: 1;
}

.story-content {
    max-width: 900px;
    margin: 0 auto;
}

.story-text {
    text-align: center;
}

.story-paragraph {
    font-size: 1.1rem;
    line-height: 2;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.story-highlight {
    font-size: 1.3rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.95);
    margin-top: 40px;
    padding: 36px 30px 36px 56px; /* leave space for the accent stripe */
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.03);
}

.story-highlight::before {
    /* decorative rounded vertical accent replacing the old border-left */
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    bottom: 18px;
    width: 10px;
    border-radius: 8px;
    background: linear-gradient(180deg, #A7A376 0%, #454411 100%);
    box-shadow: 0 6px 16px rgba(69,68,17,0.2);
}

/* ========== ABOUT SECTION ========== */
.about-section {
    background: #fffff0;
}

.about-image-container {
    position: relative;
    overflow: hidden;
    height: 500px;
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-image-container:hover .about-image {
    transform: scale(1.05);
}

.about-text-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 60px;
}

.bride-bg {
    background: linear-gradient(135deg, #f9f6f2 0%, #f0e6dc 100%);
}

.groom-bg {
    background: linear-gradient(135deg, #e8dfd6 0%, #f4ebe4 100%);
}

.about-text-content {
    max-width: 500px;
}

.about-role {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-dark-olive);
    font-weight: 600;
    margin-bottom: 10px;
}

.about-name {
    font-size: 3rem;
    color: var(--dark-navy);
    margin-bottom: 15px;
}

.about-icon {
    font-size: 2rem;
    color: var(--primary-dark-olive);
    margin-bottom: 20px;
}

.about-description {
    font-family: 'SloopScript', cursive;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--dark-brown);
    margin-bottom: 20px;
}

.about-author {
    font-style: italic;
    color: var(--primary-brown);
    font-size: 0.95rem;
}

/* ========== DETAILS SECTION ========== */
.details-section {
    padding: var(--section-padding);
    background: #fffff0;
}

.details-section .row {
    display: flex;
    flex-wrap: wrap;
}

.details-section .col-md-6 {
    display: flex;
}

.details-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-brown);
}

.detail-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.detail-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.detail-image {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.detail-content {
    padding: 50px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.detail-title {
    font-size: 2.2rem;
    color: var(--dark-navy);
    margin-bottom: 25px;
    font-weight: 600;
}

.detail-info {
    margin-bottom: 20px;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
}

.detail-info p {
    margin-bottom: 5px;
    color: var(--dark-brown);
}

.detail-info i {
    color: var(--primary-dark-olive);
    margin-right: 10px;
}

.btn-map {
    display: inline-block;
    background: var(--primary-dark-olive);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}

.btn-map:hover {
    background: var(--primary-brown);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 112, 92, 0.3);
    text-decoration: none;
}

.btn-map i {
    margin-right: 8px;
}

/* ========== ANNOUNCEMENTS SECTION ========== */
.announcements-section {
    padding: var(--section-padding);
    background: #fffff0;
}

.announcement-content {
    max-width: 900px;
    margin: 0 auto;
}

.announcements-section .row {
    display: flex;
    flex-wrap: wrap;
}

.announcements-section .col-md-6 {
    display: flex;
}

.announcement-card {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.announcement-title {
    font-size: 1.8rem;
    color: var(--dark-navy);
    margin-bottom: 25px;
    font-weight: 600;
}

.announcement-title i {
    color: var(--primary-dark-olive);
    margin-right: 15px;
}

.announcement-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-brown);
    margin-bottom: 30px;
}

.btn-registry {
    display: inline-block;
    background: var(--primary-dark-olive);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-registry:hover {
    background: var(--primary-brown);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(107, 112, 92, 0.3);
    text-decoration: none;
}

.btn-registry i {
    margin-right: 10px;
}

/* ========== COLOR PALETTE SECTION ========== */
.color-palette-section {
    padding: var(--section-padding);
    background: #fffff0;
}

.attire-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark-brown);
}

.attire-intro strong {
    color: var(--primary-dark-olive);
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* ========== BUTTON COLOR OVERRIDES ========== */
/* Ensure all primary/orange-styled buttons use Dark Olive instead */
.btn-primary,
.btn-map,
.btn-registry,
.btn-rsvp,
.btn-rsvp-submit {
    background-color: var(--primary-dark-olive) !important;
    border-color: var(--primary-dark-olive) !important;
    color: var(--white) !important;
}

.btn-primary:hover,
.btn-map:hover,
.btn-registry:hover,
.btn-rsvp:hover,
.btn-rsvp-submit:hover {
    background-color: #57604b !important; /* slightly darker olive */
    border-color: #57604b !important;
    box-shadow: 0 8px 20px rgba(107,112,92,0.25) !important;
}

/* Outline and link/button helpers */
.btn-outline-primary {
    color: var(--primary-dark-olive) !important;
    border-color: var(--primary-dark-olive) !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus {
    color: var(--white) !important;
    background-color: var(--primary-dark-olive) !important;
    border-color: var(--primary-dark-olive) !important;
    box-shadow: 0 0 0 .2rem rgba(107,112,92,0.25) !important;
}

.btn-link,
a.btn-link {
    color: var(--primary-dark-olive) !important;
}

/* Global overrides for bootstrap elements that contained the old orange */
.bg-primary, .badge-primary, .text-primary, .border-primary, .page-item.active .page-link, .page-item.active .page-link:focus, .page-item.active .page-link:hover {
    background-color: var(--primary-dark-olive) !important;
    color: var(--white) !important;
    border-color: var(--primary-dark-olive) !important;
}

.btn-primary:focus, .btn-primary.focus, .btn-outline-primary:focus, .btn-outline-primary.focus {
    box-shadow: 0 0 0 .2rem rgba(69,68,17,0.25) !important;
}

.btn-primary:hover, .bg-primary:hover, .badge-primary:hover, .page-link:hover {
    background-color: #3b3a0f !important; /* slightly darker */
    border-color: #3b3a0f !important;
}

.custom-control-input:checked ~ .custom-control-label::before,
.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before,
.custom-radio .custom-control-input:checked ~ .custom-control-label::before {
    background-color: var(--primary-dark-olive) !important;
    border-color: var(--primary-dark-olive) !important;
}

.custom-range::-webkit-slider-thumb, .custom-range::-moz-range-thumb, .custom-range::-ms-thumb {
    background-color: var(--primary-dark-olive) !important;
}

.color-swatch {
    text-align: center;
    flex: 0 1 180px; /* allow labels to sit on one line */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.color-box {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    margin-left: auto;
    margin-right: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.color-name {
    font-size: 0.95rem;
    color: var(--dark-brown);
    font-weight: 500;
    margin: 0;
    white-space: nowrap; /* keep label on a single line */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== RSVP SECTION ========== */
.rsvp-section {
    padding: var(--section-padding);
    background: url('/img/sequoia22.jpg') center/cover no-repeat;
    background-attachment: fixed;
    position: relative;
    border: none !important;
    border-bottom: none !important;
}

.rsvp-section::before,
.rsvp-section::after {
    display: none !important;
}

.rsvp-section .section-title::before,
.rsvp-section .section-title::after {
    display: none !important;
    content: none !important;
}

.rsvp-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.rsvp-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--white);
    margin-bottom: 40px;
}

.rsvp-closed-message {
    max-width: 640px;
    margin: 0 auto;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, rgba(69, 68, 17, 0.08) 0%, rgba(167, 163, 118, 0.12) 100%);
    color: #ffffff;
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.6px;
    line-height: 1.45;
    text-align: center;
    box-shadow: 0 6px 18px rgba(69, 68, 17, 0.1);
}

.btn-rsvp {
    background: var(--primary-dark-olive);
    color: var(--white);
    padding: 18px 50px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(228, 122, 46, 0.3);
}

/* ========== RSVP WIZARD ========== */
.wizard {
    max-width: 900px;
    margin: 0 auto;
}

.question-panel {
    background: #ffffff;
    padding: 24px 28px;
    border-radius: 14px;
    margin-bottom: 16px;
    box-shadow: 0 6px 20px rgba(69, 68, 17, 0.06);
    border: 1px solid rgba(69, 68, 17, 0.05);
    animation: slideUp 0.4s ease-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.question-panel:hover {
    box-shadow: 0 15px 45px rgba(69, 68, 17, 0.12);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-title {
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: #454411;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.question-subtitle {
    color: #555;
    margin-bottom: 14px;
    font-size: 0.9rem;
    font-weight: 400;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.option-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    background: #f8f7f5;
    border: 2px solid #e5e1d8;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    color: #454411;
}

.option-btn .option-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 22px;
    line-height: 1.1;
}

.option-btn i {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.option-btn:hover {
    background: #f0ece4;
    border-color: #d4cfc0;
    transform: translateX(4px);
}

.option-btn input[type="radio"],
.option-btn input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.option-btn.selected {
    background: rgba(90, 224, 116, 0.18);
    color: #1f4d24;
    border-color: #5AE074;
    box-shadow: 0 0 0 2px rgba(90, 224, 116, 0.45), 0 10px 24px rgba(90, 224, 116, 0.28);
}

.wizard-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(69, 68, 17, 0.06);
}

.wizard-nav .btn {
    flex: 1;
    padding: 10px 18px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.25s ease;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.wizard-nav .btn-outline-secondary {
    border: 2px solid #ddd;
    color: #666;
    background: transparent;
}

.wizard-nav .btn-outline-secondary:hover {
    background: #f5f5f5;
    border-color: #454411;
    color: #454411;
    transform: translateY(-2px);
}

.wizard-nav .btn-outline-secondary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wizard-nav .btn-primary {
    background: linear-gradient(135deg, #454411 0%, #5F5828 100%);
    border: none;
    color: white;
}

.wizard-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(69, 68, 17, 0.3);
}

.panel-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #454411 0%, #5F5828 100%);
    color: #fff;
    border-radius: 8px;
    margin-right: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 3px 12px rgba(69, 68, 17, 0.18);
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .options { flex-direction: column; }
}

.btn-rsvp:hover {
    background: var(--primary-brown);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(228, 122, 46, 0.4);
}

.btn-rsvp:focus,
.btn-rsvp:active,
.btn-rsvp:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.btn-rsvp i {
    margin-right: 10px;
}

.rsvp-section .section-divider {
    display: none !important;
}

/* ========== RSVP MODAL ========== */
.rsvp-modal-content {
    border-radius: 24px;
    border: none;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.rsvp-modal-header {
    background: var(--primary-dark-olive);
    color: var(--white);
    border-radius: 24px 24px 0 0;
    padding: 25px 40px;
    border: none;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rsvp-modal-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.rsvp-modal-header .modal-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    margin: 0;
    text-align: center;
    color: var(--white);
}

.rsvp-modal-header .close {
    color: var(--white);
    opacity: 0.85;
    font-size: 2rem;
    text-shadow: none;
    transition: all 0.25s ease;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 10px;
    line-height: 1;
}

.rsvp-modal-header .close:hover {
    color: var(--white);
    opacity: 1;
    transform: translateY(-50%) rotate(90deg);
}

.rsvp-modal-header .close:focus,
.rsvp-modal-header .close:active,
.rsvp-modal-header .close:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.rsvp-modal-body {
    padding: 30px 40px;
    background: #fafaf8;
    overflow-y: visible;
    max-height: none;
}

.rsvp-modal-body::-webkit-scrollbar {
    display: none;
}

.rsvp-modal-body::-webkit-scrollbar-track {
    display: none;
}

.rsvp-modal-body::-webkit-scrollbar-thumb {
    display: none;
}

.rsvp-welcome-message {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(69, 68, 17, 0.08);
}

.rsvp-welcome-message h4 {
    color: #454411;
    font-size: 1.6rem;
    margin-bottom: 10px;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: none;
}

.rsvp-welcome-message p {
    color: #444;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 8px;
    margin: 0;
}

.rsvp-welcome-message .text-muted {
    color: #555 !important;
    font-size: 0.94rem;
}

.rsvp-already-message {
    text-align: center;
    background: linear-gradient(135deg, rgba(69, 68, 17, 0.08) 0%, rgba(167, 163, 118, 0.14) 100%);
    border: 1px solid rgba(69, 68, 17, 0.18);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 18px;
}

.rsvp-already-message h5 {
    margin: 0 0 6px;
    color: #3f3f10;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.1rem;
}

.rsvp-already-message p {
    margin: 0 0 12px;
    color: #5b5b2a;
    font-size: 0.92rem;
}

.btn-rsvp-modify {
    background: linear-gradient(135deg, #454411 0%, #5F5828 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 6px 16px rgba(69, 68, 17, 0.2);
}

.btn-rsvp-modify:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(69, 68, 17, 0.28);
}

#frm-RSVP label {
    font-weight: 600;
    color: #454411;
    margin-bottom: 6px;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    display: block;
}

#frm-RSVP .form-control {
    border: 2px solid #e5e1d8;
    border-radius: 10px;
    padding: 10px 12px;
    height: 44px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    font-size: 0.9rem;
    color: #333;
}

#frm-RSVP .form-control::placeholder {
    color: #aaa;
}

#frm-RSVP .form-control:hover {
    border-color: #ddd;
    background: #fafaf8;
}

#frm-RSVP .form-control:focus {
    border-color: #454411;
    box-shadow: 0 0 0 4px rgba(69, 68, 17, 0.1);
    background: #ffffff;
    outline: none;
}

#frm-RSVP .form-group {
    margin-bottom: 12px;
}

#frm-RSVP select.form-control {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23454411' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

#frm-RSVP textarea.form-control {
    height: auto;
    resize: vertical;
    min-height: 70px;
    font-family: inherit;
}

.form-row {
    margin-bottom: 0;
}

.btn-rsvp-submit {
    background: linear-gradient(135deg, #454411 0%, #5F5828 100%);
    border: none;
    padding: 11px 30px;
    border-radius: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-size: 0.9rem;
    text-transform: uppercase;
    box-shadow: 0 6px 16px rgba(69, 68, 17, 0.2);
    width: 100%;
}

.btn-rsvp-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(69, 68, 17, 0.35);
}

.btn-rsvp-submit:active {
    transform: translateY(-1px);
}

.rsvp-success-message {
    text-align: center;
    padding: 60px 45px;
    background: linear-gradient(135deg, rgba(69, 68, 17, 0.08) 0%, rgba(167, 163, 118, 0.08) 100%);
    border-radius: 20px;
    border: 1px solid rgba(69, 68, 17, 0.1);
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.rsvp-success-message i {
    font-size: 5rem;
    color: #454411;
    margin-bottom: 25px;
    display: block;
    animation: successBounce 0.6s ease-in-out;
}

@keyframes successBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.rsvp-success-message h3 {
    color: #454411;
    margin-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 600;
}

.rsvp-success-message p {
    color: var(--dark-brown);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ========== FOOTER SECTION ========== */
.footer-section {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.footer-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 31, 56, 0.7);
    z-index: 2;
}

.footer-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: 60px 20px;
}

.footer-title {
    font-size: clamp(3.2rem, 9vw, 10rem);
    line-height: 1.12;
    padding-inline: 0.20em;
    margin-bottom: 20px;
}


.footer-text {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--white);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-dark-olive);
    border-color: var(--primary-dark-olive);
    color: var(--white);
    transform: translateY(-5px);
}

.footer-contact {
    font-size: 1rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

.admin-link-container {
    margin-top: 40px;
}

.admin-link {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.admin-link:hover {
    opacity: 1;
    color: var(--white);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1366px) and (min-width: 769px) {
    .hero-section {
        height: auto !important;
        min-height: 0 !important;
        display: block;
        background: transparent;
    }

    .hero-video {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto !important;
        max-height: none !important;
        min-width: 0;
        min-height: 0;
        transform: none;
        object-fit: contain !important;
        object-position: center center;
    }

    .footer-section {
        height: 60vh;
        min-height: 500px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .footer-video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: auto;
        height: auto;
        min-width: 100%;
        min-height: 100%;
        transform: translate(-50%, -50%);
        object-fit: cover;
    }

    .hero-content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 20px;
        z-index: 3;
        padding: 14px;
    }

    .hero-title {
        font-size: clamp(2.6rem, 6vw, 4rem);
        margin-bottom: 14px;
    }

    .scroll-indicator {
        bottom: 8px;
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 0;
        display: block;
        background: transparent;
    }

    .hero-video {
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        height: auto;
        min-width: 0;
        min-height: 0;
        transform: none;
        object-fit: contain;
        object-position: center center;
    }

    .footer-section {
        height: 56vh;
        min-height: 420px;
    }

    .footer-video {
        position: absolute;
        top: 50%;
        left: 50%;
        width: auto;
        height: auto;
        min-width: 100%;
        min-height: 100%;
        transform: translate(-50%, -50%);
        object-fit: cover;
    }

    .hero-content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 8px;
        z-index: 3;
        padding: 12px;
    }

    .hero-title {
        font-size: clamp(2.2rem, 9vw, 3.2rem);
        margin-bottom: 12px;
    }

    .scroll-indicator {
        bottom: -2px;
        font-size: 1.5rem;
    }

    .section-title::before,
    .section-title::after {
        display: none !important;
        content: none !important;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .story-main-title {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .story-subtitle {
        font-size: 2.5rem;
    }

    .story-flower-icon {
        width: 45px;
        height: 45px;
    }

    .countdown-section,
    .story-section,
    .details-section,
    .announcements-section,
    .color-palette-section,
    .rsvp-section {
        padding: var(--section-padding-mobile);
    }

    .color-swatch {
        flex: 0 1 calc(50% - 20px);
        max-width: 230px;
    }

    .color-box {
        width: 100px;
        height: 100px;
    }

    .color-name {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.35;
        max-width: 16ch;
        margin: 0 auto;
    }

    .time-box {
        min-width: 100px;
        padding: 20px;
    }

    .time-number {
        font-size: 2.5rem;
    }

    .about-text-container {
        padding: 40px 30px;
    }

    .about-name {
        font-size: 2rem;
    }

    .detail-content {
        padding: 30px;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .announcement-card {
        padding: 30px;
    }

    .footer-title {
        font-size: 2.5rem;
    }

    .rsvp-modal-header {
        padding: 35px 30px;
    }

    .rsvp-modal-header .modal-title {
        font-size: 2rem;
    }

    .rsvp-modal-body {
        padding: 35px 30px;
    }

    .question-panel {
        padding: 30px 24px;
        margin-bottom: 20px;
    }

    .question-title {
        font-size: 1.6rem;
    }

    .wizard-nav {
        flex-direction: column;
        gap: 10px;
    }

    .wizard-nav .btn {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 0;
    }

    .footer-section {
        height: 52vh;
        min-height: 380px;
    }

    .story-main-title {
        font-size: 1.8rem;
        letter-spacing: 3px;
        margin-bottom: 14px;
    }

    .story-subtitle {
        font-size: 2.2rem;
        margin-top: -28px;
    }

    .hero-title {
        font-size: clamp(2rem, 8.5vw, 2.6rem);
    }

    .hero-content {
        bottom: 14px;
        padding: 10px;
    }

    .scroll-indicator {
        bottom: 4px;
        font-size: 1.35rem;
    }

    .countdown-timer {
        gap: 15px;
    }

    .time-box {
        min-width: 70px;
        padding: 15px;
    }

    .time-number {
        font-size: 2rem;
    }

    .time-label {
        font-size: 0.7rem;
    }

    .rsvp-modal-header {
        padding: 30px 20px;
    }

    .rsvp-modal-header .modal-title {
        font-size: 1.7rem;
    }

    .rsvp-modal-body {
        padding: 25px 20px;
    }

    .question-panel {
        padding: 25px 20px;
    }

    .question-title {
        font-size: 1.4rem;
    }

    .panel-count {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .option-btn {
        padding: 14px 16px;
        font-size: 1rem;
    }

    .btn-rsvp-submit {
        padding: 14px 30px;
        font-size: 0.95rem;
    }

    .rsvp-success-message {
        padding: 40px 25px;
    }

    .rsvp-success-message i {
        font-size: 4rem;
    }

    .rsvp-success-message h3 {
        font-size: 1.5rem;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header,
.story-paragraph,
.detail-card,
.announcement-card {
    animation: fadeIn 0.8s ease-out;
}

/* ========== LANGUAGE TOGGLE ========== */
.language-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: inline-flex;
    gap: 0;
    z-index: 1000;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.lang-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.25);
    padding: 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    transition: all 0.3s ease;
    border-radius: 999px;
}

.lang-btn:hover {
    background: #f7f7f7;
    color: #333;
}

.lang-btn.active {
    display: none;
}

@media (max-width: 768px) {
    .language-toggle {
        bottom: 16px;
        right: 16px;
        padding: 0;
        gap: 0;
        border-radius: 0;
    }

    .lang-btn {
        padding: 6px 9px;
        font-size: 0.78rem;
        border-radius: 22px;
    }
}

@media (max-width: 576px) {
    .language-toggle {
        bottom: 12px;
        right: 12px;
        padding: 0;
        gap: 0;
    }

    .lang-btn {
        padding: 5px 8px;
        font-size: 0.72rem;
    }
}

/* ========== CODE VALIDATION MODAL ========== */
.code-val-modal .modal-content {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    border: none;
}

.code-val-header {
    background: var(--primary-dark-olive);
    border: none;
    padding: 26px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.code-val-header .modal-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 1px;
    margin: 0;
    text-align: center;
}

.code-val-header .code-val-close {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    opacity: 0.8;
    font-size: 1.8rem;
    text-shadow: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.code-val-header .code-val-close:hover {
    opacity: 1;
}

.code-val-body {
    padding: 28px 32px;
    background: var(--cream);
}

.code-val-body p {
    color: #444;
    font-family: var(--font-body);
    font-size: 0.94rem;
    margin-bottom: 18px;
    text-align: center;
}

.code-val-input {
    border: 2px solid var(--light-beige) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 1.1rem !important;
    font-family: var(--font-body) !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    text-align: center !important;
    transition: border-color 0.3s ease !important;
}

.code-val-input:focus {
    border-color: var(--primary-dark-olive) !important;
    box-shadow: 0 0 0 0.2rem rgba(69, 68, 17, 0.15) !important;
    outline: none !important;
}

.code-val-submit {
    background: var(--primary-dark-olive) !important;
    color: var(--white) !important;
    border: none !important;
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 1px;
    font-size: 0.95rem;
    cursor: pointer;
    margin-top: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.code-val-submit:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.code-val-skip {
    background: none;
    border: none;
    color: #5f5f5f;
    font-size: 0.88rem;
    font-family: var(--font-body);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    display: block;
    margin: 14px auto 0;
    transition: color 0.2s;
}

.code-val-skip:hover {
    color: #4a4a4a;
}


