:root {
    --gold: #c9a84c;
    --gold-light: #e8d9a0;
    --dark: #2c2c2c;
    --cream: #faf8f3;
    --white: #ffffff;
    --gray: #6b6b6b;
    --gray-light: #e8e8e8;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--dark);
    min-height: 100vh;
}

/* ── Hero ── */
.hero {
    background: linear-gradient(135deg, #fef9f0 0%, #fff5e6 30%, #f0f4ff 60%, #fef0f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 480px;
    padding: 3.5rem 4rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    gap: 3rem;
}

/* Floating baby widgets */
.hero-widgets span {
    position: absolute;
    z-index: 1;
    opacity: 0.18;
    font-size: 2rem;
    pointer-events: none;
    filter: grayscale(0.2);
}
.hero-widgets .w1  { top: 8%; left: 5%; font-size: 2.4rem; opacity: 0.15; animation: widgetFloat1 6s ease-in-out infinite; }
.hero-widgets .w2  { top: 12%; left: 22%; font-size: 1.6rem; opacity: 0.12; animation: widgetFloat2 7s ease-in-out infinite 0.5s; }
.hero-widgets .w3  { top: 5%; right: 8%; font-size: 2rem; opacity: 0.14; animation: widgetFloat3 5.5s ease-in-out infinite 1s; }
.hero-widgets .w4  { bottom: 12%; left: 8%; font-size: 1.8rem; opacity: 0.13; animation: widgetFloat1 8s ease-in-out infinite 1.5s; }
.hero-widgets .w5  { bottom: 8%; left: 28%; font-size: 2.2rem; opacity: 0.1; animation: widgetFloat2 6.5s ease-in-out infinite 2s; }
.hero-widgets .w6  { bottom: 15%; right: 6%; font-size: 1.6rem; opacity: 0.14; animation: widgetFloat3 7.5s ease-in-out infinite 0.8s; }
.hero-widgets .w7  { top: 40%; left: 2%; font-size: 1.4rem; opacity: 0.1; animation: widgetFloat1 9s ease-in-out infinite 3s; }
.hero-widgets .w8  { top: 35%; right: 3%; font-size: 1.8rem; opacity: 0.12; animation: widgetFloat2 5s ease-in-out infinite 1.2s; }
.hero-widgets .w9  { top: 65%; left: 15%; font-size: 1.5rem; opacity: 0.09; animation: widgetFloat3 8.5s ease-in-out infinite 2.5s; }
.hero-widgets .w10 { top: 20%; left: 42%; font-size: 1.3rem; opacity: 0.08; animation: widgetFloat1 7s ease-in-out infinite 0.3s; }

@keyframes widgetFloat1 {
    0%, 100% { transform: translateY(0) rotate(-15deg); }
    50%      { transform: translateY(-18px) rotate(5deg); }
}
@keyframes widgetFloat2 {
    0%, 100% { transform: translateY(0) rotate(10deg); }
    50%      { transform: translateY(-14px) rotate(-8deg); }
}
@keyframes widgetFloat3 {
    0%, 100% { transform: translateY(0) rotate(20deg); }
    50%      { transform: translateY(-20px) rotate(-12deg); }
}

/* Soft pastel circles background */
.hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -60px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(173,216,230,0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -40px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,182,193,0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-text {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.hero-name {
    font-family: 'Great Vibes', cursive;
    font-size: 4.2rem;
    color: var(--gold);
    line-height: 1.15;
    margin-bottom: 0.5rem;
}

.hero-event {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.2rem;
}

.hero-date {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gold);
    letter-spacing: 2px;
}

.hero-divider {
    width: 50px;
    height: 3px;
    background: var(--gold);
    margin: 1rem 0;
    border-radius: 2px;
}

.hero-tagline {
    font-size: 0.8rem;
    color: var(--gray);
    font-style: italic;
    line-height: 1.5;
}

/* Hero photo side */
.hero-photo {
    flex: 0 0 300px;
    height: 380px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo-blob {
    position: absolute;
    width: 280px;
    height: 340px;
    background: linear-gradient(160deg, var(--gold) 0%, var(--gold-light) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
}

.hero-photo img {
    position: relative;
    z-index: 1;
    width: 260px;
    height: 320px;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 50% 50% 50% 50% / 55% 55% 45% 45%;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* Decorative star accents */
.hero-accent {
    position: absolute;
    z-index: 3;
    color: var(--gold);
    font-size: 1.6rem;
    line-height: 1;
}

.hero-accent-1 {
    top: 15%;
    right: 35%;
}

.hero-accent-2 {
    bottom: 20%;
    right: 15%;
}

/* ── Shared ── */
.divider {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 1.5rem auto;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-desc {
    text-align: center;
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ── Guest form ── */
.guest-form { margin-bottom: 2rem; }
.input-group { margin-bottom: 1rem; }

.input-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 0.4rem;
}

.input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--gray-light);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    background: var(--white);
    transition: border-color 0.3s;
    outline: none;
}

.input-group input:focus { border-color: var(--gold); }

/* ── Menu cards ── */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.menu-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
}

.menu-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.menu-card.selected {
    border-color: var(--gold);
    background: linear-gradient(135deg, #fffdf5, #fff);
}

.card-top {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    cursor: pointer;
}

.card-check {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    border: 2px solid var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.menu-card.selected .card-check {
    background: var(--gold);
    border-color: var(--gold);
}

.menu-card.selected .card-check svg { opacity: 1; }

.card-check svg {
    width: 14px;
    height: 14px;
    fill: var(--white);
    opacity: 0;
    transition: opacity 0.3s;
}

.card-content { flex: 1; }

.card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--dark);
}

.card-desc {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ── Quantity ── */
.qty-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--gray-light);
}

.qty-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-right: auto;
}

.qty-btn {
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--gray-light);
    background: var(--white);
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    user-select: none;
}

.qty-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.qty-value {
    width: 40px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
}

/* ── Submit ── */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gold);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(201,168,76,0.3);
}

.submit-btn:hover {
    background: #b8963e;
    box-shadow: 0 6px 20px rgba(201,168,76,0.4);
    transform: translateY(-1px);
}

.submit-btn:disabled {
    background: var(--gray-light);
    color: var(--gray);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ── Success ── */
.success-view {
    display: none;
    text-align: center;
    padding: 3rem 1rem;
}

.success-view.show { display: block; }

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.success-icon svg { width: 40px; height: 40px; fill: var(--white); }

.success-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.success-text {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.success-summary {
    background: var(--white);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.success-summary h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray);
    margin-bottom: 0.8rem;
}

.success-summary .order-item {
    font-size: 0.9rem;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--gray-light);
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.success-summary .order-item:last-child { border-bottom: none; }

.btn-secondary {
    display: inline-block;
    padding: 0.7rem 2rem;
    border: 2px solid var(--gold);
    color: var(--gold);
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    transition: all 0.3s ease;
}

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

/* ── Event Info ── */
.event-info {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 0;
}

.info-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    text-align: center;
}

.info-card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.8rem;
}

.info-card-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

.info-card-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 0.4rem;
}

.info-card-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.3rem;
}

.info-card-detail {
    font-size: 0.75rem;
    color: var(--gray);
    line-height: 1.5;
}

.info-card-link {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.info-card-link:hover { text-decoration: underline; }

@media (max-width: 400px) {
    .info-cards { grid-template-columns: 1fr; }
}

/* ── Toast ── */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--dark);
    color: var(--white);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 100;
    transition: transform 0.3s ease;
    white-space: nowrap;
    max-width: 90vw;
    overflow: hidden;
    text-overflow: ellipsis;
}

.toast.show { transform: translateX(-50%) translateY(0); }

/* ── Responsive ── */
@media (max-width: 700px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem;
        min-height: auto;
        gap: 1.5rem;
    }
    .hero-text { order: 2; }
    .hero-photo {
        order: 1;
        flex: 0 0 auto;
        height: 280px;
    }
    .hero-photo-blob { width: 220px; height: 270px; }
    .hero-photo img { width: 200px; height: 250px; }
    .hero-name { font-size: 3rem; }
    .hero-divider { margin: 0.8rem auto; }
    .hero-accent { display: none; }
    .hero-widgets span { font-size: 1.4rem !important; }
    .container { padding: 1.5rem 1rem 2.5rem; }
}
