:root {
    --bg: #fbf7f3;
    --bg-soft: rgba(255, 255, 255, 0.62);
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.88);
    --text: #493d37;
    --text-soft: #8a7a72;
    --line: rgba(166, 143, 132, 0.2);
    --accent: #b28c7b;
    --accent-soft: #ead8cf;
    --shadow: 0 22px 60px rgba(118, 95, 86, 0.12);
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --container: 1120px;
    --section-space: clamp(72px, 10vw, 140px);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 36%),
        radial-gradient(circle at 90% 20%, rgba(238, 220, 210, 0.62), transparent 24%),
        linear-gradient(180deg, #fdfaf7 0%, #f8f2ed 48%, #f6efea 100%);
    font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

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

.page-shell {
    position: relative;
    isolation: isolate;
}

.glow {
    position: fixed;
    inset: auto auto 8% -120px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(217, 193, 181, 0.38), transparent 68%);
    filter: blur(12px);
    pointer-events: none;
    z-index: -1;
}

.glow--right {
    inset: 12% -90px auto auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(201, 180, 170, 0.28), transparent 68%);
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.section {
    padding: 0 0 var(--section-space);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent);
    letter-spacing: 0.24em;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
}

.section-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.04;
    font-weight: 400;
    letter-spacing: -0.03em;
}

/* Smaller title specifically for the invitation card */
.invitation-card .section-title {
    font-size: clamp(28px, 4.6vw, 38px);
    line-height: 1.04;
    margin-bottom: 18px;
}

.section-subtitle {
    margin: 18px 0 0;
    font-size: clamp(16px, 2vw, 18px);
    color: var(--text-soft);
    max-width: 680px;
}

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 28px 0 48px;
}

.hero-card {
    position: relative;
    width: 100%;
    min-height: min(860px, calc(100svh - 56px));
    border-radius: 40px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.12)),
        url("image/main_baner.webp") 65% center / cover no-repeat;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-end;
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(255, 252, 249, 0.02) 8%, rgba(84, 63, 55, 0.28) 100%),
        radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.14), transparent 28%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: clamp(28px, 5vw, 56px);
    color: #fffaf7;
    display: grid;
    gap: 18px;
}

.hero-topline {
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 12px;
    opacity: 0.9;
}

.hero-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(52px, 10vw, 120px);
    line-height: 0.92;
    font-weight: 400;
    letter-spacing: -0.05em;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    align-items: center;
    color: rgba(255, 249, 245, 0.92);
    font-size: clamp(16px, 2vw, 20px);
}

.hero-meta__dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
}

.btn {
    appearance: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 14px 22px;
    font: inherit;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--primary {
    background: rgba(206, 185, 171, 0.96);
    color: #3a2e29;
}

.btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff9f5;
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
}

.floating-countdown {
    margin-top: 22px;
    width: fit-content;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 18px;
}

.countdown-label {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.82;
    margin-bottom: 10px;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(62px, 92px));
    gap: 12px;
}

.countdown-item {
    text-align: center;
    padding: 10px 8px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.countdown-number {
    display: block;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.countdown-text {
    display: block;
    margin-top: 7px;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0.78;
}

.intro-grid,
.details-grid,
.story-grid,
.gallery-grid,
.timeline-grid {
    display: grid;
    gap: 24px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
    position: relative;
    min-height: min(860px, calc(100svh - 56px));
}

/* Reduce the visual height for the details section by 25% from the original */
#details .intro-grid {
    min-height: min(258px, calc((100svh - 56px) * 0.3));
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
}

.invitation-card {
    padding: clamp(20px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 420px;
}

.invitation-card {
    grid-column: 1 / 2;
    width: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.intro-photo {
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 420px;
    align-self: stretch;
    display: block;
}

.intro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.invitation-text {
    margin: 0;
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.7;
    color: #443833;
}

/* Banner grid placed after hero, text left and photo right */
.banner-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: center;
}

.banner-card {
    padding: clamp(20px, 3vw, 36px);
    min-height: 220px;
    box-sizing: border-box;
}

.banner-photo {
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 180px;
    max-height: 260px;
}

.banner-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(0.96);
}

.signature {
    margin-top: 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 3vw, 34px);
    color: var(--accent);
    letter-spacing: -0.03em;
}

.mini-photo {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 420px;
    background-image: linear-gradient(180deg, rgba(55, 43, 38, 0.08), rgba(55, 43, 38, 0.18)), linear-gradient(160deg, #d9c6bc 0%, #c9afa1 100%), url("image/vmeste2.jpg");
    background-position: center, center, right center;
    background-size: auto, auto, 66.666%;
    background-repeat: no-repeat, no-repeat, no-repeat;
    border-radius: var(--radius-xl);
}

.mini-photo__label {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(12px);
    font-size: 13px;
    color: #4a3d37;
}

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

.detail-card {
    padding: 28px;
}

.detail-title {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    letter-spacing: -0.03em;
}

.detail-row {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.detail-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.detail-label {
    display: block;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
    font-weight: 600;
}

.detail-value {
    display: block;
    font-size: 18px;
    color: #3f332e;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.chip {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(140, 106, 93, 0.08);
    color: #5f4940;
    font-size: 14px;
    border: 1px solid rgba(140, 106, 93, 0.1);
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    margin-right: 10px;
    padding: 14px 18px;
    border-radius: 999px;
    background: #fffaf7;
    border: 1px solid rgba(140, 106, 93, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rsvp-form {
    margin-top: 18px;
    display: grid;
    gap: 20px;
}

.form-field {
    display: grid;
    gap: 10px;
}

.form-label {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

.form-input {
    width: 100%;
    border: 1px solid rgba(178, 140, 123, 0.22);
    border-radius: 18px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus {
    border-color: rgba(178, 140, 123, 0.56);
    box-shadow: 0 0 0 4px rgba(234, 216, 207, 0.55);
}

.form-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 12px;
}

.option-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(178, 140, 123, 0.16);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.option-card:hover {
    transform: translateY(-1px);
    border-color: rgba(178, 140, 123, 0.34);
}

.option-card input {
    margin: 0;
    accent-color: #b28c7b;
}

.form-note {
    margin: 0;
    color: var(--text-soft);
    font-size: 14px;
}

.form-success {
    color: #7b8c6e;
}

.coming-soon {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.56);
    color: var(--text-soft);
    font-size: 15px;
    border: 1px dashed rgba(140, 106, 93, 0.18);
}

.story-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: stretch;
}

.duo-photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    height: 100%;
}

.duo-photo {
    min-height: 420px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    background-size: cover;
    background-position: center;
}

.duo-photo--one {
    background-image: linear-gradient(180deg, rgba(55, 43, 38, 0.08), rgba(55, 43, 38, 0.14)), url("childhood-1.jpg"), linear-gradient(160deg, #d3bbae 0%, #b89182 100%);
}

.duo-photo--two {
    background-image: linear-gradient(180deg, rgba(55, 43, 38, 0.08), rgba(55, 43, 38, 0.14)), url("childhood-2.jpg"), linear-gradient(160deg, #d6c2b9 0%, #c5a596 100%);
}

.duo-photo__tag {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    color: #4f413b;
    backdrop-filter: blur(10px);
}

.story-card {
    padding: clamp(26px, 4vw, 42px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.story-text {
    margin: 0;
    font-size: 17px;
    color: #483b35;
}

.story-text+.story-text {
    margin-top: 16px;
}

.timeline-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
}

.timeline-card {
    padding: clamp(26px, 4vw, 42px);
}

.timeline-list {
    display: grid;
    gap: 18px;
    margin-top: 8px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 94px 1fr;
    gap: 18px;
    align-items: start;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.timeline-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.timeline-time {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.04em;
}

.timeline-body strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #3c312c;
    margin-bottom: 4px;
}

.timeline-body span {
    color: var(--text-soft);
    font-size: 15px;
}

.note-card {
    padding: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.52));
}

.note-card p {
    margin: 0;
    color: #5d4f49;
    font-size: 16px;
}

.gallery-grid {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
}

.gallery-item {
    position: relative;
    min-height: 360px;
    border-radius: 28px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(55, 43, 38, 0.02), rgba(55, 43, 38, 0.2));
}

.gallery-item--1 {
    background-image: linear-gradient(160deg, #decac0 0%, #bf9f90 100%);
}

.gallery-item--2 {
    background-image: linear-gradient(160deg, #e6d6cb 0%, #c9ac9e 100%);
}

.gallery-item--3 {
    background-image: linear-gradient(160deg, #d7c0b4 0%, #b98d7e 100%);
}

.footer {
    padding: 0 0 60px;
}

.footer-card {
    padding: 32px;
    text-align: center;
}

.footer-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    letter-spacing: -0.03em;
}

.footer-text {
    margin: 14px auto 0;
    max-width: 640px;
    color: var(--text-soft);
    font-size: 17px;
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-animate {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 1.1s ease forwards;
}

.hero-animate.delay-1 {
    animation-delay: 0.15s;
}

.hero-animate.delay-2 {
    animation-delay: 0.3s;
}

.hero-animate.delay-3 {
    animation-delay: 0.45s;
}

.hero-animate.delay-4 {
    animation-delay: 0.6s;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {

    .intro-grid,
    .details-grid,
    .story-grid,
    .timeline-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

    .mini-photo,
    .duo-photo,
    .gallery-item {
        min-height: 320px;
    }
}

@media (max-width: 720px) {
    .hero {
        min-height: auto;
    }

    .hero-card {
        min-height: 86svh;
        border-radius: 28px;
    }

    .hero-content {
        padding: 24px;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, minmax(72px, 1fr));
    }

    .duo-photos {
        grid-template-columns: 1fr;
    }

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

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal,
    .hero-animate {
        opacity: 1 !important;
        transform: none !important;
    }
}

.ceremony-block {
    padding: clamp(28px, 4vw, 44px);
    overflow: hidden;
}

.ceremony-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 32px;
    align-items: stretch;
}

.ceremony-map {
    min-height: 100%;
}

.ceremony-map-card {
    position: relative;
    min-height: 430px;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5)),
        linear-gradient(160deg, #f6ede8 0%, #eedfd6 100%);
    border: 1px solid rgba(178, 140, 123, 0.14);
    box-shadow: 0 24px 50px rgba(118, 95, 86, 0.1);
}

.ceremony-map-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.6;
    pointer-events: none;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 255, 255, 0.9) 0 18%, transparent 19%),
        radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.65) 0 12%, transparent 13%),
        radial-gradient(circle at 68% 72%, rgba(255, 255, 255, 0.7) 0 16%, transparent 17%),
        linear-gradient(115deg, transparent 0 22%, rgba(178, 140, 123, 0.08) 22% 24%, transparent 24% 100%),
        linear-gradient(25deg, transparent 0 48%, rgba(178, 140, 123, 0.08) 48% 50%, transparent 50% 100%),
        linear-gradient(90deg, transparent 0 58%, rgba(178, 140, 123, 0.06) 58% 60%, transparent 60% 100%);
}

.ceremony-pin-area {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.map-pin {
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    position: relative;
    background: linear-gradient(180deg, #d8b5a6 0%, #b88f7e 100%);
    box-shadow:
        0 18px 30px rgba(184, 143, 126, 0.3),
        0 0 0 10px rgba(255, 255, 255, 0.28);
}

.map-pin::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
}

.map-pin::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 92px;
    height: 92px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(184, 143, 126, 0.18);
}

.ceremony-map-bottom {
    position: relative;
    z-index: 1;
}

.ceremony-map-text {
    margin: 0 0 18px;
    color: #7f6d65;
    font-size: 16px;
    line-height: 1.7;
}

.ceremony-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ceremony-info .detail-title {
    margin-bottom: 18px;
}

.ceremony-info .detail-row:last-child {
    padding-bottom: 0;
}

@media (max-width: 820px) {
    .ceremony-layout {
        grid-template-columns: 1fr;
    }

    .ceremony-map-card {
        min-height: 340px;
    }

    .ceremony-pin-area {
        min-height: 160px;
    }
}

.banquet-block {
    padding: clamp(28px, 4vw, 44px);
    overflow: hidden;
}

.banquet-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 32px;
    align-items: stretch;
}

.banquet-photo {
    min-height: 100%;
}

.banquet-photo-card {
    position: relative;
    min-height: 430px;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(86, 63, 54, 0.18)),
        linear-gradient(160deg, #efe1d8 0%, #dcc2b5 100%);
    box-shadow: 0 24px 50px rgba(118, 95, 86, 0.1);
}

.banquet-photo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(72, 52, 45, 0.22));
}

.banquet-photo-img {
    position: absolute;
    inset: 0;
    width: 110%;
    height: 110%;
    object-fit: cover;
    display: block;
    z-index: 0;
}

.banquet-photo-label {
    position: absolute;
    left: 18px;
    bottom: 18px;
    z-index: 1;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    color: #5e4d46;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.banquet-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banquet-info .detail-title {
    margin-bottom: 18px;
}

.banquet-info .detail-row:last-child {
    padding-bottom: 0;
}

@media (max-width: 820px) {
    .banquet-layout {
        grid-template-columns: 1fr;
    }

    .banquet-photo-card {
        min-height: 340px;
    }
}

.dresscode-image-block {
    width: 100%;
    max-width: 1120px;
    aspect-ratio: 1120 / 546;
    margin: 0 auto;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(118, 95, 86, 0.1);
}

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

.attendance-block {
    padding: clamp(28px, 4vw, 44px);
}

.attendance-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 32px;
    align-items: start;
}

.attendance-intro {
    padding-right: 12px;
}

.attendance-text {
    margin: 0;
    color: var(--text-soft);
    font-size: 16px;
    line-height: 1.75;
}

.attendance-form {
    display: grid;
    gap: 22px;
}

.form-field {
    display: grid;
    gap: 10px;
}

.form-label {
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

.form-input {
    width: 100%;
    border: 1px solid rgba(178, 140, 123, 0.22);
    border-radius: 18px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-input:focus {
    border-color: rgba(178, 140, 123, 0.56);
    box-shadow: 0 0 0 4px rgba(234, 216, 207, 0.55);
}

.form-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    gap: 12px;
}

.option-card,
.check-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(178, 140, 123, 0.16);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.option-card:hover,
.check-card:hover {
    transform: translateY(-1px);
    border-color: rgba(178, 140, 123, 0.34);
}

.option-card input,
.check-card input {
    margin: 0;
    accent-color: #b28c7b;
}

.form-note {
    margin: 0;
    min-height: 24px;
    color: var(--text-soft);
    font-size: 14px;
}

.form-note.success {
    color: #6f8b63;
}

.form-note.error {
    color: #b05c5c;
}

@media (max-width: 820px) {
    .attendance-layout {
        grid-template-columns: 1fr;
    }
}

/* Modal styles for attendance confirmation */
.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #fff;
    color: var(--text);
    max-width: 560px;
    width: calc(100% - 48px);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
    text-align: center;
    position: relative;
}

.modal-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 6px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-soft);
}

/* Additional mobile adjustments */
@media (max-width: 720px) {
    .hero-title {
        font-size: clamp(32px, 10vw, 56px);
    }

    .hero-content {
        padding: 18px;
    }

    .invitation-card {
        padding: 16px;
        min-height: auto;
    }

    .intro-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .intro-photo {
        min-height: 220px;
    }

    .countdown-grid {
        grid-template-columns: repeat(2, minmax(56px, 1fr));
        gap: 8px;
    }

    .banquet-photo-card,
    .ceremony-map-card {
        min-height: 260px;
    }
}

@media (max-width: 420px) {
    .hero-title {
        font-size: clamp(28px, 12vw, 42px);
    }

    .floating-countdown {
        padding: 12px;
    }

    .countdown-number {
        font-size: clamp(20px, 6vw, 28px);
    }

    .btn {
        padding: 10px 14px;
    }

    .modal {
        padding: 18px;
    }

    .modal-message {
        font-size: 15px;
    }
}