/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --pink: #f9a8d4;
    --pink-deep: #ec4899;
    --pink-soft: #fce7f3;
    --lavender: #c4b5fd;
    --lavender-soft: #ede9fe;
    --mint: #a5f3fc;
    --cream: #fff7ed;
    --cream-dark: #ffedd5;
    --text: #4a044e;
    --text-soft: #701a75;
    --white: #ffffff;
    --shadow: 0 10px 40px rgba(236, 72, 153, 0.15);
    --radius: 24px;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Quicksand', system-ui, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 40%, #ecfeff 100%);
    min-height: 100vh;
    color: var(--text);
    overflow-x: hidden;
    position: relative;
}

/* Floating decorations */
.floating-decorations {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.float-item {
    position: absolute;
    font-size: 1.4rem;
    opacity: 0.55;
    animation: float 8s ease-in-out infinite;
    user-select: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(8deg); }
}

/* Page layout */
.page-container {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.fade-out {
    animation: fadeOut 0.45s ease forwards;
}

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

@keyframes fadeOut {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.95); }
}

/* Typography */
.main-heading {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
}

.cute-text {
    font-size: 0.95rem;
    color: var(--text-soft);
    margin: 1rem 0;
}

.tiny-note {
    font-size: 0.8rem;
    color: #9d174d;
    margin-top: 1.25rem;
    opacity: 0.85;
}

.optional {
    font-size: 0.8em;
    color: #a78bfa;
    font-weight: 400;
}

/* Photo */
.photo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--pink);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.25);
}

.photo-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px dashed var(--lavender);
    animation: spin 20s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.85rem 1.8rem;
    border: none;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1.2;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-yes, .btn-primary {
    background: linear-gradient(135deg, #f472b6, #ec4899);
    color: white;
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.35);
}

.btn-yes:hover, .btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 28px rgba(236, 72, 153, 0.45);
}

.btn-no {
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    color: #4338ca;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}

.btn-no:hover {
    transform: scale(1.05);
}

.btn-secondary {
    background: var(--lavender-soft);
    color: #5b21b6;
    margin-top: 1rem;
}

.btn-secondary:hover {
    background: var(--lavender);
    color: white;
}

.full-width {
    width: 100%;
    margin-top: 0.5rem;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* Form */
.date-form, .proof-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
    color: var(--text);
}

input[type="date"],
input[type="text"],
input[type="file"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #fbcfe8;
    border-radius: 14px;
    font-family: var(--font-sans);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--pink-deep);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.15);
}

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

.checkbox-group {
    margin: 1.25rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.95rem;
    cursor: pointer;
}

.checkbox-label input {
    width: auto;
    margin-top: 0.2rem;
    accent-color: var(--pink-deep);
}

/* Fee card */
.fee-card {
    background: linear-gradient(145deg, #fdf2f8, #fce7f3);
    border-radius: 18px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    border: 1px solid #fbcfe8;
}

.fee-badge {
    display: inline-block;
    background: white;
    color: var(--pink-deep);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    letter-spacing: 0.03em;
}

.fee-amount {
    font-family: var(--font-serif);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--pink-deep);
    margin: 0.6rem 0 0.3rem;
}

.fee-subtitle {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.payment-info {
    font-size: 0.95rem;
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* QR */
.qr-wrapper {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    display: inline-block;
    margin: 1rem 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.qr-image {
    width: 240px;
    height: 240px;
    object-fit: contain;
    display: block;
}

.payment-details {
    font-size: 0.95rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.warning-note {
    color: #b45309;
    background: #fffbeb;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    border: 1px solid #fde68a;
}

/* Status boxes */
.status-box {
    background: var(--pink-soft);
    border-radius: 14px;
    padding: 1.25rem;
    text-align: left;
    margin: 1.25rem 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

.status-box.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.status-pending {
    color: #d97706;
    font-weight: 600;
}

.status-verified {
    color: #059669;
    font-weight: 700;
}

.status-proof_submitted {
    color: #2563eb;
    font-weight: 600;
}

/* Emoji bounce */
.emoji-bounce {
    font-size: 3.5rem;
    margin-bottom: 0.75rem;
    animation: bounce 1.4s ease infinite;
}

.emoji-bounce.big {
    font-size: 4.5rem;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Confetti */
.confetti-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    border-radius: var(--radius);
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    border-radius: 2px;
    animation: confettiFall linear forwards;
}

@keyframes confettiFall {
    to {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0;
    }
}

/* Flash messages */
.flash-messages {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: 90%;
    max-width: 400px;
}

.flash {
    padding: 0.85rem 1.2rem;
    border-radius: 12px;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.flash-error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.flash-warning {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.flash-success {
    background: #d1fae5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* Romantic message */
.romantic-message {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--pink-deep);
    margin: 1.25rem 0;
    font-style: italic;
}

/* Responsive */
@media (max-width: 480px) {
    .card {
        padding: 1.75rem 1.25rem;
    }

    .main-heading {
        font-size: 1.45rem;
    }

    .fee-amount {
        font-size: 2rem;
    }

    .qr-image {
        width: 200px;
        height: 200px;
    }

    .button-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

/* Utility */
code {
    background: #f3e8ff;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    font-size: 0.85em;
}
