:root {
    --primary-color: #16392b;
    --green-color: #2f6f53;
    --accent-color: #a33a3f;
    --text-color: #2a312f;
    --muted-text: #5e6663;
    --bg-color: #f7faf8;
    --card-bg: #ffffff;
    --secondary-bg: #edf4ef;
    --border-soft: rgba(33, 75, 58, 0.14);
    --gold: #bf9b5c;
    --hero-image-fit: cover;
    --hero-image-position: center 20%;
    --font-head: 'Playfair Display', serif;
    --font-body: 'Manrope', sans-serif;
    --font-script: 'Cormorant Garamond', 'Playfair Display', serif;
    --cream: #faf7f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 20% 20%, rgba(200, 167, 106, 0.12) 0, rgba(200, 167, 106, 0) 36%),
                      radial-gradient(circle at 85% 10%, rgba(142, 60, 69, 0.08) 0, rgba(142, 60, 69, 0) 30%);
    line-height: 1.65;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.02em;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    line-height: 1.05;
    margin-bottom: 18px;
}

.hero-names {
    font-family: var(--font-script);
    font-style: italic;
    font-size: clamp(2.8rem, 11vw, 7.5rem);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-shadow: 0 2px 28px rgba(191, 155, 92, 0.3);
}

.names-amp {
    font-family: var(--font-head);
    font-style: italic;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--gold);
    font-weight: 400;
    letter-spacing: 0.16em;
    line-height: 1.65;
    text-shadow: none;
}

.hero-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px auto 18px;
    width: min(65%, 220px);
}

.hero-divider span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(191, 155, 92, 0.65), transparent);
}

.hero-divider i {
    color: var(--gold);
    font-size: 0.75rem;
    opacity: 0.8;
}

h2 {
    font-size: clamp(1.7rem, 4.8vw, 3rem);
    color: var(--primary-color);
    margin-bottom: 28px;
}

h2::after {
    content: '❦';
    display: block;
    margin-top: 10px;
    font-size: 1.5rem;
    color: var(--gold);
    opacity: 0.75;
}

p {
    font-size: clamp(1rem, 2.2vw, 1.08rem);
    color: var(--text-color);
    margin-bottom: 14px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.25s ease;
}

.container {
    width: min(100%, 1080px);
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.section {
    padding: clamp(56px, 8vw, 92px) 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    content-visibility: auto;
    contain-intrinsic-size: 1px 860px;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 12px 24px rgba(142, 60, 69, 0.28);
}

.hero {
    min-height: 100dvh;
    background-image: url('Images/veronika-alexander-main.webp');
    background-size: var(--hero-image-fit);
    background-position: var(--hero-image-position);
    background-repeat: no-repeat;
    background-color: #1a2d24;
    position: relative;
    display: grid;
    place-items: center;
    padding: 18px;
    text-align: center;
    color: #fff;
    isolation: isolate;
    content-visibility: visible;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: min(60vw, 460px);
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    filter: blur(2px);
}

.hero::before {
    top: -160px;
    left: -120px;
    background: radial-gradient(circle, rgba(200, 167, 106, 0.18) 0%, rgba(200, 167, 106, 0) 62%);
    animation: floatGlow 8s ease-in-out infinite;
}

.hero::after {
    right: -130px;
    bottom: -170px;
    background: radial-gradient(circle, rgba(142, 60, 69, 0.2) 0%, rgba(142, 60, 69, 0) 65%);
    animation: floatGlow 10s ease-in-out infinite reverse;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, transparent 32%, rgba(10, 26, 20, 0.18) 100%),
        linear-gradient(180deg, rgba(10, 26, 20, 0.2) 0%, rgba(10, 26, 20, 0.7) 88%);
    z-index: -1;
}

.hero-sparkles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-sparkles span {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(191, 155, 92, 0.85);
    box-shadow: 0 0 8px 3px rgba(191, 155, 92, 0.25);
    animation: sparkleFloat 6s ease-in-out infinite;
    opacity: 0;
}

.hero-sparkles span:nth-child(1) { top: 18%; left:  8%;  animation-delay: 0s;   width: 6px; height: 6px; }
.hero-sparkles span:nth-child(2) { top: 35%; right: 10%; animation-delay: 1.2s; width: 4px; height: 4px; }
.hero-sparkles span:nth-child(3) { top: 62%; left: 12%;  animation-delay: 2.4s; }
.hero-sparkles span:nth-child(4) { top: 78%; right: 18%; animation-delay: 0.7s; width: 6px; height: 6px; }
.hero-sparkles span:nth-child(5) { top: 48%; left:  4%;  animation-delay: 3.5s; width: 3px; height: 3px; }
.hero-sparkles span:nth-child(6) { top: 25%; right:  5%; animation-delay: 2.0s; width: 4px; height: 4px; }
.hero-sparkles span:nth-child(7) { top: 70%; left: 88%;  animation-delay: 4.3s; }
.hero-sparkles span:nth-child(8) { top: 43%; right: 32%; animation-delay: 1.7s; width: 3px; height: 3px; }

.hero-content {
    position: relative;
    max-width: 760px;
    padding: clamp(22px, 4vw, 36px);
    border-radius: 24px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow: 0 24px 48px rgba(6, 16, 12, 0.34);
    backdrop-filter: blur(8px);
    animation: fadeIn 1.1s ease both;
}

.hero-content::after {
    content: '';
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    pointer-events: none;
}

.hero-lead {
    max-width: 640px;
    margin: 0 auto 18px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-kicker {
    margin-bottom: 8px;
    color: rgba(232, 242, 236, 0.9);
    font-size: 0.86rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, 0.46);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.subtitle {
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.92);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.82rem;
}

.date {
    display: inline-block;
    margin: 0 0 28px;
    padding: 8px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.65);
    border-bottom: 1px solid rgba(255, 255, 255, 0.65);
    font-size: clamp(1rem, 2.6vw, 1.28rem);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.34);
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.95);
}

.hero-meta i {
    color: #ffd7a4;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-countdown {
    margin: 0 auto 18px;
    width: min(100%, 520px);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

.countdown-title {
    margin-bottom: 8px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.94);
}

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

.countdown-item {
    border-radius: 12px;
    background: rgba(8, 20, 15, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 8px;
}

.countdown-item span {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(1.25rem, 4vw, 2rem);
    line-height: 1;
    color: #fff;
}

.countdown-item small {
    display: block;
    margin-top: 6px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.82);
}

.btn-secondary {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: #21372c;
    border-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 24px rgba(6, 16, 12, 0.22);
}

.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 1.35rem;
    animation: bounce 2.1s infinite;
}

.invite .container {
    max-width: 850px;
}

.invite {
    background: linear-gradient(180deg, var(--cream) 0%, var(--bg-color) 100%);
}

.section-ornament {
    display: block;
    font-size: 0.9rem;
    color: var(--gold);
    margin-bottom: 18px;
    letter-spacing: 0.42em;
    opacity: 0.7;
}

.decorative-leaf {
    display: block;
    margin-bottom: 12px;
    font-size: 2rem;
}

.text-large {
    color: var(--muted-text);
    line-height: 1.9;
}

.text-italic {
    margin-top: 28px;
    font-family: var(--font-script);
    font-style: italic;
    color: var(--primary-color);
    font-size: clamp(1.5rem, 4.2vw, 2.4rem);
    font-weight: 400;
    line-height: 1.5;
    opacity: 0.82;
}

.story-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.story-intro {
    max-width: 720px;
    margin: 0 auto 16px;
    color: var(--muted-text);
}

.story-card {
    text-align: left;
    border-radius: 14px;
    border: 1px solid var(--border-soft);
    border-top: 3px solid rgba(191, 155, 92, 0.5);
    background: linear-gradient(160deg, #ffffff, #f8fdf9);
    padding: 20px;
    box-shadow: 0 10px 22px rgba(21, 42, 32, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(21, 42, 32, 0.14);
}

.story-year {
    display: inline-block;
    margin-bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(47, 111, 83, 0.12);
    color: var(--green-color);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.story-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.story-card p {
    margin-bottom: 0;
    color: var(--muted-text);
    font-size: 0.96rem;
}

.details {
    background: linear-gradient(180deg, rgba(238, 243, 237, 0.75), rgba(238, 243, 237, 0.26));
}

.details-intro {
    max-width: 760px;
    margin: 0 auto;
    color: var(--muted-text);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 30px;
    min-width: 0;
}

.detail-item {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--gold);
    border-radius: 18px;
    padding: clamp(22px, 4.5vw, 34px);
    box-shadow: 0 16px 34px rgba(26, 47, 38, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.detail-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 42px rgba(26, 47, 38, 0.13);
}

.detail-item i {
    font-size: 1.85rem;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.detail-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(47, 111, 83, 0.11), rgba(22, 57, 43, 0.07));
    border: 1.5px solid rgba(47, 111, 83, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.detail-item:hover .detail-icon-wrap {
    transform: scale(1.08);
    box-shadow: 0 6px 16px rgba(22, 57, 43, 0.13);
}

.detail-icon-wrap i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0;
}

.detail-item h3 {
    font-size: clamp(1.25rem, 3vw, 1.6rem);
    margin-bottom: 10px;
}

.detail-points {
    margin: 0;
    padding-left: 18px;
    text-align: left;
    color: var(--muted-text);
}

.detail-points li {
    margin-bottom: 6px;
}

.detail-place {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 700;
}

.detail-address {
    color: var(--muted-text);
}

.detail-item-note {
    background: linear-gradient(180deg, #ffffff, #f7fbf8);
}

.link {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent-color);
    font-weight: 600;
    border-bottom: 1px dashed currentColor;
}

.link:hover {
    color: var(--primary-color);
}

.venue-map {
    margin-top: 34px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 32px rgba(22, 57, 43, 0.1);
    height: 320px;
    min-width: 0;
}

.venue-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.timeline-list {
    list-style: none;
    max-width: 620px;
    margin: 10px auto 0;
    text-align: left;
    border-left: 2px solid rgba(191, 155, 92, 0.45);
    padding-left: 24px;
    min-width: 0;
}

.timeline-list li {
    position: relative;
    margin-bottom: 22px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 14px 16px;
}

.timeline-list li::before {
    content: '';
    position: absolute;
    left: -31px;
    top: 20px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 4px rgba(191, 155, 92, 0.2);
}

.time {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-color);
    font-size: 1.2rem;
    font-family: var(--font-head);
}

.event {
    color: var(--muted-text);
    font-weight: 500;
}

.timeline-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.event i {
    margin-right: 6px;
    color: var(--accent-color);
}

.timeline-note {
    margin-bottom: 0;
    margin-top: 6px;
    color: var(--muted-text);
    font-size: 0.94rem;
}

.dresscode {
    background: linear-gradient(180deg, var(--cream), var(--bg-color));
}

.dresscode-content {
    max-width: 740px;
    margin: 0 auto;
}

.icon-dress {
    font-size: 2.6rem;
    color: var(--accent-color);
    margin-bottom: 16px;
}

.dresscode-palette {
    margin: 12px auto 14px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.dresscode-palette span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(27, 43, 35, 0.22);
}

.dresscode-palette .tone-1 {
    background: var(--gold);
}

.dresscode-palette .tone-2 {
    background: var(--accent-color);
}

.dresscode-palette .tone-3 {
    background: var(--primary-color);
}

.dresscode-palette .tone-4 {
    background: rgba(200, 167, 106, 0.45);
}

.dresscode-palette .tone-5 {
    background: rgba(33, 75, 58, 0.35);
}

.dresscode-tips {
    max-width: 560px;
    margin: 0 auto;
    padding-left: 20px;
    text-align: left;
    color: var(--muted-text);
}

.dresscode-tips li {
    margin-bottom: 6px;
}

.important-note {
    margin-top: 18px;
    border: 1px solid rgba(142, 60, 69, 0.35);
    border-left: 4px solid var(--accent-color);
    border-radius: 14px;
    padding: 18px 16px;
    background: #fff8f8;
}

.important-note i {
    color: var(--accent-color);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.important-note span {
    color: var(--accent-color);
    font-weight: 700;
}

.rsvp {
    background: var(--secondary-bg);
}

.rsvp-subtitle {
    color: var(--muted-text);
    max-width: 560px;
    margin: 0 auto 6px;
}

form {
    max-width: 680px;
    margin: 28px auto 0;
    text-align: left;
    padding: clamp(18px, 4vw, 34px);
    border-radius: 20px;
    border: 1px solid var(--border-soft);
    background: #fff;
    box-shadow: 0 20px 40px rgba(33, 75, 58, 0.08);
}

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

.form-section-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.form-section-head .field-title,
.form-section-head label {
    margin-bottom: 0;
}

.form-step {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.form-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 10px;
    padding: 0;
}

.form-fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-help {
    color: var(--muted-text);
    margin-bottom: 12px;
    font-size: 0.94rem;
}

.form-bottom-note {
    margin-top: 2px;
    margin-bottom: 12px;
    padding-left: 2px;
}

.field-title {
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--primary-color);
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--primary-color);
}

input[type='text'],
textarea,
select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #d9dedb;
    background: #fcfdfc;
    font: inherit;
    color: var(--text-color);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input[type='text']:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(33, 75, 58, 0.6);
    box-shadow: 0 0 0 3px rgba(33, 75, 58, 0.14);
}

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

.radio-group {
    margin: 0;
    border-radius: 12px;
    border: 1px solid #e8ecea;
    background: #f9fcfa;
    padding: 12px;
}

.attendance-box {
    border-left: 4px solid rgba(47, 111, 83, 0.45);
}

.radio-group legend {
    padding: 0 4px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary-color);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.radio-option:last-child {
    margin-bottom: 0;
}

.attendance-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.attendance-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    border: 2px solid #dce8e1;
    border-radius: 16px;
    cursor: pointer;
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    background: #fafcfb;
    font-weight: normal;
    text-align: center;
    margin-bottom: 0;
}

.attendance-card input[type='radio'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.attendance-card .card-icon {
    font-size: 2rem;
    line-height: 1;
}

.attendance-card .card-label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
}

.attendance-card:hover {
    border-color: var(--green-color);
    background: rgba(47, 111, 83, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 57, 43, 0.1);
}

.attendance-card:has(input:checked) {
    border-color: var(--primary-color);
    background: linear-gradient(160deg, rgba(22, 57, 43, 0.08), rgba(47, 111, 83, 0.04));
    box-shadow: 0 6px 18px rgba(22, 57, 43, 0.14);
}

.attendance-card:has(input:focus-visible) {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.guest-list {
    display: grid;
    gap: 10px;
}

.guest-card {
    border: 1px solid #d5e0d9;
    border-radius: 12px;
    padding: 12px;
    background: linear-gradient(180deg, #ffffff, #f8fcfa);
}

.guest-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.guest-title {
    font-size: 1.02rem;
    color: var(--green-color);
}

.guest-remove-btn {
    border: 1px solid #ebcdd0;
    background: #fff6f6;
    color: var(--accent-color);
    border-radius: 999px;
    padding: 6px 10px;
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
}

.guest-fields {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
}

.guest-tools {
    margin-top: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.guest-add-btn {
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid rgba(47, 111, 83, 0.3);
    color: var(--primary-color);
    background: rgba(47, 111, 83, 0.09);
}

.guest-add-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(33, 75, 58, 0.2);
}

.guest-add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.guest-total {
    margin: 0;
    font-weight: 600;
    color: var(--green-color);
}

.submit-btn {
    width: 100%;
    border: none;
    background: linear-gradient(90deg, var(--primary-color), var(--green-color));
    color: #fff;
    margin-top: 4px;
    border-radius: 12px;
}

.submit-btn:hover {
    background: linear-gradient(90deg, #10291f, #235640);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.submit-guard {
    border: 1px dashed rgba(47, 111, 83, 0.35);
    border-radius: 12px;
    background: #f8fcfa;
    padding: 12px;
}

.confirm-submit-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    cursor: pointer;
}

.confirm-submit-label input[type='checkbox'] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.submit-hint {
    margin: 8px 0 0;
    color: var(--muted-text);
    font-size: 0.9rem;
}

#statusMessage {
    margin-top: 14px;
    font-weight: 600;
}


footer {
    padding: 30px 0 36px;
    text-align: center;
    background: #1f2f29;
    color: rgba(255, 255, 255, 0.92);
}

footer p {
    color: inherit;
    margin-bottom: 4px;
}

.footer-love {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: 6px;
}

.footer-signature {
    font-family: var(--font-script);
    font-style: italic;
    font-size: clamp(2.2rem, 5.5vw, 3.4rem);
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.2;
}

.footer-tag {
    font-size: 0.76rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.38);
    margin: 0;
    text-transform: uppercase;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -8px);
    }
    60% {
        transform: translate(-50%, -4px);
    }
}

@keyframes sparkleFloat {
    0%   { opacity: 0;    transform: translateY(0)     scale(0.6); }
    35%  { opacity: 0.78; transform: translateY(-8px)  scale(1);   }
    70%  { opacity: 0.4;  transform: translateY(-16px) scale(0.9); }
    100% { opacity: 0;    transform: translateY(-26px) scale(0.7); }
}

@keyframes floatGlow {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.03);
    }
}

@media (max-width: 900px) {
    .story-grid {
        grid-template-columns: 1fr;
    }

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

    .timeline-list {
        max-width: 100%;
    }
}

@media (min-width: 1400px) {
    .hero {
        --hero-image-position: center 15%;
    }
}

@media (max-width: 768px) {
    .hero {
        --hero-image-fit: contain;
        --hero-image-position: center 6%;
        place-items: end center;
        min-height: max(100dvh, 700px);
        padding: 14px;
    }

    .hero-content {
        max-width: 100%;
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(14, 33, 24, 0.74), rgba(14, 33, 24, 0.58));
        border-color: rgba(255, 255, 255, 0.28);
    }

    .hero-content::after {
        inset: 8px;
    }

    .subtitle {
        letter-spacing: 0.16em;
    }

    .date {
        padding-inline: 18px;
    }

    .btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-countdown {
        margin-bottom: 14px;
        padding: 10px;
    }

    .hero-meta {
        gap: 8px;
    }

    .hero-meta span {
        font-size: 0.78rem;
        padding: 6px 10px;
    }

    .timeline-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .timeline-list {
        padding-left: 18px;
    }

    .timeline-list li::before {
        left: -25px;
    }

    form {
        border-radius: 16px;
    }

    .radio-option {
        align-items: flex-start;
    }

    .radio-option input[type='radio'] {
        margin-top: 4px;
        transform: scale(1.12);
    }

    .guest-fields {
        grid-template-columns: 1fr;
    }

    .guest-card-top {
        align-items: flex-start;
    }

    .venue-map {
        height: 240px;
        margin-top: 22px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .hero-content {
        padding: 16px 10px;
    }

    .hero-mark {
        margin-bottom: 10px;
    }

    .hero-meta {
        margin-bottom: 14px;
    }

    .hero-lead {
        font-size: 0.95rem;
        margin-bottom: 14px;
    }

    .countdown-grid {
        gap: 6px;
    }

    .countdown-item {
        padding: 8px 6px;
    }

    .countdown-item small {
        font-size: 0.66rem;
        letter-spacing: 0.06em;
    }

    .section {
        padding: 52px 0;
    }

    .timeline-list li {
        padding: 12px;
    }

    .important-note {
        padding: 14px 12px;
    }

    .attendance-card {
        padding: 14px 10px;
    }

    .attendance-card .card-icon {
        font-size: 1.6rem;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .section {
        opacity: 1;
        transform: none;
    }

    .hero::before,
    .hero::after {
        animation: none;
    }

    .hero-sparkles span {
        animation: none;
    }
}
