/* ==========================================================================
   📱 ULTRA-PREMIUM MOBILE INTERFACE: ROYAL NAVY & CHAMPAGNE GOLD
   ========================================================================== */
@import url('https://googleapis.com');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: #F8FAFC;
    color: #0F172A;
    min-height: 100vh;
    padding-top: 110px;
    padding-bottom: 100px;
}

/* 🏛️ STICKY PREMIUM HEADER */
.app-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    padding: 14px 20px;
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.015);
}

.sponsor-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.gov-badge {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    color: #F59E0B; /* Emas */
    font-size: 0.65rem;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.sponsor-list {
    font-size: 0.7rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: 0.5px;
}

.accessibility-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.btn-text-zoom {
    background: #F1F5F9;
    border: 1px solid #E2E8F0;
    color: #334155;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-text-zoom:active {
    background: #E2E8F0;
}

/* 📱 CORE CONTAINER */
.mobile-body {
    width: 100%;
    padding: 0 16px;
}

.app-card {
    background: #FFFFFF;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(241, 245, 249, 0.8);
}

.host-banner {
    background: linear-gradient(135deg, #FAF7F2 0%, #F4EBE1 100%);
    border: 1px solid rgba(212, 163, 89, 0.2);
    padding: 8px 16px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 16px;
}

.success-banner {
    background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
    border-color: #DCFCE7;
}

.host-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: #D4A359; /* Emas Champagne */
    letter-spacing: 0.3px;
}

.success-banner .host-badge {
    color: #16A34A;
}

.app-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0F172A;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    line-height: 1.25;
}

.app-subtitle {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.45;
    margin-bottom: 24px;
}

/* 📊 PROGRESS BAR ELEMENT */
.mobile-progress-box {
    margin-bottom: 24px;
}

.progress-text-row {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    display: block;
}

.progress-track {
    background-color: #F1F5F9;
    border-radius: 100px;
    height: 6px;
}

.progress-fill {
    background: linear-gradient(90deg, #D4A359 0%, #0F172A 100%);
    height: 100%;
    border-radius: 100px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 🔊 QUESTION INTERFACE */
.question-box {
    background-color: #F8FAFC;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #E2E8F0;
}

.btn-mobile-audio {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 8px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 10px;
    color: #334155;
    margin-bottom: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01);
}

.mobile-question {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.5;
    color: #0F172A;
}

/* 🃏 EXCLUSIVE ANSWER SELECTION */
.mobile-answer-option {
    display: block;
    margin-bottom: 14px;
    cursor: pointer;
}

.mobile-answer-option input[type="radio"] {
    display: none;
}

.option-designer {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    background-color: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 18px;
    transition: all 0.2s ease;
}

.indicator-dot {
    width: 20px;
    height: 20px;
    border: 2px solid #CBD5E1;
    border-radius: 50%;
    margin-right: 14px;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.option-text {
    font-size: 0.98rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
}

/* Active Selection State */
.mobile-answer-option input[type="radio"]:checked + .option-designer {
    border-color: #D4A359;
    background-color: #FAF8F5;
    box-shadow: 0 4px 12px rgba(212, 163, 89, 0.05);
}

.mobile-answer-option input[type="radio"]:checked + .option-designer .indicator-dot {
    border-color: #D4A359;
    background-color: #D4A359;
}

.mobile-answer-option input[type="radio"]:checked + .option-designer .indicator-dot::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: #FFFFFF;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.mobile-answer-option input[type="radio"]:checked + .option-designer .option-text {
    color: #0F172A;
}

/* 📝 REGISTER FORM & CAMERA VIEW */
.form-group-card {
    border: none;
    background: #F8FAFC;
    padding: 20px;
    border-radius: 24px;
    margin-bottom: 24px;
    border: 1px solid #E2E8F0;
}

.group-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0F172A;
    margin-bottom: 18px;
}

.mobile-input-item {
    margin-bottom: 18px;
}

.mobile-input-item label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.mobile-form-control {
    width: 100%;
    background-color: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    padding: 14px 16px;
    font-size: 0.98rem;
    border-radius: 14px;
    color: #0F172A;
    outline: none;
    font-weight: 500;
    transition: border-color 0.2s ease;
}

.mobile-form-control:focus {
    border-color: #D4A359;
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.upload-custom-design {
    background-color: #FFFFFF;
    border: 2px dashed #CBD5E1;
    padding: 18px;
    border-radius: 14px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748B;
}

.mobile-camera-view {
    background-color: #0F172A;
    border-radius: 20px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

#webcam {
    border-radius: 14px;
    transform: scaleX(-1);
}

.btn-mobile-capture {
    background-color: #FFFFFF;
    color: #0F172A;
    border: none;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 12px 18px;
    border-radius: 12px;
    width: 100%;
}

.selfie-preview-img {
    width: 130px;
    height: auto;
    border-radius: 12px;
    margin-top: 8px;
    border: 2px solid #D4A359;
}

.mobile-status-banner {
    background-color: #E2E8F0;
    font-size: 0.88rem;
    font-weight: 700;
    text-align: center;
    padding: 14px;
    border-radius: 14px;
    margin-top: 16px;
    color: #334155;
}

/* 🚀 STICKY BOTTOM PRIMARY BUTTON */
.bottom-action-space {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 16px;
    border-top: 1px solid #E2E8F0;
    z-index: 1000;
}

.btn-mobile-primary {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    color: #F59E0B; /* Gold text */
    border: 1px solid rgba(245, 158, 11, 0.4);
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
    cursor: pointer;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-mobile-primary:disabled {
    background: #E2E8F0 !important;
    color: #94A3B8 !important;
    border: none !important;
    box-shadow: none !important;
}

.animate-fade {
    animation: fadeIn 0.35s ease-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
