/* assets/css/sewa-truk.css */

/* General Section Styling */
.section { padding: 4rem 0; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-title h2 { font-size: 2rem; font-weight: 700; }
.section-title p { max-width: 600px; margin: 0.8rem auto; color: var(--text-secondary-color); font-size: 0.95rem; }


/* BENEFITS GRID */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.benefit-card { background: var(--bg-secondary-color); border: 1px solid var(--border-color); padding: 1.5rem; border-radius: 12px; text-align: center; }
.benefit-card .icon { font-size: 1.8rem; color: var(--accent-color); margin-bottom: 1rem; }
.benefit-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.benefit-card p { color: var(--text-secondary-color); font-size: 0.85rem; }

/* KATALOG ARMADA */
.armada-catalog { background-color: var(--bg-color); }
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.catalog-card { background-color: var(--bg-color); border-radius: 12px; border: 1px solid var(--border-color); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.catalog-card img { width: 100%; height: 150px; object-fit: contain; padding: 0.8rem; background-color: var(--bg-secondary-color); }
.catalog-content { padding: 1rem; display: flex; flex-direction: column; flex-grow: 1; }
.catalog-content h3 { font-size: 1.1rem; margin-bottom: 0.5rem;}
.catalog-content ul { list-style: none; padding: 0.5rem 0; margin: 0; color: var(--text-secondary-color); flex-grow: 1; }
.catalog-content li { margin-bottom: 0.3rem; font-size: 0.85rem;}
.catalog-content li i { color: var(--accent-color); margin-right: 8px; }
.catalog-content .btn-primary { display: block; width: 100%; text-align: center; padding: 10px 12px; font-size: 0.9rem; border-radius: 8px; margin-top: 1rem; }


/* CEK HARGA INSTAN SECTION */
.search-form-card { background-color: var(--bg-secondary-color); border: 1px solid var(--border-color); border-radius: 16px; padding: 2rem; box-shadow: 0 8px 25px rgba(0,0,0,0.08); margin: 0 auto 2rem auto; max-width: 960px; }
.price-check-form .form-row { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-end; }
.price-check-form .form-group { flex: 1; min-width: 200px; position: relative; }
.price-check-form label { display: block; margin-bottom: 0.5rem; font-weight: 600; color: var(--text-primary-color); font-size: 0.9rem; }
.price-check-form select, .price-check-form input[type="text"] { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border-color); border-radius: 8px; background-color: var(--bg-color); color: var(--text-primary-color); font-size: 1rem; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.price-check-form select:focus, .price-check-form input[type="text"]:focus { border-color: var(--accent-color); outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2); }

/* Auto-suggestion List Styling */
.suggestion-list { position: absolute; top: 100%; left: 0; right: 0; z-index: 1000; background-color: var(--bg-color); border: 1px solid var(--border-color); border-radius: 8px; max-height: 200px; overflow-y: auto; box-shadow: 0 4px 15px rgba(0,0,0,0.1); display: none; }
.suggestion-item { padding: 0.8rem 1rem; cursor: pointer; font-size: 0.95rem; }
.suggestion-item:hover { background-color: var(--accent-color-light); }


/* Instant Rate Display Area */
.instant-rate-display { background-color: #fff; border: 1px solid var(--border-color); border-radius: 16px; padding: 2.5rem; text-align: center; max-width: 800px; margin: 0 auto; }
.rate-details-card { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; margin-bottom: 1.5rem; }
.rate-truck-image { width: 150px; height: auto; object-fit: contain; }
.rate-info { text-align: center; }
.rate-info p { margin-bottom: 0.5rem; line-height: 1.5; font-size: 1rem; }
.display-harga { font-size: 2.2rem; font-weight: 700; color: var(--accent-color); display: block; margin-top: 0.5rem; }
.rate-dimensions-list { list-style: none; padding: 0; margin-top: 1rem; display: flex; justify-content: center; gap: 1.5rem; font-size: 0.9rem; color: var(--text-secondary-color); }
.rate-dimensions-list li i { color: var(--accent-color); margin-right: 8px; }
.terms-conditions { font-size: 0.85rem; color: var(--text-secondary-color); margin-top: 1.5rem; line-height: 1.6; }
.loading-spinner, .no-results { padding: 2rem; font-size: 1rem; color: var(--text-secondary-color); }
.loading-spinner i { margin-right: 0.5rem; }

/* FIX: Gaya baru untuk Tombol CTA WhatsApp */
#wa-link.btn-primary {
    background-image: linear-gradient(to right, #25D366, #128C7E);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 1rem;
}

#wa-link.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

#wa-link.btn-primary::before {
    font-family: "Font Awesome 5 Brands";
    content: "\f232"; /* Kode ikon WhatsApp */
    font-weight: 400;
}


/* CARA PEMESANAN */
.how-to-order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; }
.step-item { text-align: center; }
.step-item .step-number { width: 45px; height: 45px; border: 2px solid var(--accent-color); color: var(--accent-color); background-color: var(--bg-secondary-color); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: auto; font-size: 1.2rem; font-weight: 600; margin-bottom: 1rem; }
.step-item h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step-item p { font-size: 0.9rem; color: var(--text-secondary-color); }

/* FORM PENAWARAN */
.quote-form-section { background-color: var(--bg-secondary-color); }
.form-container { max-width: 800px; margin: auto; background-color: var(--bg-color); padding: 2.5rem; border-radius: 16px; border: 1px solid var(--border-color); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem;}
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.8rem 1rem; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-secondary-color); font-family: inherit; font-size: 0.95rem; color: var(--text-primary-color); }
.form-group.col-span-2 { grid-column: span 2; }
.form-group button { padding: 12px; font-size: 1rem; }

.form-message { margin-top: 1.5rem; padding: 1rem; border-radius: 8px; text-align: center; }
.form-message.success { background-color: #D1FAE5; color: #065F46; border: 1px solid #34D399; }
.form-message.error { background-color: #FEE2E2; color: #991B1B; border: 1px solid #EF4444; }


/* FAQ ACCORDION */
.faq-section { background-color: var(--bg-color); }
.faq-container { max-width: 800px; margin: auto; }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-question { padding: 1.2rem 0.5rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question h3 { font-size: 1rem; font-weight: 500; margin: 0; }
.faq-question i { transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out, padding 0.4s ease; }
.faq-answer p { padding: 0 0.5rem 1.2rem 0.5rem; margin: 0; color: var(--text-secondary-color); line-height: 1.6; font-size: 0.9rem;}
.faq-item.active .faq-question i { transform: rotate(180deg); }
.faq-item.active .faq-answer { max-height: 300px; }


/* --- Responsive Design --- */
@media (max-width: 768px) {
    .section { padding: 2.5rem 0; }
    .section-title h2 { font-size: 1.8rem; }
    .immersive-hero { background-position: 48% center; }
    .benefits-grid, .how-to-order-grid, .form-grid { grid-template-columns: 1fr; }
    .form-group.col-span-2 { grid-column: span 1; }
    .price-check-form .form-row { flex-direction: column; align-items: stretch; }
    .rate-details-card { flex-direction: column; }
}

@media (min-width: 992px) {
    .catalog-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
