#tcg-form-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.tcg-field {
    margin-bottom: 15px;
}

.tcg-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333333;
}

.tcg-field input[type="text"],
.tcg-field input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px; /* Prevents auto-zoom on mobile safari */
}

.tcg-camera-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: #f7fafc;
    padding: 12px;
    border-radius: 6px;
    border: 1px dashed #cbd5e0;
}

/* Fix camera ratio stretching/squeezing */
.tcg-camera-wrapper video {
    width: 100%;
    max-width: 320px;
    height: 240px;
    object-fit: cover;
    border-radius: 6px;
    background: #000000;
}

.tcg-camera-controls {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.tcg-crop-box {
    width: 200px;
    height: 200px;
    margin: 10px auto;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #0073aa;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#tcg-submit-btn, 
#tcg-capture-btn,
#tcg-switch-btn {
    background-color: #0073aa;
    color: #ffffff;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
}

#tcg-switch-btn {
    background-color: #4a5568;
}

#tcg-submit-btn:hover, 
#tcg-capture-btn:hover {
    background-color: #005177;
}

#tcg-response {
    text-align: center;
    padding: 20px 0;
}

#tcg-download-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #46b450;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}