/* ===== Modern Elegant Wedding Invitation ===== */
/* Color Palette: Champagne, Ivory, Warm Taupe, Dusty Rose */

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

:root {
    --sage: #b5a08a;
    --sage-light: #d4c4b4;
    --sage-dark: #8c7a68;
    --ivory: #faf8f4;
    --cream: #f5f0e8;
    --warm-white: #fffdf9;
    --taupe: #a89888;
    --taupe-dark: #7a6b5d;
    --dusty-rose: #c9a8a0;
    --dusty-rose-light: #e8d5cf;
    --charcoal: #2c2c2c;
    --text-primary: #3a3a3a;
    --text-secondary: #6b6b6b;
    --text-light: #999;
    --gold-accent: #c4a96a;
    --border-light: rgba(0, 0, 0, 0.06);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    background-color: var(--ivory);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.container.narrow {
    max-width: 640px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #2a2a2a;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.05) 40%,
        rgba(0, 0, 0, 0.3) 80%,
        rgba(0, 0, 0, 0.55) 100%
    );
    z-index: 2;
}

.hero-photo {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-photo .couple-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%);
    color: rgba(255, 255, 255, 0.4);
    z-index: 0;
    transition: opacity 0.6s ease;
}

.hero-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.4;
}

.hero-placeholder p {
    font-size: 1rem;
    letter-spacing: 1px;
}

.hero-placeholder small {
    font-size: 0.8rem;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: #fff;
    padding: 40px 24px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-pretext {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    opacity: 1;
}

.hero-names {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 32px;
}

.hero-names .name-first,
.hero-names .name-second {
    display: block;
    font-size: clamp(3rem, 10vw, 6rem);
    letter-spacing: 4px;
}

.hero-names .ampersand {
    display: block;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    opacity: 0.7;
    margin: 8px 0;
}

.hero-date {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}

.hero-date span {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 6px;
}

.date-line {
    width: 60px;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-venue {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 200;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.65;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator span {
    font-size: 0.65rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.scroll-arrow svg {
    width: 20px;
    height: 20px;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== Fade In Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.3s; }
.fade-in:nth-child(2) { animation-delay: 0.6s; }
.fade-in:nth-child(3) { animation-delay: 0.9s; }
.fade-in:nth-child(4) { animation-delay: 1.2s; }

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

/* ===== Reveal on Scroll ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out,
                transform 0.7s ease-out;
    will-change: opacity, transform;
}

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

.reveal-child {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible .reveal-child:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal.visible .reveal-child:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal.visible .reveal-child:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal.visible .reveal-child:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* Fallback for reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-child,
    .fade-in {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ===== Guest Section ===== */
.guest-section {
    padding: 60px 0 20px;
    text-align: center;
}

.guest-dedication {
    padding: 32px 40px;
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.03);
}

.dedication-label {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 8px;
}

.guest-name-display {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--sage-dark);
    font-style: italic;
}

/* ===== Intro Section ===== */
.intro-section {
    padding: 80px 0;
    text-align: center;
}

.leaf-ornament {
    display: flex;
    justify-content: center;
    color: var(--sage-light);
    margin: 24px 0;
}

.leaf-ornament svg {
    width: 80px;
    height: auto;
}

.invitation-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 2;
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== Section Headings ===== */
.section-heading {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--charcoal);
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: 1px;
    position: relative;
}

.section-heading::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--sage);
    margin: 16px auto 0;
}

/* ===== Countdown ===== */
.countdown-section {
    padding: 80px 0;
    background: var(--cream);
}

.countdown-gallery-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: var(--charcoal);
    text-align: center;
    margin: 48px 0 24px;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    padding: 20px 16px;
    background: var(--warm-white);
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-light);
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 500;
    color: var(--sage-dark);
    line-height: 1;
    min-width: 2ch;
    text-align: center;
}

.countdown-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-light);
    margin-top: 8px;
}

.countdown-separator {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--taupe);
    font-weight: 300;
    padding-bottom: 20px;
}

/* ===== Event Details ===== */
.details-section {
    padding: 80px 0;
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.detail-card {
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

.detail-card-wide {
    grid-column: 1 / -1;
}

.detail-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: 50%;
    border: 1px solid var(--border-light);
}

.detail-icon svg {
    width: 26px;
    height: 26px;
    color: var(--sage-dark);
}

.detail-card h3 {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-light);
    margin-bottom: 12px;
}

.detail-main {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.detail-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.venue-name {
    font-size: 1.5rem !important;
}

.venue-photo-container {
    position: relative;
    width: 100%;
    max-width: 360px;
    margin: 12px auto 16px;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--warm-white);
    border: 1px solid var(--border-light);
}

.venue-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.venue-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.venue-placeholder svg {
    width: 32px;
    height: 32px;
    color: var(--text-light);
    opacity: 0.3;
}

.venue-description {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--taupe-dark);
    margin: 16px 0;
    font-size: 0.95rem;
}

.venue-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--sage-light);
    border-radius: 100px;
    color: var(--sage-dark);
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-link svg {
    width: 16px;
    height: 16px;
}

.btn-link:hover {
    background: var(--sage);
    border-color: var(--sage);
    color: #fff;
}

/* ===== Gallery ===== */
.gallery-section {
    padding: 80px 0;
    background: var(--cream);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 750px;
    margin: 0 auto 48px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.6s ease;
}

.gallery-item:hover .gallery-photo {
    transform: scale(1.08);
}

.gallery-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
    color: var(--taupe);
    transition: opacity 0.5s ease;
}

.gallery-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.3;
}

/* ===== Gift Section ===== */
.gift-section {
    padding: 80px 0;
    text-align: center;
}

.gift-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.gift-prices {
    text-align: center;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--dark-text);
    margin-bottom: 32px;
    font-weight: 400;
}

.gift-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 32px;
    background: var(--cream);
    border-radius: 12px;
    border: 1px solid var(--border-light);
}

.gift-note svg {
    width: 28px;
    height: 28px;
    color: var(--dusty-rose);
}

.gift-note p {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

.bank-details {
    margin-top: 28px;
    margin-bottom: 24px;
    padding: 18px 24px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    text-align: center;
}

.bank-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 0 0 6px;
}

.bank-label + .bank-label {
    margin-top: 20px;
}

.bank-account {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin: 0 0 0;
    user-select: all;
}

.bank-concept {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-primary);
    margin: 0;
}

.bank-warning {
    margin: 16px 0 0;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    color: var(--dusty-rose);
    text-transform: uppercase;
}

/* ===== RSVP Section ===== */
.rsvp-section {
    padding: 80px 0;
    background: var(--cream);
}

.rsvp-subtitle {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: -32px;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.rsvp-countdown {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: var(--dusty-rose);
    text-align: center;
    margin-bottom: 48px;
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
}

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

.form-group label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 0.95rem;
    background: var(--warm-white);
    color: var(--text-primary);
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--sage);
    box-shadow: 0 0 0 3px rgba(138, 154, 123, 0.12);
}

.form-group input[readonly] {
    background: rgba(138, 154, 123, 0.06);
    border-color: var(--sage-light);
    cursor: default;
    font-weight: 400;
    color: var(--sage-dark);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    line-height: 1.6;
}

/* Attendance Toggle Buttons */
.attendance-toggle {
    display: flex;
    gap: 16px;
    justify-content: center;
    padding: 14px;
    border: none;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.attendance-toggle.invalid {
    border-color: var(--dusty-rose);
    box-shadow: 0 0 0 3px rgba(201, 168, 160, 0.15);
}

.attendance-error {
    display: none;
    font-size: 0.75rem;
    color: var(--dusty-rose);
    margin-top: 8px;
    letter-spacing: 1px;
}

.attendance-error.show {
    display: block;
}

.toggle-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: transparent;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-width: 120px;
    position: relative;
    z-index: 1;
}

.toggle-btn:hover {
    transform: scale(1.03);
}

.toggle-yes {
}

.toggle-no {
}

.toggle-btn input[type="radio"] {
    display: none;
}

.toggle-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    position: relative;
}

.toggle-yes .toggle-icon {
    border-color: rgba(76, 140, 80, 0.7);
    background: rgba(76, 140, 80, 0.3);
}

.toggle-no .toggle-icon {
    border-color: rgba(190, 80, 70, 0.7);
    background: rgba(190, 80, 70, 0.3);
}

.toggle-icon svg {
    width: 26px;
    height: 26px;
    color: #fff;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Green tint on yes hover */
.toggle-yes:hover .toggle-icon {
    background: rgba(76, 140, 80, 0.5);
    border-color: #4c8c50;
    transform: scale(1.1);
}

.toggle-yes:hover .toggle-icon svg {
    color: #fff;
}

/* Red tint on no hover */
.toggle-no:hover .toggle-icon {
    background: rgba(190, 80, 70, 0.5);
    border-color: #be5046;
    transform: scale(1.1);
}

.toggle-no:hover .toggle-icon svg {
    color: #fff;
}

/* Yes button selected */
.toggle-yes:has(input:checked) {
    animation: yesPopIn 0.4s ease;
}

@keyframes yesPopIn {
    0% { transform: scale(1); }
    30% { transform: scale(1.04); }
    60% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.toggle-yes input[type="radio"]:checked ~ .toggle-icon {
    background: #4c8c50;
    border-color: #4c8c50;
    animation: iconPop 0.35s ease;
}

@keyframes iconPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.toggle-yes input[type="radio"]:checked ~ .toggle-icon svg {
    color: #fff;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
}

/* No button selected */
.toggle-no:has(input:checked) {
}

.toggle-no input[type="radio"]:checked ~ .toggle-icon {
    background: #be5046;
    border-color: #be5046;
    box-shadow: 0 0 12px rgba(190, 80, 70, 0.4);
}

.toggle-no input[type="radio"]:checked ~ .toggle-icon svg {
    color: #fff;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.6));
}

/* Cuando se selecciona Sí, el botón No se pone gris */
.toggle-yes:has(input:checked) ~ .toggle-no .toggle-icon {
    background: #bbb;
    border-color: #bbb;
    opacity: 0.5;
}

.toggle-yes:has(input:checked) ~ .toggle-no .toggle-icon svg {
    color: #fff;
    opacity: 0.6;
}

/* Cuando se selecciona No, el botón Sí se pone gris */
.toggle-no:has(input:checked) ~ .toggle-yes .toggle-icon,
.attendance-toggle:has(.toggle-no input:checked) .toggle-yes .toggle-icon {
    background: #bbb;
    border-color: #bbb;
    opacity: 0.5;
}

.toggle-no:has(input:checked) ~ .toggle-yes .toggle-icon svg,
.attendance-toggle:has(.toggle-no input:checked) .toggle-yes .toggle-icon svg {
    color: #fff;
    opacity: 0.6;
}

/* Submit Button */
.submit-btn {
    margin-top: 16px;
    width: 100%;
    padding: 16px 40px;
    background: var(--sage);
    border: none;
    border-radius: 100px;
    color: #fff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.submit-btn:hover {
    background: var(--sage-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 125, 94, 0.25);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn span {
    position: relative;
    z-index: 1;
}

/* Success Message */
.success-message {
    text-align: center;
    padding: 48px 32px;
    background: var(--warm-white);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    animation: successFade 0.6s ease-out;
}

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

.success-check {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--sage);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkScale 0.4s ease-out 0.2s both;
}

@keyframes checkScale {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

.success-check svg {
    width: 28px;
    height: 28px;
    color: #fff;
    stroke-width: 2.5;
}

.success-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--charcoal);
    margin-bottom: 12px;
}

.success-message p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.success-subtitle {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 16px;
}

.sent-summary {
    margin: 20px auto;
    padding: 16px 24px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    text-align: left;
    max-width: 320px;
}

.sent-summary p {
    font-size: 0.9rem;
    margin: 6px 0;
    color: var(--text-secondary);
}

.success-detail {
    font-size: 0.8rem !important;
    color: var(--text-light) !important;
    margin-top: 16px;
    font-style: italic;
}

/* ===== Footer ===== */
.site-footer {
    padding: 80px 24px;
    text-align: center;
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
}

.footer-text {
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-weight: 200;
}

.footer-names {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.footer-date {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.4;
}

/* ===== Responsive ===== */

/* ===== Blocked Access Screen ===== */
.blocked-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--ivory);
}

.blocked-screen {
    text-align: center;
    padding: 60px 40px;
    max-width: 460px;
    animation: successFade 0.6s ease-out;
}

.blocked-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 32px;
    background: var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
}

.blocked-icon svg {
    width: 36px;
    height: 36px;
    color: var(--taupe);
}

.blocked-screen h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    font-size: 2rem;
    color: var(--charcoal);
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.blocked-screen p {
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 300;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

.blocked-screen .blocked-detail {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
    }

    .hero-names .name-first,
    .hero-names .name-second {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

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

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

    .countdown-item {
        min-width: 72px;
        padding: 16px 12px;
    }

    .countdown-number {
        font-size: 2.2rem;
    }

    .countdown-separator {
        font-size: 1.5rem;
    }

    .section-heading {
        font-size: 1.8rem;
        margin-bottom: 36px;
    }

    .intro-section,
    .countdown-section,
    .details-section,
    .gallery-section,
    .gift-section,
    .rsvp-section {
        padding: 60px 0;
    }

    .detail-card {
        padding: 28px 24px;
    }

    .venue-links {
        flex-direction: column;
        align-items: center;
    }

    .guest-dedication {
        padding: 24px 20px;
    }

    .guest-name-display {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 280px;
        margin: 0 auto;
    }

    .countdown {
        gap: 8px;
    }

    .countdown-item {
        min-width: 60px;
        padding: 12px 8px;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-separator {
        font-size: 1.2rem;
        padding-bottom: 16px;
    }

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

    .invitation-text {
        font-size: 1.15rem;
    }

    .date-line {
        width: 30px;
    }

    .hero-date span {
        letter-spacing: 4px;
        font-size: 0.85rem;
    }
}
