/* =========================================
   CHECKOUT PAGE STYLES (NLS AESTHETIC)
   ========================================= */
.bg-light { background-color: #F8F9FA; margin: 0; }

.checkout-wrapper {
    padding: 120px 5% 80px;
    min-height: 100vh;
}

.checkout-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: start;
}

/* --- BAGIAN KIRI (FORM) --- */
.checkout-title { font-family: var(--font-serif); font-size: 2.2rem; color: #111; margin-bottom: 5px; }
.checkout-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 30px; }

.form-section-block {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    margin-bottom: 25px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}
.form-section-title { font-size: 1.1rem; border-bottom: 1px solid #EEE; padding-bottom: 15px; margin-bottom: 20px; color: #111; }
.form-help-text { font-size: 0.85rem; color: #888; margin-bottom: 20px; font-style: italic; }

/* Kuis Psikologis Elegan (Radio Button disamarkan menjadi Kartu) */
.nls-quiz-group { margin-bottom: 25px; }
.nls-quiz-group > label { display: block; font-weight: 600; color: #111; margin-bottom: 12px; font-size: 0.95rem; }

.quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.quiz-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}
/* Sembunyikan radio bulat bawaan browser */
.quiz-card input[type="radio"] { display: none; }

/* State saat kartu dipilih */
.quiz-card:has(input:checked) {
    border-color: var(--gold-primary);
    background: rgba(197, 160, 89, 0.05);
    color: var(--gold-primary);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px var(--gold-primary);
}
.quiz-card:hover:not(:has(input:checked)) {
    border-color: #CCC;
    background: #F3F4F6;
}

/* --- BAGIAN KANAN (SUMMARY BOX) --- */
.summary-box {
    background: #111115; /* Gelap pekat ala NLS Premium */
    color: #FFF;
    padding: 35px;
    border-radius: 16px;
    position: sticky;
    top: 100px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.summary-box h3 { font-family: var(--font-serif); font-size: 1.4rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; margin-bottom: 20px; }

/* --- Ringkasan Item di Dalam Box --- */
.summary-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 25px; max-height: 350px; overflow-y: auto; padding-right: 10px;}

.sum-item { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-bottom: 15px; 
    border-bottom: 1px dashed rgba(197, 160, 89, 0.3); /* Garis putus-putus keemasan */
}

/* Flexbox untuk menyatukan gambar dan teks ke kiri */
.sum-item-left { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

/* Desain Cover Gambar di Ringkasan */
.sum-item-cover { 
    width: 45px; 
    height: 65px; 
    object-fit: cover; 
    border-radius: 6px; 
    border: 1px solid rgba(197, 160, 89, 0.4); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.2); 
}

.sum-item-info { display: flex; flex-direction: column; gap: 4px; }
.sum-title { font-size: 0.95rem; font-weight: 600; color: inherit; line-height: 1.2;}
.sum-type { font-size: 0.7rem; color: var(--gold-primary); text-transform: uppercase; letter-spacing: 1px; }
.sum-price { font-weight: 600; font-size: 1rem; color: inherit; }

.summary-totals { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.total-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: #AAA; }
.grand-total { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 15px; margin-top: 5px; font-size: 1.1rem; color: #FFF; font-weight: 600; }

.secure-text { font-size: 0.75rem; color: #777; display: flex; align-items: center; gap: 6px; justify-content: center; margin-bottom: 20px; }

.btn-pay-action {
    width: 100%;
    background: var(--gold-primary);
    color: #111;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-pay-action:hover { background: #dcb36a; box-shadow: 0 5px 15px rgba(197, 160, 89, 0.4); transform: translateY(-2px); }
.btn-pay-action:disabled { background: #555; color: #888; cursor: not-allowed; transform: none; box-shadow: none; }

/* Responsif */
@media (max-width: 992px) {
    .checkout-container { grid-template-columns: 1fr; }
    .summary-box { position: static; }
}
@media (max-width: 600px) {
    .quiz-options { grid-template-columns: 1fr; }
}

/* =========================================
   CHECKOUT PAGE STYLES (NLS AESTHETIC)
   ========================================= */
.bg-light { background-color: #F8F9FA; margin: 0; }

/* Navbar Khusus Checkout */
.chk-navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    background: #FFFFFF; border-bottom: 1px solid #E5E7EB;
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; z-index: 1000; box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}
.chk-navbar .logo a { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--gold-primary); text-decoration: none; letter-spacing: 2px; }
.btn-back { color: #555; text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: 0.3s; }
.btn-back:hover { color: #111; }

.checkout-wrapper { padding: 100px 5% 40px; min-height: 100vh; display: flex; flex-direction: column; }
.checkout-container { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; flex-grow: 1; width: 100%;}

/* Kiri: Form & Identitas */
.checkout-title { font-family: var(--font-serif); font-size: 2.2rem; color: #111; margin-bottom: 5px; }
.checkout-subtitle { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 25px; }

/* Kartu Autentikasi Pengguna */
.nls-identity-card { background: #111115; color: #FFF; border-radius: 12px; padding: 25px; margin-bottom: 30px; border: 1px solid rgba(197, 160, 89, 0.3); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.id-header { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--gold-primary); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.id-body { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.id-row { display: flex; flex-direction: column; gap: 4px; }
.id-label { font-size: 0.75rem; color: #888; text-transform: uppercase; }
.id-row strong { font-size: 1rem; font-family: var(--font-serif); letter-spacing: 0.5px; }
.text-gold { color: var(--gold-primary) !important; }

/* Formulir Blok */
.form-section-block { background: #FFFFFF; padding: 30px; border-radius: 16px; border: 1px solid #E5E7EB; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.01); }
.form-section-title { font-size: 1.1rem; border-bottom: 1px solid #EEE; padding-bottom: 15px; margin-bottom: 20px; color: #111; }
.nls-form { display: flex; flex-direction: column; gap: 15px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-row { display: flex; gap: 15px; }
.w-50 { width: 50%; }
.nls-form label { font-size: 0.85rem; font-weight: 600; color: #111; }
.nls-form input { padding: 12px; border: 1px solid #E5E7EB; border-radius: 8px; font-family: var(--font-sans); transition: 0.3s; }
.nls-form input:focus { outline: none; border-color: #111; }
.disabled-input { background: #F4F4F5; color: #999; cursor: not-allowed; }

/* Kanan: Summary Box */
.summary-box { background: #FFFFFF; border: 1px solid #E5E7EB; padding: 30px; border-radius: 16px; position: sticky; top: 100px; box-shadow: 0 20px 40px rgba(0,0,0,0.04); }
.summary-box h3 { font-family: var(--font-serif); font-size: 1.4rem; border-bottom: 1px solid #EEE; padding-bottom: 15px; margin-bottom: 20px; color: #111;}
.summary-items { display: flex; flex-direction: column; gap: 15px; margin-bottom: 25px; max-height: 250px; overflow-y: auto;}
.sum-item { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px dashed #EEE; }
.sum-item-info { display: flex; flex-direction: column; gap: 5px; }
.sum-title { font-size: 0.95rem; font-weight: 600; color: #111; }
.sum-type { font-size: 0.7rem; color: var(--gold-primary); text-transform: uppercase; letter-spacing: 1px; }
.sum-price { font-weight: 600; font-size: 0.95rem; color: #111;}

.summary-totals { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.total-row { display: flex; justify-content: space-between; font-size: 0.9rem; color: #666; }
.grand-total { border-top: 1px solid #EEE; padding-top: 15px; margin-top: 5px; font-size: 1.1rem; color: #111; font-weight: 700; }

.btn-pay-action { width: 100%; background: #111; color: var(--gold-primary); border: 1px solid #111; padding: 16px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; }
.btn-pay-action:hover { background: var(--gold-primary); color: #FFF; border-color: var(--gold-primary); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(197, 160, 89, 0.3); }

/* FOOTER PEMBAYARAN KHUSUS */
.chk-payment-footer { margin-top: 60px; padding-top: 40px; border-top: 1px solid #E5E7EB; display: flex; flex-direction: column; align-items: center; gap: 30px; text-align: center; }
.payment-trust-badges span { font-size: 0.8rem; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.payment-logos { display: flex; gap: 15px; flex-wrap: wrap; justify-content: center; }
.pay-logo { background: #FFF; border: 1px solid #E5E7EB; padding: 8px 15px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; color: #555; }

.payment-steps { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.step { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #555; font-weight: 500; }
.step-num { background: rgba(197, 160, 89, 0.2); color: var(--gold-primary); width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 0.75rem; font-weight: 700; }

.btn-play-video { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid #CCC; color: #111; padding: 10px 20px; border-radius: 50px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-play-video:hover { border-color: var(--gold-primary); color: var(--gold-primary); }

/* MODAL VIDEO */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 10000; opacity: 0; visibility: hidden; transition: 0.3s; backdrop-filter: blur(5px); }
.video-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); background: #111; padding: 20px; border-radius: 12px; z-index: 10001; width: 90%; max-width: 600px; opacity: 0; visibility: hidden; transition: 0.3s; border: 1px solid var(--gold-primary); }
.video-modal.active, .cart-overlay.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.video-modal h3 { color: #FFF; margin-bottom: 15px; font-family: var(--font-serif); }
.close-cart { position: absolute; top: 15px; right: 20px; background: transparent; border: none; color: #FFF; font-size: 1.5rem; cursor: pointer; }
.video-container { width: 100%; border-radius: 8px; overflow: hidden; }

@media (max-width: 992px) { .checkout-container { grid-template-columns: 1fr; } .summary-box { position: static; } .id-body { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .form-row { flex-direction: column; } .w-50 { width: 100%; } }