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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #FF6B35, #FF8A65);
    height: 100vh;
    padding: 15px;
    line-height: 1.5;
    overflow: hidden;
}

.main-container {
    max-width: 100%;
    margin: 0 auto;
    height: calc(100vh - 30px);
    display: flex;
    flex-direction: column;
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 20px;
    color: white;
}

.event-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.event-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 300px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex: 1;
}

.form-container {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.brand-logo {
    margin-bottom: 15px;
}

.logo-image {
    max-width: 60px;
    max-height: 60px;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto 8px;
    object-fit: contain;
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 6px;
}

.form-description {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

/* Form Styles */
.registration-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    text-align: left;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #FF6B35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.input-group input::placeholder {
    color: #9ca3af;
}

/* Submit Button */
.submit-button {
    background: linear-gradient(135deg, #FF6B35, #FF8A65);
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.submit-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.button-icon {
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.submit-button:hover .button-icon {
    transform: translateX(2px);
}

/* Messages */
.message {
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.message.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #d1fae5;
}

.message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 15px;
    color: white;
    opacity: 0.8;
}

.powered-by {
    font-size: 0.75rem;
}

.powered-by a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.powered-by a:hover {
    text-decoration: underline;
}

/* Success Screen */
.success-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #FF6B35, #FF8A65);
    z-index: 1000;
    padding: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-content {
    max-width: 400px;
    margin: 0 auto;
}

.success-indicator {
    text-align: center;
    margin-bottom: 20px;
}

.success-icon {
    width: 50px;
    height: 50px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 10px;
}

.success-indicator h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.raffle-info {
    background: white;
    border-radius: 16px;
    padding: 25px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.raffle-number-section {
    text-align: center;
    margin-bottom: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
    border: 2px solid #0ea5e9;
}

.raffle-number-section label {
    display: block;
    color: #0c4a6e;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.raffle-number {
    background: linear-gradient(135deg, #FF6B35, #FF8A65);
    color: white;
    font-size: 1.5rem;
    font-weight: 800;
    padding: 12px;
    border-radius: 10px;
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.notification-section {
    text-align: center;
    margin-bottom: 18px;
}

.notification-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.notification-section p {
    color: #6b7280;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.contact-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.contact-text {
    color: #374151;
    font-weight: 500;
    font-size: 0.8rem;
}

.reminder-note {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #f59e0b;
    text-align: center;
    margin-bottom: 20px;
}

.reminder-note p {
    margin: 0;
    color: #92400e;
    font-size: 0.8rem;
    line-height: 1.4;
}

.register-another-btn {
    width: 100%;
    background: #FF6B35;
    color: white;
    border: none;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.register-another-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
}

.register-another-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 480px) {
    body {
        padding: 12px;
    }

    .event-title {
        font-size: 1.7rem;
    }

    .event-subtitle {
        font-size: 0.8rem;
    }

    .form-container {
        padding: 20px 18px;
    }

    .form-title {
        font-size: 1.3rem;
    }

    .logo-image {
        max-width: 50px;
        max-height: 50px;
    }

    .success-screen {
        padding: 12px;
        justify-content: center;
        align-items: center;
    }

    .raffle-info {
        padding: 20px 15px;
    }

    .success-indicator h2 {
        font-size: 1.4rem;
    }

    .success-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .raffle-number {
        font-size: 1.3rem;
        padding: 10px;
    }

    .raffle-number-section {
        padding: 12px;
        margin-bottom: 15px;
    }
}

@media (max-width: 360px) {
    .form-container {
        padding: 18px 15px;
    }

    .input-group input {
        padding: 10px 12px;
    }

    .submit-button {
        padding: 12px 18px;
    }

    .registration-form {
        gap: 12px;
    }

    .success-screen {
        padding: 10px;
        justify-content: center;
        align-items: center;
    }

    .raffle-info {
        padding: 15px 12px;
    }

    .success-indicator h2 {
        font-size: 1.2rem;
    }

    .success-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .raffle-number {
        font-size: 1.1rem;
        padding: 8px;
    }

    .reminder-note {
        padding: 12px;
    }

    .register-another-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* Confetti Animation */
.confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2000;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #FF6B35;
    animation: confetti-fall 3s linear forwards;
}

.confetti-piece:nth-child(odd) {
    background: #FFD700;
    width: 8px;
    height: 8px;
    animation-duration: 3.5s;
}

.confetti-piece:nth-child(3n) {
    background: #FF8A65;
    width: 6px;
    height: 12px;
    animation-duration: 4s;
}

.confetti-piece:nth-child(4n) {
    background: #FFA726;
    width: 12px;
    height: 6px;
    animation-duration: 2.8s;
}

.confetti-piece:nth-child(5n) {
    background: #FFEB3B;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation-duration: 3.2s;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}