/* assets/css/paket-kargo.css */

/* Hero Section */
.immersive-hero {
    /* Styles are generally inherited or set inline */
}

/* ================================== */
/* BAGIAN GRID DIPERBAIKI (START) */
/* ================================== */
.benefits-grid {
    display: grid;
    /* Diubah untuk memaksa 4 kolom di layar besar */
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem;
    /* Disamakan dengan .service-type-cards */
    max-width: 1200px; 
    margin: 0 auto;
}
/* ================================== */
/* BAGIAN GRID DIPERBAIKI (END) */
/* ================================== */

.benefit-card {
    background: var(--bg-secondary-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.benefit-card .icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
}

.benefit-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary-color);
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    line-height: 1.7;
}

/* Service Types Section */
.service-types-section {
    background-color: var(--bg-color);
}

.service-type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .service-type-cards {
        grid-template-columns: repeat(4, 1fr);
    }
}


.type-card {
    background-color: var(--bg-secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.type-card .icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.type-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--text-primary-color);
}

.type-card p {
    font-size: 0.95rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
}

/* Tools Panel & Price Check Form */
.tools-panel .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: flex-end;
}

.tools-panel .form-group {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.btn-cek-harga {
    margin-top: 1.5rem;
    width: 100%;
}

/* Checkbox Volumetrik */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.form-check input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.form-check label {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    cursor: pointer;
}

/* Kalkulator Volumetrik */
.volumetric-calculator {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

.volumetric-inputs {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.volumetric-inputs .form-group {
    flex: 1;
    max-width: 120px;
}

.volumetric-inputs .form-group label {
    font-size: 0.85rem;
    text-align: center;
    display: block;
    width: 100%;
}

.volumetric-inputs input {
    text-align: center;
}

.volumetric-result-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: var(--bg-secondary-color);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: #FFFFFF;
}

/* Quote Form Section */
.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);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Aturan umum untuk .form-group yang memengaruhi formulir penawaran */
.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-secondary-color);
    color: var(--text-primary-color);
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-group.col-span-2 {
    grid-column: span 2;
}

.form-group button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* Pesan status formulir */
.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.form-message.success {
    background-color: #D1FAE5;
    color: #065F46;
}

.form-message.error {
    background-color: #FEE2E2;
    color: #991B1B;
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-color);
}

.faq-container {
    max-width: 800px;
    margin: auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}
.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    padding: 1.2rem 0;
    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;
}

.faq-answer p {
    padding: 0 0 1.2rem 0;
    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; /* Sesuaikan jika jawaban lebih panjang */
}


@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .immersive-hero { background-position: 75% center; }
    .form-group.col-span-2 {
        grid-column: span 1;
    }
    .tools-panel .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    /* Menjadikan grid 2 kolom di layar kecil */
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    /* Menjadikan grid 1 kolom di layar sangat kecil */
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}
