#submit-form-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.submit-form-content {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 400px;
    margin: 0 auto;
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
}

.submit-form-content h1 {
    font-family: "VWHead", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #001E50;
    text-align: center;
}

.score-text {
    font-size: 1.25rem;
    line-height: 1.4;
    text-align: center;
}

.prize-box {
    border-bottom: 2px solid #001E50;
    padding: 1rem 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
}

.prize-box h2 {
    font-family: "VWHead", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    color: #001E50;
    margin-bottom: 1rem;
}

.form-field {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-field label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
}

.form-field input[type="text"],
.form-field input[type="email"] {
    width: 100%;
    padding: 1rem 0;
    border: 2px solid #001E50;
    border-radius: 4px;
    font-size: 1.25rem;
    padding-left: 1rem;
    box-sizing: border-box;
}

.form-field.checkbox {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.5rem;
}

.form-field.checkbox input[type="checkbox"] {
    margin-top: 0;
}

.form-field.checkbox label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.form-field.checkbox a {
    color: #001E50;
    text-decoration: underline;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: #001E50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
    flex: 1;
}

.submit-button:hover {
    background: #00285f;
}

#submit-form-container.hidden {
    display: none;
}

#submit-form-container.visible {
    opacity: 1;
    z-index: 10000 !important;
}

#submit-form-container input:focus {
    z-index: 10001 !important;
    position: relative;
}

.back-button {
    background: none;
    margin-top: 2rem;
    border: 2px solid #001E50;
    border-radius: 4px;
    font-size: 1rem;
    color: #001E50;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    transition: transform 0.2s;
    min-width: 100px;
}

.back-button:hover {
    transform: scale(1.1);
}

/* Add these styles for the toast */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast {
    background: #001E50;
    color: white;
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    width: 100%;
    max-width: 90vw;
}

.toast.visible {
    opacity: 1;
}

.toast.hidden {
    display: none;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.toast-message {
    font-size: 1rem;
    font-weight: 500;
}

#submit-form-container.visible ~ #section-main #game-canvas {
    pointer-events: none !important;
    touch-action: none !important;
}

@media (max-width: 480px) {
    .submit-form-content {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .submit-form-content h1 {
        font-size: 2rem;
    }
    
    .score-text {
        font-size: 1.1rem;
    }
    
    .form-field input[type="text"],
    .form-field input[type="email"] {
        font-size: 1rem;
        padding: 0.8rem 0;
        padding-left: 0.8rem;
    }
}