/* Strona gości — elegancki front weselny na Bootstrap 5 */
:root {
    --wedding-ink: #2f2a24;
    --wedding-muted: #7c7166;
    --wedding-cream: #fffaf1;
    --wedding-gold: #b8893b;
    --wedding-gold-dark: #8d6426;
    --wedding-blush: #f4ddd3;
    --wedding-shadow: 0 22px 70px rgba(74, 54, 31, .16);
}

body.guest-app {
    background:
        linear-gradient(180deg, rgba(255, 250, 242, .15) 0%, #fffaf4 28rem, #f7efe3 100%),
        radial-gradient(circle at top left, rgba(244, 221, 211, .9), transparent 34rem),
        radial-gradient(circle at bottom right, rgba(220, 190, 132, .38), transparent 30rem);
    color: var(--wedding-ink);
    font-family: "Nunito Sans", system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}
body.guest-app::before {
    background:
        linear-gradient(180deg, rgba(255, 250, 242, .08) 0%, rgba(255, 250, 242, .86) 58%, #fffaf4 100%),
        url("/assets/wedding-subpage-banner.jpg") center top / cover no-repeat;
    content: "";
    height: 24rem;
    inset: 0 0 auto;
    opacity: .42;
    pointer-events: none;
    position: fixed;
    z-index: 0;
}

body.guest-app .form-control,
body.guest-app .form-select,
body.guest-app .card {
    background-color: #fff;
}

body.guest-app .btn-primary {
    --bs-btn-bg: var(--wedding-gold);
    --bs-btn-border-color: var(--wedding-gold);
    --bs-btn-hover-bg: var(--wedding-gold-dark);
    --bs-btn-hover-border-color: var(--wedding-gold-dark);
    --bs-btn-active-bg: var(--wedding-gold-dark);
    --bs-btn-active-border-color: var(--wedding-gold-dark);
    box-shadow: 0 10px 24px rgba(184, 137, 59, .26);
}

.guest-container { max-width: 760px; position: relative; z-index: 1; }

.guest-header {
    background:
        linear-gradient(90deg, rgba(27, 20, 14, .86), rgba(27, 20, 14, .42), rgba(27, 20, 14, .18)),
        url("/assets/wedding-subpage-banner.jpg") center / cover no-repeat;
    border: 1px solid rgba(184, 137, 59, .2);
    border-radius: 1.75rem;
    box-shadow: var(--wedding-shadow);
    color: #fff;
    margin: .25rem 0 2rem;
    min-height: 220px;
    overflow: hidden;
    padding: 3.5rem 2rem 2rem;
    position: relative;
    text-align: left;
}
.guest-header::after {
    background: linear-gradient(180deg, transparent, rgba(255, 250, 242, .16));
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}
.guest-header > * {
    max-width: 34rem;
    position: relative;
    z-index: 1;
}
.guest-header .text-muted,
.guest-header a {
    color: rgba(255, 255, 255, .82) !important;
}
.guest-header .brand-mark,
.brand-mark {
    color: #ffe7b8;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: .35rem;
}
.guest-header h1,
.wedding-hero h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
}
.guest-header h1 {
    font-size: clamp(2.4rem, 8vw, 4.3rem);
    line-height: .95;
    margin-bottom: .5rem;
    text-shadow: 0 10px 32px rgba(0, 0, 0, .34);
}

.wedding-hero {
    border: 1px solid rgba(184, 137, 59, .18);
    border-radius: 2rem;
    box-shadow: var(--wedding-shadow);
    overflow: hidden;
    position: relative;
    background: #1f1b16;
    min-height: 700px;
    margin: .25rem 0 2rem;
}
.wedding-hero-photo {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(16, 12, 9, .04) 0%, rgba(16, 12, 9, .18) 33%, rgba(16, 12, 9, .82) 100%),
        url("/assets/wedding-hero-konrad-paulina.jpg") center / cover no-repeat;
    transform: scale(1.01);
}
.wedding-hero-content {
    position: relative;
    min-height: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    color: #fff;
    padding: 3rem 1.5rem 1.5rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.wedding-hero h1 {
    font-size: clamp(3.15rem, 12vw, 5.7rem);
    font-weight: 700;
    line-height: .9;
    margin: .2rem 0 .65rem;
}
.wedding-hero .lead {
    font-size: 1.12rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}
.wedding-kicker {
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .2em;
    margin: 0;
    padding: .35rem .8rem;
    text-transform: uppercase;
}

.hero-action-panel,
.wedding-card {
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(184, 137, 59, .22);
    border-radius: 1.4rem;
    box-shadow: var(--wedding-shadow);
    overflow: hidden;
}
.hero-action-panel {
    color: var(--wedding-ink);
    backdrop-filter: blur(12px);
    max-width: 500px;
    padding: 1.45rem;
    text-align: left;
    text-shadow: none;
    width: min(100%, 460px);
}
.hero-action-panel h2 {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.12;
    margin: 0 0 .45rem;
}
.hero-action-panel p {
    color: var(--wedding-muted);
    font-size: .98rem;
    margin: 0 0 1rem;
}
.main-action-card { margin-top: -2.2rem; position: relative; z-index: 2; }
.wedding-detail-img {
    display: block;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    width: 100%;
}
.soft-pill {
    background: #fff4dc;
    border: 1px solid rgba(184, 137, 59, .18);
    border-radius: 999px;
    color: var(--wedding-gold-dark);
    display: inline-flex;
    font-size: .82rem;
    font-weight: 800;
    padding: .35rem .75rem;
}
.quick-steps {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1.5rem 0 2.25rem;
}
.quick-steps div {
    align-items: center;
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(184, 137, 59, .16);
    border-radius: 1rem;
    display: flex;
    gap: .75rem;
    padding: 1rem;
}
.quick-steps strong {
    align-items: center;
    background: var(--wedding-gold);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    flex: 0 0 2rem;
    height: 2rem;
    justify-content: center;
    width: 2rem;
}
.quick-steps span { color: var(--wedding-muted); font-weight: 700; }

.album-link {
    background: rgba(255, 255, 255, .9) !important;
    border: 1px solid rgba(184, 137, 59, .18) !important;
    border-radius: 1.35rem;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .15s, border-color .15s, box-shadow .15s;
}
.album-link:hover {
    border-color: var(--wedding-gold) !important;
    box-shadow: 0 16px 34px rgba(74, 54, 31, .14);
    color: inherit;
    transform: translateY(-2px);
}

.guest-pick-btn {
    background: rgba(255, 255, 255, .94);
    border-color: rgba(184, 137, 59, .16);
    text-align: left;
    padding: 1.15rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 800;
}
.guest-pick-btn:hover {
    background: var(--wedding-cream);
    color: var(--wedding-gold-dark);
}

.scan-action-card {
    align-items: center;
    background:
        linear-gradient(120deg, rgba(47, 42, 36, .92), rgba(141, 100, 38, .72)),
        url("/assets/wedding-subpage-banner.jpg") center / cover no-repeat;
    border: 1px solid rgba(255, 231, 184, .22);
    border-radius: 1.5rem;
    box-shadow: var(--wedding-shadow);
    color: #fff;
    display: grid;
    gap: 1rem;
    grid-template-columns: auto 1fr auto;
    overflow: hidden;
    padding: 1.25rem;
}
.scan-action-icon {
    align-items: center;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 1rem;
    display: inline-flex;
    font-size: 2rem;
    height: 4rem;
    justify-content: center;
    width: 4rem;
}
.scan-action-copy h2 {
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0 0 .25rem;
}
.scan-action-copy p {
    color: rgba(255, 255, 255, .82);
    margin: 0;
}
.scan-action-card .soft-pill {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .2);
    color: #ffe7b8;
}
.scan-action-btn {
    border-radius: 1rem;
    font-weight: 900;
    min-width: 9.5rem;
}

.upload-intro h2 {
    font-size: clamp(1.7rem, 5vw, 2.25rem);
    font-weight: 900;
    line-height: 1.02;
    margin: 0 0 .55rem;
}
.upload-intro p {
    color: var(--wedding-muted);
    font-size: 1rem;
    margin: 0;
}
.upload-dropzone {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .96) 0%, rgba(255, 248, 236, .96) 100%);
    border: 2px dashed rgba(184, 137, 59, .42);
    border-radius: 1.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 230px;
    justify-content: center;
    padding: 2rem 1.25rem;
    position: relative;
    text-align: center;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.upload-dropzone:hover {
    border-color: var(--wedding-gold);
    box-shadow: 0 18px 40px rgba(184, 137, 59, .16);
    transform: translateY(-2px);
}
.upload-dropzone input {
    height: 1px;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 1px;
}
.upload-icon {
    align-items: center;
    background: linear-gradient(135deg, #ffe9bd, #c79545);
    border-radius: 999px;
    box-shadow: 0 14px 32px rgba(184, 137, 59, .28);
    color: #fff;
    display: inline-flex;
    font-size: 2rem;
    height: 4.5rem;
    justify-content: center;
    margin-bottom: 1rem;
    width: 4.5rem;
}
.upload-dropzone strong {
    color: var(--wedding-ink);
    font-size: 1.1rem;
    font-weight: 900;
}
.upload-dropzone small {
    color: var(--wedding-muted);
    display: block;
    margin-top: .35rem;
}
.upload-help {
    display: grid;
    gap: .55rem;
}
.upload-help div {
    align-items: center;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(184, 137, 59, .14);
    border-radius: .9rem;
    color: var(--wedding-muted);
    display: flex;
    font-size: .92rem;
    gap: .5rem;
    padding: .65rem .75rem;
}
.upload-help i { color: var(--wedding-gold-dark); }
.upload-submit {
    border-radius: 1rem;
    font-weight: 900;
    padding: .95rem 1rem;
}

.wedding-tip-card {
    align-items: flex-end;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .88) 48%, rgba(255, 255, 255, .22) 100%),
        url("/assets/wedding-detail-konrad-paulina.jpg") right center / auto 150% no-repeat;
    border: 1px solid rgba(184, 137, 59, .18);
    border-radius: 1.5rem;
    box-shadow: var(--wedding-shadow);
    display: flex;
    min-height: 230px;
    overflow: hidden;
    padding: 1.5rem;
}
.wedding-tip-card > div { max-width: 25rem; }
.wedding-tip-card h2 {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: .55rem;
}
.wedding-tip-card p {
    color: var(--wedding-muted);
    margin: 0;
}

.upload-card {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
}
.upload-visual {
    background:
        linear-gradient(180deg, rgba(30, 22, 14, .02), rgba(30, 22, 14, .3)),
        url("/assets/wedding-memories-card.jpg") center / cover no-repeat;
    min-height: 420px;
}

.qr-reader-wrap {
    min-height: 280px;
    border-radius: 1.25rem;
    overflow: hidden;
    background: #1a1a1a;
}
.qr-reader-wrap video { border-radius: 1.25rem; }
.qr-status {
    text-align: center;
    font-size: .95rem;
    color: var(--wedding-gold-dark);
    margin: .75rem 0 0;
    font-weight: 800;
}

@media (max-width: 575.98px) {
    .guest-container { padding-left: 1rem; padding-right: 1rem; }
    body.guest-app::before { height: 20rem; opacity: .34; }
    .guest-header {
        border-radius: 1.35rem;
        min-height: 200px;
        padding: 2.25rem 1.25rem 1.35rem;
    }
    .wedding-hero { border-radius: 1.5rem; min-height: 660px; }
    .wedding-hero-content { min-height: 660px; padding: 1.25rem .9rem .9rem; }
    .wedding-hero-photo { background-position: center top; }
    .main-action-card { margin-top: -1.4rem; }
    .wedding-detail-img { min-height: 180px; }
    .hero-action-panel { padding: 1rem; }
    .quick-steps { grid-template-columns: 1fr; }
    .wedding-tip-card {
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .88) 64%, rgba(255, 255, 255, .32) 100%),
            url("/assets/wedding-detail-konrad-paulina.jpg") center bottom / cover no-repeat;
        min-height: 330px;
        padding: 1.2rem;
    }
    .upload-card { grid-template-columns: 1fr; }
    .upload-visual { min-height: 240px; }
    .scan-action-card {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .scan-action-btn { width: 100%; }
}
