/* ==========================================================================
   HOMEPAGE PRIBADI PAK HENDRO (45 THN) - GEOCITIES RETRO (EARLY 2000s)
   Dibuat khusus untuk SendiFlex Prima - Mobilitas & Gaya Hidup Aktif
   Fully Responsive (Mobile 360px, Tablet 768px, Laptop 1280px, Desktop 1920px)
   ========================================================================== */

/* Reset & Box-Sizing */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 8px;
    background-color: #ECE9D8; /* Windows XP / GeoCities Neutral Sand */
    background-image: 
        radial-gradient(#d3cbb8 12%, transparent 13%),
        radial-gradient(#dfd6c0 12%, transparent 13%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    color: #1A1A1A;
    font-family: "Times New Roman", Times, Georgia, serif;
    font-size: 15px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* Tabel Utama Wrapper - Terpusat dan Proporsional di Layar Lebar */
.retro-container {
    width: 100%;
    max-width: 880px;
    margin: 12px auto;
    background-color: #FFFFF8;
    border: 4px ridge #B8860B;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.35);
    border-collapse: separate;
}

/* Header Banner */
.retro-header {
    background: linear-gradient(180deg, #1B5E20 0%, #2E7D32 50%, #1B5E20 100%);
    color: #FFEB3B;
    padding: 16px 12px;
    text-align: center;
    border-bottom: 3px solid #855800;
}

.retro-title {
    font-family: Arial, "Comic Sans MS", sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #FFF9C4;
    text-shadow: 2px 2px 0px #003300, -1px -1px 0px #000;
    margin: 0 0 6px 0;
    letter-spacing: 0.5px;
    line-height: 1.25;
}

.retro-subtitle {
    font-family: Verdana, sans-serif;
    font-size: 13px;
    color: #E8F5E9;
    font-style: italic;
    margin: 0;
    line-height: 1.4;
}

/* Marquee Bar */
.retro-marquee {
    background-color: #FFE082;
    border-top: 1px solid #FFA000;
    border-bottom: 2px solid #D97706;
    color: #78350F;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    font-size: 13px;
    padding: 5px 8px;
}

/* Navigasi Khusus Tema Kuis & Mobilitas */
.retro-nav-table {
    background-color: #FFF8E1;
    border-bottom: 2px solid #B8860B;
    padding: 6px 4px;
}

.nav-link {
    display: inline-block;
    padding: 8px 12px;
    margin: 3px;
    background-color: #F5F5DC;
    border-top: 2px solid #FFFFFF;
    border-left: 2px solid #FFFFFF;
    border-right: 2px solid #808080;
    border-bottom: 2px solid #808080;
    color: #0000CD;
    font-family: Arial, sans-serif;
    font-size: 12.5px;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}

.nav-link:hover {
    background-color: #FFFF99;
    color: #D22B2B;
}

.nav-link:active {
    border-top: 2px solid #808080;
    border-left: 2px solid #808080;
    border-right: 2px solid #FFFFFF;
    border-bottom: 2px solid #FFFFFF;
}

/* Sidebar & Kolom Konten */
.sidebar-panel {
    background-color: #FDFBF7;
    border-right: 2px groove #C5A059;
    padding: 14px 10px;
    font-size: 13px;
    vertical-align: top;
}

.content-panel {
    padding: 16px 20px;
    background-color: #FFFFFF;
    vertical-align: top;
}

/* Headings */
h1, h2, h3, h4 {
    font-family: Arial, Helvetica, sans-serif;
    color: #1B5E20;
    margin-top: 18px;
    margin-bottom: 8px;
    line-height: 1.3;
}

h1 {
    font-size: 20px;
}

h2 {
    font-size: 18px;
    border-bottom: 2px dashed #C5A059;
    padding-bottom: 4px;
    color: #145A32;
}

h3 {
    font-size: 15.5px;
    color: #935116;
}

/* Link Style Klasik GeoCities */
a {
    color: #0000EE;
    text-decoration: underline;
}

a:visited {
    color: #551A8B;
}

a:hover {
    color: #FF0000;
}

img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Box Dekoratif / Kotak Informasi */
.retro-box {
    border: 2px inset #D4AF37;
    background-color: #FCF9EE;
    padding: 12px;
    margin: 12px 0;
    word-break: break-word;
}

.retro-callout {
    border-left: 6px solid #2E7D32;
    background-color: #E8F8F5;
    padding: 10px 14px;
    margin: 14px 0;
    font-style: italic;
}

.highlight-yellow {
    background-color: #FFFF00;
    padding: 1px 4px;
    font-weight: bold;
    color: #000;
}

/* Tombol Bevel 3D Vintage */
.retro-btn {
    display: inline-block;
    padding: 10px 20px;
    min-height: 44px;
    background: linear-gradient(180deg, #FFD54F 0%, #FFA000 50%, #FF8F00 100%);
    border-top: 3px solid #FFF59D;
    border-left: 3px solid #FFF59D;
    border-right: 3px solid #B7791F;
    border-bottom: 3px solid #B7791F;
    color: #451A03;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    box-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
    line-height: 1.3;
}

.retro-btn:hover {
    background: linear-gradient(180deg, #FFE082 0%, #FFB300 50%, #FFA000 100%);
    color: #000000;
    text-decoration: none;
}

.retro-btn:active {
    border-top: 3px solid #B7791F;
    border-left: 3px solid #B7791F;
    border-right: 3px solid #FFF59D;
    border-bottom: 3px solid #FFF59D;
    transform: translateY(1px);
}

.retro-btn-green {
    background: linear-gradient(180deg, #66BB6A 0%, #2E7D32 50%, #1B5E20 100%);
    border-top: 3px solid #A5D6A7;
    border-left: 3px solid #A5D6A7;
    border-right: 3px solid #0F3813;
    border-bottom: 3px solid #0F3813;
    color: #FFFFFF;
}

.retro-btn-green:hover {
    background: linear-gradient(180deg, #81C784 0%, #388E3C 50%, #2E7D32 100%);
    color: #FFFFCC;
}

/* Badge & Animated Flashing */
.blink-tag {
    animation: retroBlink 1s infinite;
    background-color: #D32F2F;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 11px;
    padding: 2px 6px;
    border: 1px solid #FFFFFF;
    margin-right: 4px;
    display: inline-block;
}

@keyframes retroBlink {
    0% { opacity: 1; }
    49% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 0; }
}

/* Visitor Counter Klasik */
.hit-counter {
    display: inline-block;
    background-color: #000000;
    color: #00FF00;
    font-family: "Courier New", Courier, monospace;
    font-size: 15px;
    font-weight: bold;
    padding: 3px 8px;
    border: 2px inset #808080;
    letter-spacing: 3px;
}

/* Pembatas Hiasan Vintage (Divider) */
.retro-hr {
    border: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg, #2E7D32, #2E7D32 12px, #D97706 12px, #D97706 24px, #FFBF00 24px, #FFBF00 36px);
    margin: 18px 0;
}

/* KUIS INTERAKTIF ACTIVITY READINESS */
.quiz-wrapper {
    background-color: #FEF9E7;
    border: 3px double #B7791F;
    padding: 14px;
    margin: 16px 0;
}

.quiz-header {
    background-color: #2E7D32;
    color: #FFFFFF;
    padding: 8px 12px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 15px;
    border: 1px solid #1B5E20;
    line-height: 1.3;
}

.quiz-question-box {
    margin-top: 12px;
    padding: 12px;
    background-color: #FFFFFF;
    border: 2px groove #C5A059;
}

.quiz-question-title {
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #78350F;
    margin-bottom: 10px;
    line-height: 1.35;
}

.quiz-option {
    display: flex;
    align-items: center;
    margin: 8px 0;
    padding: 10px 12px;
    background-color: #F9F9F9;
    border: 1px solid #D1D5DB;
    cursor: pointer;
    font-size: 13.5px;
    line-height: 1.4;
    transition: background 0.15s;
    min-height: 44px;
}

.quiz-option:hover {
    background-color: #E8F5E9;
    border-color: #2E7D32;
}

.quiz-option input[type="radio"] {
    margin-right: 10px;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.quiz-progress-bar {
    width: 100%;
    height: 16px;
    background-color: #E0E0E0;
    border: 1px inset #808080;
    margin-top: 10px;
}

.quiz-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    width: 20%;
    transition: width 0.3s;
}

.quiz-result-card {
    display: none;
    background-color: #FFFFFF;
    border: 3px ridge #2E7D32;
    padding: 14px;
    margin-top: 14px;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.profile-badge {
    display: inline-block;
    background-color: #1B5E20;
    color: #FFEB3B;
    padding: 6px 12px;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: bold;
    border: 2px outset #81C784;
    margin-bottom: 10px;
    line-height: 1.3;
}

.quiz-disclaimer {
    font-size: 11.5px;
    color: #555555;
    font-style: italic;
    margin-top: 12px;
    border-top: 1px dashed #A0AEC0;
    padding-top: 6px;
}

/* FORMULIR PEMESANAN LEAD */
.order-box {
    background-color: #FFFDF0;
    border: 3px ridge #D97706;
    padding: 16px;
    width: 100%;
    max-width: 580px;
    margin: 10px auto;
}

.form-group {
    margin-bottom: 14px;
    text-align: left;
}

.form-group label {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
    color: #1B5E20;
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    min-height: 42px;
    padding: 10px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    border: 2px inset #9CA3AF;
    background-color: #FFFFFF;
}

.form-input:focus {
    outline: none;
    border-color: #2E7D32;
    background-color: #FEFFE6;
}

.price-tag-big {
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: #B91C1C;
}

.price-original {
    text-decoration: line-through;
    color: #6B7280;
    font-size: 15px;
}

.discount-ribbon {
    background-color: #DC2626;
    color: #FFFFFF;
    padding: 3px 8px;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: bold;
    border-radius: 2px;
}

/* BADGES & WEB BUTTONS */
.web-badge {
    display: inline-block;
    padding: 4px 6px;
    margin: 3px;
    background-color: #000000;
    color: #FFFFFF;
    font-family: "Courier New", Courier, monospace;
    font-size: 10.5px;
    border: 1px solid #808080;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #FFFBEB;
    border-top: 3px solid #D97706;
    padding: 12px 16px;
    box-shadow: 0px -3px 10px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    font-family: Arial, sans-serif;
    font-size: 12.5px;
    color: #374151;
    display: none;
}

.cookie-content {
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* ==========================================================================
   RESPONSIVE DESIGN & MEDIA QUERIES (Mobile, Tablet, Desktop)
   ========================================================================== */

/* Tablet & Mobile Screens (<= 768px) */
@media (max-width: 768px) {
    body {
        padding: 4px;
    }

    .retro-container {
        width: 100%;
        margin: 4px auto;
        border-width: 3px;
        box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    }

    .retro-title {
        font-size: 19px;
    }

    .retro-subtitle {
        font-size: 12px;
    }

    /* Transform table layout to stacked block flow */
    .responsive-row {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .sidebar-panel {
        width: 100% !important;
        border-right: none;
        border-bottom: 2px groove #C5A059;
        padding: 12px;
    }

    .content-panel {
        width: 100% !important;
        padding: 12px;
    }

    .retro-nav-table {
        padding: 6px 2px;
    }

    .nav-link {
        display: inline-block;
        width: calc(50% - 8px);
        text-align: center;
        margin: 3px 4px;
        font-size: 11.5px;
        padding: 8px 4px;
    }

    .retro-btn {
        width: 100%;
        display: block;
        margin: 6px 0;
        padding: 12px 10px;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .cookie-content div {
        width: 100%;
    }

    .cookie-content button {
        margin-top: 6px;
    }

    /* Table columns in articles & stories reflow */
    .stack-on-mobile td {
        display: block;
        width: 100% !important;
        padding: 4px 0 !important;
    }
}

/* Extra Small Phones (<= 420px) */
@media (max-width: 420px) {
    body {
        padding: 2px;
    }

    .retro-title {
        font-size: 17px;
    }

    .nav-link {
        width: 100%;
        margin: 2px 0;
    }

    .hit-counter {
        font-size: 13px;
        letter-spacing: 2px;
    }
}
