:root {
    --cream: #f7f2e9;
    --cream-soft: #fcfaf6;
    --sand: #ede5d8;

    --charcoal: #292924;

    --sage: #7d8975;
    --sage-dark: #5f6959;

    --gold: #c4a978;

    --white: #ffffff;

    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Montserrat", Arial, sans-serif;
}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--cream-soft);
    color: var(--charcoal);

    font-family: var(--sans);
    font-weight: 300;
}

body.invitation-open {
    overflow: hidden;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border-radius: 0;
}

img {
    display: block;

    width: 100%;
    max-width: 100%;
}


/* =========================================================
   OPENING INVITATION
========================================================= */

.invitation-screen {
    position: fixed;
    inset: 0;
    z-index: 1000;

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

    min-height: 100svh;

    padding: 28px;

    overflow: hidden;

    background-image:
        url("/assets/images/venue/kelham-house-hero.webp");

    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    transition:
        opacity 0.8s ease,
        visibility 0.8s ease,
        transform 1s ease;
}

.invitation-screen.is-opened {
    opacity: 0;
    visibility: hidden;

    transform: scale(1.05);

    pointer-events: none;
}

.invitation-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(180deg,
            rgba(18, 20, 16, 0.36),
            rgba(18, 20, 16, 0.58));
}

.invitation-frame {
    position: relative;
    z-index: 2;

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

    width: min(900px, 100%);
    min-height: calc(100svh - 56px);

    border: 1px solid rgba(255, 255, 255, 0.76);

    padding: 60px 30px;
}

.invitation-frame::before {
    content: "";

    position: absolute;
    inset: 9px;

    border: 1px solid rgba(255, 255, 255, 0.28);

    pointer-events: none;
}


/* =========================================================
   FRAME CORNERS
========================================================= */

.frame-corner {
    position: absolute;

    width: 42px;
    height: 42px;
}

.frame-corner::before,
.frame-corner::after {
    content: "";

    position: absolute;

    background: rgba(255, 255, 255, 0.88);
}

.frame-corner::before {
    width: 42px;
    height: 1px;
}

.frame-corner::after {
    width: 1px;
    height: 42px;
}

.frame-corner--top-left {
    top: -1px;
    left: -1px;
}

.frame-corner--top-right {
    top: -1px;
    right: -1px;

    transform: rotate(90deg);
}

.frame-corner--bottom-left {
    bottom: -1px;
    left: -1px;

    transform: rotate(-90deg);
}

.frame-corner--bottom-right {
    right: -1px;
    bottom: -1px;

    transform: rotate(180deg);
}


/* =========================================================
   INVITATION CONTENT
========================================================= */

.invitation-content {
    width: 100%;
    max-width: 650px;

    color: var(--white);

    text-align: center;

    animation: invitationFade 1.2s ease both;
}

.invitation-intro {
    margin: 0 0 8px;

    font-size: 12px;
    font-weight: 400;

    letter-spacing: 0.3em;

    text-transform: uppercase;
}

.invitation-small {
    margin: 0 0 28px;

    font-family: var(--serif);
    font-size: 19px;
    font-style: italic;
}

.invitation-names {
    display: flex;
    flex-direction: column;

    margin: 0;

    font-family: var(--serif);

    font-size: clamp(60px, 9vw, 110px);
    font-weight: 400;

    line-height: 0.77;
}

.invitation-ampersand {
    margin: 14px 0;

    color: #e6d8bc;

    font-size: 0.55em;
    font-style: italic;
}

.invitation-divider {
    display: flex;
    align-items: center;
    justify-content: center;

    width: min(240px, 70%);

    margin: 38px auto 24px;

    gap: 12px;
}

.invitation-divider span:not(.divider-symbol) {
    display: block;

    flex: 1;

    height: 1px;

    background: rgba(255, 255, 255, 0.55);
}

.divider-symbol {
    color: #e6d8bc;

    font-size: 11px;
}

.invitation-venue {
    margin: 0 0 34px;

    font-family: var(--serif);

    font-size: clamp(21px, 3vw, 27px);

    letter-spacing: 0.025em;
}

.invitation-button {
    min-width: 180px;

    border: 1px solid rgba(255, 255, 255, 0.85);

    background: rgba(255, 255, 255, 0.07);

    color: var(--white);

    padding: 15px 28px;

    cursor: pointer;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.22em;

    text-transform: uppercase;

    backdrop-filter: blur(4px);

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.invitation-button:hover {
    background: var(--white);

    color: var(--charcoal);

    transform: translateY(-2px);
}


/* =========================================================
   GENERAL JOURNEY
========================================================= */

.wedding-journey {
    opacity: 0;

    transition: opacity 0.8s ease;
}

.wedding-journey.is-visible {
    opacity: 1;
}

.journey-section {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100svh;

    padding: 100px 24px;
}

.journey-inner {
    width: min(760px, 100%);

    text-align: center;
}

.journey-inner--form {
    width: min(920px, 100%);
}

.section-kicker {
    margin: 0 0 15px;

    color: var(--sage-dark);

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.3em;

    text-transform: uppercase;
}

.journey-section h2,
.memories-heading h2 {
    margin: 0 0 24px;

    font-family: var(--serif);

    font-size: clamp(48px, 7vw, 78px);
    font-weight: 400;

    line-height: 0.95;
}

.section-copy {
    max-width: 620px;

    margin: 0 auto 35px;

    color: #65655d;

    font-size: 15px;

    line-height: 1.9;
}

.section-copy--small {
    font-size: 13px;
}


/* =========================================================
   ATTENDANCE
========================================================= */

.attendance-section {
    min-height: 100svh;

    padding: 90px 24px;

    background: var(--cream-soft);
}

.attendance-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: min(850px, 100%);

    margin: 0 auto;

    text-align: center;
}

.attendance-copy h2 {
    max-width: 760px;

    margin-bottom: 24px;
}

.attendance-copy .section-copy {
    max-width: 560px;
}

.attendance-options {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    width: min(650px, 100%);

    margin: 38px auto 0;

    gap: 18px;
}

.choice-button {
    min-height: 150px;

    border: 1px solid #d7d1c5;

    background: var(--white);

    color: var(--charcoal);

    padding: 28px 24px;

    cursor: pointer;

    font-family: var(--serif);
    font-size: 24px;

    transition:
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.choice-button:hover {
    border-color: var(--sage);

    transform: translateY(-4px);

    box-shadow:
        0 16px 40px rgba(40, 40, 35, 0.08);
}

.choice-button.is-selected {
    border-color: var(--sage-dark);

    background: var(--sage-dark);

    color: var(--white);
}

.choice-icon {
    display: block;

    margin-bottom: 14px;

    color: var(--sage);

    font-size: 20px;
}

.choice-button.is-selected .choice-icon {
    color: #e4d7be;
}


/* =========================================================
   FORM
========================================================= */

.guest-details-section {
    background: var(--sand);
}

.wedding-form {
    margin-top: 50px;

    text-align: left;
}

.form-section {
    margin-bottom: 52px;
}

.form-section-heading {
    display: flex;
    align-items: center;

    margin-bottom: 30px;

    gap: 18px;
}

.form-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    border: 1px solid #b7afa2;
    border-radius: 50%;

    color: var(--sage-dark);

    font-family: var(--serif);

    font-size: 15px;
}

.form-section-label {
    margin: 0;

    color: #777267;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.24em;

    text-transform: uppercase;
}

.form-group {
    margin-bottom: 32px;
}

.form-group label {
    display: flex;
    justify-content: space-between;

    margin-bottom: 9px;

    font-size: 11px;
    font-weight: 500;

    letter-spacing: 0.11em;

    text-transform: uppercase;
}

.form-group label span {
    color: #89877e;

    font-size: 9px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;

    border: 0;
    border-bottom: 1px solid #aaa498;

    border-radius: 0;

    background: transparent;

    color: var(--charcoal);

    padding: 13px 0;

    outline: none;

    font-family: var(--serif);

    font-size: 22px;

    transition:
        border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--sage-dark);
}

.form-group textarea {
    min-height: 110px;

    resize: vertical;
}

.form-group small {
    display: block;

    margin-top: 8px;

    color: #7c796f;

    font-size: 10px;

    line-height: 1.6;
}

.attending-only.is-hidden {
    display: none;
}


/* =========================================================
   GUEST CARDS
========================================================= */

.guest-card {
    position: relative;

    margin: 28px 0;

    border: 1px solid rgba(111, 106, 96, 0.25);

    background: rgba(255, 255, 255, 0.25);

    padding: 34px;
}

.guest-card--primary {
    background: rgba(255, 255, 255, 0.35);
}

.guest-card-heading {
    margin-bottom: 28px;
}

.guest-number {
    display: block;

    margin-bottom: 7px;

    color: var(--sage-dark);

    font-size: 9px;
    font-weight: 500;

    letter-spacing: 0.22em;

    text-transform: uppercase;
}

.guest-card h3 {
    margin: 0;

    font-family: var(--serif);

    font-size: 32px;
    font-weight: 400;
}

.additional-guests {
    display: grid;

    gap: 20px;
}


/* =========================================================
   BUTTONS
========================================================= */

.form-actions {
    margin-top: 45px;

    text-align: center;
}

.continue-button,
.submit-rsvp-button,
.outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 190px;

    border: 0;

    background: var(--sage-dark);

    color: var(--white);

    padding: 16px 30px;

    cursor: pointer;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.2em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.continue-button:hover,
.submit-rsvp-button:hover {
    background: var(--charcoal);

    transform: translateY(-2px);
}

.continue-button--light {
    margin-top: 40px;

    border: 1px solid rgba(255, 255, 255, 0.65);

    background: transparent;
}

.continue-button--light:hover {
    background: var(--white);

    color: var(--charcoal);
}

.outline-button {
    border: 1px solid var(--sage-dark);

    background: transparent;

    color: var(--sage-dark);
}

.outline-button:hover {
    background: var(--sage-dark);

    color: var(--white);

    transform: translateY(-2px);
}


/* =========================================================
   COUPLE FEATURE
========================================================= */

.couple-feature {
    background: var(--cream-soft);

    padding: 80px 5vw;
}

.couple-feature-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.3fr) minmax(250px, 0.7fr) minmax(0, 0.8fr);

    align-items: center;

    width: min(1450px, 100%);

    margin: 0 auto;

    gap: 35px;
}

.couple-feature-image {
    margin: 0;

    overflow: hidden;
}

.couple-feature-image img {
    width: 100%;
    height: 500px;

    object-fit: cover;
}

.couple-feature-image--large img {
    height: 650px;
}

.couple-feature-copy {
    padding: 30px;

    text-align: center;
}

.couple-script {
    margin: 0;

    font-family: var(--serif);

    font-size: clamp(42px, 5vw, 67px);
    font-style: italic;

    line-height: 0.98;
}

.couple-heart {
    display: inline-block;

    margin-top: 30px;

    color: var(--sage-dark);
}


/* =========================================================
   TIMELINE
========================================================= */

.timeline-section {
    background: var(--sage-dark);

    color: var(--white);
}

.timeline-section .section-kicker {
    color: #e1d7c5;
}

.timeline {
    position: relative;

    max-width: 600px;

    margin: 55px auto 0;
}

.timeline::before {
    content: "";

    position: absolute;

    top: 0;
    bottom: 0;
    left: 50%;

    width: 1px;

    background: rgba(255, 255, 255, 0.2);
}

.timeline-item {
    position: relative;

    width: 50%;

    padding: 15px 40px 55px;

    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;

    text-align: left;
}

.timeline-item::before {
    content: "";

    position: absolute;

    top: 18px;
    right: -5px;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #e4d7be;
}

.timeline-item:nth-child(even)::before {
    right: auto;
    left: -4px;
}

.timeline-time {
    display: block;

    margin-bottom: 5px;

    color: #e4d7be;

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 0.15em;
}

.timeline-item h3 {
    margin: 0;

    font-family: var(--serif);

    font-size: 27px;
    font-weight: 400;
}


/* =========================================================
   VENUE
========================================================= */

.venue-section {
    padding: 0;

    background: var(--cream-soft);
}

.venue-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.2fr) minmax(400px, 0.8fr);

    width: 100%;
    min-height: 100svh;
}

.venue-photo {
    min-height: 100svh;
}

.venue-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.venue-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    padding: 70px;
}

.venue-details h2 {
    text-align: left;
}

.venue-intro {
    max-width: 470px;

    margin: 0 0 25px;

    color: #68665e;

    font-size: 14px;

    line-height: 1.8;
}

.venue-details address {
    margin-bottom: 35px;

    color: #66645c;

    font-family: var(--serif);

    font-size: 22px;
    font-style: normal;

    line-height: 1.55;
}

.venue-actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


/* =========================================================
   ACCOMMODATION
========================================================= */

.accommodation-section {
    background: #eee7db;

    padding: 0;
}

.accommodation-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 0.85fr) minmax(500px, 1.15fr);

    align-items: center;

    width: min(1500px, 100%);

    min-height: 100svh;

    margin: auto;
}

.accommodation-content {
    padding: 90px 7vw;

    text-align: center;
}

.accommodation-content h2 {
    margin: 0 0 25px;

    font-family: var(--serif);

    font-size: clamp(50px, 7vw, 80px);
    font-weight: 400;

    line-height: 0.95;
}

.accommodation-photo-stack {
    position: relative;

    min-height: 780px;

    overflow: hidden;
}

.stack-photo {
    position: absolute;

    margin: 0;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(45, 42, 35, 0.13);
}

.stack-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.stack-photo--one {
    top: 7%;
    right: 12%;

    width: 54%;
    height: 68%;

    z-index: 2;
}

.stack-photo--two {
    right: 44%;
    bottom: 7%;

    width: 48%;
    height: 45%;

    z-index: 3;

    border: 10px solid #eee7db;
}


/* =========================================================
   MEMORIES
========================================================= */

.memories-section {
    background: var(--cream-soft);

    padding: 110px 5vw;
}

.memories-heading {
    width: min(850px, 100%);

    margin: 0 auto 70px;

    text-align: center;
}

.memories-heading p:last-child {
    margin: 0;

    color: #747168;

    font-family: var(--serif);

    font-size: 22px;
    font-style: italic;
}

.memory-grid {
    display: grid;

    grid-template-columns:
        repeat(12, minmax(0, 1fr));

    width: min(1450px, 100%);

    margin: 0 auto;

    gap: 16px;
}

.memory {
    grid-column: span 4;

    height: 420px;

    margin: 0;

    overflow: hidden;
}

.memory--wide {
    grid-column: span 8;
}

.memory--portrait {
    height: 580px;
}

.memory img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.8s ease;
}

.memory:hover img {
    transform: scale(1.025);
}

.memories-footer {
    margin-top: 70px;

    text-align: center;
}

.memories-footer p {
    margin: 0 0 25px;

    font-family: var(--serif);

    font-size: 34px;
    font-style: italic;
}


/* =========================================================
   FINAL RSVP
========================================================= */

.final-rsvp-section {
    position: relative;

    overflow: hidden;

    background: var(--charcoal);

    color: var(--white);
}

.final-rsvp-background,
.final-rsvp-overlay {
    position: absolute;

    inset: 0;
}

.final-rsvp-background img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.final-rsvp-overlay {
    background:
        linear-gradient(180deg,
            rgba(24, 25, 21, 0.65),
            rgba(24, 25, 21, 0.78));
}

.final-rsvp-content {
    position: relative;

    z-index: 2;
}

.final-rsvp-section .section-kicker {
    color: #e3d5b7;
}

.final-rsvp-section .section-copy {
    color: rgba(255, 255, 255, 0.78);
}

.submit-rsvp-button {
    background: #eee6d8;

    color: var(--charcoal);
}

.submit-rsvp-button:hover {
    background: var(--white);
}


/* =========================================================
   FORM ERROR
========================================================= */

.form-error {
    margin-top: 7px;

    color: #8f3f38;

    font-size: 10px;
}

.has-error input,
.has-error textarea,
.has-error select {
    border-color: #8f3f38;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes invitationFade {

    from {
        opacity: 0;

        transform: translateY(18px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    .attendance-layout {
        grid-template-columns: 1fr;
    }

    .attendance-photo {
        min-height: 65svh;
    }

    .attendance-copy {
        min-height: 85svh;
    }

    .couple-feature-grid {
        grid-template-columns:
            1fr 0.7fr;
    }

    .couple-feature-copy {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .couple-feature-image img,
    .couple-feature-image--large img {
        height: 520px;
    }

    .accommodation-layout {
        grid-template-columns: 1fr;
    }

    .accommodation-photo-stack {
        min-height: 700px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 800px) {

    .invitation-screen {
        padding: 16px;
    }

    .invitation-frame {
        min-height: calc(100svh - 32px);

        padding: 50px 18px;
    }

    .invitation-names {
        font-size: clamp(58px, 18vw, 82px);
    }

    .attendance-options {
        grid-template-columns: 1fr;
    }

    .choice-button {
        min-height: 115px;
    }

    .guest-card {
        padding: 25px 20px;
    }

    .couple-feature {
        padding: 55px 18px;
    }

    .couple-feature-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .couple-feature-copy {
        grid-column: auto;
        grid-row: auto;

        padding: 45px 20px;
    }

    .couple-feature-image img,
    .couple-feature-image--large img {
        height: 480px;
    }

    .venue-layout {
        grid-template-columns: 1fr;
    }

    .venue-photo {
        min-height: 55svh;
    }

    .venue-details {
        min-height: 55svh;

        align-items: center;

        padding: 65px 24px;

        text-align: center;
    }

    .venue-details h2 {
        text-align: center;
    }

    .venue-actions {
        justify-content: center;
    }

    .memory-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .memory,
    .memory--wide,
    .memory--portrait {
        grid-column: span 1;

        height: 420px;
    }

    .memory--wide {
        grid-column: span 2;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .journey-section {
        padding: 75px 20px;
    }

    .attendance-section {
        padding: 0;
    }

    .attendance-copy {
        min-height: 100svh;

        padding: 75px 20px;
    }

    .attendance-photo {
        min-height: 70svh;
    }

    .guest-details-section {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;

        margin-left: 0;

        padding:
            10px 0 45px 40px;

        text-align: left;
    }

    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        right: auto;
        left: 6px;
    }

    .accommodation-content {
        padding: 85px 20px;
    }

    .accommodation-photo-stack {
        min-height: 560px;
    }

    .stack-photo--one {
        top: 5%;
        right: 6%;

        width: 68%;
        height: 66%;
    }

    .stack-photo--two {
        right: 37%;
        bottom: 5%;

        width: 58%;
        height: 44%;
    }

    .memories-section {
        padding: 85px 12px;
    }

    .memories-heading {
        padding: 0 12px;

        margin-bottom: 45px;
    }

    .memory,
    .memory--wide,
    .memory--portrait {
        height: 320px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 430px) {

    .invitation-intro {
        font-size: 9px;
    }

    .invitation-small {
        font-size: 17px;
    }

    .invitation-venue {
        font-size: 19px;
    }

    .journey-section h2,
    .memories-heading h2 {
        font-size: 48px;
    }

    .memory-grid {
        grid-template-columns: 1fr;
    }

    .memory,
    .memory--wide,
    .memory--portrait {
        grid-column: 1;

        height: 420px;
    }

}

/* =========================================================
   RSVP SUBMISSION
========================================================= */

.rsvp-submit-error {
    max-width: 560px;

    margin: 0 auto 24px;

    border: 1px solid rgba(255, 255, 255, 0.4);

    background: rgba(90, 30, 30, 0.35);

    color: #ffffff;

    padding: 14px 18px;

    font-size: 12px;

    line-height: 1.6;
}

.submit-rsvp-button:disabled {
    opacity: 0.65;

    cursor: wait;

    transform: none;
}


/* =========================================================
   RSVP SUCCESS
========================================================= */

.rsvp-success {
    animation:
        rsvpSuccessFade 0.8s ease both;
}

.rsvp-success-heart {
    margin: 0 0 24px;

    color: #e5d5b6;

    font-family: var(--serif);

    font-size: 34px;
}

.rsvp-success-names {
    margin: 35px 0 0;

    color: #e5d5b6;

    font-family: var(--serif);

    font-size: 30px;
    font-style: italic;
}

@keyframes rsvpSuccessFade {

    from {
        opacity: 0;

        transform: translateY(15px);
    }

    to {
        opacity: 1;

        transform: translateY(0);
    }

}
/* =========================================================
   DECLINED RSVP FLOW
========================================================= */

/*
 * When somebody cannot attend, all wedding-day content after
 * the RSVP form is removed from the journey entirely.
 */
[data-attending-content].is-hidden {
    display: none !important;
}


/*
 * Submission errors can appear on both the dark final screen
 * and the light RSVP form. This version works on either.
 */
.form-actions .rsvp-submit-error {
    max-width: 560px;
    margin: 0 auto 22px;
    border: 1px solid rgba(143, 63, 56, 0.35);
    background: rgba(143, 63, 56, 0.08);
    color: #7d3732;
    padding: 14px 18px;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}


/*
 * Declined guests receive their confirmation directly in the
 * RSVP section instead of being sent to the photo-based final
 * confirmation section.
 */
.rsvp-success--declined {
    width: min(720px, 100%);
    margin: 0 auto;
    padding: 30px 0;
    text-align: center;
}

.rsvp-success--declined .rsvp-success-heart {
    color: var(--sage-dark);
}

.rsvp-success--declined .rsvp-success-names {
    color: var(--sage-dark);
}

.rsvp-success--declined .section-copy {
    max-width: 600px;
}

/* =========================================================
   GUIDED FULL-SCREEN INVITATION JOURNEY
========================================================= */

/*
 * Once the invitation has been opened the page itself no
 * longer scrolls between sections. Only the ACTIVE screen can
 * scroll internally when its content is taller than a phone.
 */
body.journey-locked {
    height: 100svh;
    overflow: hidden;
    overscroll-behavior: none;
}

.wedding-journey.is-guided {
    position: relative;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
    background: var(--cream-soft);
}

.wedding-journey.is-guided [data-journey-step] {
    position: absolute;
    inset: 0;
    z-index: 1;

    width: 100%;
    height: 100svh;
    min-height: 100svh;

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(22px) scale(0.992);

    scrollbar-gutter: stable;
}

.wedding-journey.is-guided [data-journey-step].is-step-active {
    z-index: 3;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: none;
}

.wedding-journey.is-guided [data-journey-step].is-step-entering-forward {
    animation: weddingStepInForward 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wedding-journey.is-guided [data-journey-step].is-step-leaving-forward {
    z-index: 2;

    animation: weddingStepOutForward 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;

    pointer-events: none;
}

.wedding-journey.is-guided [data-journey-step].is-step-entering-back {
    animation: weddingStepInBack 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wedding-journey.is-guided [data-journey-step].is-step-leaving-back {
    z-index: 2;

    animation: weddingStepOutBack 0.62s cubic-bezier(0.22, 1, 0.36, 1) both;

    pointer-events: none;
}

@keyframes weddingStepInForward {
    from {
        opacity: 0;
        transform: translateY(42px) scale(0.988);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes weddingStepOutForward {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    to {
        opacity: 0;
        transform: translateY(-28px) scale(0.992);
        filter: blur(4px);
    }
}

@keyframes weddingStepInBack {
    from {
        opacity: 0;
        transform: translateY(-34px) scale(0.988);
        filter: blur(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes weddingStepOutBack {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }

    to {
        opacity: 0;
        transform: translateY(34px) scale(0.992);
        filter: blur(4px);
    }
}


/* =========================================================
   FIXED JOURNEY PROGRESS
========================================================= */

.journey-progress {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 50;

    display: grid;
    grid-template-columns: 110px 1fr 110px;
    align-items: center;

    width: 100%;
    min-height: 68px;

    padding: 13px 28px 12px;

    background:
        linear-gradient(
            180deg,
            rgba(252, 250, 246, 0.97),
            rgba(252, 250, 246, 0.88)
        );

    border-bottom: 1px solid rgba(95, 105, 89, 0.12);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.journey-progress-status {
    grid-column: 2;

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

    gap: 14px;

    min-width: 0;
}

.journey-progress-label,
.journey-progress-count {
    color: var(--sage-dark);

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.19em;

    text-transform: uppercase;
}

.journey-progress-label {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.journey-progress-count {
    color: #989187;

    white-space: nowrap;
}

.journey-progress-track {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 2px;

    overflow: hidden;

    background: rgba(95, 105, 89, 0.11);
}

.journey-progress-track span {
    display: block;

    width: 12.5%;
    height: 100%;

    background: var(--sage-dark);

    transition:
        width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.journey-back-button {
    grid-column: 1;

    display: inline-flex;
    align-items: center;

    width: max-content;

    border: 0;
    background: transparent;

    color: var(--sage-dark);

    padding: 8px 4px;

    cursor: pointer;

    font-size: 9px;
    font-weight: 600;

    letter-spacing: 0.15em;

    text-transform: uppercase;

    opacity: 0;
    visibility: hidden;

    transform: translateX(-8px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.journey-back-button span:first-child {
    margin-right: 8px;

    font-size: 15px;
    font-weight: 300;

    line-height: 1;
}

.journey-back-button.is-visible {
    opacity: 1;
    visibility: visible;

    transform: translateX(0);
}

.journey-back-button:disabled {
    pointer-events: none;
}


/* =========================================================
   STEP SPACING
========================================================= */

.wedding-journey.is-guided .journey-section {
    padding-top: 112px;
    padding-bottom: 72px;
}

.wedding-journey.is-guided .attendance-section {
    padding-top: 95px;
    padding-bottom: 35px;
}

.wedding-journey.is-guided .attendance-copy {
    min-height: calc(100svh - 130px);
}

.wedding-journey.is-guided .guest-details-section {
    align-items: flex-start;

    padding-top: 120px;
}

.wedding-journey.is-guided .couple-feature,
.wedding-journey.is-guided .memories-section {
    padding-top: 112px;
    padding-bottom: 70px;
}


/* =========================================================
   CLEAR, OBVIOUS NEXT ACTIONS
========================================================= */

.choice-helper {
    margin: 25px 0 0;

    color: #969087;

    font-size: 9px;
    font-weight: 500;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}

.continue-button,
.submit-rsvp-button {
    position: relative;

    min-width: 225px;
    min-height: 54px;

    padding-right: 52px;

    box-shadow:
        0 14px 35px rgba(55, 61, 51, 0.14);
}

.continue-button::after,
.submit-rsvp-button::after {
    content: "→";

    position: absolute;
    top: 50%;
    right: 22px;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 300;

    line-height: 1;

    transform: translateY(-52%);

    transition:
        transform 0.25s ease;
}

.continue-button:hover::after,
.submit-rsvp-button:hover::after {
    transform:
        translate(4px, -52%);
}

.couple-feature-continue {
    margin-top: 34px;
}

.form-actions {
    position: sticky;
    bottom: 0;
    z-index: 8;

    margin: 45px -20px -20px;

    padding: 20px;

    background:
        linear-gradient(
            180deg,
            rgba(237, 229, 216, 0),
            rgba(237, 229, 216, 0.96) 34%,
            rgba(237, 229, 216, 0.99)
        );

    text-align: center;
}

.timeline-section .continue-button--light {
    box-shadow: none;
}


/* =========================================================
   ACCESSIBILITY / FOCUS
========================================================= */

.choice-button:focus-visible,
.continue-button:focus-visible,
.submit-rsvp-button:focus-visible,
.outline-button:focus-visible,
.journey-back-button:focus-visible,
.invitation-button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}


/* =========================================================
   MOBILE GUIDED JOURNEY
========================================================= */

@media (max-width: 800px) {

    .journey-progress {
        grid-template-columns: 78px 1fr 78px;

        min-height: 62px;

        padding: 11px 16px 10px;
    }

    .journey-progress-status {
        gap: 8px;
    }

    .journey-progress-label,
    .journey-progress-count {
        font-size: 8px;
        letter-spacing: 0.13em;
    }

    .journey-back-button {
        font-size: 8px;
        letter-spacing: 0.1em;
    }

    .wedding-journey.is-guided .journey-section {
        padding-top: 92px;
        padding-bottom: 48px;
    }

    .wedding-journey.is-guided .attendance-section {
        padding: 78px 18px 28px;
    }

    .wedding-journey.is-guided .attendance-copy {
        min-height: calc(100svh - 106px);
        padding: 30px 0;
    }

    .wedding-journey.is-guided .guest-details-section {
        padding: 95px 20px 35px;
    }

    .wedding-journey.is-guided .couple-feature,
    .wedding-journey.is-guided .memories-section {
        padding-top: 90px;
    }

    .form-actions {
        margin-right: -20px;
        margin-left: -20px;
        padding-right: 20px;
        padding-left: 20px;
    }

    .continue-button,
    .submit-rsvp-button {
        min-width: min(290px, 100%);
    }

}


@media (max-width: 430px) {

    .journey-progress {
        grid-template-columns: 64px 1fr 64px;
    }

    .journey-progress-label {
        max-width: 120px;
    }

    .journey-back-button span:last-child {
        display: none;
    }

    .journey-back-button span:first-child {
        margin-right: 0;
    }

}


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

    .wedding-journey.is-guided [data-journey-step].is-step-entering-forward,
    .wedding-journey.is-guided [data-journey-step].is-step-leaving-forward,
    .wedding-journey.is-guided [data-journey-step].is-step-entering-back,
    .wedding-journey.is-guided [data-journey-step].is-step-leaving-back {
        animation-duration: 0.01ms;
    }

    .journey-progress-track span {
        transition: none;
    }

}

