/* Sweet Seventeen invitation — blush, rose, and gold */

:root {
    --bg-deep: #1a0a12;
    --bg-card: rgba(255, 248, 252, 0.06);
    --border: rgba(255, 182, 193, 0.25);
    --text: #fdf2f8;
    --text-soft: rgba(253, 242, 248, 0.78);
    --muted: rgba(253, 242, 248, 0.55);
    --rose: #f472b6;
    --rose-deep: #be185d;
    --gold: #e9c46c;
    --gold-soft: rgba(233, 196, 108, 0.35);
    --font-display: "Cormorant Garamond", Georgia, serif;
    --font-body: "Outfit", system-ui, sans-serif;
    --radius: 1.25rem;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text);
    background:
        radial-gradient(ellipse 120% 80% at 50% -20%, rgba(190, 24, 93, 0.45), transparent 55%),
        radial-gradient(ellipse 90% 60% at 100% 50%, rgba(244, 114, 182, 0.12), transparent 50%),
        radial-gradient(ellipse 80% 50% at 0% 80%, rgba(233, 196, 108, 0.08), transparent 45%),
        linear-gradient(165deg, #12060c 0%, #1a0a12 40%, #0d0508 100%);
    overflow-x: hidden;
}

.bg-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 50% 15%, rgba(244, 114, 182, 0.15), transparent 42%);
    z-index: 0;
}

.sparkles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.sparkles span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0.35;
    animation: twinkle 4s ease-in-out infinite;
}

.sparkles span:nth-child(1) { top: 12%; left: 18%; animation-delay: 0s; }
.sparkles span:nth-child(2) { top: 28%; right: 22%; animation-delay: 0.8s; width: 3px; height: 3px; }
.sparkles span:nth-child(3) { top: 55%; left: 12%; animation-delay: 1.4s; }
.sparkles span:nth-child(4) { bottom: 30%; right: 15%; animation-delay: 2s; width: 5px; height: 5px; opacity: 0.25; }
.sparkles span:nth-child(5) { bottom: 18%; left: 40%; animation-delay: 2.6s; }

@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(1.2); }
}

.hero {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: clamp(3rem, 12vw, 6rem) 1.5rem 2.5rem;
    animation: fade-up 0.9s ease-out both;
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.eyebrow {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--muted);
}

.title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3.25rem, 12vw, 5.5rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #fce7f3 0%, var(--rose) 45%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 24px rgba(244, 114, 182, 0.35));
}

.title-num {
    font-style: italic;
    font-weight: 500;
}

.subtitle {
    margin: 1rem 0 0;
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--text-soft);
    letter-spacing: 0.06em;
}

.divider {
    width: min(200px, 40vw);
    height: 1px;
    margin: 2rem auto 1.5rem;
    background: linear-gradient(90deg, transparent, var(--gold-soft), var(--rose), var(--gold-soft), transparent);
}

.hero-name {
    margin: 0;
    font-size: clamp(1.75rem, 5vw, 2.35rem);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
}

.name-plate {
    background: linear-gradient(120deg, #fff 0%, var(--rose) 50%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: bold;
}

.hero-tagline {
    margin: 1rem 0 0;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-soft);
}

.content {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.card {
    padding: 1.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    animation: fade-up 0.85s ease-out both;
    animation-delay: 0.12s;
    text-align: center;
}

.countdown-card {
    animation-delay: 0.18s;
}

.card-map {
    animation-delay: 0.24s;
}

.card-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.04em;
}

.card-lead {
    margin: 0 0 0.35rem;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text);
}

.card-meta {
    margin: 0;
    color: var(--text-soft);
    font-weight: 300;
}

.address {
    margin: 1rem 0 0.75rem;
    font-style: normal;
    color: var(--text-soft);
    line-height: 1.7;
}

.map-link {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--rose);
    text-decoration: none;
    border-bottom: 1px solid rgba(244, 114, 182, 0.4);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.map-link:hover,
.map-link:focus-visible {
    color: #fbcfe8;
    border-bottom-color: #fbcfe8;
}

.card-accent {
    border-color: rgba(233, 196, 108, 0.35);
    background: linear-gradient(135deg, rgba(190, 24, 93, 0.12), rgba(233, 196, 108, 0.06));
    animation-delay: 0.3s;
}

.card-plain {
    border-style: dashed;
    border-color: rgba(253, 242, 248, 0.2);
    animation-delay: 0.42s;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), #f4e4a6);
    color: #1a0a12;
    box-shadow: 0 8px 28px rgba(233, 196, 108, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(233, 196, 108, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: rgba(253, 242, 248, 0.35);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    margin-top: 1rem;
}

.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem 1.5rem 3rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.footer p {
    margin: 0.35rem 0;
}

.footer-small {
    font-size: 0.8rem;
    opacity: 0.75;
}

.hidden {
    display: none !important;
}

.tz-note {
    font-size: 0.85em;
    color: var(--muted);
}

.countdown-event-label {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: var(--text-soft);
}

.countdown {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.cd-unit {
    text-align: center;
    padding: 0.85rem 0.5rem;
    border-radius: 0.85rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(244, 114, 182, 0.22);
}

.cd-value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 6vw, 2.25rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--gold);
}

.cd-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.countdown-done {
    margin: 0;
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-soft);
}

.map-note {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.map-wrap {
    position: relative;
    width: 100%;
    border-radius: 0.85rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    max-height: 280px;
    border: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.35);
}

.map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map-link-block {
    display: block;
    margin-top: 1rem;
    text-align: center;
}

.attendance-block {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: linear-gradient(155deg, rgba(26, 10, 18, 0.92), rgba(190, 24, 93, 0.22));
    border: 1px solid rgba(244, 114, 182, 0.38);
    box-shadow: var(--shadow);
    animation: fade-up 0.85s ease-out 0.48s both;
}

.attendance-title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--gold);
    text-align: center;
}

.attendance-lead {
    margin: 0 0 1.5rem;
    font-size: 1.02rem;
    line-height: 1.55;
    color: var(--text-soft);
    text-align: center;
}

.attendance-cta {
    margin-top: 0.25rem;
}

.hidden-iframe {
    position: absolute;
    width: 0;
    height: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.btn-yes,
.btn-no {
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
}

.btn-yes {
    background: linear-gradient(135deg, #34d399, #059669);
    color: #042f2e;
    border: none;
    box-shadow: 0 8px 24px rgba(52, 211, 153, 0.35);
}

.btn-yes:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(52, 211, 153, 0.45);
}

.btn-no {
    background: transparent;
    color: var(--text-soft);
    border: 1px solid rgba(253, 242, 248, 0.35);
}

.btn-no:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-2px);
}

.btn-yes:disabled,
.btn-no:disabled,
.btn-used {
    opacity: 0.65;
    cursor: default;
}

.form-back {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin: 1rem 1.25rem 0;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--rose);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.form-back:hover,
.form-back:focus-visible {
    color: #fbcfe8;
    border-bottom-color: rgba(244, 114, 182, 0.5);
}

.form-shell {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    padding: 0 1.25rem 4rem;
    min-height: 70vh;
}

.form-step-label {
    margin: 0 0 1.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    text-align: center;
}

.form-page-title {
    margin: 0 0 0.75rem;
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 6vw, 2.35rem);
    font-weight: 600;
    color: var(--text);
    text-align: center;
}

.form-section-title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--gold);
    text-align: center;
}

.form-lead {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-soft);
    text-align: center;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text);
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: rgba(253, 242, 248, 0.35);
}

.form-input:focus {
    border-color: rgba(244, 114, 182, 0.55);
    box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.15);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    animation: fade-up 0.45s ease-out both;
}

.wizard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.form-choice-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    align-items: stretch;
}

.form-choice-row .btn-yes,
.form-choice-row .btn-no {
    width: 100%;
    min-width: 0;
    min-height: 3.1rem;
    justify-content: center;
    align-self: stretch;
}

.form-nav-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.5rem;
    align-items: center;
}

.form-nav-row .btn {
    width: 100%;
    justify-content: center;
    min-height: 3rem;
}

.sheet-form {
    margin: 0;
}

.summary-box {
    margin: 0 0 1.25rem;
    padding: 1.25rem 1rem;
    border-radius: 0.85rem;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(233, 196, 108, 0.22);
    text-align: left;
}

.summary-box p {
    margin: 0.35rem 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-soft);
}

.summary-k {
    display: inline-block;
    min-width: 5.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.summary-v {
    color: var(--text);
    font-weight: 500;
}

.form-hint-config {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    text-align: center;
    color: var(--muted);
}

.form-hint-config code {
    font-size: 0.82rem;
    padding: 0.1em 0.35em;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
}

.form-pick.is-selected {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    box-shadow: 0 8px 28px rgba(233, 196, 108, 0.25);
}

.thanks-panel {
    padding: 3rem 1.5rem;
    text-align: center;
    animation: fade-up 0.6s ease-out both;
}

.thanks-title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--gold);
}

.thanks-text {
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    color: var(--text-soft);
    line-height: 1.55;
}

.thanks-redirect {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

@media (max-width: 360px) {
    .form-choice-row,
    .form-nav-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .countdown {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero,
    .card,
    .attendance-block,
    .sparkles span {
        animation: none;
    }
}
