* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2B1810 0%, #1a0f0a 100%);
}

:root {
    --gold: #D4AF37;
    --gold-light: #FFD700;
    --gold-dark: #B8941E;
    --brown-dark: #2B1810;
    --brown-medium: #3D2519;
    --white: #FFFFFF;
    --off-white: #F5F5F5;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    background: linear-gradient(135deg, var(--brown-dark) 0%, #1a0f0a 100%);
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Page System */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    overflow: hidden;
    padding: 0;
    touch-action: none;
}

.page.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.page.previous {
    transform: translateX(-100%);
}

/* Page 1: Landing */
#page-1 {
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 50%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.balloons-container {
    position: fixed;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    top: 0;
    left: 0;
    z-index: 5;
    touch-action: none;
}

.balloon {
    position: absolute;
    width: 80px;
    height: 100px;
    background: radial-gradient(circle at 30% 30%, var(--gold-light), var(--gold));
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
    box-shadow: inset -10px -10px 20px rgba(0,0,0,0.3),
                0 0 30px rgba(212, 175, 55, 0.4);
}

.balloon::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    width: 2px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    transform: translateX(-50%);
}

.balloon-1 { left: 5%; top: 10%; animation-delay: 0s; }
.balloon-2 { right: 8%; top: 15%; animation-delay: 1s; width: 60px; height: 75px; }
.balloon-3 { left: 15%; bottom: 20%; animation-delay: 2s; }
.balloon-4 { right: 15%; bottom: 25%; animation-delay: 1.5s; width: 70px; height: 90px; }
.balloon-5 { left: 50%; top: 5%; animation-delay: 0.5s; width: 65px; height: 85px; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.content-wrapper {
    width: 100%;
    max-width: 700px;
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 10;
    position: relative;
    padding: 20px;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

.invitation-card {
    background: rgba(43, 24, 16, 0.95);
    border: 3px solid var(--gold);
    border-radius: 10px;
    padding: 40px 30px;
    position: relative;
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.3),
                inset 0 0 30px rgba(212, 175, 55, 0.1);
    text-align: center;
    backdrop-filter: blur(10px);
    margin: 20px auto;
}

.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gold-light);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: sparkle 2s ease-in-out infinite;
}

.sparkle-1 { top: 30px; left: 30px; animation-delay: 0s; }
.sparkle-2 { top: 30px; right: 30px; animation-delay: 0.7s; }
.sparkle-3 { bottom: 30px; left: 50%; transform: translateX(-50%); animation-delay: 1.4s; }

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.3; transform: scale(0.7) rotate(180deg); }
}

.invitation-text {
    font-size: 16px;
    font-style: italic;
    color: var(--off-white);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.name {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 15px;
    font-weight: normal;
    letter-spacing: 2px;
}

.age-number {
    font-size: 90px;
    font-weight: bold;
    color: var(--gold);
    line-height: 1;
    margin: 15px 0;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
    font-family: 'Arial Black', sans-serif;
}

.birthday-text {
    font-size: 38px;
    font-style: italic;
    color: var(--white);
    margin: -10px 0 5px 0;
    font-weight: 300;
}

.party-text {
    font-size: 46px;
    font-weight: bold;
    color: var(--gold);
    letter-spacing: 6px;
    margin-bottom: 20px;
    font-family: 'Arial Black', sans-serif;
}

.event-details {
    margin: 25px 0;
}

.tagline {
    font-size: 14px;
    font-style: italic;
    color: var(--off-white);
    margin-bottom: 20px;
    line-height: 1.5;
}

.date-time {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    font-size: 20px;
}

.date-label, .time-label {
    color: var(--white);
    padding: 8px 15px;
    border-bottom: 2px solid var(--gold);
}

.date-day {
    font-size: 60px;
    font-weight: bold;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

.location {
    margin: 20px 0;
    color: var(--off-white);
}

.venue {
    font-size: 20px;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 8px;
}

.address, .postal {
    font-size: 14px;
    margin: 4px 0;
}

.dj-info {
    margin-top: 12px;
    font-size: 13px;
    font-style: italic;
    color: var(--gold-light);
}

.cta-button {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--brown-dark);
    border: none;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    min-height: 55px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.6);
}

.cta-button:active {
    transform: translateY(-2px) scale(1.02);
}

/* Page Content Container */
.page-content {
    width: 100%;
    max-width: 1200px;
    padding: 40px 20px;
    padding-bottom: 80px;
    z-index: 10;
}

.section-title {
    font-size: 48px;
    color: var(--gold);
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.section-subtitle {
    font-size: 20px;
    color: var(--off-white);
    text-align: center;
    margin-bottom: 30px;
    font-style: italic;
}

.scroll-hint {
    text-align: center;
    color: var(--gold);
    font-size: 14px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Page 2: Ticket Selection */
#page-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#page-2 .page-content {
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    padding-bottom: 60px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    touch-action: pan-y;
}

/* Page 3: Registration Form */
#page-3 {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

#page-3 .page-content {
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 15px 10px;
    padding-bottom: 80px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    box-sizing: border-box;
    touch-action: pan-y;
}

.tickets-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ticket-card {
    background: rgba(43, 24, 16, 0.9);
    border: 2px solid var(--gold-dark);
    border-radius: 15px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 260px;
}

.ticket-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.ticket-card:hover::before {
    opacity: 1;
}

.ticket-card:hover {
    transform: translateX(5px);
    border-color: var(--gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
}

.ticket-card.featured {
    border: 3px solid var(--gold);
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.4);
    background: rgba(43, 24, 16, 0.95);
}

.ticket-card.virtual-ticket {
    border: 2px solid #dc3545;
    background: rgba(80, 20, 20, 0.9);
}

.ticket-card.virtual-ticket:hover {
    border-color: #ff4757;
    box-shadow: 0 10px 40px rgba(220, 53, 69, 0.4);
}

.ticket-card.virtual-ticket .ticket-badge {
    background: #dc3545;
}

.ticket-card.virtual-ticket h3 {
    color: #ff4757;
}

.ticket-card.virtual-ticket .select-ticket-btn {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
}

.ticket-card.virtual-ticket .select-ticket-btn:hover {
    background: linear-gradient(135deg, #e74c3c 0%, #ff4757 100%);
}

.ticket-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold-dark);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.ticket-badge.premium {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--brown-dark);
}

.ticket-icon {
    font-size: 60px;
    margin: 20px 0;
}

.ticket-card h3 {
    font-size: 28px;
    color: var(--gold);
    margin: 20px 0;
}

.ticket-price {
    font-size: 42px;
    font-weight: bold;
    color: var(--white);
    margin: 20px 0;
}

.ticket-features {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.ticket-features li {
    padding: 10px 0;
    color: var(--off-white);
    font-size: 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.select-ticket-btn {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    min-height: 50px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.select-ticket-btn:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    transform: scale(1.05);
}

.select-ticket-btn:active {
    transform: scale(0.98);
}

/* Page 3: Form */
.form-container {
    background: rgba(43, 24, 16, 0.9);
    border: 2px solid var(--gold);
    border-radius: 15px;
    padding: 30px 40px 40px 40px;
    max-width: 700px;
    margin: 0 auto 30px auto;
    box-sizing: border-box;
}

.selected-ticket-display {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    padding: 15px 30px;
    border-radius: 30px;
    text-align: center;
    margin-bottom: 25px;
    font-size: 18px;
    font-weight: bold;
    color: var(--white);
}

.ticket-label {
    opacity: 0.8;
    margin-right: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: var(--gold);
    font-size: 16px;
    margin-bottom: 10px;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(61, 37, 25, 0.6);
    border: 2px solid var(--gold-dark);
    border-radius: 8px;
    color: var(--white);
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 245, 245, 0.5);
}

/* Verification Section */
.verification-group {
    background: rgba(212, 175, 55, 0.1);
    border: 2px dashed var(--gold-dark);
    border-radius: 12px;
    padding: 20px;
}

.verification-challenge {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.challenge-instruction {
    text-align: center;
    color: var(--gold);
}

.challenge-instruction span {
    display: block;
    font-size: 16px;
    margin-bottom: 10px;
}

.gesture-display {
    font-size: 80px;
    margin: 10px 0;
    animation: gestureFloat 2s ease-in-out infinite;
}

@keyframes gestureFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

#photo-verification {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.file-upload-label {
    background: var(--gold-dark);
    color: var(--white);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    display: block;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.file-upload-label:hover {
    background: var(--gold);
    color: var(--brown-dark);
    transform: translateY(-2px);
}

.file-upload-label:active {
    transform: translateY(0);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.back-button {
    background: transparent;
    border: 2px solid var(--gold-dark);
    color: var(--gold);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.back-button:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

.back-button:active {
    transform: scale(0.98);
}

.submit-button {
    flex: 1;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--brown-dark);
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.submit-button:active {
    transform: translateY(-1px);
}

/* Page 4: Confirmation */
#page-4 {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#page-4 .page-content {
    max-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    padding-bottom: 60px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    touch-action: pan-y;
}

.confirmation-container {
    background: rgba(43, 24, 16, 0.95);
    border: 3px solid var(--gold);
    border-radius: 15px;
    padding: 60px 40px;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.success-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.confirmation-title {
    font-size: 48px;
    color: var(--gold);
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.confirmation-message {
    font-size: 20px;
    color: var(--off-white);
    margin-bottom: 40px;
}

.ticket-display {
    background: var(--white);
    color: var(--brown-dark);
    border-radius: 15px;
    overflow: hidden;
    margin: 30px 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.ticket-header {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    padding: 20px;
    color: var(--white);
}

.ticket-logo {
    font-size: 40px;
    margin-bottom: 10px;
}

.ticket-header h3 {
    font-size: 20px;
    letter-spacing: 2px;
}

.ticket-body {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-placeholder {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-placeholder img,
.qr-placeholder canvas {
    max-width: 100%;
    max-height: 100%;
}

.ticket-info {
    text-align: left;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(43, 24, 16, 0.1);
}

.info-label {
    font-weight: bold;
    color: var(--gold-dark);
}

.info-value {
    color: var(--brown-dark);
}

.ticket-footer {
    background: var(--brown-dark);
    color: var(--gold);
    padding: 15px;
    font-size: 12px;
}

.ticket-number {
    margin-top: 5px;
    font-weight: bold;
}

.confirmation-actions {
    display: flex;
    gap: 20px;
    margin: 30px 0;
}

.download-button,
.share-button {
    flex: 1;
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold) 100%);
    color: var(--white);
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.download-button:hover,
.share-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
}

.download-button:active,
.share-button:active {
    transform: translateY(-1px);
}

.confirmation-note {
    color: var(--off-white);
    font-style: italic;
    margin: 30px 0;
    line-height: 1.6;
}

.back-home-button {
    background: transparent;
    border: 2px solid var(--gold-dark);
    color: var(--gold);
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.back-home-button:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
}

.back-home-button:active {
    transform: scale(0.98);
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    #page-1 {
        padding: 0;
    }
    
    .content-wrapper {
        padding: 10px;
    }

    .invitation-card {
        padding: 20px 15px;
        margin: 5px auto;
    }
    
    .invitation-text {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .age-number {
        font-size: 50px;
        margin: 8px 0;
    }
    
    .birthday-text {
        font-size: 22px;
        margin: -5px 0 3px 0;
    }
    
    .party-text {
        font-size: 26px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }
    
    .name {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .event-details {
        margin: 12px 0;
    }
    
    .tagline {
        font-size: 11px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .date-time {
        flex-direction: column;
        gap: 6px;
        margin: 12px 0;
    }
    
    .date-day {
        font-size: 40px;
    }
    
    .date-label, .time-label {
        font-size: 15px;
        padding: 5px 10px;
    }
    
    .location {
        margin: 12px 0;
    }
    
    .venue {
        font-size: 17px;
        margin-bottom: 5px;
    }
    
    .address, .postal {
        font-size: 11px;
        margin: 2px 0;
    }
    
    .dj-info {
        font-size: 10px;
        margin-top: 8px;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 14px;
        min-height: 48px;
        margin-top: 12px;
    }
    
    .balloon {
        width: 50px;
        height: 65px;
        opacity: 0.7;
        z-index: 5;
    }
    
    .balloon::after {
        height: 40px;
        bottom: -40px;
    }
    
    #page-2 .page-content,
    #page-3 .page-content,
    #page-4 .page-content {
        padding: 15px 10px;
        padding-bottom: 100px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .tickets-grid {
        gap: 12px;
        padding: 0 10px;
        margin-bottom: 15px;
    }
    
    .ticket-card {
        padding: 20px 15px;
        min-height: auto;
    }
    
    .ticket-card.featured {
        border-width: 2px;
    }

    .ticket-card:hover {
        transform: translateX(3px);
    }

    .ticket-badge {
        top: 10px;
        right: 10px;
        padding: 4px 12px;
        font-size: 10px;
    }
    
    .ticket-icon {
        font-size: 45px;
        margin: 15px 0;
    }
    
    .ticket-card h3 {
        font-size: 22px;
        margin: 15px 0;
    }
    
    .ticket-price {
        font-size: 32px;
        margin: 15px 0;
    }
    
    .ticket-features {
        font-size: 14px;
        margin: 12px 0;
    }

    .ticket-features li {
        padding: 6px 0;
        font-size: 14px;
    }

    .select-ticket-btn {
        padding: 12px 25px;
        font-size: 15px;
        min-height: 48px;
    }
    
    .back-button {
        padding: 12px 25px;
        font-size: 15px;
    }
    
    .form-container {
        padding: 12px 10px 15px 10px;
        border-radius: 10px;
        margin: 0 8px 15px 8px;
    }    .selected-ticket-display {
        font-size: 14px;
        padding: 10px 12px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    .form-group label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 12px 10px;
        border-radius: 6px;
        min-height: 46px;
    }
    
    .form-group textarea {
        min-height: 100px;
        resize: vertical;
    }
    
    .verification-group {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .gesture-display {
        font-size: 60px;
        margin: 8px 0;
    }
    
    .challenge-instruction span {
        font-size: 14px;
    }
    
    .file-upload-label {
        padding: 12px;
        font-size: 14px;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 15px;
    }
    
    .back-button,
    .submit-button {
        width: 100%;
        min-height: 50px;
        font-size: 16px;
    }
    
    .confirmation-container {
        padding: 40px 20px;
    }
    
    .confirmation-title {
        font-size: 36px;
    }
    
    .confirmation-message {
        font-size: 18px;
    }
    
    .ticket-body {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }
    
    .qr-code {
        justify-content: center;
    }
    
    .ticket-info {
        text-align: center;
    }
    
    .info-row {
        flex-direction: column;
        text-align: center;
        padding: 10px 0;
    }
    
    .info-label {
        margin-bottom: 5px;
    }
    
    .ticket-header h3 {
        font-size: 16px;
    }
    
    .confirmation-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .download-button,
    .share-button {
        width: 100%;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .invitation-card {
        padding: 18px 12px;
        margin: 5px auto;
    }
    
    .age-number {
        font-size: 45px;
        margin: 6px 0;
    }
    
    .birthday-text {
        font-size: 20px;
    }
    
    .party-text {
        font-size: 24px;
        letter-spacing: 1px;
        margin-bottom: 10px;
    }
    
    .name {
        font-size: 18px;
    }
    
    .event-details {
        margin: 10px 0;
    }
    
    .tagline {
        font-size: 10px;
        margin-bottom: 10px;
    }
    
    .date-time {
        margin: 10px 0;
    }
    
    .date-day {
        font-size: 36px;
    }
    
    .date-label, .time-label {
        font-size: 14px;
        padding: 4px 8px;
    }
    
    .venue {
        font-size: 16px;
    }
    
    .address, .postal {
        font-size: 10px;
    }
    
    .cta-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .date-day {
        font-size: 40px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
    }
    
    .ticket-card {
        padding: 20px 15px;
    }
    
    .ticket-card h3 {
        font-size: 20px;
    }
    
    .ticket-price {
        font-size: 28px;
    }
    
    .form-container {
        padding: 10px 8px 12px 8px;
        margin: 0 5px 10px 5px;
    }
    
    #page-3 .page-content {
        padding: 10px 5px;
        padding-bottom: 100px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 6px;
    }
    
    .section-subtitle {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-group textarea {
        min-height: 80px;
    }
    
    .form-actions {
        margin-top: 12px;
    }
    
    .confirmation-title {
        font-size: 30px;
    }
    
    .confirmation-message {
        font-size: 16px;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
