/* =========================
   Global / Reset
========================= */
* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Swiper controls scrolling */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #222;
}

body {
    background: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   Swiper base
========================= */
.swiper {
    width: 100%;
    height: 100vh;
}

.swiper-slide {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

/* Pagination (vertical bullets) */
.swiper-pagination-bullets.swiper-pagination-vertical {
    right: 16px;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(0, 0, 0, 0.18);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: rgba(0, 0, 0, 0.45);
}

/* =========================
   Typography helpers
========================= */
h1,
h2 {
    margin: 0 0 1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 500;
    font-family: "Forum", serif;
}

p {
    margin: 0 0 0.75rem;
    line-height: 1.6;
}

/* =========================
   INTRO slide typography + animation
========================= */
.slide-intro {
    padding: 0;
}

.intro-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

/* Uppercase lines (Forum) */
.intro-line {
    font-family: "Forum", serif;
    font-weight: 400;
    text-transform: uppercase;
    line-height: 0.95;
}

.intro-top {
    font-size: clamp(2.6rem, 9vw, 4.9rem);
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
}

.intro-bottom {
    font-size: clamp(2.4rem, 8.5vw, 4.5rem);
    letter-spacing: 0.22em;
    margin-top: 0.55rem;
}

/* Script (Qwitcher Grypen) */
.intro-mid {
    position: relative;
    margin: -0.6rem 0 -0.2rem;
}

.intro-mid-inner {
    font-family: "Qwitcher Grypen", cursive;
    font-weight: 400;
    font-size: clamp(7rem, 26vw, 13.5rem);
    line-height: 0.8;
    letter-spacing: 0.02em;
    color: #111;
}

/* entrance animation */
.intro-line,
.intro-mid-inner {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(14px);
    transition:
        transform 800ms cubic-bezier(.22, .8, .2, 1),
        opacity 800ms cubic-bezier(.22, .8, .2, 1),
        filter 800ms cubic-bezier(.22, .8, .2, 1);
}

.swiper-slide-active.slide-intro .intro-line,
.swiper-slide-active.slide-intro .intro-mid-inner {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* stagger */
.swiper-slide-active.slide-intro .intro-top {
    transition-delay: 260ms;
}

.swiper-slide-active.slide-intro .intro-bottom {
    transition-delay: 180ms;
}

.swiper-slide-active.slide-intro .intro-mid-inner {
    transition-delay: 400ms;
}

@media (max-width: 420px) {
    .intro-top {
        letter-spacing: 0.06em;
    }

    .intro-bottom {
        letter-spacing: 0.14em;
    }
}

@media (prefers-reduced-motion: reduce) {

    .intro-line,
    .intro-mid-inner {
        transition: none;
        opacity: 1;
        filter: none;
        transform: none;
    }
}

/* =========================
   HERO: 70% photo / 30% torn paper
   + overlap 5–10vh into the photo
========================= */
.slide-hero.hero-7030 {
    height: 100vh;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;

    /* EASY TUNING */
    --overlap: 8vh;
    --paperTop: 0%;
    --paperHeight: 100%;
}

/* top 70% image */
.hero-img {
    height: 70vh;
    overflow: hidden;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* bottom: 30% + overlap */
.hero-paper {
    height: calc(30vh + var(--overlap));
    margin-top: calc(-1 * var(--overlap));
    position: relative;
    overflow: hidden;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6vw;
}

.hero-paper::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: var(--paperTop);
    height: var(--paperHeight);

    background-image: url("../img/torn_paper.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;

    pointer-events: none;
}

/* text above paper */
.hero-names {
    position: relative;
    text-align: center;
    line-height: 0.92;
    transform: translateY(-1vh);
}

/* serif names */
.hero-name {
    font-family: "Forum", serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #111;
}

.hero-name-top {
    font-size: clamp(2.6rem, 9.5vw, 4.8rem);
}

.hero-name-bottom {
    font-size: clamp(2.8rem, 10.5vw, 5.1rem);
}

.hero-message {
    font-family: "Qwitcher Grypen", cursive;
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 0.9;
    font-size: clamp(4.2rem, 12vw, 6.4rem);
}

/* script “and” */
.hero-and {
    font-family: "Qwitcher Grypen", cursive;
    font-weight: 400;
    color: #111;
    font-size: clamp(2.2rem, 8.2vw, 3.9rem);
    margin-top: -1rem;
    margin-bottom: -0.9rem;
}

/* HERO animations (like INTRO) */
.slide-hero.hero-7030 .hero-name,
.slide-hero.hero-7030 .hero-and {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(14px);
    transition:
        transform 800ms cubic-bezier(.22, .8, .2, 1),
        opacity 800ms cubic-bezier(.22, .8, .2, 1),
        filter 800ms cubic-bezier(.22, .8, .2, 1);
}

.swiper-slide-active.slide-hero.hero-7030 .hero-name,
.swiper-slide-active.slide-hero.hero-7030 .hero-and {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* stagger timing (top -> and -> bottom) */
.swiper-slide-active.slide-hero.hero-7030 .hero-name-top {
    transition-delay: 180ms;
}

.swiper-slide-active.slide-hero.hero-7030 .hero-and {
    transition-delay: 320ms;
}

.swiper-slide-active.slide-hero.hero-7030 .hero-name-bottom {
    transition-delay: 420ms;
}

/* animate paper background a bit too */
.hero-paper::before {
    opacity: 0;
    transform: translateY(10px);
    transition:
        transform 900ms cubic-bezier(.22, .8, .2, 1),
        opacity 900ms cubic-bezier(.22, .8, .2, 1);
}

.swiper-slide-active.slide-hero.hero-7030 .hero-paper::before {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 120ms;
}

@media (prefers-reduced-motion: reduce) {

    .slide-hero.hero-7030 .hero-name,
    .slide-hero.hero-7030 .hero-and,
    .hero-paper::before {
        transition: none !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}

/* Bigger HERO names on mobile */
@media (max-width: 480px) {
    .hero-name-top {
        font-size: clamp(3.4rem, 15vw, 6.2rem);
    }

    .hero-name-bottom {
        font-size: clamp(3.6rem, 16vw, 6.5rem);
    }

    .hero-and {
        font-size: clamp(2.8rem, 12vw, 4.6rem);
        margin-top: -1.3rem;
        margin-bottom: -1.2rem;
    }
}

/* =========================
   Card slides (content sections)
========================= */
.slide-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    width: min(860px, 92vw);
}

.quote {
    margin-top: 1.25rem;
    font-style: italic;
}

/* When/Where layout */
.when-where-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
    text-align: left;
}

.when-where-item {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    background: #f4eee6;
}

.when-where-item strong {
    display: block;
    margin-bottom: 0.25rem;
}

.small-note {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    opacity: 0.8;
}

@media (min-width: 740px) {
    .when-where-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================
   RSVP form (future-ready)
========================= */
.rsvp-form {
    margin-top: 1.25rem;
    display: grid;
    gap: 0.75rem;
    width: min(520px, 100%);
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
    font: inherit;
    outline: none;
}

.rsvp-form textarea {
    min-height: 110px;
    resize: vertical;
}

.rsvp-form button {
    padding: 0.95rem 1.1rem;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font: inherit;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: #111;
    color: #fff;
}

.rsvp-form button:active {
    transform: translateY(1px);
}

/* =========================
   SLIDE: Full photo + big date
========================= */
.slide-date {
    padding: 0 !important;
    position: relative;
    overflow: hidden;
    background: #000;
    display: block;

    --dateScale: 1.7;
}

/* full background image */
.slide-date .date-bg {
    position: absolute;
    inset: 0;
}

.slide-date .date-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;

    opacity: 0;
    transform: scale(1.04);
    transition:
        transform 900ms cubic-bezier(.22, .8, .2, 1),
        opacity 900ms cubic-bezier(.22, .8, .2, 1);
}

/* dark gradient for readability (bottom heavier) */
.slide-date::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.05) 0%,
            rgba(0, 0, 0, 0.18) 55%,
            rgba(0, 0, 0, 0.62) 100%);
    pointer-events: none;
}

/* date positioned at bottom left: 50%;*/
.slide-date .date-text {
    position: absolute;
    bottom: calc(6vh + 20px);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 2;
}

.slide-date .date-text-inner {
    font-family: "Forum", serif;
    color: rgba(255, 255, 255, 0.92);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 0.88;
    text-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);

    opacity: 0;
    filter: blur(6px);
    transform: translateY(14px);
    transition:
        transform 800ms cubic-bezier(.22, .8, .2, 1),
        opacity 800ms cubic-bezier(.22, .8, .2, 1),
        filter 800ms cubic-bezier(.22, .8, .2, 1);
}

.slide-date .date-line-1 {
    font-size: calc(clamp(4.6rem, 18vw, 8.4rem) * var(--dateScale));
}


.slide-date .date-line-2 {
    font-size: calc(clamp(5.2rem, 20vw, 9.4rem) * var(--dateScale));
    margin-top: calc(-0.9rem * var(--dateScale));
}

/* Variant: details title on photo slide */
.slide-date.slide-date-details .date-text-inner {
    font-family: "Qwitcher Grypen", cursive;
    text-transform: none;
    letter-spacing: 0.02em;
    line-height: 0.95;
}


/* active state */
.swiper-slide-active.slide-date .date-bg img {
    opacity: 1;
    transform: scale(1.01);
}

.swiper-slide-active.slide-date .date-text-inner {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
    transition-delay: 220ms;
}

@media (prefers-reduced-motion: reduce) {

    .slide-date .date-bg img,
    .slide-date .date-text-inner {
        transition: none !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}

/* =========================
   PROGRAM slide — layout + safe spacing
========================= */
.slide-program {
    padding: 3.5vh 0 !important;
    /* always some air top/bottom */
    box-sizing: border-box;
    background: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.program-wrap {
    width: min(620px, 90vw);

    /* keep it inside viewport on desktop too */
    max-height: calc(100vh - 7vh);
    overflow: auto;
    -webkit-overflow-scrolling: touch;

    padding: 2vh 0;
}

/* title */
.program-title {
    font-family: "Forum", serif;
    font-weight: 400;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: clamp(2.0rem, 8vw, 3.0rem);
    color: #111;

    margin-top: 0.8rem;
    margin-bottom: 3vh;
}

.program-item {
    margin: 0;
}

/* small heading */
.program-heading {
    font-family: "Forum", serif;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.70);
    margin-bottom: 0.9rem;
}

/* time */
.program-time {
    font-family: "Forum", serif;
    font-weight: 400;
    letter-spacing: 0.06em;
    font-size: clamp(2.2rem, 9vw, 3.8rem);
    line-height: 1;
    color: #111;
    margin-bottom: 0.25rem;
}

/* script */
.program-desc {
    font-family: "Qwitcher Grypen", cursive;
    font-weight: 400;
    font-size: clamp(2.2rem, 9vw, 3.8rem);
    line-height: 0.9;
    color: #111;
    margin-bottom: 0.95rem;
}

/* place */
.program-place {
    font-family: "Forum", serif;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(0, 0, 0, 0.60);
    text-transform: uppercase;
    width: min(560px, 100%);
    margin: 0 auto;
}

.program-place-link {
    color: inherit;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.28em;
}

.program-place-link .fa-location-dot {
    /* font-size: 0.9em; */
    line-height: 1;
    opacity: 0.82;
    padding-bottom: 2px;
}

.program-place-link:hover,
.program-place-link:focus-visible {
    color: rgba(0, 0, 0, 0.86);
}

/* divider */
.program-divider {
    width: min(190px, 46vw);
    height: 30px;
    margin: 3.2vh auto;
    background-image: url("../img/torn_paper.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.50;
}

/* =========================
   PROGRAM animation (reliable): driven by .program-animate class
   (JS adds/removes .program-animate)
========================= */

/* base hidden */
.slide-program .program-title,
.slide-program .program-item .program-heading,
.slide-program .program-item .program-time,
.slide-program .program-item .program-desc,
.slide-program .program-item .program-place,
.slide-program .program-item .program-divider {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px);
    transition:
        transform 900ms cubic-bezier(.22, .8, .2, 1),
        opacity 900ms cubic-bezier(.22, .8, .2, 1),
        filter 900ms cubic-bezier(.22, .8, .2, 1);
}

/* active visible */
.slide-program.program-animate .program-title,
.slide-program.program-animate .program-item .program-heading,
.slide-program.program-animate .program-item .program-time,
.slide-program.program-animate .program-item .program-desc,
.slide-program.program-animate .program-item .program-place,
.slide-program.program-animate .program-item .program-divider {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* quick start */
.slide-program.program-animate .program-title {
    transition-delay: 0ms;
}

/* per-block base delay (fast) */
.slide-program.program-animate .program-item:nth-of-type(1) {
    --base: 0ms;
}

.slide-program.program-animate .program-item:nth-of-type(2) {
    --base: 180ms;
}

.slide-program.program-animate .program-item:nth-of-type(3) {
    --base: 360ms;
}


/* inside each block */
.slide-program.program-animate .program-item .program-heading {
    transition-delay: calc(var(--base) + 0ms);
}

.slide-program.program-animate .program-item .program-time {
    transition-delay: calc(var(--base) + 140ms);
}

.slide-program.program-animate .program-item .program-desc {
    transition-delay: calc(var(--base) + 300ms);
}

.slide-program.program-animate .program-item .program-place {
    transition-delay: calc(var(--base) + 460ms);
}

.slide-program.program-animate .program-item .program-divider {
    transition-delay: calc(var(--base) + 620ms);
}

@media (max-width: 420px) {
    .program-wrap {
        padding: 1.6vh 0;
    }

    .program-heading {
        font-size: 0.8rem;
    }

    .program-place {
        font-size: 0.78rem;
    }

    .program-divider {
        margin: 2.8vh auto;
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .slide-program .program-title,
    .slide-program .program-item .program-heading,
    .slide-program .program-item .program-time,
    .slide-program .program-item .program-desc,
    .slide-program .program-item .program-place,
    .slide-program .program-item .program-divider {
        transition: none !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}

/* =========================
   PROGRAM — compact desktop when height is tight
   (paste at the VERY END of style.css)
========================= */
@media (min-width: 768px) and (max-height: 820px) {
    .slide-program {
        padding: 2vh 0 !important;
    }

    .slide-program .program-wrap {
        max-height: calc(100vh - 4vh);
        padding: 1vh 0 !important;
    }

    .slide-program .program-title {
        font-size: 2.1rem;
        /* smaller */
        margin-top: 0.4rem;
        margin-bottom: 1.6vh;
    }

    .slide-program .program-heading {
        font-size: 0.78rem;
        margin-bottom: 0.6rem;
    }

    .slide-program .program-time {
        font-size: 2.7rem;
        /* smaller time */
        margin-bottom: 0.15rem;
    }

    .slide-program .program-desc {
        font-size: 2.6rem;
        /* smaller script */
        margin-bottom: 0.6rem;
    }

    .slide-program .program-place {
        font-size: 0.74rem;
        line-height: 1.25;
        width: min(620px, 92%);
    }

    .slide-program .program-divider {
        height: 22px;
        margin: 1.8vh auto;
        opacity: 0.45;
    }
}

/* =========================
   PROGRAM — always fit in 100vh (NO SCROLL)
   paste at the VERY END of style.css
========================= */

/* 1) no scrollbars in program slide */
.slide-program {
    padding: 2vh 0 !important;
    /* air top/bottom */
}

.slide-program .program-wrap {
    height: calc(100vh - 4vh);
    /* 2vh top + 2vh bottom */
    max-height: none !important;
    overflow: hidden !important;
    /* <-- kill scrolling */
    padding: 0 !important;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* distribute blocks */
    gap: 1.2vh;
}

/* 2) typography scales with height (vh) so 4 blocks fit everywhere */
.slide-program .program-title {
    margin: 0 !important;
    padding-top: 4.6vh;
    /* tiny safety */
    font-size: clamp(1.4rem, 3.2vh, 2.3rem);
    letter-spacing: 0.10em;
}

.slide-program .program-heading {
    margin: 0 0 0.5vh !important;
    font-size: clamp(0.58rem, 1.15vh, 0.80rem);
    letter-spacing: 0.12em;
}

.slide-program .program-time {
    margin: 0 0 0.2vh !important;
    font-size: clamp(1.6rem, 4.6vh, 3.0rem);
    line-height: 1;
}

.slide-program .program-desc {
    margin: 0.1vh 0 0.6vh !important;
    font-size: clamp(1.45rem, 4.0vh, 2.8rem);
    line-height: 0.92;
}

.slide-program .program-place {
    margin: 0 auto !important;
    font-size: clamp(0.58rem, 1.05vh, 0.78rem);
    line-height: 1.25;
    width: min(640px, 92%);
}

/* 3) make divider smaller (or hide on very short heights) */
.slide-program .program-divider {
    height: 18px;
    margin: 0.9vh auto 0 !important;
    opacity: 0.40;
    background-size: contain;
}

/* If height is really tight: hide dividers to guarantee fit */
@media (max-height: 720px) {
    .slide-program .program-divider {
        display: none;
    }

    .slide-program .program-wrap {
        gap: 0.8vh;
    }
}

/* PROGRAM: manje praznog prostora, malo veći fontovi */
.slide-program .program-wrap {
    justify-content: flex-start !important;
    /* umjesto space-between */
    gap: 7.6vh !important;
    /* manji razmak između blokova */
}

/* title */
.slide-program .program-title {
    font-size: clamp(1.6rem, 3.6vh, 2.6rem) !important;
    margin-bottom: 1.6vh !important;
}

/* heading */
.slide-program .program-heading {
    margin: 0 0 0.35vh !important;
    font-size: clamp(0.62rem, 1.25vh, 0.86rem) !important;
}

/* time */
.slide-program .program-time {
    font-size: clamp(1.85rem, 5.2vh, 3.25rem) !important;
    margin: 0 0 0.15vh !important;
}

/* script */
.slide-program .program-desc {
    font-size: clamp(1.7rem, 4.6vh, 3.05rem) !important;
    margin: 0.1vh 0 0.45vh !important;
}

/* location */
.slide-program .program-place {
    font-size: clamp(0.62rem, 1.15vh, 0.82rem) !important;
    line-height: 1.22 !important;
}

/* divider: manji i s manje margine */
.slide-program .program-divider {
    height: 14px !important;
    margin: 0.7vh auto 0 !important;
    opacity: 0.35 !important;
}

/* još malo stisni ako je visina mala */
@media (max-height: 720px) {
    .slide-program .program-wrap {
        gap: 1.2vh !important;
    }

    .slide-program .program-divider {
        display: none !important;
    }
}

/* PROGRAM: bigger fonts (+~20%) */
.slide-program .program-title {
    font-size: clamp(2.2rem, 5.0vh, 3.6rem) !important;
}

.slide-program .program-heading {
    font-size: clamp(0.84rem, 1.75vh, 1.14rem) !important;
}

.slide-program .program-time {
    font-size: clamp(2.6rem, 7.2vh, 4.55rem) !important;
}

.slide-program .program-desc {
    font-size: clamp(2.35rem, 6.25vh, 4.25rem) !important;
}

.slide-program .program-place {
    font-size: clamp(0.84rem, 1.62vh, 1.08rem) !important;
    line-height: 1.18 !important;
}

/* =========================
   RSVP slide (Bootstrap-like layout + animation)
   paste at END of style.css
========================= */

/* Minimal grid system (no Bootstrap needed) */
.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -12px;
    margin-right: -12px;
}

[class*="col-"] {
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
}

.col-sm-12 {
    width: 100%;
}

@media (min-width: 768px) {
    .col-sm-6 {
        width: 50%;
    }

    .col-sm-3 {
        width: 25%;
    }

    .col-sm-2 {
        width: 16.6667%;
    }

    .col-sm-5 {
        width: 41.6667%;
    }
}

.center-text {
    text-align: center;
}

.margin-bottom {
    margin-bottom: 1.05rem;
}

/* Slide wrapper */
.slide-rsvp {
    padding: 0 !important;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-bg {
    position: absolute;
    inset: 0;
    /* subtle pattern-ish background (zamijeni po želji) */
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 0, 0, 0.035) 0 2px, transparent 3px) 0 0 / 22px 22px,
        radial-gradient(circle at 70% 60%, rgba(0, 0, 0, 0.03) 0 2px, transparent 3px) 0 0 / 26px 26px;
    opacity: 0.55;
    pointer-events: none;
}

.rsvp-form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 6vh 0;
    /* malo zraka gore/dolje */
}

/* Card */
.contact-form {
    width: min(980px, 92vw);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: clamp(1.4rem, 3.2vw, 2.6rem);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.10);
    text-align: left;
}

/* Title styling like screenshot */
.rsvp-title {
    margin: 0 0 1.6rem;
    text-align: center;
    font-family: "Qwitcher Grypen", cursive;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 0.95;
    font-size: clamp(2.2rem, 6.2vw, 4.6rem);
    color: #111;
}

.number-confirmation {
    display: block;
    margin-top: 0.45rem;
    font-family: "Forum", serif;
    font-weight: 400;
    letter-spacing: 0.06em;
    font-size: clamp(2.3rem, 5.2vw, 4.2rem);
}

/* Labels + inputs */
.contact-form label {
    display: block;
    font-family: "Forum", serif;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: rgba(0, 0, 0, 0.70);
    margin: 0 0 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.95rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.18);
    background: rgba(255, 255, 255, 0.98);
    font: inherit;
    outline: none;
}

.form-control:focus {
    border-color: rgba(0, 0, 0, 0.35);
}

/* Button */
.btn {
    display: inline-block;
}

.btn-potvrda {
    margin-top: 0.35rem;
    padding: 0.95rem 2.2rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    background: #858c6d;
    color: #fff;
    font-family: "Forum", serif;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.btn-potvrda:active {
    transform: translateY(1px);
}

/* Responsive tightening on small phones */
@media (max-width: 420px) {
    .rsvp-form-wrapper {
        padding: 5vh 0;
    }

    .contact-form {
        padding: 1.25rem;
    }
}

/* =========================
   RSVP slide (BIGGER + LESS AIR)  ~ +20%
========================= */

/* Minimal grid system (no Bootstrap needed) */
.container {
    width: min(1100px, 92vw);
    margin: 0 auto;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -10px;
    /* tighter */
    margin-right: -10px;
}

[class*="col-"] {
    width: 100%;
    padding-left: 10px;
    /* tighter */
    padding-right: 10px;
}

.col-sm-12 {
    width: 100%;
}

@media (min-width: 768px) {
    .col-sm-6 {
        width: 50%;
    }

    .col-sm-3 {
        width: 25%;
    }

    .col-sm-2 {
        width: 16.6667%;
    }

    .col-sm-5 {
        width: 41.6667%;
    }
}

.center-text {
    text-align: center;
}

.margin-bottom {
    margin-bottom: 0.8rem;
}

/* less air */

/* Slide wrapper */
.slide-rsvp {
    padding: 0 !important;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rsvp-bg {
    background: none;
}


.rsvp-form-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 4.6vh 0;
    /* less top/bottom air */
}

/* Card */
.contact-form {
    width: min(1020px, 94vw);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    padding: clamp(1.35rem, 2.8vw, 2.25rem);
    /* less padding but bigger content */
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.10);
    text-align: left;
}

/* Title styling (bigger + tighter) */
.rsvp-title {
    margin: 0 0 1.05rem;
    /* tighter */
    text-align: center;
    font-family: "Qwitcher Grypen", cursive;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 0.92;
    font-size: clamp(2.65rem, 7.2vw, 5.5rem);
    /* ~ +20% */
    color: #111;
}

.number-confirmation {
    display: block;
    margin-top: 0.25rem;
    /* tighter */
    font-family: "Forum", serif;
    font-weight: 400;
    letter-spacing: 0.06em;
    font-size: clamp(2.75rem, 6.1vw, 5.0rem);
    /* ~ +20% */
}

/* =========================
   RSVP staggered reveal animation (like Program)
   Paste at VERY END of style.css
========================= */

/* Base hidden state */
.slide-rsvp .contact-form .rsvp-title,
.slide-rsvp .contact-form .row>[class*="col-"] {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px);
    transition:
        transform 800ms cubic-bezier(.22, .8, .2, 1),
        opacity 800ms cubic-bezier(.22, .8, .2, 1),
        filter 800ms cubic-bezier(.22, .8, .2, 1);
}

/* Visible state when active */
.slide-rsvp.rsvp-animate .contact-form .rsvp-title,
.slide-rsvp.rsvp-animate .contact-form .row>[class*="col-"] {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Stagger delays (match your field order) */
.slide-rsvp.rsvp-animate .contact-form .rsvp-title {
    transition-delay: 120ms;
}

.slide-rsvp.rsvp-animate .contact-form .row>[class*="col-"]:nth-child(1) {
    transition-delay: 240ms;
}

/* Ime */
.slide-rsvp.rsvp-animate .contact-form .row>[class*="col-"]:nth-child(2) {
    transition-delay: 340ms;
}

/* Telefon */
.slide-rsvp.rsvp-animate .contact-form .row>[class*="col-"]:nth-child(3) {
    transition-delay: 440ms;
}

/* Djeca */
.slide-rsvp.rsvp-animate .contact-form .row>[class*="col-"]:nth-child(4) {
    transition-delay: 540ms;
}

/* Pratnja */
.slide-rsvp.rsvp-animate .contact-form .row>[class*="col-"]:nth-child(5) {
    transition-delay: 640ms;
}

/* Imena pratnji */
.slide-rsvp.rsvp-animate .contact-form .row>[class*="col-"]:nth-child(6) {
    transition-delay: 760ms;
}

/* Button */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .slide-rsvp .contact-form .rsvp-title,
    .slide-rsvp .contact-form .row>[class*="col-"] {
        transition: none !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}

/* =========================
   PROGRAM mobile fit (keep same visual pattern)
========================= */
@media (max-width: 767px) {
    .slide-program {
        padding:
            max(10px, env(safe-area-inset-top)) 0
            max(10px, env(safe-area-inset-bottom)) !important;
    }

    .slide-program .program-wrap {
        width: min(560px, 92vw);
        height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
        max-height: none !important;
        overflow: hidden !important;
        padding: clamp(8px, 1.5vh, 14px) 0 !important;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly !important;
        gap: clamp(10px, 1.8vh, 18px) !important;
    }

    .slide-program .program-item {
        margin: 0 !important;
    }

    .slide-program .program-time {
        font-size: clamp(2rem, 9.3vw, 3.05rem) !important;
        line-height: 0.98;
        margin: 0 0 clamp(1px, 0.35vh, 4px) !important;
    }

    .slide-program .program-desc {
        font-size: clamp(2rem, 9.4vw, 3.1rem) !important;
        line-height: 0.88;
        margin: 0 0 clamp(3px, 0.65vh, 8px) !important;
    }

    .slide-program .program-place {
        font-size: clamp(0.65rem, 2.85vw, 0.86rem) !important;
        line-height: 1.2 !important;
        width: min(92vw, 500px);
    }

    .slide-program .program-divider {
        height: clamp(12px, 2vh, 18px) !important;
        margin: clamp(5px, 1vh, 10px) auto 0 !important;
        opacity: 0.35 !important;
    }
}

@media (max-width: 390px), (max-height: 700px) {
    .slide-program .program-wrap {
        gap: clamp(7px, 1.2vh, 12px) !important;
    }

    .slide-program .program-time {
        font-size: clamp(1.8rem, 8.9vw, 2.75rem) !important;
    }

    .slide-program .program-desc {
        font-size: clamp(1.8rem, 8.8vw, 2.75rem) !important;
    }

    .slide-program .program-place {
        font-size: clamp(0.6rem, 2.7vw, 0.78rem) !important;
    }

    .slide-program .program-divider {
        height: 12px !important;
        margin-top: 4px !important;
    }
}

/* =========================
   PROGRAM content size boost (+~30%)
========================= */
.slide-program .program-title {
    font-size: clamp(2.86rem, 6.5vh, 4.68rem) !important;
}

.slide-program .program-heading {
    font-size: clamp(1.1rem, 2.25vh, 1.48rem) !important;
}

.slide-program .program-time {
    font-size: clamp(3.38rem, 9.4vh, 5.92rem) !important;
}

.slide-program .program-desc {
    font-size: clamp(3.05rem, 8.12vh, 5.53rem) !important;
}

.slide-program .program-place {
    font-size: clamp(1.1rem, 2.1vh, 1.4rem) !important;
}

.slide-program .program-divider {
    height: clamp(16px, 2.6vh, 23px) !important;
}

@media (max-width: 767px) {
    .slide-program .program-wrap {
        gap: clamp(7px, 1.2vh, 13px) !important;
    }

    .slide-program .program-time {
        font-size: clamp(2.6rem, 12.1vw, 3.96rem) !important;
    }

    .slide-program .program-desc {
        font-size: clamp(2.6rem, 12.2vw, 4.03rem) !important;
    }

    .slide-program .program-place {
        font-size: clamp(0.85rem, 3.7vw, 1.12rem) !important;
        line-height: 1.16 !important;
    }
}

@media (max-width: 390px), (max-height: 700px) {
    .slide-program .program-wrap {
        gap: clamp(5px, 0.9vh, 10px) !important;
    }

    .slide-program .program-time {
        font-size: clamp(2.34rem, 11.6vw, 3.58rem) !important;
    }

    .slide-program .program-desc {
        font-size: clamp(2.34rem, 11.4vw, 3.58rem) !important;
    }

    .slide-program .program-place {
        font-size: clamp(0.78rem, 3.5vw, 1.01rem) !important;
    }
}

/* =========================
   Keep mobile layout on desktop too
========================= */
@media (min-width: 768px) {
    .col-sm-6,
    .col-sm-5,
    .col-sm-3,
    .col-sm-2 {
        width: 100% !important;
    }
}

/* =========================
   Desktop frame + mobile look inside
========================= */
@media (min-width: 900px) {
    body {
        background:
            radial-gradient(circle at 15% 15%, rgba(0, 0, 0, 0.05), transparent 28%),
            radial-gradient(circle at 85% 80%, rgba(0, 0, 0, 0.04), transparent 26%),
            #f5f3ee;
        display: grid;
        place-items: center;
        padding: 14px;
    }

    .swiper.myWeddingSwiper {
        width: min(430px, 100vw);
        height: min(900px, 96vh);
        border-radius: 22px;
        overflow: hidden;
        box-shadow:
            0 28px 90px rgba(0, 0, 0, 0.20),
            0 8px 28px rgba(0, 0, 0, 0.14);
        background: #fff;
    }

    .swiper-pagination-bullets.swiper-pagination-vertical {
        right: 10px;
    }

    /* RSVP: keep everything inside phone frame on desktop */
    .slide-rsvp .rsvp-form-wrapper {
        padding: 12px 0;
    }

    .slide-rsvp .contact-form {
        width: calc(100% - 18px);
        max-width: 398px;
        padding: 1rem;
        border-radius: 14px;
    }

    .slide-rsvp .container {
        width: 100%;
    }

    .slide-rsvp .row {
        margin-left: -6px;
        margin-right: -6px;
    }

    .slide-rsvp [class*="col-"] {
        padding-left: 6px;
        padding-right: 6px;
    }

    .slide-rsvp .rsvp-title {
        font-size: 2.9rem;
        line-height: 0.94;
        margin-bottom: 0.8rem;
    }

    .slide-rsvp .number-confirmation {
        font-size: 2.6rem;
        margin-top: 0.2rem;
    }

    .slide-rsvp .contact-form label {
        font-size: 0.68rem;
        letter-spacing: 0.08em;
    }

    .slide-rsvp .form-control {
        padding: 0.78rem 0.82rem;
        font-size: 0.95rem;
    }

    .slide-rsvp .btn-potvrda {
        width: 100%;
        padding: 0.82rem 1rem;
        font-size: 0.86rem;
        letter-spacing: 0.12em;
    }

    /* Cards 2, 3, 4: fit typography inside desktop phone-frame */
    .slide-intro .intro-stack {
        gap: 0.2rem;
        padding: 0 10px;
    }

    .slide-intro .intro-top {
        font-size: 2.45rem;
        letter-spacing: 0.06em;
        margin-bottom: 0.35rem;
    }

    .slide-intro .intro-bottom {
        font-size: 2.2rem;
        letter-spacing: 0.14em;
        margin-top: 0.35rem;
    }

    .slide-intro .intro-mid {
        margin: -0.35rem 0 -0.1rem;
    }

    .slide-intro .intro-mid-inner {
        font-size: 6.7rem;
        line-height: 0.78;
    }

    .slide-date {
        --dateScale: 0.9;
    }

    .slide-date .date-text {
        bottom: calc(4.5vh + 20px);
        width: calc(100% - 24px);
    }

    .slide-date .date-line-1 {
        font-size: calc(clamp(3.2rem, 14vw, 5rem) * var(--dateScale));
    }

    .slide-date .date-line-2 {
        font-size: calc(clamp(3.6rem, 16vw, 5.6rem) * var(--dateScale));
        margin-top: calc(-0.55rem * var(--dateScale));
    }

    .slide-date.slide-date-details .date-line-1 {
        font-size: clamp(3.1rem, 12vw, 4.6rem);
    }
}

/* =========================
   Extra page-enter animations (all slides)
========================= */
.slide-hero .hero-names,
.slide-intro .intro-stack,
.slide-program .program-wrap,
.slide-rsvp .contact-form {
    opacity: 0;
    filter: blur(6px);
    transform: translateY(16px);
    transition:
        transform 850ms cubic-bezier(.22, .8, .2, 1),
        opacity 850ms cubic-bezier(.22, .8, .2, 1),
        filter 850ms cubic-bezier(.22, .8, .2, 1);
    will-change: transform, opacity, filter;
}

.swiper-slide.slide-animate.slide-hero .hero-names,
.swiper-slide.slide-animate.slide-intro .intro-stack,
.swiper-slide.slide-animate.slide-program .program-wrap,
.swiper-slide.slide-animate.slide-rsvp .contact-form {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.slide-date .date-text {
    opacity: 0;
    filter: blur(6px);
    transform: translateX(-50%) translateY(16px);
    transition:
        transform 850ms cubic-bezier(.22, .8, .2, 1),
        opacity 850ms cubic-bezier(.22, .8, .2, 1),
        filter 850ms cubic-bezier(.22, .8, .2, 1);
    will-change: transform, opacity, filter;
}

.swiper-slide.slide-animate.slide-date .date-text {
    opacity: 1;
    filter: blur(0);
    transform: translateX(-50%) translateY(0);
}

.swiper-slide.slide-animate.slide-hero .hero-names {
    transition-delay: 140ms;
}

.swiper-slide.slide-animate.slide-intro .intro-stack {
    transition-delay: 90ms;
}

.swiper-slide.slide-animate.slide-date .date-text {
    transition-delay: 180ms;
}

.swiper-slide.slide-animate.slide-program .program-wrap {
    transition-delay: 100ms;
}

.swiper-slide.slide-animate.slide-rsvp .contact-form {
    transition-delay: 80ms;
}

/* Date slide: add line-by-line reveal on top of existing date animation */
.slide-date .date-line-1,
.slide-date .date-line-2 {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(12px);
    transition:
        transform 700ms cubic-bezier(.22, .8, .2, 1),
        opacity 700ms cubic-bezier(.22, .8, .2, 1),
        filter 700ms cubic-bezier(.22, .8, .2, 1);
}

.swiper-slide.slide-animate.slide-date .date-line-1,
.swiper-slide.slide-animate.slide-date .date-line-2 {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.swiper-slide.slide-animate.slide-date .date-line-1 {
    transition-delay: 320ms;
}

.swiper-slide.slide-animate.slide-date .date-line-2 {
    transition-delay: 460ms;
}

@media (prefers-reduced-motion: reduce) {

    .slide-hero .hero-names,
    .slide-intro .intro-stack,
    .slide-program .program-wrap,
    .slide-rsvp .contact-form,
    .slide-date .date-line-1,
    .slide-date .date-line-2 {
        transition: none !important;
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }

    .slide-date .date-text {
        transition: none !important;
        opacity: 1 !important;
        filter: none !important;
        transform: translateX(-50%) !important;
    }
}

/* =========================
   Orientation lock guard (mobile/tablet)
========================= */
.orientation-guard {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(10, 10, 10, 0.94);
    text-align: center;
}

.orientation-guard-card {
    width: min(420px, 92vw);
    color: #fff;
}

.orientation-guard-title {
    font-family: "Forum", serif;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: clamp(1.4rem, 5vw, 2rem);
    margin-bottom: 0.45rem;
}

.orientation-guard-text {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(0.9rem, 3.4vw, 1.05rem);
    letter-spacing: 0.02em;
    line-height: 1.45;
    opacity: 0.92;
}

body.orientation-locked {
    overflow: hidden !important;
}

@media (hover: none) and (pointer: coarse) and (orientation: landscape) {
    .orientation-guard {
        display: flex;
    }
}

