/* =========================================================
   Выпуск 2026 · Группа 4 «Г»
   Светлая палитра: тёплый кремовый фон + янтарь
   ========================================================= */

:root {
    /* фоны */
    --bg-deep:        #faf3e3;   /* основной фон страницы — тёплый кремовый */
    --bg-soft:        #f3e7ce;   /* мягкий шампань */
    --bg-card:        #fffdf6;   /* фон карточек — почти белый, тёплый */
    --bg-card-soft:   #fbf3df;   /* альтернативный фон карточек */

    /* акценты — тёплый янтарь, читается на светлом */
    --amber:          #c2691c;   /* основной янтарь */
    --amber-bright:   #d97f2f;   /* осветлённый */
    --amber-deep:     #8e4810;   /* глубокий, для подписей */
    --amber-glow:     #ecaa67;
    --amber-soft:     #f3d7a8;
    --amber-shadow:   rgba(194, 105, 28, 0.20);

    /* текст */
    --text:           #2b1a0e;   /* тёмно-коричневый — основной */
    --text-dim:       #5a3f2b;
    --text-muted:     #8a6f56;

    /* линии и тени */
    --line:           rgba(194, 105, 28, 0.28);
    --line-soft:      rgba(194, 105, 28, 0.15);

    --serif:          'Cormorant Garamond', 'Times New Roman', serif;
    --script:         'Marck Script', cursive;
    --sans:           'Montserrat', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 400;
    color: var(--text);
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse at 20% 0%,   rgba(217, 127, 47, 0.10), transparent 55%),
        radial-gradient(ellipse at 80% 100%, rgba(140, 72, 16, 0.08),  transparent 55%);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

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

/* ====== ДЕКОРАТИВНЫЕ НОТЫ ====== */
.floating-decor {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.note {
    position: absolute;
    color: var(--amber);
    opacity: 0.10;
    font-size: clamp(2rem, 5vw, 4rem);
    animation: float 18s ease-in-out infinite;
    font-family: var(--serif);
}
.note-1 { top:  8%; left:  6%; animation-delay:  0s; }
.note-2 { top: 22%; right: 8%; animation-delay: -3s; font-size: 3rem; }
.note-3 { top: 55%; left:  4%; animation-delay: -6s; }
.note-4 { top: 70%; right:10%; animation-delay: -9s; font-size: 2.5rem; }
.note-5 { top: 38%; right: 4%; animation-delay: -12s; }
.note-6 { top: 88%; left: 48%; animation-delay: -15s; font-size: 3.5rem; }

@keyframes float {
    0%, 100% { transform: translateY(0)    rotate(-5deg); opacity: 0.08; }
    50%      { transform: translateY(-30px) rotate(8deg);  opacity: 0.18; }
}

/* мобильные — меньше декора, чтобы не отвлекало */
@media (max-width: 640px) {
    .note-2, .note-4, .note-5 { display: none; }
}

/* ====== HERO ====== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.5rem;
    overflow: hidden;
    text-align: center;
}

.hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.72) saturate(1.1) blur(10px);
    transform: scale(1.08); /* компенсируем светлую кромку от blur */
}
/* оверлей: мягкое затемнение в центре, плавный переход в кремовый фон страницы */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center,
            rgba(30, 18, 10, 0.25) 0%,
            rgba(30, 18, 10, 0.55) 65%,
            rgba(30, 18, 10, 0.75) 100%),
        linear-gradient(to bottom,
            rgba(250, 243, 227, 0.0) 55%,
            rgba(250, 243, 227, 0.5) 88%,
            var(--bg-deep) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeUp 1.4s ease-out both;
}

.hero-pretitle {
    font-family: var(--sans);
    font-weight: 500;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    font-size: clamp(0.75rem, 1.4vw, 0.95rem);
    color: #fbe3c0;
    opacity: 0.95;
    margin: 0 0 1.5rem;
    line-height: 1.8;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-title {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
    color: #f0a86a;
    text-shadow:
        0 3px 24px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(217, 127, 47, 0.4);
    margin: 0 0 2rem;
    line-height: 1.0;
}
.hero-title .line {
    display: block;
    font-size: clamp(2.6rem, 8vw, 5.5rem);
}
.hero-title .line-1 { margin-bottom: 0.2em; }
.hero-title em { font-style: italic; color: #f6c089; }

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto 1.8rem;
    max-width: 380px;
}
.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, #f0a86a, transparent);
}
.divider-icon {
    color: #f0a86a;
    font-size: 1.4rem;
}

.hero-subtitle {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    color: #fbf0dc;
    font-weight: 400;
    margin: 0 0 1.5rem;
    line-height: 1.5;
    font-style: italic;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}

.hero-date {
    font-family: var(--script);
    font-size: clamp(2.2rem, 5.5vw, 3.2rem);
    color: #f4b073;
    margin: 0 0 2.5rem;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.55);
}

.hero-cta {
    display: inline-block;
    padding: 1.1rem 2.6rem;
    border: 1.5px solid #f0a86a;
    color: #f6c089;
    text-decoration: none;
    font-family: var(--sans);
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 3px;
    transition: all 0.4s ease;
    background: rgba(20, 12, 6, 0.35);
    backdrop-filter: blur(4px);
}
.hero-cta:hover, .hero-cta:focus-visible {
    background: #f0a86a;
    color: #2b1a0e;
    box-shadow: 0 0 30px rgba(240, 168, 106, 0.5);
    transform: translateY(-2px);
    outline: none;
}

/* индикатор скролла */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 36px;
    border: 1.5px solid #f0a86a;
    border-radius: 12px;
    z-index: 2;
    opacity: 0.75;
}
.scroll-indicator span {
    position: absolute;
    top: 6px;
    left: 50%;
    width: 3px;
    height: 8px;
    background: #f0a86a;
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
    0%   { transform: translate(-50%, 0);    opacity: 1; }
    100% { transform: translate(-50%, 14px); opacity: 0; }
}

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

/* мобильные: hero чуть компактнее */
@media (max-width: 640px) {
    .hero { padding: 3rem 1.1rem; }
    .hero-pretitle { letter-spacing: 0.25em; }
    .hero-cta { padding: 0.95rem 1.8rem; font-size: 0.82rem; }
    .scroll-indicator { display: none; }
}

/* ====== SECTION TITLE ====== */
.section-title {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    color: var(--amber-deep);
    font-size: clamp(2rem, 4.5vw, 3rem);
    text-align: center;
    margin: 0 0 2.5rem;
    position: relative;
    line-height: 1.2;
}
.section-title::after {
    content: '❦';
    display: block;
    color: var(--amber);
    font-size: 1.3rem;
    margin-top: 0.7rem;
    opacity: 0.8;
}

/* ====== COUNTDOWN ====== */
.countdown-section {
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.countdown {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0.6rem;
    flex-wrap: wrap;
    max-width: 820px;
    margin: 0 auto;
}

.count-block {
    background: linear-gradient(180deg, var(--bg-card), var(--bg-card-soft));
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.6rem 1rem;
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow:
        0 4px 12px rgba(140, 72, 16, 0.06),
        0 12px 32px rgba(140, 72, 16, 0.10);
}
.count-num {
    font-family: var(--serif);
    font-weight: 700;
    font-size: clamp(2.6rem, 5.5vw, 3.8rem);
    color: var(--amber-deep);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.count-label {
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 0.7rem;
    font-weight: 500;
}
.count-sep {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--amber);
    align-self: center;
    opacity: 0.5;
    font-weight: 300;
}

/* мобильные: убираем разделители и делаем 2×2 сетку для лучшей читаемости */
@media (max-width: 560px) {
    .count-sep { display: none; }
    .countdown {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
        max-width: 360px;
    }
    .count-block { min-width: 0; padding: 1.2rem 0.6rem; }
    .count-num { font-size: 2.6rem; }
}

/* ====== INVITATION ====== */
.invitation {
    padding: 4rem 1.5rem;
    position: relative;
    z-index: 2;
}
.invitation-card {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow:
        0 4px 14px rgba(140, 72, 16, 0.06),
        0 30px 60px rgba(140, 72, 16, 0.10);
    position: relative;
    text-align: center;
}
.invitation-card::before,
.invitation-card::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--amber);
    opacity: 0.55;
}
.invitation-card::before {
    top: 12px; left: 12px;
    border-right: none; border-bottom: none;
}
.invitation-card::after {
    bottom: 12px; right: 12px;
    border-left: none; border-top: none;
}

.invitation-hello {
    font-family: var(--script);
    font-size: clamp(2rem, 4.4vw, 2.8rem);
    color: var(--amber-deep);
    margin: 0 0 1.5rem;
}
.invitation-text {
    font-family: var(--serif);
    font-size: clamp(1.15rem, 2vw, 1.35rem);
    color: var(--text);
    font-weight: 500;
    line-height: 1.7;
    margin: 0 0 1.2rem;
    font-style: italic;
}
.invitation-signature {
    font-family: var(--script);
    font-size: 1.7rem;
    color: var(--amber);
    margin-top: 2rem;
}

/* ====== SCHEDULE ====== */
.schedule {
    padding: 5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.timeline {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 90px;
    top: 12px;
    bottom: 12px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--amber) 10%, var(--amber) 90%, transparent);
    opacity: 0.4;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: 84px;
    top: 8px;
    width: 13px;
    height: 13px;
    background: var(--amber);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--bg-deep), 0 0 14px var(--amber-shadow);
    z-index: 1;
}

.timeline-time {
    flex-shrink: 0;
    width: 90px;
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--amber-deep);
    text-align: right;
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}

.timeline-content { flex: 1; padding-bottom: 0.5rem; }
.timeline-content h3 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    color: var(--amber-deep);
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    margin: 0 0 0.7rem;
}
.timeline-content p {
    margin: 0 0 0.7rem;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.7;
}
.timeline-content strong { color: var(--amber-deep); }
.timeline-addr {
    color: var(--text-dim);
    font-size: 1rem !important;
    font-style: italic;
}

/* мобильная раскладка timeline: время сверху, текст снизу */
@media (max-width: 640px) {
    .timeline::before { left: 14px; }
    .timeline-item {
        flex-direction: column;
        gap: 0.6rem;
        padding-left: 2rem;
    }
    .timeline-item::before { left: 8px; top: 10px; }
    .timeline-time {
        width: auto;
        text-align: left;
        font-size: 1.5rem;
        padding-top: 0;
    }
}

.note-box {
    margin-top: 1.4rem;
    padding: 1.2rem 1.2rem 1.2rem 3rem;
    background: var(--amber-soft);
    border: 1px solid var(--line);
    border-left: 3px solid var(--amber);
    border-radius: 4px;
    position: relative;
}
.note-box-icon {
    position: absolute;
    left: 1rem;
    top: 1.1rem;
    color: var(--amber-deep);
    font-size: 1.3rem;
}
.note-box p {
    margin: 0 !important;
    font-size: 1.02rem !important;
    color: var(--text);
    line-height: 1.6;
}
.note-box strong { color: var(--amber-deep); }

/* ====== VENUE ====== */
.venue {
    padding: 5rem 1.5rem;
    position: relative;
    z-index: 2;
}
.venue-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
    align-items: stretch;
}
@media (max-width: 820px) {
    .venue-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

.venue-info {
    padding: clamp(2rem, 4vw, 2.5rem) 2rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(140, 72, 16, 0.08);
}
.venue-info h3 {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    color: var(--amber-deep);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 1rem;
}
.venue-address {
    font-family: var(--serif);
    font-size: clamp(1.15rem, 2vw, 1.3rem);
    color: var(--text);
    line-height: 1.7;
    margin: 0 0 1rem;
    font-weight: 500;
}
.venue-coords {
    font-family: var(--sans);
    font-size: 0.92rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin: 0 0 1.5rem;
    font-variant-numeric: tabular-nums;
}
.venue-links {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}
.venue-link {
    display: inline-block;
    padding: 0.75rem 1.4rem;
    border: 1.5px solid var(--amber);
    color: var(--amber-deep);
    text-decoration: none;
    font-family: var(--sans);
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s;
    font-weight: 500;
}
.venue-link:hover, .venue-link:focus-visible {
    background: var(--amber);
    color: #fffdf6;
    outline: none;
}

.venue-map {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(140, 72, 16, 0.12);
    min-height: 380px;
    background: var(--bg-card);
}
.venue-map iframe { display: block; }

@media (max-width: 640px) {
    .venue-map { min-height: 300px; }
    .venue-map iframe { height: 300px !important; }
}

/* ====== RSVP FORM ====== */
.rsvp {
    padding: 5rem 1.5rem;
    position: relative;
    z-index: 2;
}

/* ВАЖНО: deadline крупный и легко читаемый */
.rsvp-deadline {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2.6vw, 1.75rem);
    font-style: italic;
    color: var(--text);
    line-height: 1.55;
    font-weight: 500;
    padding: 1.5rem 1.5rem;
    background: var(--amber-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(140, 72, 16, 0.08);
}
.rsvp-deadline strong {
    color: var(--amber-deep);
    font-style: normal;
    font-weight: 700;
    background: linear-gradient(to bottom, transparent 65%, rgba(217, 127, 47, 0.25) 65%);
    padding: 0 0.15em;
}

.rsvp-form {
    max-width: 720px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: clamp(1.8rem, 4vw, 3rem) clamp(1.3rem, 4vw, 3rem);
    box-shadow:
        0 4px 14px rgba(140, 72, 16, 0.06),
        0 30px 60px rgba(140, 72, 16, 0.10);
}

.form-group {
    border: none;
    padding: 0;
    margin: 0 0 1.8rem;
}
.form-group legend,
.form-group label {
    display: block;
    font-family: var(--sans);
    font-size: 0.86rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--amber-deep);
    margin-bottom: 0.7rem;
    font-weight: 600;
}
.form-group legend { padding: 0; }

.req { color: var(--amber); }

.field-hint {
    font-family: var(--sans);
    font-size: 0.88rem;
    color: var(--text-dim);
    margin: 0.6rem 0 0;
    line-height: 1.5;
    font-style: italic;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 400;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    background: #fffefa;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    padding: 1rem 1.1rem;
    color: var(--text);
    font-family: var(--serif);
    font-size: 1.15rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    -webkit-appearance: none;
    appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    font-style: italic;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px var(--amber-shadow);
}
.form-group textarea { resize: vertical; min-height: 80px; }

.form-group input.error,
.form-group textarea.error {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}
.drinks-group.error .drinks-grid {
    outline: 1.5px dashed #c0392b;
    outline-offset: 8px;
    border-radius: 6px;
}

/* attendance radio cards */
.attendance-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}
@media (max-width: 520px) {
    .attendance-options { grid-template-columns: 1fr; }
}
.radio-card {
    position: relative;
    cursor: pointer;
    display: block;
}
.radio-card input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}
.radio-card-inner {
    display: block;
    padding: 1.3rem 1.2rem;
    background: #fffefa;
    border: 1.5px solid var(--line);
    border-radius: 4px;
    transition: all 0.3s;
    text-align: center;
}
.radio-card-title {
    display: block;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}
.radio-card-sub {
    display: block;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}
.radio-card:hover .radio-card-inner,
.radio-card input:focus-visible + .radio-card-inner {
    border-color: var(--amber);
    background: var(--bg-card-soft);
}
.radio-card input:checked + .radio-card-inner {
    border-color: var(--amber);
    background: var(--amber-soft);
    box-shadow: 0 0 0 1px var(--amber), 0 0 22px var(--amber-shadow);
}
.radio-card input:checked + .radio-card-inner .radio-card-title {
    color: var(--amber-deep);
}

/* drinks chips */
.drinks-hint {
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--text-dim);
    margin: -0.3rem 0 1rem;
    text-transform: none;
    letter-spacing: 0;
    font-style: italic;
    font-weight: 400;
}
.drinks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.chip {
    position: relative;
    cursor: pointer;
}
.chip input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}
.chip span {
    display: inline-block;
    padding: 0.75rem 1.3rem;
    background: #fffefa;
    border: 1.5px solid var(--line);
    color: var(--text);
    border-radius: 100px;
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.25s;
    user-select: none;
}
.chip:hover span,
.chip input:focus-visible + span {
    border-color: var(--amber);
    color: var(--amber-deep);
}
.chip input:checked + span {
    background: var(--amber);
    color: #fffdf6;
    border-color: var(--amber);
    box-shadow: 0 4px 14px var(--amber-shadow);
    font-weight: 600;
}
.chip-soft input:checked + span {
    background: var(--amber-deep);
    color: #fffdf6;
    border-color: var(--amber-deep);
}

/* мобильные чипы — растянутые по ширине */
@media (max-width: 480px) {
    .drinks-grid { gap: 0.5rem; }
    .chip { flex: 1 1 calc(50% - 0.25rem); }
    .chip span {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0.8rem 0.6rem;
        font-size: 1.02rem;
    }
}

/* form fields hide when "не смогу" selected */
.form-fields { transition: opacity 0.4s ease, max-height 0.5s ease; }
.form-fields.hidden {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    pointer-events: none;
    margin: 0;
}

/* submit */
.submit-btn {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--amber-deep), var(--amber));
    color: #fffdf6;
    border: none;
    border-radius: 4px;
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 24px rgba(140, 72, 16, 0.25);
}
.submit-btn:hover, .submit-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 15px 34px rgba(140, 72, 16, 0.35);
    background: linear-gradient(135deg, var(--amber), var(--amber-bright));
    outline: none;
}
.submit-btn:active { transform: translateY(0); }

.form-error {
    color: #c0392b;
    text-align: center;
    margin: 1rem 0 0;
    font-size: 1rem;
    min-height: 1.2em;
    font-family: var(--serif);
    font-style: italic;
    font-weight: 500;
}

/* success */
.rsvp-success {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.8rem;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--amber);
    border-radius: 6px;
    box-shadow: 0 0 60px var(--amber-shadow), 0 20px 50px rgba(140, 72, 16, 0.12);
    animation: fadeUp 0.6s ease-out;
}
.success-icon {
    font-size: 3rem;
    color: var(--amber);
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1);   opacity: 1; }
    50%      { transform: scale(1.1); opacity: 0.7; }
}
.rsvp-success h3 {
    font-family: var(--serif);
    font-style: italic;
    color: var(--amber-deep);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 1rem;
    font-weight: 600;
}
.rsvp-success p {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}
.success-share {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--amber);
    color: #fffdf6;
    text-decoration: none;
    font-family: var(--sans);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s;
}
.success-share:hover, .success-share:focus-visible {
    background: var(--amber-deep);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--amber-shadow);
    outline: none;
}

/* ====== FOOTER ====== */
.footer {
    text-align: center;
    padding: 4rem 1.5rem 3rem;
    border-top: 1px solid var(--line-soft);
    margin-top: 3rem;
    position: relative;
    z-index: 2;
}
.footer-icon {
    color: var(--amber);
    font-size: 1.6rem;
    margin-bottom: 1rem;
    opacity: 0.85;
}
.footer-title {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.3rem, 2.4vw, 1.55rem);
    color: var(--amber-deep);
    margin: 0 0 0.4rem;
    font-weight: 600;
}
.footer-sub {
    font-family: var(--sans);
    font-size: 0.88rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin: 0 0 1rem;
    font-weight: 500;
}
.footer-date {
    font-family: var(--script);
    font-size: 1.5rem;
    color: var(--amber);
    margin: 0;
}
