/* --- Style untuk Halaman Cek Garansi (Frontend) --- */

.warranty-check-wrapper {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    /* Pastikan box-sizing untuk wrapper */
    box-sizing: border-box;
}

.warranty-check-wrapper h2 {
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.warranty-check-wrapper > p {
    text-align: center;
    margin-bottom: 25px;
    color: #666;
    font-size: 16px;
}

/* --- Form Cek Garansi --- */
.warranty-check-form {
    display: flex;
    gap: 12px; /* Sedikit tambah jarak */
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.warranty-check-form input[type="text"] {
    flex-grow: 1; /* Biarkan input memenuhi sisa ruang di desktop */
    min-width: 250px;
    padding: 12px 15px;
    font-size: 16px; /* Ukuran font yang baik untuk mencegah zoom otomatis di mobile */
    border: 2px solid #ddd;
    border-radius: 50px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* PASTIKAN BOX-SIZING */
    box-sizing: border-box;
}

.warranty-check-form input[type="text"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.2);
}

.warranty-check-form .button-primary {
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap;
    /* PASTIKAN BOX-SIZING */
    box-sizing: border-box;
}

.warranty-check-form .button-primary:hover {
    background-color: #005a87;
    transform: translateY(-2px);
}

.warranty-check-form .button-primary:active {
    transform: translateY(0);
}

/* --- Hasil Pencarian --- */
.warranty-check-result {
    margin-top: 30px;
    padding: 25px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.warranty-check-result h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 20px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.warranty-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.warranty-info-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.warranty-info-list li:last-child {
    border-bottom: none;
}

.warranty-info-list .info-label {
    font-weight: 600;
    color: #555;
    margin-right: 15px;
    flex-shrink: 0;
}

.warranty-info-list .info-value {
    color: #333;
    text-align: right;
}

/* --- Responsif untuk Mobile --- */
@media (max-width: 600px) {
    .warranty-check-wrapper {
        margin: 20px;
        padding: 20px;
    }

    .warranty-check-wrapper h2 {
        font-size: 24px;
    }

    /* PERBAIKAN: Atur ulang form untuk mobile */
    .warranty-check-form {
        flex-direction: column; /* Susun vertikal */
        align-items: stretch; /* Ratakan lebar elemen */
    }

    /* PERBAIKAN: Gunakan selector lebih spesifik dan reset flex-grow */
    .warranty-check-wrapper .warranty-check-form input[type="text"] {
        width: 100%; /* Pastikan lebar penuh */
        flex-grow: 0; /* Reset flex-grow untuk menghindari perilaku tak terduga */
        border-radius: 8px;
        text-align: center;
        margin-bottom: 0; /* Hapus margin bawah, gunakan margin pada tombol */
    }
    
    .warranty-check-wrapper .warranty-check-form .button-primary {
        width: 100%;
        border-radius: 8px;
        text-align: center;
        margin-top: 10px; /* Beri jarak dari input */
    }
    
    .warranty-info-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .warranty-info-list .info-value {
        text-align: left;
        margin-top: 5px;
        font-weight: 400;
    }
}