/* Fastbet Registration CSS */

.fastbet-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.fastbet-header {
    text-align: center;
    margin-bottom: 40px;
}

.fastbet-header h2 {
    color: #1e5631;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.fastbet-header p {
    color: #555;
    font-size: 1.1rem;
}

.fastbet-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 40px;
    margin-bottom: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: #2e7d32;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label .required {
    color: #e53935;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group select,
.form-group input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fcfcfc;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="date"]:focus,
.form-group select:focus {
    border-color: #2e7d32;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
    outline: none;
}

.form-hint {
    font-size: 0.85rem;
    color: #777;
    margin-top: 6px;
    display: block;
}

/* Status messages */
#ocrStatus {
    background: #e8f4fd;
    color: #0c5460;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #17a2b8;
    margin-top: 15px;
    font-weight: 500;
}

/* Camera Section */
.camera-container {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 2px dashed #ddd;
}

.camera-preview {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background: #000;
    position: relative;
}

.id-guide-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 60%;
    border: 3px dashed rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 10;
}

.btn-camera {
    background: #fcfcfc;
    color: #333;
    border: 1px solid #ccc;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-camera:hover {
    background: #f0f0f0;
    border-color: #bbb;
}

.btn-snap {
    background: #1976d2;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 15px;
    width: 100%;
    max-width: 400px;
}

.btn-snap:hover {
    background: #1565c0;
}

.btn-retake {
    background: #e53935;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 15px;
    width: 100%;
    max-width: 400px;
}

.btn-retake:hover {
    background: #c62828;
}

/* Terms of Service Checkbox */
.tos-container {
    background: #f5f8f5;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e0ebe0;
    display: flex;
    align-items:flex-start;
    gap: 15px;
}

.tos-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.tos-container label {
    font-weight: normal;
    color: #444;
    line-height: 1.5;
    font-size: 0.95rem;
    cursor: pointer;
    margin: 0;
}

/* Submit Button */
.form-actions {
    text-align: right;
    margin-top: 30px;
}

.btn-submit {
    background: linear-gradient(to right, #2e7d32, #1e5631);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-submit:disabled {
    background: #cccccc;
    color: #888888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Response message */
.form-response {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
}

.form-response.success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
}

.form-response.error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
}

/* ID Capture Tabs */
.id-capture-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: #2e7d32;
    color: white;
    border-color: #2e7d32;
    box-shadow: 0 4px 10px rgba(46, 125, 50, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .fastbet-card {
        padding: 25px;
    }
    
    .fastbet-header h2 {
        font-size: 2rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        text-align: center;
    }
    
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
}
/* Fullscreen Camera Modal */
.camera-fullscreen-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.camera-fullscreen-modal .camera-preview {
    max-width: none;
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-fullscreen-modal video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Adjust ID Guide overlay for fullscreen to be much larger so ID fills the frame */
.camera-fullscreen-modal .id-guide-overlay {
    /* Standard ID Card Aspect Ratio is approx 1.58:1 */
    width: 95vw;
    /* Limit the width based on viewport height so it never overflows vertically */
    max-width: min(1000px, calc(70vh * 1.58));
    aspect-ratio: 1.58 / 1;
    height: auto;
    max-height: 70vh;
    border: 3px solid #28a745;
    background: transparent;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.6);
}

.camera-fullscreen-modal .btn-snap,
.camera-fullscreen-modal .btn-retake {
    position: absolute;
    bottom: max(60px, env(safe-area-inset-bottom) + 30px); /* Increased from 40px and added safe-area for mobile */
    z-index: 100000;
    width: auto;
    padding: 15px 30px;
    font-size: 18px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.camera-fullscreen-modal .modal-close-btn {
    bottom: auto;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 20px;
    cursor: pointer;
}

.camera-fullscreen-modal .modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

