/* Styling Khusus Form Pendaftaran ID Card Publik */
.form-page-body {
    background: linear-gradient(180deg, #1f0b2f 0%, #11071a 300px, #f8fafc 300px, #f1f5f9 100%);
    min-height: 100vh;
    padding: 30px 16px 80px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-wrapper {
    max-width: 820px;
    margin: 0 auto;
}

.form-header-card {
    background: #ffffff;
    border-radius: 16px 16px 0 0;
    padding: 32px 32px 24px;
    border: 1px solid #e2e8f0;
    border-bottom: none;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.form-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #9333ea, #ec4899, #f59e0b);
}

.form-main-card {
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
}

.quota-item-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
}

.quota-item-box:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.qty-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-stepper input {
    width: 65px;
    text-align: center;
    font-weight: 800;
    font-size: 16px;
    padding: 8px;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    outline: none;
}

.qty-stepper input:focus {
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15);
}

.btn-step {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-step:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.member-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 40px;
    gap: 10px;
    margin-bottom: 8px;
}

/* =========================================
   Photo & Selfie Camera Styles
   ========================================= */
.photo-uploader-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.25s ease;
}

.photo-uploader-box.has-photo {
    border-color: #10b981;
    background: #f0fdf4;
}

.photo-tabs {
    display: inline-flex;
    background: #e2e8f0;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 20px;
    gap: 4px;
}

.photo-tab-btn {
    padding: 8px 18px;
    border: none;
    background: transparent;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.photo-tab-btn.active {
    background: #ffffff;
    color: #7e22ce;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.camera-viewport {
    position: relative;
    max-width: 340px;
    margin: 0 auto 16px;
    aspect-ratio: 3/4;
    background: #0f172a;
    border-radius: 14px;
    overflow: hidden;
    border: 3px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-viewport video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* Mirror effect for selfie */
}

.camera-viewport canvas {
    display: none;
}

.camera-guide-overlay {
    position: absolute;
    inset: 16px;
    border: 2px dashed rgba(255, 255, 255, 0.5);
    border-radius: 50% 50% 45% 45% / 40% 40% 50% 50%;
    pointer-events: none;
}

.camera-guide-text {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    pointer-events: none;
}

.photo-preview-image {
    max-width: 220px;
    max-height: 260px;
    border-radius: 12px;
    border: 3px solid #10b981;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.2);
    object-fit: cover;
    margin: 0 auto 14px;
    display: block;
}

.camera-placeholder {
    padding: 30px 16px;
    color: #64748b;
}

.camera-placeholder i {
    font-size: 48px;
    color: #94a3b8;
    margin-bottom: 8px;
    display: block;
}

.file-dropzone {
    padding: 30px 20px;
    cursor: pointer;
}

.file-dropzone:hover {
    border-color: #9333ea;
}

.camera-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

