/* assets/css/jasa-pindahan.css */

/* Hero Section - Inherits from immersive-hero in style_v4.css */
/* Just ensure the background image is set via inline style in PHP */

/* Benefits Grid - Refined for Jasa Pindahan */
.benefits-grid {
    display: grid;
    /* Mengatur agar 4 kartu selalu berjejer dalam satu baris di desktop */
    grid-template-columns: repeat(4, 1fr); 
    gap: 1.5rem;
    max-width: 900px; /* Batasi lebar grid manfaat untuk estetika */
    margin: 0 auto; /* Pusatkan grid */
}

.benefit-card {
    background: var(--bg-secondary-color);
    border: 1px solid var(--border-color);
    padding: 2rem; /* Meningkatkan padding untuk ruang lebih */
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Shadow lebih halus */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px); /* Efek hover lebih menonjol */
    box-shadow: 0 12px 25px rgba(0,0,0,0.1); /* Shadow lebih kuat saat hover */
}

.benefit-card .icon {
    font-size: 2.5rem; /* Ukuran ikon lebih besar */
    color: var(--accent-color);
    margin-bottom: 1.2rem; /* Jarak ikon ke teks */
}

.benefit-card h3 {
    font-size: 1.2rem; /* Ukuran judul lebih besar */
    font-weight: 700; /* Lebih tebal */
    margin-bottom: 0.6rem;
    color: var(--text-primary-color);
}

.benefit-card p {
    font-size: 0.9rem; /* Ukuran teks lebih mudah dibaca */
    color: var(--text-secondary-color);
    line-height: 1.7; /* Line height lebih nyaman */
}

/* 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: 900px;
    margin: 0 auto;
}

.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;
}

/* Quote Form Section - Reuses form-container and form-grid from sewa-truk.css */
.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; /* Two columns for desktop */
    gap: 1.5rem; /* Gap between fields */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-primary-color);
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-secondary-color); /* Use secondary background for input */
    color: var(--text-primary-color);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.25), inset 0 2px 4px rgba(0,0,0,0.06);
}

.form-group.col-span-2 {
    grid-column: span 2;
}

.form-group button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 10px;
    background-color: var(--accent-color);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.form-group button:hover {
    background-color: var(--accent-hover-color);
    transform: translateY(-2px);
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

.form-message.success {
    /* Menggunakan variabel CSS untuk tema adaptif */
    background-color: var(--success-bg-color, #D1FAE5); /* Default light green */
    color: var(--success-text-color, #065F46); /* Default dark green */
    border: 1px solid var(--success-border-color, #34D399); /* Default green border */
}

body.dark-mode .form-message.success {
    background-color: #1A472A; /* Darker green for dark mode background */
    color: #A7F3D0; /* Lighter green for dark mode text */
    border-color: #34D399; /* Consistent green border */
}

.form-message.error {
    /* Menggunakan variabel CSS untuk tema adaptif */
    background-color: var(--error-bg-color, #FEE2E2); /* Default light red */
    color: var(--error-text-color, #991B1B); /* Default dark red */
    border: 1px solid var(--error-border-color, #EF4444); /* Default red border */
}

body.dark-mode .form-message.error {
    background-color: #450A0A; /* Darker red for dark mode background */
    color: #FCA5A5; /* Lighter red for dark mode text */
    border-color: #EF4444; /* Consistent red border */
}


/* FAQ Section - Reuses styles from sewa-truk.css or main style_v4.css */
.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;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 500;
}

.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-bottom: 1.2rem;
    color: var(--text-secondary-color);
    line-height: 1.6;
    font-size: 0.85rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed for content length */
}


/* Responsive Design for Jasa Pindahan Page */
@media (max-width: 992px) {
    /* General section padding adjustments for mobile */
    .section {
        padding: 2.5rem 0;
    }
    .section-title {
        margin-bottom: 1.5rem;
    }
    .section-title h2 {
        font-size: 1.8rem;
    }
    .section-title p {
        font-size: 0.85rem;
    }

    /* Service Type Cards - Mobile */
    .service-type-cards {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 1rem;
    }
    .type-card {
        padding: 1.5rem;
    }
    .type-card .icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    .type-card h3 {
        font-size: 1.2rem;
    }
    .type-card p {
        font-size: 0.85rem;
    }

    /* Quote Form Section - Mobile */
    .form-container {
        padding: 1.5rem;
        border-radius: 8px;
        box-shadow: none; /* Remove shadow for mobile full width */
    }
    .form-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 1rem;
    }
    .form-group.col-span-2 {
        grid-column: span 1; /* Ensure full width on mobile */
    }
    .form-group label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    .form-group button {
        padding: 0.9rem;
        font-size: 1rem;
        border-radius: 8px;
    }

    /* FAQ Section - Mobile */
    .faq-question {
        padding: 1rem 0;
    }
    .faq-question h3 {
        font-size: 0.95rem;
    }
    .faq-answer p {
        font-size: 0.8rem;
        padding-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    /* Further scaling down for very small mobile screens */
    .immersive-hero { background-position: 30% center; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-content p { font-size: 0.8rem; }

    .section-title h2 { font-size: 1.3rem; }
    .section-title p { font-size: 0.75rem; }

    .benefits-grid { grid-template-columns: 1fr; } /* Single column for very small screens */
    .type-card { padding: 1rem; }
    .type-card .icon { font-size: 2rem; margin-bottom: 0.8rem; }
    .type-card h3 { font-size: 1.1rem; }
    .type-card p { font-size: 0.75rem; }
}

/* Desktop styles (min-width: 993px) for form grid */
@media (min-width: 993px) {
    .form-grid {
        grid-template-columns: 1fr 1fr; /* Two columns for desktop */
        gap: 2rem; /* Wider gap for desktop */
    }
    .form-group input,
    .form-group select,
    .form-group textarea {
        /* Ensure inputs take full width of their grid column */
        width: 100%; 
    }
}
