/* ================= VOUCHER PAGE (TAMPILAN CITIZEN ACCOUNT) ================= */
.voucher-page {
    background-color: #ffffff !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 40px 20px !important;
    box-sizing: border-box !important;
    font-family: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    min-height: 80vh !important;
    direction: rtl !important;
}

.voucher-card {
    background: #ffffff !important;
    width: 100% !important;
    max-width: 380px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
    text-align: center !important;
    margin: 0 auto !important;
    float: none !important;
}

/* Sembunyikan progress bar & judul lama (jika masih ada) */
.step-progress, #step-title {
    display: none !important;
}

/* ================= VISUAL BARU (CITIZEN ACCOUNT) ================= */
.citizen-header {
    margin-bottom: 30px;
}

.citizen-logo {
    height: 60px;
    margin-bottom: 20px;
}

.citizen-title {
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    line-height: 1.4;
}

.citizen-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

/* ================= FORM ELEMENTS ================= */
#registerForm, .step {
    display: block !important;
    width: 100% !important;
}

/* Label Input */
.citizen-label {
    display: block;
    text-align: right;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.required {
    color: red;
}

/* Container untuk input nomor */
.citizen-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* Kotak kode negara */
.citizen-country {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 0 15px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* Input nomor telepon */
.citizen-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    text-align: right;
    box-sizing: border-box;
}

.citizen-input:focus {
    border-color: #0b5e36;
}

/* ================= BUTTONS ================= */
.btn-submit {
    width: 100% !important;
    padding: 12px !important;
    background-color: #f0f0f0 !important;
    color: #888 !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    display: block !important;
    margin-bottom: 10px !important;
}

.btn-submit:hover {
    background-color: #0b5e36 !important;
    color: white !important;
}

.btn-create-account {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    color: #0b5e36;
    border: 1px solid #0b5e36;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
    transition: 0.3s;
}

.btn-create-account:hover {
    background-color: #f0fdf4;
}

/* ================= FOOTER ================= */
.citizen-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.citizen-footer a {
    text-decoration: none;
    color: #555;
    font-size: 13px;
    font-weight: 600;
}

.citizen-footer a.home-link {
    color: #0b5e36;
    text-decoration: underline;
}

/* ================= UTIL ================= */
.hidden {
    display: none !important;
}

.citizen-help {
    display: block;
    text-align: center;
    color: #888;
    font-size: 12px;
    margin-top: 10px;
}

/* ================= ANIMASI SPINNER DI TOMBOL SUBMIT ================= */
.btn-submit.loading {
    color: transparent !important; 
    pointer-events: none !important; 
    position: relative !important;
}

.btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spinnerBtn 0.8s linear infinite;
}

@keyframes spinnerBtn {
    to { transform: rotate(360deg); }
}

/* ================= LAYAR LOADING 10 MENIT ================= */
#loadingScreen {
    text-align: center !important;
    padding: 40px 20px !important;
    display: none;
}

#loadingScreen .spinner {
    border: 4px solid #f3f3f3 !important;
    border-top: 4px solid #0b5e36 !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    animation: spin 1s linear infinite !important;
    margin: 0 auto 20px auto !important;
}

#loadingScreen h3 {
    font-size: 20px !important;
    color: #0b5e36 !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
}

#loadingScreen p {
    font-size: 14px !important;
    color: #555 !important;
    line-height: 1.5 !important;
}

/* ================= LAYAR SUKSES ================= */
#successScreen {
    text-align: center !important;
    padding: 40px 20px !important;
    display: none;
}

#successScreen .success-icon {
    width: 70px !important;
    height: 70px !important;
    background: #e8f5e9 !important;
    color: #0b5e36 !important;
    border-radius: 50% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    font-size: 40px !important;
    margin: 0 auto 20px auto !important;
}

#successScreen h3 {
    font-size: 22px !important;
    color: #0b5e36 !important;
    margin-bottom: 10px !important;
    font-weight: 700 !important;
}

#successScreen p {
    font-size: 14px !important;
    color: #555 !important;
}

/* ================= ANIMASI KEYFRAMES ================= */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ================= HIDE OLD ELEMENTS ================= */
#overlay, .step-progress, #step-title {
    display: none !important;
}


/* ================= SEMBUNYIKAN HEADER & FOOTER DI HALAMAN FORM ================= */
body:has(.voucher-page) .saudi-header,
body:has(.voucher-page) .saudi-footer,
body:has(.voucher-page) .footer-survey {
    display: none !important;
}