.hby_fv_body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f0f4f8;
    display: grid;
    place-items: center; 
    min-height: 100vh;
    margin: 0;
    padding: 15px;
    box-sizing: border-box;
}

.hby_fv_body .verification-container {
    position: relative;
    width: 100%;
    max-width: 640px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Consolidated Status Card Layout */
.hby_fv_body .status-box {
    width: 100%;
    background: #edf2f7;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.hby_fv_body #status-message {
    font-size: 15px;
    font-weight: 600;
    color: #4a5568;
    margin: 0 0 10px 0;
    word-wrap: break-word;
    text-align: center;
}

/* Modern Progress Tracker Track */
.hby_fv_body .progress-container {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

/* Dynamic Progress Bar Fill */
.hby_fv_body .progress-bar-fill {
    height: 100%;
    width: 0%;
    background: #3182ce;
    border-radius: 4px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fluid responsive wrapper cut into a distinct face-fitting oval */
.hby_fv_body .video-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px; /* Constrains width slightly to emphasize oval format */
    aspect-ratio: 3 / 4; /* Switch ratio to vertical layout optimized for human faces */
    background: #f0f4f8; /* #1a202c; */
    border-radius: 50%; /* Uniform fallback layout curve mapping */
    clip-path: ellipse(40% 45% at 50% 50%); /* Clean clipping path to lock oval look */
    overflow: hidden;
    margin: 15px auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.hby_fv_body .mirrored-vision {
    transform: scaleX(-1);
}

/* Scoped video components fixing target overlay selector tracking */
.hby_fv_body #webcam, 
.hby_fv_body #overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* Forces frame data to scale edge-to-edge inside the oval */
}

.hby_fv_body #overlay {
    z-index: 5;
    pointer-events: none; 
}

/* Neon placement guide matching the clipped canvas coordinates */
.hby_fv_body .face-oval-guide {
    position: absolute;
    top: 5%;
    left: 10%;
    width: 80%;
    height: 90%;
    border: 3px dashed rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 6;
    box-sizing: border-box;
    transform: scaleX(-1); /* Negates outer mirror transform to keep text/shapes uniform if added */
}

/* Restored form rules */
.hby_fv_body .form-group {
    margin: 20px auto;
    text-align: left;
    max-width: 100%;
}

.hby_fv_body .form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    color: #2d3748;
    font-size: 14px;
}

.hby_fv_body .form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    outline: none;
}

.hby_fv_body .form-group input:focus {
    border-color: #3182ce;
}

.hby_fv_body .action-buttons {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.hby_fv_body .btn {
    flex: 1;
    padding: 14px 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hby_fv_body .btn:disabled {
    background: #e2e8f0 !important;
    color: #a0aec0 !important;
    cursor: not-allowed;
}

.hby_fv_body .btn.primary { background: #3182ce; color: white; }
.hby_fv_body .btn.primary:hover { background: #2b6cb0; }
.hby_fv_body .btn.success { background: #38a169; color: white; }
.hby_fv_body .btn.success:hover { background: #2f855a; }

@media (max-width: 480px) {
    .hby_fv_body .action-buttons {
        flex-direction: column; 
    }
}
