/* --- RESET & VARIABLES --- */
:root {
    --primary-blue: #1E3A8A;
    --dark-blue: #1e3a8a;
    --light-blue-bg: #F8FAFC;
    --green-acc: #16A34A;
    --text-dark: #111827;
    --text-grey: #6B7280;
    --border-radius: 10px;
    --white: #FFFFFF;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
}

.mobile-container {
    width: 100%;
    max-width: 480px;
    background-color: var(--white);
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    position: relative;
}

/* --- HEADER - TRANSPARENT GLASS --- */
header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.logo { 
    height: 45px; 
    display: flex; 
    align-items: center;
}
.logo img {
    height: 100%;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

/* Social Proof Slider - Green soft transparent, no wrap */
.social-proof-slider {
    width: auto;
    min-width: 220px;
    height: 32px;
    overflow: hidden;
    position: relative;
    background: rgba(0, 166, 81, 0.15);
    border-radius: 5px;
    border: 1px solid rgba(0, 166, 81, 0.3);
}
.social-proof-wrapper {
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
}
.social-proof-slide {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    text-align: center;
    white-space: nowrap;
}
.social-proof-slide span {
    color: var(--text-dark);
    font-size: 10px;
    line-height: 1;
    white-space: nowrap;
}
.social-proof-slide strong {
    color: var(--green-acc);
}

/* --- HERO SECTION with gradient bottom --- */
.hero {
    background: linear-gradient(180deg, #1fa2ff 0%, #12d8fa 70%, rgba(18, 216, 250, 0.8) 85%, rgba(255, 255, 255, 0) 100%);
    color: var(--white);
    text-align: center;
    padding: 30px 20px 0;
    overflow: hidden;
    position: relative;
}
.hero h1 { font-size: 22px; line-height: 1.3; font-weight: 700; margin-bottom: 15px; }

/* Vehicle Type Slider */
.vehicle-slider {
    display: inline-block;
    min-width: 60px;
    text-align: center;
}

.hero-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    font-size: 11px;
}
.stat-item i { display: block; font-size: 22px; margin-bottom: 6px; color: var(--primary-blue); }
.btn-cta-hero {
    background: linear-gradient(135deg, #F97316, #EA580C);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    width: 100%;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.35);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-cta-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.45);
}

.btn-cta-hero:active {
    transform: scale(0.98);
}

.hero-image {
    width: 100%;
    max-width: 420px; /* kontrol ukuran maksimal */
    margin: 30px auto 0;
    text-align: center;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* --- SECTION: CARA PENGAJUAN with Timeline --- */
.section { padding: 30px 20px; }
.section-title { font-size: 18px; font-weight: 700; text-align: center; margin-bottom: 25px; color: var(--text-dark); }

/* Timeline Steps */
.steps-timeline {
    position: relative;
    padding-left: 20px;
}
.steps-timeline::before {
    content: '';
    position: absolute;
    left: 34px;
    top: 15px;
    bottom: 15px;
    width: 2px;
    background: linear-gradient(180deg, var(--green-acc) 0%, rgba(0, 166, 81, 0.3) 100%);
}
.step-item {
    display: flex;
    align-items: flex-start;
    background: #fff;
    padding: 10px 0;
    position: relative;
    z-index: 1;
}
.step-item:not(:last-child) {
    margin-bottom: 10px;
}
.step-num {
    background: var(--green-acc);
    color: white;
    width: 32px; 
    height: 32px;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 166, 81, 0.3);
}
.step-text h4 { font-size: 14px; margin-bottom: 4px; color: var(--text-dark); }
.step-text p { font-size: 12px; color: var(--text-grey); }

/* --- SLIDER STYLES --- */
.slider-container {
    position: relative;
    overflow: hidden;
}
.slider-wrapper {
    display: flex;
    transition: transform 0.3s ease-out;
    cursor: grab;
}
.slider-wrapper:active {
    cursor: grabbing;
}
.slider-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 5px;
}

/* --- SECTION: PENDIDIKAN/PROMO SLIDER --- */
.promo-slide {
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 20px;
}
.promo-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.promo-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Running Text / Marquee for Partners */
.partner-marquee-container {
    overflow: hidden;
    margin-top: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px 0;
}
.partner-marquee {
    display: flex;
    animation: marquee 15s linear infinite;
    white-space: nowrap;
}
.partner-marquee:hover {
    animation-play-state: paused;
}
.partner-item {
    display: inline-flex;
    align-items: center;
    margin-right: 30px;
    font-size: 12px;
    color: var(--text-grey);
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- SECTION: SIMULASI (CARD STYLE) SLIDER --- */
.simulation-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: relative;
}

/* Green Ribbon Badge - Centered Text */
.ribbon-badge {
    position: absolute;
    top: 12px;
    right: -35px;
    background: var(--green-acc);
    color: white;
    padding: 6px 40px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    text-align: center;
    letter-spacing: 1px;
}

.car-preview { 
    padding: 20px; 
    text-align: center;
    position: relative;
}
.car-img { 
    width: 100%; 
    border-radius: 8px;
    overflow: hidden;
}

.car-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Insurance Icons - Emojis */
.insurance-icons {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    margin-top: 15px;
}
.insurance-item {
    text-align: center;
}
.insurance-item .icon-emoji {
    font-size: 28px;
    margin-bottom: 5px;
    display: block;
}
.insurance-item span {
    display: block;
    font-size: 9px;
    color: var(--text-grey);
    line-height: 1.2;
}

.sim-header {
    background: var(--green-acc);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: bold;
}
.sim-body { padding: 20px; }
.price-row { margin-bottom: 15px; }
.price-label { font-size: 12px; color: var(--text-grey); }
.price-value { font-size: 20px; font-weight: 800; color: var(--text-dark); }
.price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 2px;
}
.green-text { color: var(--green-acc); font-size: 12px; font-weight: bold; }

.check-list { list-style: none; margin-bottom: 20px; }
.check-list li {
    font-size: 12px; margin-bottom: 8px; display: flex; align-items: center;
}
.check-list li::before {
    content: "✔"; color: var(--green-acc); margin-right: 8px; font-weight: bold;
}

/* --- SECTION: KEUNTUNGAN (GRID) --- */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    text-align: center;
    margin-bottom: 30px;
}
.benefit-item {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 10px;
}
.benefit-icon { font-size: 24px; margin-bottom: 10px; color: #f26522; }
.benefit-title { font-size: 14px; font-weight: 700; margin-bottom: 5px; color: var(--primary-blue); }
.benefit-desc { font-size: 11px; color: var(--text-grey); }

/* --- SECTION: SYARAT DOKUMEN --- */
.doc-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
}
.doc-item { display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--primary-blue); }
.doc-icon { margin-right: 10px; color: var(--green-acc); }

/* --- SECTION: TESTIMONI SLIDER --- */
.testi-card {
    border: 1px solid #eee;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    background: var(--white);
}
.testi-text { font-size: 14px; margin: 20px 0; font-style: italic; }
.user-info { font-size: 12px; font-weight: bold; }

/* Star Rating */
.star-rating {
    color: #ffc107;
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

/* --- FORM SECTION (BLUE BG) --- */
.form-section {
    background: #0064D2;
    color: white;
    padding: 30px 20px;
}
.form-section h2 { font-size: 18px; margin-bottom: 5px; }
.form-section p { font-size: 12px; margin-bottom: 20px; opacity: 0.9; }

.form-group { margin-bottom: 15px; }
.form-label { display: block; font-size: 12px; margin-bottom: 5px; font-weight: 600; }
.form-label .required {
    color: #ff6b6b;
}
.form-input, .form-select {
    width: 100%;
    padding: 12px;
    border-radius: 5px;
    border: none;
    font-size: 14px;
}
.form-input:required:invalid, .form-select:required:invalid {
    border-left: 3px solid #ff6b6b;
}

/* Search Input for Kecamatan */
.search-container {
    position: relative;
}
.search-input {
    width: 100%;
    padding: 12px 40px 12px 12px;
    border-radius: 5px;
    border: none;
    font-size: 14px;
}
.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 0 0 5px 5px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}
.search-results.active {
    display: block;
}
.search-result-item {
    padding: 10px 12px;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}
.search-result-item:hover {
    background: #f5f5f5;
}

/* Image Upload Section */
.upload-section {
    margin-top: 15px;
}
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.upload-box {
    background: rgba(255, 255, 255, 0.1);
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}
.upload-box:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
}
.upload-box .upload-icon {
    font-size: 32px;
    margin-bottom: 8px;
}
.upload-box .upload-text {
    font-size: 11px;
    opacity: 0.9;
}
.upload-box input[type="file"] {
    display: none;
}
.upload-preview {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    display: none;
}
.upload-preview.active {
    display: block;
}

.radio-group { display: flex; gap: 15px; margin-bottom: 15px; flex-wrap: wrap; }
.radio-item { 
    display: flex; 
    align-items: center; 
    font-size: 13px; 
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: background 0.3s;
}
.radio-item:hover {
    background: rgba(255,255,255,0.3);
}
.radio-item input { 
    margin-right: 8px; 
    cursor: pointer;
}
.radio-item input:checked + span {
    font-weight: bold;
}

.checkbox-wrapper { display: flex; align-items: flex-start; font-size: 11px; gap: 8px; margin-bottom: 20px; opacity: 0.9; }

.btn-submit {
    background: var(--green-acc);
    color: white;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-submit:hover {
    background: #008f43;
}
.btn-submit:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* --- FAQ (ACCORDION) --- */
.faq-container { margin-top: 20px; }
details {
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}
summary {
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
}
summary::after { content: "+"; font-size: 18px; color: var(--text-grey); }
details[open] summary::after { content: "-"; }
.faq-ans { padding-top: 10px; font-size: 13px; color: var(--text-grey); line-height: 1.5; }

/* --- FOOTER --- */
footer {
    background: var(--dark-blue);
    color: white;
    padding: 30px 20px 80px;
    font-size: 12px;
}
.footer-logos { margin-bottom: 20px; }
.footer-logo-box { width: 50px; height: 50px; background: white; border-radius: 5px; display: inline-block; margin-right: 10px; }
.footer-links a { color: white; display: block; margin-bottom: 8px; text-decoration: none; }
.social-icons { margin-top: 20px; display: flex; gap: 15px; }
.social-box { width: 30px; height: 30px; background: rgba(255,255,255,0.2); border-radius: 50%; }

/* --- SLIDER DOTS --- */
.slider-dots {
    text-align: center;
    margin-top: 15px;
}

.slider-dot {
    width: 8px;
    height: 8px;
    background: #ccc;
    border-radius: 50%;
    margin: 0 4px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dot.active {
    background: var(--green-acc);
    transform: scale(1.2);
}

/* === MULTI STEP FORM SLIDER === */

.form-slider {
    overflow: hidden;
    width: 100%;
}

.form-slider-wrapper {
    display: flex;
    width: 100%;
    transition: transform 0.4s ease-in-out;
}

.form-step {
    width: 100%;
    flex-shrink: 0;
    padding: 10px 0;
}

.form-progress {
    width: 100%;
    height: 6px;
    background: #eee;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 33%;
    background: var(--green-acc);
    transition: width 0.4s ease;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    background: rgba(0, 166, 81, 0.15);
    border: 1px solid rgba(0, 166, 81, 0.3);
    border-radius: 5px;
    padding: 6px 12px;
    min-width: 220px;
    height: 32px;
}

#socialIcon {
    font-size: 14px;
    flex-shrink: 0;
}

#socialText {
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: var(--text-dark);
}

#socialText strong {
    color: var(--green-acc);
    font-weight: 700;
}

/* ============================= */
/* FLOATING BOTTOM ACTION BAR */
/* ============================= */

.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    background: #ffffff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    z-index: 9999;
}

.btn-bottom {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-simulasi {
    background: var(--primary-blue);
    color: #fff;
}

.btn-simulasi:hover {
    background: var(--dark-blue);
}

.btn-wa {
    background: var(--green-acc);
    color: #fff;
}

.btn-wa:hover {
    opacity: 0.9;
}

body {
    padding-bottom: 70px;
}

.bottom-action-bar {
    transition: transform 0.3s ease;
}

/* Container */
.trust-badges-horizontal {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    margin: 20px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.trust-badges-horizontal::-webkit-scrollbar {
    display: none;
}

/* Edge fade biar terlihat bisa geser */
.trust-badges-horizontal {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* Badge */
.trust-badge {
    flex: 0 0 auto;
    background: #f4f8ff;
    color: var(--primary-blue);
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    border: 1px solid rgba(0,73,144,0.08);
}

/* Highlight subtle breathing */
.trust-badge.highlight {
    background: var(--primary-blue);
    color: #fff;
    animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* ============================= */
/* WHATSAPP RADAR RIPPLE */
/* ============================= */

.wa-radar {
    position: relative;
    overflow: visible;
}

/* Radar waves */
.wa-radar::before,
.wa-radar::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    background: rgba(0,166,81,0.35);
    transform: translate(-50%, -50%) scale(1);
    z-index: -1;
    animation: radarPulse 3s infinite;
}

.wa-radar::after {
    animation-delay: 1.5s;
}

@keyframes radarPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.7);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.cta-micro-text {
    font-size: 12px;
    margin-top: 6px;
    opacity: 0.85;
    color: var(--text-grey);
    min-height: 16px; /* supaya layout tidak loncat */
}

.season-subtext {
    font-size: 14px;
    color: #ffffff;
    font-weight: 500;
}

.season-banner {
    display: none;
    width: 100%;
    padding: 14px 16px;
    text-align: center;
    background: linear-gradient(90deg, #004990, #00A651);
    color: #fff;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.season-title {
    font-size: 16px;
    font-weight: 700;
}

.season-subtitle {
    font-size: 13px;
    opacity: 0.85;
}
.default-banner {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(90deg,#004990,#00A651);
    color: #fff;
    display: none;
}

.default-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.default-title {
    font-weight: 700;
    font-size: 14px;
}

.default-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.default-image {
    width: 80px;
}
